Wollte auf die neueste Version updaten und nun komm ich nicht mehr in mein Forum. Ich erhalte folgendes, wenn ich die index Seite aufrufe:
Code: Alles auswählen
e_sql = 'session_user_id = ' . (int) $user_id; $where_sql .= ($user_id == $userdata['user_id']) ? " AND session_id <> '" . $userdata['session_id'] . "'" : ''; $sql = 'DELETE FROM ' . SESSIONS_TABLE . " WHERE $where_sql"; if ( !$db->sql_query($sql) ) { message_die(CRITICAL_ERROR, 'Error removing user session(s)', '', __LINE__, __FILE__, $sql); } if ( !empty($key_sql) ) { $auto_login_key = dss_rand() . dss_rand(); $current_time = time(); $sql = 'UPDATE ' . SESSIONS_KEYS_TABLE . " SET last_ip = '$user_ip', key_id = '" . md5($auto_login_key) . "', last_login = $current_time WHERE key_id = '" . md5($userdata['session_key']) . "'"; if ( !$db->sql_query($sql) ) { message_die(CRITICAL_ERROR, 'Error updating session key', '', __LINE__, __FILE__, $sql); } // And now rebuild the cookie $sessiondata['userid'] = $user_id; $sessiondata['autologinid'] = $auto_login_key; $cookiename = $board_config['cookie_name']; $cookiepath = $board_config['cookie_path']; $cookiedomain = $board_config['cookie_domain']; $cookiesecure = $board_config['cookie_secure']; setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure); $userdata['session_key'] = $auto_login_key; unset($sessiondata); unset($auto_login_key); } } // // Append $SID to a url. Borrowed from phplib and modified. This is an // extra routine utilised by the session code above and acts as a wrapper // around every single URL and form action. If you replace the session // code you must include this routine, even if it's empty. // function append_sid($url, $non_html_amp = false) { global $SID; if ( !empty($SID) && !preg_match('#sid=#', $url) ) { $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; } return $url; } ?>
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/sessions.php on line 258
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/sessions.php on line 259
l/ and contrib/ directories are deleted'; // // That's all, Folks! // ------------------------------------------------- ?>
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/page_header.php on line 479
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/page_header.php on line 486
Code: Alles auswählen
e_sql = 'session_user_id = ' . (int) $user_id; $where_sql .= ($user_id == $userdata['user_id']) ? " AND session_id <> '" . $userdata['session_id'] . "'" : ''; $sql = 'DELETE FROM ' . SESSIONS_TABLE . " WHERE $where_sql"; if ( !$db->sql_query($sql) ) { message_die(CRITICAL_ERROR, 'Error removing user session(s)', '', __LINE__, __FILE__, $sql); } if ( !empty($key_sql) ) { $auto_login_key = dss_rand() . dss_rand(); $current_time = time(); $sql = 'UPDATE ' . SESSIONS_KEYS_TABLE . " SET last_ip = '$user_ip', key_id = '" . md5($auto_login_key) . "', last_login = $current_time WHERE key_id = '" . md5($userdata['session_key']) . "'"; if ( !$db->sql_query($sql) ) { message_die(CRITICAL_ERROR, 'Error updating session key', '', __LINE__, __FILE__, $sql); } // And now rebuild the cookie $sessiondata['userid'] = $user_id; $sessiondata['autologinid'] = $auto_login_key; $cookiename = $board_config['cookie_name']; $cookiepath = $board_config['cookie_path']; $cookiedomain = $board_config['cookie_domain']; $cookiesecure = $board_config['cookie_secure']; setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure); $userdata['session_key'] = $auto_login_key; unset($sessiondata); unset($auto_login_key); } } // // Append $SID to a url. Borrowed from phplib and modified. This is an // extra routine utilised by the session code above and acts as a wrapper // around every single URL and form action. If you replace the session // code you must include this routine, even if it's empty. // function append_sid($url, $non_html_amp = false) { global $SID; if ( !empty($SID) && !preg_match('#sid=#', $url) ) { $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; } return $url; } ?>
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/sessions.php on line 370
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/sessions.php on line 371
l/ and contrib/ directories are deleted'; // // That's all, Folks! // ------------------------------------------------- ?>
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/sessions.php on line 258
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/sessions.php on line 259
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/web154/html/forum/phpBB2/includes/sessions.php:528) in /srv/www/web154/html/forum/phpBB2/includes/functions.php on line 942