[Fix] Delete Unused Avatars

Kleine Codeänderungen oder Mini-MODs
Keine Anfragen!!! -- No requests!!!

Moderator: Supporter

[Fix] Delete Unused Avatars

Beitragvon AmigaLink » 18. Jan 2007 21:00

Code: Alles auswählen
#
#-----[ OPEN ]----------------------------------------------------------------
#

admin/admin_avatar_delete.php

#
#-----[ FIND ]----------------------------------------------------------------
#

   $module['General']['Avatar_Delete'] = $filename;

#
#-----[ REPLACE WITH ]--------------------------------------------------------
#

   $module['Users']['Avatar_Delete'] = $filename;

#
#-----[ FIND ]----------------------------------------------------------------
#

$phpbb_root_path = './../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

#
#-----[ REPLACE WITH ]--------------------------------------------------------
#

$phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);

#
#-----[ FIND ]----------------------------------------------------------------
#

$page_title = $lang['Avatar_Delete'];
$gen_simple_header = TRUE;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

#
#-----[ REPLACE WITH ]--------------------------------------------------------
#

$page_title = $lang['Avatar_Delete'];

#
#-----[ FIND ]----------------------------------------------------------------
#

echo "<form method='post' name='post' action='./admin_avatar_delete.php'>";

#
#-----[ REPLACE WITH ]--------------------------------------------------------
#

echo "<form method='post' name='post' action='".append_sid("admin_avatar_delete.php")."'>";

#
#-----[ FIND ]----------------------------------------------------------------
#

if($file=='.'||$file=='..'||$file=='index.htm'||$file=='index.html'||$file==substr(strrchr($board_config['avatar_gallery_path'], '/'), 1))

#
#-----[ REPLACE WITH ]--------------------------------------------------------
#

if($file=='.'||$file=='..'||$file=='index.htm'||$file=='index.html'||$file=='.htaccess'||$file==substr(strrchr($board_config['avatar_gallery_path'], '/'), 1))

#
#-----[ FIND ]----------------------------------------------------------------
#

echo "</form><a href='http://www.awsw.de' class='gensmall'>MOD Version 1.00 by AWSW</a>";

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

#
#-----[ REPLACE WITH ]--------------------------------------------------------
#

echo "</form><br><br><a href='http://www.awsw.de' class='gensmall'>MOD Version 1.00 by AWSW</a>";

include($phpbb_admin_root_path . 'page_footer_admin.'.$phpEx);

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------
#
# EoM
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon BIG Mule » 26. Mai 2007 19:56

Danke, hab die ganze Zeit danach gesucht. :bofl:
BIG Mule
 
Beiträge: 12
Registriert: 6. Mai 2007 11:09


Zurück zu phpBB2 Snippets



Wer ist online?

Mitglieder in diesem Forum: Magpie [Crawler] und 1 Gast

cron