[ Index ]
 

Code source de Plume CMS 1.2.2

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/manager/ -> prepend.php (source)

   1  <?php
   2  /* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
   3  /*
   4  # ***** BEGIN LICENSE BLOCK *****
   5  # This file is part of Plume CMS, a website management application.
   6  # Copyright (C) 2001-2005 Loic d'Anterroches and contributors.
   7  #
   8  # Plume CMS is free software; you can redistribute it and/or modify
   9  # it under the terms of the GNU General Public License as published by
  10  # the Free Software Foundation; either version 2 of the License, or
  11  # (at your option) any later version.
  12  #
  13  # Plume CMS is distributed in the hope that it will be useful,
  14  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16  # GNU General Public License for more details.
  17  #
  18  # You should have received a copy of the GNU General Public License
  19  # along with this program; if not, write to the Free Software
  20  # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  21  #
  22  # ***** END LICENSE BLOCK ***** */
  23  error_reporting(E_ALL);
  24  session_start();
  25  
  26  
  27  
  28  include_once dirname(__FILE__).'/conf/config.php';
  29  include_once dirname(__FILE__).'/inc/class.config.php';
  30  include_once dirname(__FILE__).'/inc/class.hook.php';
  31  include_once dirname(__FILE__).'/inc/class.manager.php';
  32  include_once dirname(__FILE__).'/inc/class.resource.php';
  33  include_once dirname(__FILE__).'/inc/class.category.php';
  34  include_once dirname(__FILE__).'/inc/class.resourceset.php';
  35  include_once dirname(__FILE__).'/inc/class.l10n.php';
  36  include_once dirname(__FILE__).'/inc/lib.auth.php';
  37  include_once dirname(__FILE__).'/inc/lib.sqlutils.php';
  38  include_once dirname(__FILE__).'/inc/lib.text.php';
  39  include_once dirname(__FILE__).'/inc/lib.utils.php';
  40  include_once dirname(__FILE__).'/inc/class.files.php';
  41  include_once dirname(__FILE__).'/inc/class.dispatcher.php';
  42  include_once dirname(__FILE__).'/extinc/class.menu.php';
  43  include_once dirname(__FILE__).'/inc/lib.form.php';
  44  
  45  if(!empty($_GET)) {
  46      array_walk($_GET,'magicStrip');
  47  }
  48  if(!empty($_POST)) {
  49      array_walk($_POST,'magicStrip');
  50  }
  51  if(!empty($_REQUEST)) {
  52      array_walk($_REQUEST,'magicStrip');
  53  }
  54  if(!empty($_COOKIE)) {
  55      array_walk($_COOKIE,'magicStrip');
  56  }
  57  
  58  if(function_exists('ini_set')) {
  59      @ini_set('session.use_cookies','1');
  60      @ini_set('session.use_only_cookies','1');
  61      @ini_set('session.use_trans_sid','0');
  62      @ini_set('url_rewriter.tags','');
  63  }
  64  
  65  // Create menus
  66  $px_menu = new menu('menu');
  67  $px_submenu = new menu('submenu',' ',' | ');
  68  
  69  // Set the context of operation
  70  config::setContext('manager'); 
  71  
  72  Dispatcher::loadControllers();
  73  ?>


Généré le : Mon Nov 26 11:57:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics