1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
<?php
/* This file is part of Zoph.
*
* Zoph is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Zoph is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Zoph; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// Very important, rtp must send header and html start tags !
print $rtplang->lang_header();
?>
<link TYPE="text/css" REL="stylesheet" HREF="<?php echo CSS_SHEET ?>">
<?php
if ($extrastyle) {
?>
<style type="text/css">
<?php echo $extrastyle ?>
</style>
<?php
}
?>
<title><?php echo ZOPH_TITLE . ($title ? " - $title" : "") ?></title>
</head>
<body>
<ul class="menu">
<?php
$tabs = array(
translate("home", 0) => "zoph.php",
translate("albums", 0) => "albums.php",
translate("categories", 0) => "categories.php");
if ($user->is_admin() || $user->get("browse_people")) {
$tabs[translate("people", 0)] = "people.php";
}
if ($user->is_admin() || $user->get("browse_places")) {
$tabs[translate("places", 0)] = "places.php";
}
$tabs[translate("photos", 0)] = "photos.php";
if ($user->get("lightbox_id")) {
$tabs[translate("lightbox", 0)] = "photos.php?album_id=" .
$user->get("lightbox_id");
}
$tabs[translate("search",0)] = "search.php";
if ((CLIENT_WEB_IMPORT || SERVER_WEB_IMPORT) &&
($user->is_admin() || $user->get("import"))) {
$tabs[translate("import", 0)] = "import.php";
}
if ($user->is_admin()) {
$tabs[translate("users", 0)] = "users.php";
}
$tabs += array(
translate("reports", 0) => "reports.php",
translate("prefs", 0) => "prefs.php",
translate("about", 0) => "info.php");
if ($user->get("user_id") == DEFAULT_USER) {
$tabs[translate("logon", 0)] = "zoph.php?_action=logout";
}
else {
$tabs[translate("logout", 0)] = "zoph.php?_action=logout";
}
if (strpos($PHP_SELF, "/") === false) {
$self = $PHP_SELF;
}
else {
$self = substr(strrchr($PHP_SELF, "/"), 1);
}
while (list($label, $page) = each($tabs)) {
if ($page == $self) {
$class = "class=\"selected\"";
} else {
$class="";
}
?><li <?php echo $class ?>><a href="<?php echo $page ?>"><?php echo $label ?></a></li><?php
}
echo "\n";
?>
</ul>
<?php
require_once("breadcrumbs.inc.php");
?>
|