1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

EONE-62 (New Feature): almost working version when it comes to getting data;

e_front_model in development;
check_class() modified to accept values of type array;
work in progress
This commit is contained in:
secretr
2010-05-02 18:41:20 +00:00
parent 59053103a4
commit 067b0a07c2
4 changed files with 805 additions and 143 deletions

View File

@@ -1260,9 +1260,9 @@ function check_class($var, $userclass = USERCLASS_LIST, $uid = 0)
return FALSE;
}
$class_array = explode(',', $userclass);
$class_array = !is_array($userclass) ? explode(',', $userclass) : $userclass;
$varList = explode(',', $var);
$varList = !is_array($var) ? explode(',', $var) : $var;
$latchedAccess = FALSE;
foreach($varList as $v)
@@ -1323,6 +1323,7 @@ function getperms($arg, $ap = ADMINPERMS)
{
$sql = e107::getDb('psql');
// FIXME - cache it, avoid sql query here
if ($sql->db_Select('plugin', 'plugin_id', "plugin_path = '".$matches[2]."' LIMIT 1 "))
{
$row = $sql->db_Fetch();