Fix für den Cache:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_cache.php
#
#-----[ FIND ]------------------------------------------------
#
* version : 1.0.0 - 15/12/2003
#
#-----[ REPLACE WITH ]----------------------------------------
#
* version : 1.0.1 - 16/01/2004
#
#-----[ FIND ]------------------------------------------------
#
if ( defined('USERS_STATS_DONE') )
{
return;
}
define('USERS_STATS_DONE', true);
// read registered users info (number and last)
#
#-----[ REPLACE WITH ]----------------------------------------
#
// read registered users info (number and last)
#
#-----[ FIND ]------------------------------------------------
#
if ( defined('BOARD_STATS_DONE') )
{
return;
}
define('BOARD_STATS_DONE', true);
// read topics and posts info
#
#-----[ REPLACE WITH ]----------------------------------------
#
// read topics and posts info
#
#-----[ FIND ]------------------------------------------------
#
$fname = $phpbb_root_path . './includes/def_tree.' . $phpEx;
@chmod($fname, 0666);
$handle = @fopen($fname, 'w');
@fwrite($handle, $res);
@fclose($handle);
#
#-----[ REPLACE WITH ]----------------------------------------
#
$cache_path = 'includes/';
$cache_file = 'def_tree';
$handle = @fopen($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 'w');
@flock($fp, LOCK_EX);
@fwrite($handle, $res);
@flock($fp, LOCK_UN);
@fclose($handle);
@umask(0000);
@chmod($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 0666);
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_WORDS') || defined('CACHE_WORDS_DONE') )
{
return;
}
define('CACHE_WORDS_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_WORDS') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_THEMES') || defined('CACHE_THEMES_DONE') )
{
return;
}
define('CACHE_THEMES_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_THEMES') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_SMILIES') || defined('CACHE_SMILIES_DONE') )
{
return;
}
define('CACHE_SMILIES_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_SMILIES') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_RANKS') || defined('CACHE_RANKS_DONE') )
{
return;
}
define('CACHE_RANKS_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_RANKS') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('CACHE_BIRTHDAY') || !defined('PCP_INSTALLED') || defined('CACHE_BIRTHDAY_DONE') )
{
return;
}
define('CACHE_BIRTHDAY_DONE', true);
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( !defined('CACHE_BIRTHDAY') || !defined('PCP_INSTALLED') )
{
return;
}
#
#-----[ FIND ]------------------------------------------------
#
$fname = $phpbb_root_path . './includes/' . $cache_file . '.' . $phpEx;
@chmod($fname, 0666);
$handle = @fopen($fname, 'w');
@fwrite($handle, $res);
@fclose($handle);
#
#-----[ REPLACE WITH ]----------------------------------------
#
$cache_path = 'includes/';
$handle = @fopen($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 'w');
@flock($fp, LOCK_EX);
@fwrite($handle, $res);
@flock($fp, LOCK_UN);
@fclose($handle);
@umask(0000);
@chmod($phpbb_root_path . $cache_path . $cache_file . '.' . $phpEx, 0666);
#
#-----[ OPEN ]------------------------------------------------
#
includes/cache_tpls/def_smilies_def.php
#
#-----[ FIND ]------------------------------------------------
#
<!-- END smilies -->
#
#-----[ REPLACE WITH ]----------------------------------------
#
<!-- END cache_row -->
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
users_stats();
cache_birthday();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$message .= '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . append_sid("admin_users.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
// the username may have changed
users_stats();
cache_birthday();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
// the username may have changed
users_stats();
cache_birthday();
//-- fin mod : cache -------------------------------------------------------------------------------
Gehts danach?
MfG
Dave