[ Index ] |
|
Code source de Plume CMS 1.2.2 |
1 <?php 2 /* 3 # ***** BEGIN LICENSE BLOCK ***** 4 # This file is part of Plume CMS, a website management application. 5 # Copyright (C) 2001-2005 Loic d'Anterroches and contributors. 6 # 7 # Plume CMS is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Plume CMS is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with this program; if not, write to the Free Software 19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 # 21 # ***** END LICENSE BLOCK ***** */ 22 23 if (basename($_SERVER['SCRIPT_NAME']) == 'menu.php') exit; 24 25 // Main menu 26 $px_menu->addItem(__('Content'), 'index.php', 27 'themes/'.$_px_theme.'/images/ico_content.png', 28 (preg_match('/^index.php|news.php|xmedia.php|articles.php|subtypes.php$/',basename($_SERVER['PHP_SELF']))), 29 true, 'c'); 30 $px_menu->addItem(__('Comments'), 'comments.php', 31 'themes/'.$_px_theme.'/images/ico_comments.png', 32 (basename($_SERVER['PHP_SELF']) == 'comments.php'), 33 true, 'm'); 34 $px_menu->addItem(__('Categories'), 'categories.php', 35 'themes/'.$_px_theme.'/images/ico_cat.png', 36 (preg_match('/^categories/',basename($_SERVER['PHP_SELF']))), 37 auth::asLevel(PX_AUTH_ADVANCED), 'a'); 38 $px_menu->addItem(__('Authors'),'users.php', 39 'themes/'.$_px_theme.'/images/ico_authors.png', 40 (preg_match('/^users/',basename($_SERVER['PHP_SELF']))), 41 auth::asLevel(PX_AUTH_ADMIN), 'o'); 42 $px_menu->addItem(__('Preferences'), 'prefs.php', 43 'themes/'.$_px_theme.'/images/ico_pref.png', 44 (preg_match('/^prefs/',basename($_SERVER['PHP_SELF']))), 45 true, 'f'); 46 $px_menu->addItem(__('Tools'), 'tools.php', 47 'themes/'.$_px_theme.'/images/ico_tools.png', 48 (basename($_SERVER['PHP_SELF']) == 'tools.php'), 49 auth::asLevel(PX_AUTH_ADMIN), 't'); 50 $px_menu->addItem(__('Sites'), 'sites.php', 51 'themes/'.$_px_theme.'/images/ico_sites.png', 52 (basename($_SERVER['PHP_SELF']) == 'sites.php'), 53 auth::asLevel(PX_AUTH_ADMIN), 'e'); 54 $px_menu->addItem(__('Help'), 'help.php', 55 'themes/'.$_px_theme.'/images/ico_help.png', 56 (basename($_SERVER['PHP_SELF']) == 'help.php'), true, 'h'); 57 58 echo $px_menu->draw(); 59 60 61 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 11:57:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |