<?php
// ALOYS - Another Lane Over Ye Site
// This software is a web framework library,
// witch is aimed to be used as a base for simple or
// complex web applications, organized in nested modlets.
//
// Copyleft 2003 George Kilroy & Ivan Pierre www.kilroySoft.com
// This library 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.1 of the License, or (at your option) any later version.
// This library 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 library; if not, write to :
// the Free Software Foundation, Inc.
// 59 Temple Place,
// Suite 330,
// Boston, MA 02111-1307 USA
// You can although find it on the net : http://www.gnu.org/copyleft/gpl.html
/**
* This is the main and only used page in this example application
*
* We first get the environment, next the module dispatcher, then we display the call result.
*
* @package AloysSample
* @author George Kilroy <hide@address.com>
* @author Ivan Pierre <hide@address.com>
* @link http://aloyscore.com
* @copyright (c)2003 kilroySoft http://www.kilroysoft.com
* @since 0.1a
* @version 0.1a1
*/
/**
* Main config file
* @package AloysSample
*/
require_once("config.php");
/**
* Configs + incl() definition
*/
require_once("classes/constants.php");
/**
* Error base class
*
* This will init the error recovery process
*/
incl("classes/Error");
/**
* Load specific environment
*/
incl("MyVariables");
/**
* Module call dispatcher
*/
incl("classes/Aloys");
/**
* This is the main and only used page in this example application
*
* We first get the environment, next the module dispatcher, then we display the call result.
* @access public
*/
function main()
{
$vars =& new MyVariables(array('startpage'=>'stories_index','language'=>'fra','theme'=>'generaltheme'));
$site =& new Aloys($vars);
echo $site->exe('','page');
}
main();
?>