Code: Selecteer alles
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
$page_title = 'phpBB Fix';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, user_active, username, user_password, user_session_time, user_session_page, user_lastvisit, user_regdate, user_level, user_posts, user_timezone, user_style, user_lang, user_dateformat, user_new_privmsg, user_unread_privmsg, user_last_privmsg, user_emailtime, user_viewemail, user_attachsig, user_allowhtml, user_allowbbcode, user_allowsmile, user_allowavatar, user_allow_pm, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_rank, user_avatar, user_avatar_type, user_email, user_icq, user_website, user_from, user_sig, user_sig_bbcode_uid, user_aim, user_yim, user_msnm, user_occ, user_interests, user_actkey, user_newpasswd) VALUES('136', '1', 'Error', '', '0', '0', '0', '1082539867', '0', '0', '0.00', NULL, '', '', '0', '0', '0', NULL, '0', '0', '1', '1', '1', '1', '0', '1', '0', '1', '0', NULL, '', '0', '', '', '', '', '', NULL, '', '', '', '', '', '', '')";
if( (!$result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Error inserting anonymous user data", "", __LINE__, __FILE__, $sql);
}
else {echo '<table width="80%" class="forumline"><tr><td>The anonymous user was missing, and has successfully been added</td><tr></table>';}
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Is normaal om anonymous terug te zetten maar ik heb wat veranderd (met name user_id en user_active)