|
From: FlorinCB <ory...@us...> - 2008-06-26 22:02:07
|
Update of /cvsroot/mxbb/core/includes/sessions/internal In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23137/sessions/internal Modified Files: session.php Log Message: experimental setup() method for all backends Index: session.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/sessions/internal/session.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** session.php 15 Jun 2008 09:15:43 -0000 1.7 --- session.php 26 Jun 2008 22:02:01 -0000 1.8 *************** *** 35,121 **** var $update_session_page = true; ! // ! // Adds/updates a new session to the database for the given userid. ! // Returns the new session ID on success. ! // ! function session_begin($user_id, $user_ip, $page_id, $auto_create = 0, $enable_autologin = 0, $admin = 0) ! { ! global $db, $board_config; ! global $mx_request_vars, $SID; [...1552 lines suppressed...] ! //this will fix the path for anonymouse users ! if ((@include $phpbb_root_path . $language_filename) === false) ! { ! die('Language file ' . $language_filename . ' couldn\'t be opened.'); ! } ! } ! } ! else ! { ! // Get Database Language Strings ! // Put them into $lang if nothing is prefixed, put them into $help if help: is prefixed ! // For example: help:faq, posting ! die("You should not use db with MX-Publisher!"); ! } ! ! // We include common language file here to not load it every time a custom language file is included ! $this->lang = &$lang; } } |