inc/header.inc.php
changeset 144 ad667d767a0a
parent 136 c795dd75a77e
child 194 df674d004508
equal deleted inserted replaced
143:bef105ffb017 144:ad667d767a0a
    33 	include('inc/custom_header.inc.php');
    33 	include('inc/custom_header.inc.php');
    34 }
    34 }
    35 
    35 
    36 echo "  <h1>Poweradmin</h1>\n";
    36 echo "  <h1>Poweradmin</h1>\n";
    37 
    37 
    38 if (isset($_SESSION["userid"])) {
    38 if (file_exists('install')) {
    39 
    39 	error(ERR_INSTALL_DIR_EXISTS);
       
    40 	include('inc/footer.inc.php');
       
    41 	exit;
       
    42 } elseif (isset($_SESSION["userid"])) {
    40 	verify_permission('search') ? $perm_search = "1" : $perm_search = "0" ;
    43 	verify_permission('search') ? $perm_search = "1" : $perm_search = "0" ;
    41 	verify_permission('zone_content_view_own') ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ;
    44 	verify_permission('zone_content_view_own') ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ;
    42 	verify_permission('zone_content_view_other') ? $perm_view_zone_other = "1" : $perm_view_zone_other = "0" ;
    45 	verify_permission('zone_content_view_other') ? $perm_view_zone_other = "1" : $perm_view_zone_other = "0" ;
    43 	verify_permission('supermaster_view') ? $perm_supermaster_view = "1" : $perm_supermaster_view = "0" ;
    46 	verify_permission('supermaster_view') ? $perm_supermaster_view = "1" : $perm_supermaster_view = "0" ;
    44 	verify_permission('zone_master_add') ? $perm_zone_master_add = "1" : $perm_zone_master_add = "0" ;
    47 	verify_permission('zone_master_add') ? $perm_zone_master_add = "1" : $perm_zone_master_add = "0" ;
    71 	echo "    </div> <!-- /menu -->\n";
    74 	echo "    </div> <!-- /menu -->\n";
    72 }
    75 }
    73 echo "    <div class=\"content\">\n";
    76 echo "    <div class=\"content\">\n";
    74 
    77 
    75   
    78   
    76