inc/header.inc.php
changeset 119 f74e4f88b680
parent 111 0a2342a64b83
child 126 cb06e3e29ed8
equal deleted inserted replaced
118:839a18931017 119:f74e4f88b680
     1 <?php
     1 <?php
     2 
     2 
     3 /*  PowerAdmin, a friendly web-based admin tool for PowerDNS.
     3 /*  Poweradmin, a friendly web-based admin tool for PowerDNS.
     4  *  See <https://rejo.zenger.nl/poweradmin> for more details.
     4  *  See <https://rejo.zenger.nl/poweradmin> for more details.
     5  *
     5  *
     6  *  Copyright 2007, 2008  Rejo Zenger <rejo@zenger.nl>
     6  *  Copyright 2007, 2008  Rejo Zenger <rejo@zenger.nl>
     7  *
     7  *
     8  *  This program is free software: you can redistribute it and/or modify
     8  *  This program is free software: you can redistribute it and/or modify
    22 global $STYLE;
    22 global $STYLE;
    23 
    23 
    24 echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
    24 echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
    25 echo "<html>\n";
    25 echo "<html>\n";
    26 echo " <head>\n";
    26 echo " <head>\n";
    27 echo "  <title>PowerAdmin</title>\n";
    27 echo "  <title>Poweradmin</title>\n";
    28 echo "  <link rel=stylesheet href=\"style/" . $STYLE . ".inc.php\" type=\"text/css\">\n";
    28 echo "  <link rel=stylesheet href=\"style/" . $STYLE . ".inc.php\" type=\"text/css\">\n";
    29 echo " </head>\n";
    29 echo " </head>\n";
    30 echo " <body>\n";
    30 echo " <body>\n";
    31 
    31 
    32 if(file_exists('inc/custom_header.inc.php')) {
    32 if(file_exists('inc/custom_header.inc.php')) {
    33 	include('inc/custom_header.inc.php');
    33 	include('inc/custom_header.inc.php');
    34 }
    34 }
    35 
    35 
    36 echo "  <h1>PowerAdmin</h1>\n";
    36 echo "  <h1>Poweradmin</h1>\n";
    37 
    37 
    38 if (isset($_SESSION["userid"])) {
    38 if (isset($_SESSION["userid"])) {
    39 
    39 
    40 	verify_permission(search) ? $perm_search = "1" : $perm_search = "0" ;
    40 	verify_permission(search) ? $perm_search = "1" : $perm_search = "0" ;
    41 	verify_permission(zone_content_view_own) ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ;
    41 	verify_permission(zone_content_view_own) ? $perm_view_zone_own = "1" : $perm_view_zone_own = "0" ;