2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4 // +----------------------------------------------------------------------+
5 // | Akelos Framework - http://www.akelos.org |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez |
8 // | Released under the GNU Lesser General Public License, see LICENSE.txt|
9 // +----------------------------------------------------------------------+
12 * @author Bermi Ferrer <bermi a.t akelos c.om>
13 * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org
14 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html>
18 * Public PHP file. This file will launch the framework
20 if(!defined('AK_CONFIG_INCLUDED')){
21 if(!file_exists(dirname(__FILE__
).DIRECTORY_SEPARATOR
.'..'.DIRECTORY_SEPARATOR
.'config'.DIRECTORY_SEPARATOR
.'config.php')){
22 define('AK_ENVIRONMENT', 'setup');
23 error_reporting(E_ALL
);
24 @ini_set
('display_errors', 1);
25 require(dirname(__FILE__
).DIRECTORY_SEPARATOR
.'..'.DIRECTORY_SEPARATOR
.
26 'app'.DIRECTORY_SEPARATOR
.'controllers'.DIRECTORY_SEPARATOR
.'framework_setup_controller.php');
29 include_once(dirname(__FILE__
).DIRECTORY_SEPARATOR
.'..'.DIRECTORY_SEPARATOR
.'config'.DIRECTORY_SEPARATOR
.'config.php');
33 require_once(AK_LIB_DIR
.DS
.'AkDispatcher.php');
34 $Dispatcher =& new AkDispatcher();
35 $Dispatcher->dispatch();