]>
Softwares of Agnibho - simpleipd.git/blob - lib/access.php
2 function checkAccess($target, $type="page"){
4 $registry=json_decode(file_get_contents(CONFIG_ROOT
."access.json"));
6 if(!empty($_SESSION["group"])){
7 $group=$_SESSION["group"];
8 if(!empty($registry->$target->$group)){
9 $access=$registry->$target->$group;
17 return "style='display:none'";
29 if($access=="all" ||
$access=="view"){