Принцип и суть ясна из кода.
Буду рад любым предложениям/исправлениям.
Код: Выделить всё
// Актуально только для тех, у кого установлен Birthday Mod!
OPEN index.php
FIND
$sql = ($board_config['birthday_check_day'])
BEFORE, ADD
$fname= date('d-m-y').'.dat';
if (!file_exists($fname)) {
FIND
if ($birthday_today_list) $birthday_today_list[ strlen( $birthday_today_list)-1] = ' ';
if ($birthday_week_list) $birthday_week_list[ strlen( $birthday_week_list)-1] = ' ';
}
AFTER, ADD
$oldfname= date('d-m-y', mktime(0, 0, 0, date("m"), date("d")-1, date("Y"))).'.dat';
if (file_exists($oldfname)) unlink($oldfname);
$fp= @fopen($fname,'w');
$data= serialize(array($birthday_today_list,$birthday_week_list));
fwrite ($fp, $data);
fclose ($fp);
FIND
$db->sql_freeresult($result);
}
AFTER, ADD
}
else {
$data= unserialize(file_get_contents($fname));
$birthday_today_list=$data[0];
$birthday_week_list=$data[1];
}
OPEN profile.php
FIND
else if ( $mode == 'editprofile' || $mode == 'register' )
{
AFTER, ADD
unlink(date('d-m-y').'.dat');
OPEN admin/admin_users.php
FIND
//
// Ok, the profile has been modified and submitted, let's update
//
if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) )
{
AFTER, ADD
unlink('../'.date('d-m-y').'.dat');
Скачать с phpbbGuru
Drupal refresh