Update of /cvsroot/mxbb/core/includes
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24560
Modified Files:
mx_functions_style.php
Log Message:
Moved another PORTAL_BACKEND
Index: mx_functions_style.php
===================================================================
RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** mx_functions_style.php 10 Jul 2008 20:46:36 -0000 1.79
--- mx_functions_style.php 10 Jul 2008 23:08:59 -0000 1.80
***************
*** 53,109 ****
$this->load();
! switch (PORTAL_BACKEND)
! {
! case 'internal':
! //
! // Simulate the user lang setting
! //
! $this->data['user_lang'] = $portal_config['default_lang'];
! $this->data['user_dateformat'] = $portal_config['user_dateformat'];
! $this->data['user_timezone'] = $portal_config['user_timezone'];
!
! //
! // Populate session_id
! //
! $this->session_id = $this->data['session_id'];
! break;
!
! case 'phpbb2':
! //
! // Populate session_id
! //
! $this->session_id = $this->data['session_id'];
! break;
!
! case 'phpbb3':
! //
! // 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;
!
! break;
! }
!
! $userdata = $this->data; // Syncronize
}
}
--- 53,60 ----
$this->load();
! //
! // Syncronize
! //
! $userdata = $this->data;
}
}
***************
*** 523,528 ****
{
$sql = 'UPDATE ' . USERS_TABLE . "
! SET user_lang = '" . $this->encode_lang($this->lang['default_lang'], PORTAL_BACKEND) . "'
! WHERE user_lang = '" . $this->encode_lang($this->data['user_lang'], PORTAL_BACKEND) . "'";
if ( !($result = $db->sql_query($sql)) )
--- 474,479 ----
{
$sql = 'UPDATE ' . USERS_TABLE . "
! SET user_lang = '" . $this->encode_lang($this->lang['default_lang']) . "'
! WHERE user_lang = '" . $this->encode_lang($this->data['user_lang']) . "'";
if ( !($result = $db->sql_query($sql)) )
|