mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 04:41:53 +02:00
Commented out level handler related code to prevent system parse errors on front-end, awaiting for new level handler.
This commit is contained in:
@@ -133,7 +133,8 @@ SC_END
|
||||
|
||||
SC_BEGIN LEVEL
|
||||
global $LEVEL, $comrow, $pref;
|
||||
$ldata = get_level($comrow['user_id'], $comrow['user_forums'], $comrow['user_comments'], $comrow['user_chats'], $comrow['user_visits'], $comrow['user_join'], $comrow['user_admin'], $comrow['user_perms'], $pref);
|
||||
//FIXME - new level handler, currently commented to avoid parse errors
|
||||
//$ldata = get_level($comrow['user_id'], $comrow['user_forums'], $comrow['user_comments'], $comrow['user_chats'], $comrow['user_visits'], $comrow['user_join'], $comrow['user_admin'], $comrow['user_perms'], $pref);
|
||||
return ($comrow['user_admin'] ? $ldata[0] : $ldata[1]);
|
||||
SC_END
|
||||
|
||||
|
@@ -110,9 +110,10 @@ SC_END
|
||||
|
||||
SC_BEGIN USER_LEVEL
|
||||
global $user, $pref;
|
||||
require_once(e_HANDLER."level_handler.php");
|
||||
$ldata = get_level($user['user_id'], $user['user_forums'], $user['user_comments'], $user['user_chats'], $user['user_visits'], $user['user_join'], $user['user_admin'], $user['user_perms'], $pref);
|
||||
|
||||
//FIXME - new level handler, currently commented to avoid parse errors
|
||||
//require_once(e_HANDLER."level_handler.php");
|
||||
//$ldata = get_level($user['user_id'], $user['user_forums'], $user['user_comments'], $user['user_chats'], $user['user_visits'], $user['user_join'], $user['user_admin'], $user['user_perms'], $pref);
|
||||
$ldata = array();
|
||||
if (strstr($ldata[0], "IMAGE_rank_main_admin_image"))
|
||||
{
|
||||
return LAN_USER_31;
|
||||
|
Reference in New Issue
Block a user