-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (21 loc) · 741 Bytes
/
index.php
File metadata and controls
28 lines (21 loc) · 741 Bytes
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
<?php
// define some constants
define('AUTOLOAD_MODEL','model');
define('AUTOLOAD_GENERAL_FUNCS', 'generalfuncs');
define('AUTOLOAD_CUSTOM_FUNCS', 'customfuncs');
define('AUTOLOAD_CUSTOM_CLASS', 'custom');
require dirname(__FILE__) . '/pre_script.php';
// Load Configuaration
require dirname(__FILE__) . '/config.php';
// Load Core Class
require dirname(__FILE__) . '/core/class/Core.php';
// Start PHPizza
$phpizza = new PHPizza();
$__viewInstance = null; ///< A Global instance
$page = $phpizza->validate->input('p', "", false, LANDING_PAGE);
// Remove trailish slash
$page = rtrim($page,"/");
// Load model, view & controller
$phpizza->loadMVC($page);
require dirname(__FILE__) . '/post_script.php';
?>