Source for file index.php
Documentation is available at index.php
* Fichier racine de lodel/edition
* LODEL - Logiciel d'Edition ELectronique.
* Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos
* Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
* Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou
* Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
* Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
* Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
* Home page: http://www.lodel.org
* E-Mail: lodel@lodel.org
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* @author Ghislain Picard
* @copyright 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
* @copyright 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
* @copyright 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
* @licence http://www.gnu.org/copyleft/gpl.html
* @package lodel/source/lodel/edition
include ('siteconfig.php');
require_once ('auth.php');
// Authentification HTTP pour les flux RSS coté édition (flux du tableau de bord) : Cf. auth.php
if ($_GET['page'] == 'backend' && $_GET['format'] ) {
if (!$_GET['do'] && !$_POST['do'] && !$_GET['lo'] && !$_POST['lo']) {
require_once ('entitiesfunc.php');
cleanEntities(); // nettoyage de la table entities (supprime les entites à -64 modifiées il y a + de 12h)
$context['id'] = $id = intval($_GET['id']);
if ($view->renderIfCacheIsValid()) {
$row = $db->getRow(lq("SELECT tpledition,idparent,idtype FROM #_entitiestypesjoin_ WHERE #_TP_entities.id='$id'"));
header ("Location: not-found.html");
$base = $row['tpledition'];
$idparent = $row['idparent'];
$context['idtype'] = $row['idtype'];
$context['id'] = $id = $idparent;
} while (!$base && $idparent);
if ($_GET['page']) { // call a special page (and template)
$view->renderCached($context, $base);
require_once 'controler.php';
$do = $_GET['do'] ? $_GET['do'] : $_POST['do'];
$lo = $_GET['lo'] ? $_GET['lo'] : $_POST['lo'];
switch ($do) { // Detection automatique de la logique en fonction de l'action
$lo = 'entities_advanced';
$lo = 'entities_edition';
$Controler = new controler(array('entities', 'entities_advanced', 'entities_edition', 'entities_import', 'entities_index', 'filebrowser', 'tasks', 'xml', 'users'), $lo);
|