[Aware-list] Help
Status: Beta
Brought to you by:
rleighton
|
From: Lamine D. <di...@po...> - 2003-11-04 18:13:54
|
I am having this error after I login with administrator/administrator to
http://localhost/aware
Please help. And also here is my <?php phpinfo(); ?> output. Thanks
= $row['privilegecode']) ) { $val =
$row['objecttypes_id']."-".$row['objectname']."-".$row['privileges_id']."-".$row['privilegename']."-".$row['privilegecode'];
$allprivileges[]=$val; } } } if ($allprivileges) return
($allprivileges); else return false; } function
user_getmemberspecificmaxprivilegeonobject($granteeid,$granteetype,$typeid,$objectname)
{ $query = " select a.privileges_id from aw_objectprivileges as a
,aw_objecttypeprivileges as b where a.objecttypes_id = $typeid and
a.objectname='$objectname' and a.granteeid=$granteeid and
a.granteetype='$granteetype' and b.objecttypes_id=$typeid and
a.privileges_id=b.privileges_id order by b.privilegecode desc limit 1 ";
$result = mysql_query($query) or die(mysql_error()); if (
mysql_num_rows($result) ) { extract(mysql_fetch_array($result)); return
$privileges_id; } return false; } function
user_getmemberspecificPrivilegeidsonObject($granteeid,$granteetype,$typeid,$objectname)
{ $privilegeid =
user_getmemberspecificmaxprivilegeonobject($granteeid,$granteetype,$typeid,$objectname);
if(!$privilegeid) return false; $privilegecode =
user_getPrivilegecode($typeid,$privilegeid); $query = "select
a.privileges_id,b.name as privilegename,a.privilegecode from
aw_objecttypeprivileges as a,aw_privileges as b where
objecttypes_id=$typeid and privilegecode <= $privilegecode and
a.privileges_id = b.id"; $result = mysql_query($query) or die
(mysql_error()); if ( mysql_num_rows($result) ) { while ($row =
mysql_fetch_array($result) ) $privids[]=$row; } if($privids) return
$privids; else return false; } function
user_GranteePrivilegeExists($objecttypeid,$objectname,$privid,$granteetype,$granteeid)
{ $query = "select id from aw_objectprivileges where objecttypes_id =
$objecttypeid and objectname = '$objectname' and privileges_id=$privid
and granteetype='$granteetype' and granteeid=$granteeid "; $result =
mysql_query($query) or die(mysql_error()); if (mysql_num_rows($result) )
{ extract(mysql_fetch_array($result)); return $id; } return false; } ?>
No Database Selected
|