22 global $STYLE; |
22 global $STYLE; |
23 ?> |
23 ?> |
24 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
24 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
25 <html> |
25 <html> |
26 <head> |
26 <head> |
27 <title><? echo _('Poweradmin'); ?></title> |
27 <title><?php echo _('Poweradmin'); ?></title> |
28 <link rel=stylesheet href="style/<? echo $STYLE; ?>.inc.php" type="text/css"> |
28 <link rel=stylesheet href="style/<?php echo $STYLE; ?>.inc.php" type="text/css"> |
29 </head> |
29 </head> |
30 <body> |
30 <body> |
31 <? |
31 <?php |
32 if(file_exists('inc/custom_header.inc.php')) |
32 if(file_exists('inc/custom_header.inc.php')) |
33 { |
33 { |
34 include('inc/custom_header.inc.php'); |
34 include('inc/custom_header.inc.php'); |
35 } |
35 } |
36 ?> |
36 ?> |
37 <h1><? echo _('Poweradmin'); ?></h1> |
37 <h1><?php echo _('Poweradmin'); ?></h1> |
38 <? |
38 <?php |
39 if (isset($_SESSION["userid"])) |
39 if (isset($_SESSION["userid"])) |
40 { |
40 { |
41 ?> |
41 ?> |
42 |
42 |
43 <div class="menu"> |
43 <div class="menu"> |
44 <span class="menuitem"><a href="index.php"><? echo _('Index'); ?></a></span> |
44 <span class="menuitem"><a href="index.php"><?php echo _('Index'); ?></a></span> |
45 <span class="menuitem"><a href="search.php"><? echo _('Search zones or records'); ?></a></span> |
45 <span class="menuitem"><a href="search.php"><?php echo _('Search zones or records'); ?></a></span> |
46 <span class="menuitem"><a href="list_zones.php"><? echo _('List all zones'); ?></a></span> |
46 <span class="menuitem"><a href="list_zones.php"><?php echo _('List all zones'); ?></a></span> |
47 <? |
47 <?php |
48 if (level(5)) |
48 if (level(5)) |
49 { |
49 { |
50 ?> |
50 ?> |
51 <span class="menuitem"><a href="list_supermasters.php"><? echo _('List all supermasters'); ?></a></span> |
51 <span class="menuitem"><a href="list_supermasters.php"><?php echo _('List all supermasters'); ?></a></span> |
52 <span class="menuitem"><a href="add_zone_master.php"><? echo _('Add master zone'); ?></a></span> |
52 <span class="menuitem"><a href="add_zone_master.php"><?php echo _('Add master zone'); ?></a></span> |
53 <span class="menuitem"><a href="add_zone_slave.php"><? echo _('Add slave zone'); ?></a></span> |
53 <span class="menuitem"><a href="add_zone_slave.php"><?php echo _('Add slave zone'); ?></a></span> |
54 <span class="menuitem"><a href="add_supermaster.php"><? echo _('Add supermaster'); ?></a></span> |
54 <span class="menuitem"><a href="add_supermaster.php"><?php echo _('Add supermaster'); ?></a></span> |
55 <? |
55 <?php |
56 } |
56 } |
57 ?> |
57 ?> |
58 <span class="menuitem"><a href="change_password.php"><? echo _('Change password'); ?></a></span> |
58 <span class="menuitem"><a href="change_password.php"><?php echo _('Change password'); ?></a></span> |
59 <? |
59 <?php |
60 if (level(10)) |
60 if (level(10)) |
61 { |
61 { |
62 ?> |
62 ?> |
63 <span class="menuitem"><a href="users.php"><? echo _('User administration'); ?></a></span> |
63 <span class="menuitem"><a href="users.php"><?php echo _('User administration'); ?></a></span> |
64 <? |
64 <?php |
65 } |
65 } |
66 ?> |
66 ?> |
67 <span class="menuitem"><a href="index.php?logout"><? echo _('Logout'); ?></a></span> |
67 <span class="menuitem"><a href="index.php?logout"><?php echo _('Logout'); ?></a></span> |
68 |
68 |
69 </div> <!-- /menu --> |
69 </div> <!-- /menu --> |
70 <? |
70 <?php |
71 } |
71 } |
72 ?> |
72 ?> |
73 <div class="content"> |
73 <div class="content"> |
74 |
74 |
75 |
75 |