inc/header.inc.php
author peter
Sat, 02 Feb 2008 15:39:04 +0000
changeset 71 e1b918eaf69a
parent 47 ae140472d97c
child 82 c255196bc447
permissions -rw-r--r--
[feladat @ 118] Removed the requirement of enabeling the PHP setting short_open_tag by changing all short open tags (<?) to the 'normal' tags (<?php).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
     1
<?php
47
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     2
ae140472d97c [feladat @ 94]
rejo
parents: 13
diff changeset
     3
/*  PowerAdmin, a friendly web-based admin tool for PowerDNS.
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
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    22
global $STYLE;
1
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    23
?>
58094faf794d [feladat @ 2]
rejo
parents:
diff changeset
    24
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    25
<html>
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    26
 <head>
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    27
  <title><?php echo _('Poweradmin'); ?></title>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    28
  <link rel=stylesheet href="style/<?php echo $STYLE; ?>.inc.php" type="text/css">
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    29
 </head>
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    30
 <body>
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    31
<?php
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    32
if(file_exists('inc/custom_header.inc.php')) 
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    33
{
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    34
	include('inc/custom_header.inc.php');
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    35
}
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    36
?>
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    37
  <h1><?php echo _('Poweradmin'); ?></h1> 
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    38
<?php
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    39
if (isset($_SESSION["userid"]))
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    40
{
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    41
?>
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    42
  
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    43
	  <div class="menu">
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    44
	   <span class="menuitem"><a href="index.php"><?php echo _('Index'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    45
	   <span class="menuitem"><a href="search.php"><?php echo _('Search zones or records'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    46
	   <span class="menuitem"><a href="list_zones.php"><?php echo _('List all zones'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    47
	<?php
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    48
	if (level(5))
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    49
	{
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    50
	?>
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    51
	   <span class="menuitem"><a href="list_supermasters.php"><?php echo _('List all supermasters'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    52
	   <span class="menuitem"><a href="add_zone_master.php"><?php echo _('Add master zone'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    53
	   <span class="menuitem"><a href="add_zone_slave.php"><?php echo _('Add slave zone'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    54
	   <span class="menuitem"><a href="add_supermaster.php"><?php echo _('Add supermaster'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    55
	<?php
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    56
	}
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    57
	?>
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    58
	   <span class="menuitem"><a href="change_password.php"><?php echo _('Change password'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    59
	<?php
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    60
	if (level(10))
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    61
	{
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    62
	?>
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    63
	   <span class="menuitem"><a href="users.php"><?php echo _('User administration'); ?></a></span>
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    64
	<?php
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    65
	}
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    66
	?>
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    67
	   <span class="menuitem"><a href="index.php?logout"><?php echo _('Logout'); ?></a></span>
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    68
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    69
	  </div> <!-- /menu -->
71
e1b918eaf69a [feladat @ 118]
peter
parents: 47
diff changeset
    70
<?php
13
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    71
}
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    72
?>
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    73
  <div class="content">
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    74
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    75
  
2ff220cfde13 [feladat @ 60]
rejo
parents: 4
diff changeset
    76