home *** CD-ROM | disk | FTP | other *** search
/ grafika-wolowiec.cba.pl / grafika-wolowiec.cba.pl.tar / grafika-wolowiec.cba.pl / admin / header.php < prev    next >
PHP Script  |  2014-01-24  |  3KB  |  54 lines

  1. <?php
  2. require_once "../res/x5engine.php";
  3. require_once "../res/l10n.php";
  4. require_once "../res/x5settings.php";
  5. require_once "checkaccess.php";
  6. ?>
  7. <!doctype html>
  8. <html lang="en">
  9. <head>
  10.     <title><?php echo str_replace(array("http://", "https://"), "", $imSettings['general']['url']) ?> Manager</title>
  11.     <meta charset="UTF-8">
  12.     <title>Document</title>
  13.     <script type="text/javascript" src="../res/jquery.js"></script>
  14.     <script type="text/javascript" src="../res/x5engine.js"></script>
  15.     <script type="text/javascript">x5engine.settings.currentPath = "../";</script>
  16.     <link rel="stylesheet" type="text/css" href="../style/reset.css"/>
  17.     <link rel="stylesheet" type="text/css" href="../style/style.css"/>
  18.     <link rel="stylesheet" type="text/css" href="../style/print.css" media="print"/>
  19.     <link rel="stylesheet" type="text/css" href="template.css"/>
  20.     <style>
  21.     <?php
  22.         // Find the existing star image
  23.         $n = 0;
  24.         while (!file_exists("../images/star0" . ++$n . "-big-empty.png") && $n < 10);
  25.     ?>
  26.         .topic-star-container-big { background-image: url("../images/star0<?php echo $n ?>-big-empty.png")}
  27.         .topic-star-fixer-big  { background-image: url("../images/star0<?php echo $n ?>-big-full.png")}
  28.         .topic-star-container-small { background-image: url("../images/star0<?php echo $n ?>-small-empty.png")}
  29.         .topic-star-fixer-small  { background-image: url("../images/star0<?php echo $n ?>-small-full.png")}
  30.     </style>
  31. </head>
  32. <body>
  33. <?php if (isset($logged) && $logged): ?>
  34.     <div id="imNavBar">
  35. <?php if (isset($imSettings['blog'])): ?>
  36.         <a href="blog.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "blog.php") echo " class=\"active\""; ?>>Blog</a>
  37. <?php endif; ?>
  38. <?php if (isset($imSettings['guestbooks']) && count($imSettings['guestbooks'])): ?>
  39.         <a href="guestbook.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "guestbook.php") echo " class=\"active\""; ?>><?php echo l10n("admin_guestbook", "Guestbook") ?></a>
  40. <?php endif; ?>
  41. <?php if (isset($imSettings['access']['entrancepage'])): ?>
  42.         <a href="privatearea.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "privatearea.php") echo " class=\"active\""; ?>><?php echo l10n('private_area_title', 'Private Area') ?></a>
  43. <?php endif; ?>
  44. <?php if (isset($imSettings['ecommerce']) && isset($imSettings['ecommerce']['database'])): ?>
  45.         <a href="orders.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "orders.php") echo " class=\"active\""; ?>><?php echo l10n('cart_title', 'E-Commerce') ?></a>
  46. <?php endif; ?>
  47. <?php if (isset($imSettings['dynamicobjects']) && count($imSettings['dynamicobjects'])): ?>
  48.         <a href="dynamicobjects.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "dynamicobjects.php") echo " class=\"active\""; ?>><?php echo l10n('dynamicobj_name', 'Dynamic objects') ?></a>
  49. <?php endif; ?>
  50.         <a href="website_test.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "website_test.php") echo " class=\"active\""; ?>>Test</a>
  51.         <span><a href="login.php?logout"><?php echo l10n("admin_logout", "Logout") ?></a></span>
  52.     </div>
  53. <?php endif; ?>
  54.