23 require_once("inc/toolkit.inc.php"); |
23 require_once("inc/toolkit.inc.php"); |
24 include_once("inc/header.inc.php"); |
24 include_once("inc/header.inc.php"); |
25 |
25 |
26 echo " <h3>" . _('Welcome') . " " . $_SESSION["name"] . "</h3>\n"; |
26 echo " <h3>" . _('Welcome') . " " . $_SESSION["name"] . "</h3>\n"; |
27 |
27 |
28 verify_permission(search) ? $perm_search = "1" : $perm_search = "0" ; |
28 verify_permission('search') ? $perm_search = "1" : $perm_search = "0" ; |
29 verify_permission(zone_content_view_own) ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ; |
29 verify_permission('zone_content_view_own') ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ; |
30 verify_permission(zone_content_view_other) ? $perm_view_zone_other = "1" : $perm_view_zone_other = "0" ; |
30 verify_permission('zone_content_view_other') ? $perm_view_zone_other = "1" : $perm_view_zone_other = "0" ; |
31 verify_permission(supermaster_view) ? $perm_supermaster_view = "1" : $perm_supermaster_view = "0" ; |
31 verify_permission('supermaster_view') ? $perm_supermaster_view = "1" : $perm_supermaster_view = "0" ; |
32 verify_permission(zone_master_add) ? $perm_zone_master_add = "1" : $perm_zone_master_add = "0" ; |
32 verify_permission('zone_master_add') ? $perm_zone_master_add = "1" : $perm_zone_master_add = "0" ; |
33 verify_permission(zone_slave_add) ? $perm_zone_slave_add = "1" : $perm_zone_slave_add = "0" ; |
33 verify_permission('zone_slave_add') ? $perm_zone_slave_add = "1" : $perm_zone_slave_add = "0" ; |
34 verify_permission(supermaster_add) ? $perm_supermaster_add = "1" : $perm_supermaster_add = "0" ; |
34 verify_permission('supermaster_add') ? $perm_supermaster_add = "1" : $perm_supermaster_add = "0" ; |
35 |
35 |
36 echo " <ul>\n"; |
36 echo " <ul>\n"; |
37 echo " <li><a href=\"index.php\">" . _('Index') . "</a></li>\n"; |
37 echo " <li><a href=\"index.php\">" . _('Index') . "</a></li>\n"; |
38 if ( $perm_search == "1" ) { |
38 if ( $perm_search == "1" ) { |
39 echo " <li><a href=\"search.php\">" . _('Search zones and records') . "</a></li>\n"; |
39 echo " <li><a href=\"search.php\">" . _('Search zones and records') . "</a></li>\n"; |
48 echo " <li><a href=\"add_zone_master.php\">" . _('Add master zone') . "</a></li>\n"; |
48 echo " <li><a href=\"add_zone_master.php\">" . _('Add master zone') . "</a></li>\n"; |
49 } |
49 } |
50 if ( $perm_zone_slave_add ) { |
50 if ( $perm_zone_slave_add ) { |
51 echo " <li><a href=\"add_zone_slave.php\">" . _('Add slave zone') . "</a></li>\n"; |
51 echo " <li><a href=\"add_zone_slave.php\">" . _('Add slave zone') . "</a></li>\n"; |
52 } |
52 } |
53 if ( $supermaster_add ) { |
53 if ( $perm_supermaster_add ) { |
54 echo " <li><a href=\"add_supermaster.php\">" . _('Add supermaster') . "</a></li>\n"; |
54 echo " <li><a href=\"add_supermaster.php\">" . _('Add supermaster') . "</a></li>\n"; |
55 } |
55 } |
56 echo " <li><a href=\"change_password.php\">" . _('Change password') . "</a></li>\n"; |
56 echo " <li><a href=\"change_password.php\">" . _('Change password') . "</a></li>\n"; |
57 echo " <li><a href=\"users.php\">" . _('User administration') . "</a></li>\n"; |
57 echo " <li><a href=\"users.php\">" . _('User administration') . "</a></li>\n"; |
58 echo " <li><a href=\"index.php?logout\">" . _('Logout') . "</a></li>\n"; |
58 echo " <li><a href=\"index.php?logout\">" . _('Logout') . "</a></li>\n"; |