inc/header.inc.php
changeset 126 cb06e3e29ed8
parent 119 f74e4f88b680
child 136 c795dd75a77e
equal deleted inserted replaced
125:700a3674b72e 126:cb06e3e29ed8
    35 
    35 
    36 echo "  <h1>Poweradmin</h1>\n";
    36 echo "  <h1>Poweradmin</h1>\n";
    37 
    37 
    38 if (isset($_SESSION["userid"])) {
    38 if (isset($_SESSION["userid"])) {
    39 
    39 
    40 	verify_permission(search) ? $perm_search = "1" : $perm_search = "0" ;
    40 	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" ;
    41 	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" ;
    42 	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" ;
    43 	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" ;
    44 	verify_permission('zone_master_add') ? $perm_zone_master_add = "1" : $perm_zone_master_add = "0" ;
    45 	verify_permission(zone_slave_add) ? $perm_zone_slave_add = "1" : $perm_zone_slave_add = "0" ;
    45 	verify_permission('zone_slave_add') ? $perm_zone_slave_add = "1" : $perm_zone_slave_add = "0" ;
    46 	verify_permission(supermaster_add) ? $perm_supermaster_add = "1" : $perm_supermaster_add = "0" ;
    46 	verify_permission('supermaster_add') ? $perm_supermaster_add = "1" : $perm_supermaster_add = "0" ;
    47 
    47 
    48 	echo "    <div class=\"menu\">\n";
    48 	echo "    <div class=\"menu\">\n";
    49 	echo "    <span class=\"menuitem\"><a href=\"index.php\">" . _('Index') . "</a></span>\n";
    49 	echo "    <span class=\"menuitem\"><a href=\"index.php\">" . _('Index') . "</a></span>\n";
    50 	if ( $perm_search == "1" ) { 
    50 	if ( $perm_search == "1" ) { 
    51 		echo "    <span class=\"menuitem\"><a href=\"search.php\">" . _('Search zones and records') . "</a></span>\n"; 
    51 		echo "    <span class=\"menuitem\"><a href=\"search.php\">" . _('Search zones and records') . "</a></span>\n";