noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
admin_repo.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of NOALYSS.
00004  *
00005  *   NOALYSS is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   NOALYSS is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with NOALYSS; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00020 /*! \file
00021  * \brief Administration of the repository : creation of user, folder, security,
00022  *        templates... Accessible only by the administrator
00023  */
00024 require_once '../include/constant.php';
00025 require_once("user_common.php");
00026 include_once("ac_common.php");
00027 require_once('class_database.php');
00028 include_once("user_menu.php");
00029 $rep=new Database();
00030 include_once ("class_user.php");
00031 $User=new User($rep);
00032 $User->Check();
00033 
00034 html_page_start($User->theme);
00035 
00036 if ($User->admin != 1)
00037 {
00038     html_page_stop();
00039     return;
00040 }
00041 load_all_script();
00042 echo '<H2 class="info"> '._(' Administration Globale').'</H2>';
00043 echo '<div class="topmenu">';
00044 
00045 echo MenuAdmin()."</div>";
00046 
00047 define('ALLOWED',true);
00048 
00049 
00050 ?>
00051 <DIV >
00052 <?php
00053 if ( isset ($_REQUEST["action"]) )
00054 {
00055     if ( $_REQUEST["action"]=="user_mgt" )
00056     {
00057         //----------------------------------------------------------------------
00058         // User management
00059         //----------------------------------------------------------------------
00060         require_once("user.inc.php");
00061     }
00062     // action=user_mgt
00063     if ( $_REQUEST["action"]=="dossier_mgt")
00064     {
00065         //-----------------------------------------------------------------------
00066         // action = dossier_mgt
00067         //-----------------------------------------------------------------------
00068         require_once("dossier.inc.php");
00069     }
00070     if ( $_REQUEST["action"] == "modele_mgt" )
00071     {
00072         //-----------------------------------------------------------------------
00073         //  Template Management
00074         //-----------------------------------------------------------------------
00075         require_once("modele.inc.php");
00076     } // action is set
00077     if ( $_REQUEST['action'] == 'restore')
00078     {
00079         // Backup and restaure folders
00080         require_once("restore.inc.php");
00081     }
00082     if ($_REQUEST['action'] == 'audit_log')
00083       {
00084         /* List the connexion successuf and failed */
00085         require_once('audit_log.php');
00086       }
00087 }// action = modele_mgt
00088 
00089 ?>
00090 </DIV>
00091 <?php
00092 
00093 html_page_stop();
00094 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations