-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
38 lines (25 loc) · 826 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
32
33
34
35
36
37
38
<?php
session_start();
// Error reporting on
ini_set('display_errors',1);
error_reporting(E_ALL);
// Load configuration file
require_once 'config.php';
// Load core class files
require_once $_config['web']['basedir']. '/lib/autoloading.class.php';
// Set autoloading dirs
autoLoading::$basedir = $_config['web']['basedir'];
autoLoading::$classLibDir = 'lib';
// Autoload files
spl_autoload_register(array('autoLoading', 'classLibLoader'));
// Set web dir
web::$dir = $_config['web']['basedir'];
web::$serverDir = $_config['web']['serverdir'];
web::$webUrl = $_config['web']['url'];
web::$adminUrl = $_config['admin']['url'];
// Set theme web dir
theme::$themesWebDir = 'themes/web';
// Instanciate main object of website
$website = new Web($_config);
echo $website->showWebsite();
?>