You were supposed to make two edits to that line in usercp_register, but you only made one.sixers33 wrote: Column count doesn't match value count
You were supposed to make two edits to that line in usercp_register, but you only made one.sixers33 wrote: Column count doesn't match value count
Code: Select all
function log_action($content, $level = 0)
{
global $db;
$current_time = time();
$sql = "INSERT INTO " . STORE_LOG . " (log_level, log_content, log_time) VALUES ($level, '" . str_replace("\'", "''", $content) . "', $current_time)";
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "error inputting log entry", "", __LINE__, __FILE__, $sql);
}
} // log_action();
Code: Select all
function log_action($content, $level = 0)
{
global $db;
$current_time = time();
$content = str_replace("\'", "''", str_replace("\'", "''", addslashes($content)));
$sql = "INSERT INTO " . STORE_LOG . " (log_level, log_content, log_time) VALUES ($level, '$content', $current_time)";
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "error inputting log entry", "", __LINE__, __FILE__, $sql);
}
} // log_action();
Code: Select all
Parse error: syntax error, unexpected T_IF in /home/.mitzi/xorakjoken/forum.xorajoken.com/includes/usercp_register.php on line 67
Code: Select all
function show_coppa()
{
global $userdata, $template, $lang, $phpbb_root_path, $phpEx;
$template->set_filenames(array(
'body' => 'agreement.tpl')
);
$template->assign_vars(array(
'REGISTRATION' => $lang['Registration'],
'AGREEMENT' => $lang['Reg_agreement'],
"AGREE_OVER_13" => $lang['Agree_over_13'],
"AGREE_UNDER_13" => $lang['Agree_under_13'],
'DO_NOT_AGREE' => $lang['Agree_not'],
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))
);
$template->pparse('body');
}
Code: Select all
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' user_pm_purchase = 1, user_pm_purchase = 1, user_timezone = 0, user_dateformat ' at line 2
UPDATE phpbb_users SET user_email = '[email protected]', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = 'I AM AMERICA (And So Can YOU!)d', user_sig_bbcode_uid = '035af4d326', user_viewemail = 0, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 1, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm, user_pm_purchase = 1, user_pm_purchase = 1, user_timezone = 0, user_dateformat = 'D M d, Y g:i a', user_lang = 'english', user_style = 1, user_active = 1, user_actkey = '' WHERE user_id = 6
Line : 531
File : usercp_register.php
Code: Select all
user_pm_purchase = 1, user_pm_purchase = 1,
Code: Select all
user_popup_pm, user_pm_purchase = 1, user_pm_purchase = 1,