-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
40 lines (30 loc) · 952 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
39
40
<?php
/*
PHP Project Template
This file brings everything together.
It handles the path, skins and plugins.
*/
//Enable errors (for debugging purposes)
error_reporting(E_ALL);
ini_set("display_errors", 1);
//Include the framework
include('app/framework.php');
//Create the project object
$project = Project::Instance();
//Set the path and index file
$path = isset($_GET['path']) ? $_GET['path'] : '';
$project->setPath($path) ||
$project->setPath($path.".xml") ||
$project->setPath($path."index.xml");
//Set the skin
$project->setSkin('app/skins/responsive.htm');
//Set the 404 page
$project->set404NotFound('app/error/error404.xml');
//You can set prefixes for CSS and JS paths (when using css and js tags in the XML)
//eg. $project->cssPath = 'css/';
// $project->jsPath = 'js/';
//Add GLOBAL Plugins from app/objects
//eg. $project->addPlugin('myplugin.php');
//Output the page
$project->process();
?>