Main Page | Directories | File List | File Members

docs/admin.php

Go to the documentation of this file.
00001 <?php
00002 # This file is part of the Savane project
00003 # <http://gna.org/projects/savane/>
00004 #
00005 # $Id: admin.php 5187 2005-12-01 16:22:29Z yeupou $
00006 #
00007 #  Copyright 2002-2004 (c) Mathieu Roy <yeupou@gnu.org>
00008 # 
00009 # The Savane project is free software; you can redistribute it and/or
00010 # modify it under the terms of the GNU General Public License
00011 # as published by the Free Software Foundation; either version 2
00012 # of the License, or (at your option) any later version.
00013 #
00014 # The Savane project is distributed in the hope that it will be useful,
00015 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 # GNU General Public License for more details.
00018 #
00019 # You should have received a copy of the GNU General Public License
00020 # along with the Savane project; if not, write to the Free Software
00021 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00022 
00023 require "../include/pre.php";    
00024 
00025 if (!user_can_be_super_user())
00026 {
00027   exit_permission_denied();
00028 }
00029 else
00030 {
00031 
00032   $project=project_get_object($sys_group_id);
00033   $title = $project->getPublicName().': '._("Admin documentation");
00034   
00035   site_header(array('title'=>$title,'group'=>$sys_group_id,'context'=>'special'));
00036 
00037 
00038 # we get *.html content and we show only <body>content</body>
00039 
00040 # Currently not advertised: with the local option in the link, it will print
00041 # the content of a file in set by sys_localdoc_file, if exiting.
00042 # If this file exists, it will show up in the menu links too.
00043   if ($local && $GLOBALS['sys_localdoc_file']) 
00044     {
00045       print utils_remove_htmlheader(utils_read_file($GLOBALS['sys_localdoc_file']));
00046     }
00047   
00048   $HTML->footer(array());
00049 }
00050 ?>

Generated on Sun Feb 26 13:23:03 2006 for Savane PHP Frontend Developer Reference by  doxygen 1.4.4