index.php
author peter
Thu, 15 May 2008 19:02:53 +0000
changeset 163 32d4c63c50c9
parent 126 cb06e3e29ed8
permissions -rw-r--r--
[feladat @ 269] Minor layout bug: Made sure the table row was closed before starting a new one.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
     1
<?php
47
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     2
119
f74e4f88b680 [feladat @ 222]
rejo
parents: 110
diff changeset
     3
/*  Poweradmin, a friendly web-based admin tool for PowerDNS.
47
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     4
 *  See <https://rejo.zenger.nl/poweradmin> for more details.
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     5
 *
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     6
 *  Copyright 2007, 2008  Rejo Zenger <rejo@zenger.nl>
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     7
 *
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     8
 *  This program is free software: you can redistribute it and/or modify
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     9
 *  it under the terms of the GNU General Public License as published by
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    10
 *  the Free Software Foundation, either version 3 of the License, or
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    11
 *  (at your option) any later version.
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    12
 *
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    13
 *  This program is distributed in the hope that it will be useful,
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    16
 *  GNU General Public License for more details.
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    17
 *
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    18
 *  You should have received a copy of the GNU General Public License
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    20
 */
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
    21
79
0c0aa144356a [feladat @ 156]
peter
parents: 71
diff changeset
    22
//session_start();
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    23
require_once("inc/toolkit.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    24
include_once("inc/header.inc.php");
82
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    25
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    26
echo "     <h3>" . _('Welcome') . " " . $_SESSION["name"] . "</h3>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    27
126
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    28
verify_permission('search') ? $perm_search = "1" : $perm_search = "0" ;
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    29
verify_permission('zone_content_view_own') ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ;
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    30
verify_permission('zone_content_view_other') ? $perm_view_zone_other = "1" : $perm_view_zone_other = "0" ;
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    31
verify_permission('supermaster_view') ? $perm_supermaster_view = "1" : $perm_supermaster_view = "0" ;
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    32
verify_permission('zone_master_add') ? $perm_zone_master_add = "1" : $perm_zone_master_add = "0" ;
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    33
verify_permission('zone_slave_add') ? $perm_zone_slave_add = "1" : $perm_zone_slave_add = "0" ;
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    34
verify_permission('supermaster_add') ? $perm_supermaster_add = "1" : $perm_supermaster_add = "0" ;
82
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    35
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    36
echo "    <ul>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    37
echo "    <li><a href=\"index.php\">" . _('Index') . "</a></li>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    38
if ( $perm_search == "1" ) {
110
455405c757e1 [feladat @ 210]
rejo
parents: 82
diff changeset
    39
	echo "    <li><a href=\"search.php\">" . _('Search zones and records') . "</a></li>\n";
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 8
diff changeset
    40
}
82
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    41
if ( $perm_view_zone_own == "1" || $perm_view_zone_other == "1" ) {
110
455405c757e1 [feladat @ 210]
rejo
parents: 82
diff changeset
    42
	echo "    <li><a href=\"list_zones.php\">" . _('List zones') . "</a></li>\n";
82
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    43
}
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    44
if ( $perm_supermaster_view ) {
110
455405c757e1 [feladat @ 210]
rejo
parents: 82
diff changeset
    45
	echo "    <li><a href=\"list_supermasters.php\">" . _('List supermasters') . "</a></li>\n";
82
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    46
}
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    47
if (  $perm_zone_master_add ) {
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    48
	echo "    <li><a href=\"add_zone_master.php\">" . _('Add master zone') . "</a></li>\n";
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    49
}
82
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    50
if ( $perm_zone_slave_add ) { 
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    51
	echo "    <li><a href=\"add_zone_slave.php\">" . _('Add slave zone') . "</a></li>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    52
}
126
cb06e3e29ed8 [feladat @ 230]
peter
parents: 119
diff changeset
    53
if ( $perm_supermaster_add ) { 
82
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    54
	echo "    <li><a href=\"add_supermaster.php\">" . _('Add supermaster') . "</a></li>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    55
}
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    56
echo "    <li><a href=\"change_password.php\">" . _('Change password') . "</a></li>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    57
echo "    <li><a href=\"users.php\">" . _('User administration') . "</a></li>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    58
echo "    <li><a href=\"index.php?logout\">" . _('Logout') . "</a></li>\n";
c255196bc447 [feladat @ 182]
rejo
parents: 79
diff changeset
    59
echo "   </ul>\n";
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    60
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    61
include_once("inc/footer.inc.php");
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    62
?>