phpDocumentor lodel-source-lodel-admin
[ class tree: lodel-source-lodel-admin ] [ index: lodel-source-lodel-admin ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. /**
  3.  * Fichier racine de lodel/admin
  4.  *
  5.  * PHP versions 4 et 5
  6.  *
  7.  * LODEL - Logiciel d'Edition ELectronique.
  8.  *
  9.  * Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos
  10.  * Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
  11.  * Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno C�ou
  12.  * Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
  13.  * Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
  14.  * Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
  15.  *
  16.  * Home page: http://www.lodel.org
  17.  *
  18.  * E-Mail: lodel@lodel.org
  19.  *
  20.  * All Rights Reserved
  21.  *
  22.  * This program is free software; you can redistribute it and/or modify
  23.  * it under the terms of the GNU General Public License as published by
  24.  * the Free Software Foundation; either version 2 of the License, or
  25.  * (at your option) any later version.
  26.  *
  27.  * This program is distributed in the hope that it will be useful,
  28.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  29.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  30.  * GNU General Public License for more details.
  31.  *
  32.  * You should have received a copy of the GNU General Public License
  33.  * along with this program; if not, write to the Free Software
  34.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  35.  *
  36.  * @author Ghislain Picard
  37.  * @author Jean Lamy
  38.  * @copyright 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
  39.  * @copyright 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
  40.  * @copyright 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
  41.  * @licence http://www.gnu.org/copyleft/gpl.html
  42.  * @version CVS:$Id:
  43.  * @package lodel/source/lodel/admin
  44.  */
  45. require_once 'siteconfig.php';
  46. require_once 'lang.php';
  47. require_once 'auth.php';
  48.  
  49. if ($_GET['page']// call a special page (and template)
  50.     $page $_GET['page'];
  51.       if (strlen($page64 || preg_match("/[^a-zA-Z0-9_\/-]/"$page)) {
  52.         die('invalid page');
  53.     }
  54.     require 'view.php';
  55.     $view &View::getView();
  56.     $view->renderCached($context$page);
  57.     exit;
  58. }
  59.  
  60. require 'controler.php';
  61. $authorized_logics array('entrytypes''persontypes',
  62.                 'entries''persons',
  63.                 'tablefieldgroups''tablefields''indextablefields',
  64.                 'translations''texts',
  65.                 'usergroups''users''restricted_users',
  66.                 'types''classes',
  67.                 'options''optiongroups''useroptiongroups''servooconf',
  68.                 'internalstyles''characterstyles''entities_index',
  69.                 'filebrowser''xml''data');
  70. $Controler new controler($authorized_logics);
  71.  
  72. function loop_classtypes($context$funcname)
  73. {
  74.     global $db;
  75.     foreach(array('entities''entries''persons'as $classtype{
  76.         $localcontext $context;
  77.         $localcontext['classtype'$classtype;
  78.         $localcontext['title']     getlodeltextcontents("classtype_$classtype"'admin');
  79.             call_user_func("code_do_$funcname"$localcontext);
  80.      }
  81. }
  82. ?>

Documentation generated on Thu, 19 Jun 2008 05:07:56 +0200 by phpDocumentor 1.4.0a2