Там и копатьPorutchik писал(а):z:\home\forum.buglan.ru\www\includes\usercp_viewprofile.php on line 187

Просмотреть все места, которые изменят этот мод и удалить, то что осталось

Код: Выделить всё
Warning: Cannot modify header information - headers already sent by (output started at z:\home\saite.ru\www\forum\profile.php:2) in z:\home\saite.ru\www\forum\includes\page_header.php on line 594
Warning: Cannot modify header information - headers already sent by (output started at z:\home\saite.ru\www\forum\profile.php:2) in z:\home\saite.ru\www\forum\includes\page_header.php on line 596
Warning: Cannot modify header information - headers already sent by (output started at z:\home\saite.ru\www\forum\profile.php:2) in z:\home\saite.ru\www\forum\includes\page_header.php on line 597
Код: Выделить всё
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
$signature_bbcode_uid = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
Код: Выделить всё
if ( $signature_bbcode_uid == '' )
Код: Выделить всё
#
#-----[ FIND ]------------------------------------------------
#
VALUES ($user_id,
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, ";
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
, '$birthday', '$next_birthday_greeting'
я вставил так$sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending)
VALUES ($user_id, $group_id, 0)";
if( !($result = $db->sql_query($sql, END_TRANSACTION)) )
{
Код: Выделить всё
VALUES ($user_id, $group_id, '$birthday', '$next_birthday_greeting', 0)";
Код: Выделить всё
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
#
#-----[ BEFORE, ADD ]------------------------------------------
#
Код: Выделить всё
$sql = "INSERT INTO " . USERS_TABLE . "
VALUES ($user_id,
Код: Выделить всё
Warning: Cannot modify header information - headers already sent by (output started at z:\home\saite.ru\www\forum\profile.php:2) in z:\home\saite.ru\www\forum\includes\page_header.php on line 594
Warning: Cannot modify header information - headers already sent by (output started at z:\home\saite.ru\www\forum\profile.php:2) in z:\home\saite.ru\www\forum\includes\page_header.php on line 596
Warning: Cannot modify header information - headers already sent by (output started at z:\home\saite.ru\www\forum\profile.php:2) in z:\home\saite.ru\www\forum\includes\page_header.php on line 597
Код: Выделить всё
// Start add - Birthday MOD
if (isset($HTTP_POST_VARS['birthday']) )
{
$birthday = intval ($HTTP_POST_VARS['birthday']);
if ($birthday!=999999)
{
$b_day = realdate('j',$birthday);
$b_md = realdate('n',$birthday);
$b_year = realdate('Y',$birthday);
}
} else
{
$b_day = ( isset($HTTP_POST_VARS['b_day']) ) ? intval ($HTTP_POST_VARS['b_day']) : 0;
$b_md = ( isset($HTTP_POST_VARS['b_md']) ) ? intval ($HTTP_POST_VARS['b_md']) : 0;
$b_year = ( isset($HTTP_POST_VARS['b_year']) ) ? intval ($HTTP_POST_VARS['b_year']) : 0;
if ($b_day && $b_md && $b_year)
{
$birthday = mkrealdate($b_day,$b_md,$b_year);
} else
{
$birthday = 999999;
}
}
// End add - Birthday MOD
// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
// empty strings if they fail.
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
Код: Выделить всё
//
// Get current date
//
$sql = "INSERT INTO " . USERS_TABLE . " (user_reg_ip, user_reg_host, user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_gender, user_level, user_allow_pm, user_birthday, user_next_birthday_greeting, user_active, user_actkey)
VALUES ('" . str_replace("\'", "''", $user_reg_id) . "', '" . str_replace("\'", "''", $user_reg_host) . "', $user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, '$gender', 0, 1, '$birthday', '$next_birthday_greeting', ";
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
{
$user_actkey = gen_rand_string(true);
$key_len = 54 - (strlen($server_url));
$key_len = ( $key_len > 6 ) ? $key_len : 6;
$user_actkey = substr($user_actkey, 0, $key_len);
$sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
}
Код: Выделить всё
// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
строка № 594 header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
строка № 596 header ('Expires: 0');
строка № 597 header ('Pragma: no-cache');
$template->pparse('overall_header');
?>
Дело в том что внизу в скобочках верно дату расчитывает.Xpert писал(а):Странно, при любом раскладе пишет 36. Может все-таки где-то ошиблись?