20 */ |
20 */ |
21 |
21 |
22 //session_start(); |
22 //session_start(); |
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 <h3><?php echo _('Welcome'); ?>, <?php echo $_SESSION["name"] ?></h3> |
26 echo " <h3>" . _('Welcome') . " " . $_SESSION["name"] . "</h3>\n"; |
27 <ul> |
27 |
28 <li><a href="search.php"><?php echo _('Search zones or records'); ?></a></li> |
28 verify_permission(search) ? $perm_search = "1" : $perm_search = "0" ; |
29 <li><a href="list_zones.php"><?php echo _('List all zones'); ?></a></li> |
29 verify_permission(zone_content_view_own) ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ; |
30 <?php |
30 verify_permission(zone_content_view_other) ? $perm_view_zone_other = "1" : $perm_view_zone_other = "0" ; |
31 if (level(5)) |
31 verify_permission(supermaster_view) ? $perm_supermaster_view = "1" : $perm_supermaster_view = "0" ; |
32 { |
32 verify_permission(zone_master_add) ? $perm_zone_master_add = "1" : $perm_zone_master_add = "0" ; |
33 ?> |
33 verify_permission(zone_slave_add) ? $perm_zone_slave_add = "1" : $perm_zone_slave_add = "0" ; |
34 <li><a href="list_supermasters.php"><?php echo _('List all supermasters'); ?></a></li> |
34 verify_permission(supermaster_add) ? $perm_supermaster_add = "1" : $perm_supermaster_add = "0" ; |
35 <li><a href="add_zone_master.php"><?php echo _('Add master zone'); ?></a></li> |
35 |
36 <li><a href="add_zone_slave.php"><?php echo _('Add slave zone'); ?></a></li> |
36 echo " <ul>\n"; |
37 <li><a href="add_supermaster.php"><?php echo _('Add supermaster'); ?></a></li> |
37 echo " <li><a href=\"index.php\">" . _('Index') . "</a></li>\n"; |
38 <?php |
38 if ( $perm_search == "1" ) { |
|
39 echo " <li><a href=\"search.php\">" . _('Search zones or records') . "</a></li>\n"; |
39 } |
40 } |
40 ?> |
41 if ( $perm_view_zone_own == "1" || $perm_view_zone_other == "1" ) { |
41 <li><a href="change_password.php"><?php echo _('Change password'); ?></a></li> |
42 echo " <li><a href=\"list_zones.php\">" . _('List all zones') . "</a></li>\n"; |
42 <?php |
|
43 if (level(10)) |
|
44 { |
|
45 ?> |
|
46 <li><a href="users.php"><?php echo _('User administration'); ?></a></li> |
|
47 <?php |
|
48 } |
43 } |
49 ?> |
44 if ( $perm_supermaster_view ) { |
50 <li><a href="index.php?logout"><?php echo _('Logout'); ?></a></li> |
45 echo " <li><a href=\"list_supermasters.php\">" . _('List all supermasters') . "</a></li>\n"; |
51 </ul> |
46 } |
|
47 if ( $perm_zone_master_add ) { |
|
48 echo " <li><a href=\"add_zone_master.php\">" . _('Add master zone') . "</a></li>\n"; |
|
49 } |
|
50 if ( $perm_zone_slave_add ) { |
|
51 echo " <li><a href=\"add_zone_slave.php\">" . _('Add slave zone') . "</a></li>\n"; |
|
52 } |
|
53 if ( $supermaster_add ) { |
|
54 echo " <li><a href=\"add_supermaster.php\">" . _('Add supermaster') . "</a></li>\n"; |
|
55 } |
|
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"; |
|
58 echo " <li><a href=\"index.php?logout\">" . _('Logout') . "</a></li>\n"; |
|
59 echo " </ul>\n"; |
52 |
60 |
53 <?php |
|
54 include_once("inc/footer.inc.php"); |
61 include_once("inc/footer.inc.php"); |
55 ?> |
62 ?> |