71
|
1 |
<?php |
47
|
2 |
|
|
3 |
/* PowerAdmin, a friendly web-based admin tool for PowerDNS. |
|
4 |
* See <https://rejo.zenger.nl/poweradmin> for more details. |
|
5 |
* |
|
6 |
* Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl> |
|
7 |
* |
|
8 |
* This program is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, either version 3 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* This program is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
21 |
|
13
|
22 |
global $STYLE; |
1
|
23 |
?> |
|
24 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
13
|
25 |
<html> |
|
26 |
<head> |
71
|
27 |
<title><?php echo _('Poweradmin'); ?></title> |
|
28 |
<link rel=stylesheet href="style/<?php echo $STYLE; ?>.inc.php" type="text/css"> |
13
|
29 |
</head> |
|
30 |
<body> |
71
|
31 |
<?php |
13
|
32 |
if(file_exists('inc/custom_header.inc.php')) |
|
33 |
{ |
|
34 |
include('inc/custom_header.inc.php'); |
|
35 |
} |
|
36 |
?> |
71
|
37 |
<h1><?php echo _('Poweradmin'); ?></h1> |
|
38 |
<?php |
13
|
39 |
if (isset($_SESSION["userid"])) |
|
40 |
{ |
|
41 |
?> |
|
42 |
|
|
43 |
<div class="menu"> |
71
|
44 |
<span class="menuitem"><a href="index.php"><?php echo _('Index'); ?></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"><?php echo _('List all zones'); ?></a></span> |
|
47 |
<?php |
13
|
48 |
if (level(5)) |
|
49 |
{ |
|
50 |
?> |
71
|
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"><?php echo _('Add master 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"><?php echo _('Add supermaster'); ?></a></span> |
|
55 |
<?php |
13
|
56 |
} |
|
57 |
?> |
71
|
58 |
<span class="menuitem"><a href="change_password.php"><?php echo _('Change password'); ?></a></span> |
|
59 |
<?php |
13
|
60 |
if (level(10)) |
|
61 |
{ |
|
62 |
?> |
71
|
63 |
<span class="menuitem"><a href="users.php"><?php echo _('User administration'); ?></a></span> |
|
64 |
<?php |
13
|
65 |
} |
|
66 |
?> |
71
|
67 |
<span class="menuitem"><a href="index.php?logout"><?php echo _('Logout'); ?></a></span> |
13
|
68 |
|
|
69 |
</div> <!-- /menu --> |
71
|
70 |
<?php |
13
|
71 |
} |
|
72 |
?> |
|
73 |
<div class="content"> |
|
74 |
|
|
75 |
|
|
76 |
|