|
From: Jon O. <jon...@us...> - 2008-07-10 23:09:04
|
Update of /cvsroot/mxbb/core/includes/sessions/phpbb3 In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24560/sessions/phpbb3 Modified Files: session.php Log Message: Moved another PORTAL_BACKEND Index: session.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/sessions/phpbb3/session.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** session.php 10 Jul 2008 20:46:36 -0000 1.24 --- session.php 10 Jul 2008 23:08:59 -0000 1.25 *************** *** 95,98 **** --- 95,123 ---- //define('NEED_SID', 1); $this->session_begin(); + + // + // Redefine some MXP stylish userdata + // + $this->data['session_logged_in'] = $this->data['user_id'] != ANONYMOUS ? 1 : 0; + + if ( $this->data['user_id'] == ANONYMOUS ) + { + $this->data['user_type'] = -1; + } + + switch ($this->data['user_type']) + { + case 3: + $this->data['user_level'] = 1; + break; + case 0: + $this->data['user_level'] = 2; + break; + default: + $this->data['user_level'] = 0; + break; + } + + $this->data['session_id'] = $this->session_id; } |