1
|
1 |
<?php |
47
|
2 |
|
119
|
3 |
/* Poweradmin, a friendly web-based admin tool for PowerDNS. |
47
|
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 |
|
79
|
22 |
//session_start(); |
1
|
23 |
require_once("inc/toolkit.inc.php"); |
|
24 |
include_once("inc/header.inc.php"); |
82
|
25 |
|
|
26 |
echo " <h3>" . _('Welcome') . " " . $_SESSION["name"] . "</h3>\n"; |
|
27 |
|
|
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" ; |
|
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" ; |
|
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" ; |
|
34 |
verify_permission(supermaster_add) ? $perm_supermaster_add = "1" : $perm_supermaster_add = "0" ; |
|
35 |
|
|
36 |
echo " <ul>\n"; |
|
37 |
echo " <li><a href=\"index.php\">" . _('Index') . "</a></li>\n"; |
|
38 |
if ( $perm_search == "1" ) { |
110
|
39 |
echo " <li><a href=\"search.php\">" . _('Search zones and records') . "</a></li>\n"; |
13
|
40 |
} |
82
|
41 |
if ( $perm_view_zone_own == "1" || $perm_view_zone_other == "1" ) { |
110
|
42 |
echo " <li><a href=\"list_zones.php\">" . _('List zones') . "</a></li>\n"; |
82
|
43 |
} |
|
44 |
if ( $perm_supermaster_view ) { |
110
|
45 |
echo " <li><a href=\"list_supermasters.php\">" . _('List supermasters') . "</a></li>\n"; |
82
|
46 |
} |
|
47 |
if ( $perm_zone_master_add ) { |
|
48 |
echo " <li><a href=\"add_zone_master.php\">" . _('Add master zone') . "</a></li>\n"; |
1
|
49 |
} |
82
|
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"; |
1
|
60 |
|
|
61 |
include_once("inc/footer.inc.php"); |
|
62 |
?> |