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 >
Wrap
PHP Script
|
2014-01-24
|
3KB
|
54 lines
<?php
require_once "../res/x5engine.php";
require_once "../res/l10n.php";
require_once "../res/x5settings.php";
require_once "checkaccess.php";
?>
<!doctype html>
<html lang="en">
<head>
<title><?php echo str_replace(array("http://", "https://"), "", $imSettings['general']['url']) ?> Manager</title>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript" src="../res/jquery.js"></script>
<script type="text/javascript" src="../res/x5engine.js"></script>
<script type="text/javascript">x5engine.settings.currentPath = "../";</script>
<link rel="stylesheet" type="text/css" href="../style/reset.css"/>
<link rel="stylesheet" type="text/css" href="../style/style.css"/>
<link rel="stylesheet" type="text/css" href="../style/print.css" media="print"/>
<link rel="stylesheet" type="text/css" href="template.css"/>
<style>
<?php
// Find the existing star image
$n = 0;
while (!file_exists("../images/star0" . ++$n . "-big-empty.png") && $n < 10);
?>
.topic-star-container-big { background-image: url("../images/star0<?php echo $n ?>-big-empty.png")}
.topic-star-fixer-big { background-image: url("../images/star0<?php echo $n ?>-big-full.png")}
.topic-star-container-small { background-image: url("../images/star0<?php echo $n ?>-small-empty.png")}
.topic-star-fixer-small { background-image: url("../images/star0<?php echo $n ?>-small-full.png")}
</style>
</head>
<body>
<?php if (isset($logged) && $logged): ?>
<div id="imNavBar">
<?php if (isset($imSettings['blog'])): ?>
<a href="blog.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "blog.php") echo " class=\"active\""; ?>>Blog</a>
<?php endif; ?>
<?php if (isset($imSettings['guestbooks']) && count($imSettings['guestbooks'])): ?>
<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>
<?php endif; ?>
<?php if (isset($imSettings['access']['entrancepage'])): ?>
<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>
<?php endif; ?>
<?php if (isset($imSettings['ecommerce']) && isset($imSettings['ecommerce']['database'])): ?>
<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>
<?php endif; ?>
<?php if (isset($imSettings['dynamicobjects']) && count($imSettings['dynamicobjects'])): ?>
<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>
<?php endif; ?>
<a href="website_test.php"<?php if (isset($_SERVER['PHP_SELF']) && basename($_SERVER['PHP_SELF']) == "website_test.php") echo " class=\"active\""; ?>>Test</a>
<span><a href="login.php?logout"><?php echo l10n("admin_logout", "Logout") ?></a></span>
</div>
<?php endif; ?>