mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Possible fix for class issue with user theme selection
This commit is contained in:
11
class2.php
11
class2.php
@@ -9,9 +9,9 @@
|
|||||||
* General purpose file
|
* General purpose file
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
* $Revision: 1.100 $
|
* $Revision: 1.101 $
|
||||||
* $Date: 2009-07-07 16:04:39 $
|
* $Date: 2009-07-07 21:39:18 $
|
||||||
* $Author: e107coders $
|
* $Author: e107steved $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//
|
//
|
||||||
@@ -1439,6 +1439,7 @@ function init_session()
|
|||||||
define('ADMIN', false);
|
define('ADMIN', false);
|
||||||
define('GUEST', true);
|
define('GUEST', true);
|
||||||
define('USERCLASS', '');
|
define('USERCLASS', '');
|
||||||
|
define('USERCLASS_LIST', class_list());
|
||||||
define('USEREMAIL', '');
|
define('USEREMAIL', '');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1461,6 +1462,7 @@ function init_session()
|
|||||||
define('USER', false);
|
define('USER', false);
|
||||||
define('USERID', 0);
|
define('USERID', 0);
|
||||||
define('USERCLASS', '');
|
define('USERCLASS', '');
|
||||||
|
define('USERCLASS_LIST', class_list());
|
||||||
define('LOGINMESSAGE', CORE_LAN10.'<br /><br />');
|
define('LOGINMESSAGE', CORE_LAN10.'<br /><br />');
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
@@ -1475,6 +1477,7 @@ function init_session()
|
|||||||
define('USEREMAIL', $result['user_email']);
|
define('USEREMAIL', $result['user_email']);
|
||||||
define('USER', true);
|
define('USER', true);
|
||||||
define('USERCLASS', $result['user_class']);
|
define('USERCLASS', $result['user_class']);
|
||||||
|
define('USERCLASS_LIST', class_list());
|
||||||
define('USERVIEWED', $result['user_viewed']);
|
define('USERVIEWED', $result['user_viewed']);
|
||||||
define('USERIMAGE', $result['user_image']);
|
define('USERIMAGE', $result['user_image']);
|
||||||
define('USERPHOTO', $result['user_sess']);
|
define('USERPHOTO', $result['user_sess']);
|
||||||
@@ -1554,10 +1557,10 @@ function init_session()
|
|||||||
define('ADMIN', false);
|
define('ADMIN', false);
|
||||||
define('CORRUPT_COOKIE', true);
|
define('CORRUPT_COOKIE', true);
|
||||||
define('USERCLASS', '');
|
define('USERCLASS', '');
|
||||||
|
define('USERCLASS_LIST', class_list());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
define('USERCLASS_LIST', class_list());
|
|
||||||
define('e_CLASS_REGEXP', '(^|,)('.str_replace(',', '|', USERCLASS_LIST).')(,|$)');
|
define('e_CLASS_REGEXP', '(^|,)('.str_replace(',', '|', USERCLASS_LIST).')(,|$)');
|
||||||
define('e_NOBODY_REGEXP', '(^|,)'.e_UC_NOBODY.'(,|$)');
|
define('e_NOBODY_REGEXP', '(^|,)'.e_UC_NOBODY.'(,|$)');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user