Exemplo n.º 1
0
    $content = $_GET['content'];
} else {
    $content = "";
}
$dataC = false;
$dbpage = false;
if (isset($_GET['pagenum'])) {
    $pagenum = $_GET['pagenum'];
} else {
    $pagenum = 0;
}
$sitecontent = "";
$sitecontent = get_page_subs($content, $patrolid, 1);
$pageid = get_page_id_subs($content, $patrolid, 1);
if ($content == '' || !isset($content)) {
    $sitecontent = get_frontpage_subs($patrolid, 1);
    $edit = adminauth("patrol", "edit") && !adminauth("patrol", "limit") || adminauth("patrol", "edit") && adminauth("patrol", "limit") && user_group_id($check['id'], $patrolid) ? true : false;
    $add = adminauth("patrol", "add") && !adminauth("patrol", "limit") || adminauth("patrol", "add") && adminauth("patrol", "limit") && user_group_id($check['id'], $patrolid) ? true : false;
    $addlink = "admin.php?page=patrol&subpage=patrolcontent&action=new&pid={$patrolid}";
    $editlink = "admin.php?page=patrol&subpage=patrolmenus&pid={$patrolid}";
} elseif ($sitecontent == "" && file_exists($content . $phpex)) {
    if (get_auth($content, 0) == 1) {
        include $content . $phpex;
    } else {
        $dataC = true;
        $dbpage = false;
        show_message("You do not have the required permissions to view that page", "index.php?page=patrolpages&patrol={$patrolid}&menuid={$menuid}");
    }
} else {
    $edit = adminauth("patrol", "edit") && !adminauth("patrol", "limit") || adminauth("patrol", "edit") && adminauth("patrol", "limit") && user_group_id($check['id'], $patrolid) ? true : false;
    $add = adminauth("patrol", "add") && !adminauth("patrol", "limit") || adminauth("patrol", "add") && adminauth("patrol", "limit") && user_group_id($check['id'], $patrolid) ? true : false;
Exemplo n.º 2
0
 if (isset($_GET['content'])) {
     $content = $_GET['content'];
 } else {
     $content = "";
 }
 $dataC = false;
 $dbpage = false;
 if (isset($_GET['pagenum'])) {
     $pagenum = $_GET['pagenum'];
 } else {
     $pagenum = 0;
 }
 $sitecontent = "";
 $sitecontent = get_page_subs($content, $subsite, 2);
 if ($content == '' || !isset($content)) {
     $sitecontent = get_frontpage_subs($subsite, 2);
     $edit = adminauth("subsite", "edit") ? true : false;
     $add = adminauth("subsite", "add") ? true : false;
     $addlink = "admin.php?page=subsite&subpage=subcontent&action=new&sid={$subsite}";
     $editlink = "admin.php?page=subsite&subpage=submenu&sid={$subsite}";
 } elseif ($sitecontent == "" && file_exists($content . $phpex)) {
     if (get_auth($content) == 1) {
         include $content . $phpex;
     } else {
         $dataC = true;
         $dbpage = false;
         $filetouse = "You do not have the required permisions to view this page.";
         $denied = true;
     }
 } else {
     $edit = adminauth("subsite", "edit") ? true : false;