-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
31 lines (25 loc) · 930 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Main File
*
* This is the main file which is executed every time.
*
* @version $Id: index.php 8 2009-03-04 22:35:07Z vikaspatial1983 $
* @package BaseApp Framework (v0.1)
* @link http://code.google.com/p/baseappframework/
* @copyright Copyright (C) 2009 NGCoders. All rights reserved.
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
error_reporting(E_ALL);
define('BASEAPP',true);
/* Root Directory where th file is residing */
define('CORE_PATH', dirname(__FILE__).'/');
define('BASEAPP_PATH', CORE_PATH.'baseapp/');
/* Include the framework file */
include BASEAPP_PATH.'baseapp.php';
/* Start Execution , setup envoirnment and execute */
ob_start("Debugger::customErrorHandler");
$base = new Dispatcher();
include APP_PATH.'app_config.php';
$base->dispatch(isset($requestedURL)?$requestedURL:null);
ob_end_flush();