Source for file do.php
Documentation is available at do.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | MCMS: a PHP Content Management System for creating accessible sites. |
// | Copyright (C) 2005 Silvio Moioli |
// | 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
// +----------------------------------------------------------------------+
// | Authors: Silvio Moioli <silvio at moioli dot net> www.moioli.net |
// +----------------------------------------------------------------------+
require_once $_SERVER["DOCUMENT_ROOT"]. "/admin/lib/controller/all.inc";
//Inizializzazione delle variabili
$validator = new Validator($engine,$authManager);
$dispatcher = new Dispatcher($engine,$authManager);
//Gestione dell'ActionEvent (se presente)
if ($validator->validate($event, $result)){
$dispatcher->dispatch($event);
if (is_a($result,"Author")){
//l'autore deve rifare il login
$authManager->reLogin($result);
elseif (is_a($result,"AdminError")){
//si è verificato un errore, notifico
$compiler->display($result);
//Gestione del GoToEvent (se presente)
$event = new GoToEvent($engine, $get, $post);
if ($validator->validate($event, $result)){
$dispatcher->dispatch($event);
if (is_a($result,"Author")){
//l'autore deve rifare il login
$authManager->reLogin($result);
elseif (is_a($result,"AdminError")){
//si è verificato un errore, notifico
$compiler->display($result);
|