-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.php
45 lines (36 loc) · 1010 Bytes
/
bootstrap.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/*
package: Centraleffects Framework
Author: Rex Bengil
Website: Centraleffects.com
Company: Centraleffects BPO
*/
session_start();
include_once("settings.php");
#check if the system folder exist
if(!is_dir(SYS_FOLDER)){ die('Are you kidding me? I cannot find the system folder.');}
include_once(CLASS_FOLDER.'database.sys.class.php');
include_once(CLASS_FOLDER.'phpmailer.sys.class.php');
include_once(CLASS_FOLDER.'general.sys.class.php');
include_once(CLASS_FOLDER.'pages.sys.class.php');
include_once(CLASS_FOLDER.'bootstrap.sys.class.php');
include_once(CLASS_FOLDER.'skmail.sys.class.php');
$boot = new bootstrap($_REQUEST["page"],$_REQUEST["subpage"],$_REQUEST["uri"]);
if($boot->handleRequest())
{
$newClass = $boot->initiateClass();
$subpage=$boot->get_subpage();
if($subpage<>""){
if(method_exists($newClass,$subpage))
{
$newClass->$subpage();
}
}
//$newClass->check_page_permission();
$newClass->display();
}else
{
$boot->display404();
exit(0);
}
?>