inc/header.inc.php
author rejo
Mon, 23 Jul 2007 22:05:19 +0000
changeset 38 cf767482333a
parent 13 2ff220cfde13
child 47 ae140472d97c
permissions -rw-r--r--
[feladat @ 85] The type of zone wasn't show to users with access level 1. If a user with access level 1 did have access to a slave zone the user did not see the IP of the master nameserver of that zone. Now the user will the IP address (readonly and only if one is set). Bugfix. If no master IP for a slave zone is given, a warning is shown regardless of the userlevel. Bugfix. Both the "add record" and "edit record" buttons in the "edit zone" screen is no longer available for users with level 1 for domains of type "slave". Bug report by Antonio Prado. Some PHP and HTML cleanup (removing of empty tags and unnecessary repeatings of calls to a single function).

<?
global $STYLE;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <title><? echo _('Poweradmin'); ?></title>
  <link rel=stylesheet href="style/<? echo $STYLE; ?>.inc.php" type="text/css">
 </head>
 <body>
<?
if(file_exists('inc/custom_header.inc.php')) 
{
	include('inc/custom_header.inc.php');
}
?>
  <h1><? echo _('Poweradmin'); ?></h1> 
<?
if (isset($_SESSION["userid"]))
{
?>
  
	  <div class="menu">
	   <span class="menuitem"><a href="index.php"><? echo _('Index'); ?></a></span>
	   <span class="menuitem"><a href="search.php"><? echo _('Search zones or records'); ?></a></span>
	   <span class="menuitem"><a href="list_zones.php"><? echo _('List all zones'); ?></a></span>
	<?
	if (level(5))
	{
	?>
	   <span class="menuitem"><a href="list_supermasters.php"><? echo _('List all supermasters'); ?></a></span>
	   <span class="menuitem"><a href="add_zone_master.php"><? echo _('Add master zone'); ?></a></span>
	   <span class="menuitem"><a href="add_zone_slave.php"><? echo _('Add slave zone'); ?></a></span>
	   <span class="menuitem"><a href="add_supermaster.php"><? echo _('Add supermaster'); ?></a></span>
	<?
	}
	?>
	   <span class="menuitem"><a href="change_password.php"><? echo _('Change password'); ?></a></span>
	<?
	if (level(10))
	{
	?>
	   <span class="menuitem"><a href="users.php"><? echo _('User administration'); ?></a></span>
	<?
	}
	?>
	   <span class="menuitem"><a href="index.php?logout"><? echo _('Logout'); ?></a></span>

	  </div> <!-- /menu -->
<?
}
?>
  <div class="content">