1
0
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:
secretr
2010-04-24 11:48:19 +00:00
parent 4e8be9a7b8
commit b6abcc7cf1
4 changed files with 26 additions and 10 deletions

View File

@@ -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

View File

@@ -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;