forked from AliasIO/Swiftlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
43 lines (37 loc) · 860 Bytes
/
index.php
File metadata and controls
43 lines (37 loc) · 860 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @package Swiftlet
* @copyright 2009 ElbertF http://elbertf.com
* @license http://www.gnu.org/licenses/gpl-3.0.txt GNU Public License
*/
/**
* Check PHP version
*/
if ( version_compare(PHP_VERSION, '5.3', '<') )
{
header('HTTP/1.1 503 Service Temporarily Unavailable');
die('
<p style="
background: #FFC;
border: 1px solid #DD7;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
color: #300;
font-family: monospace;
padding: 1em;
">
Sorry, PHP 5.3 or higher is required to run Swiftlet. The server is running version ' . PHP_VERSION . '.
</p>
');
}
/*
* Bootstrapping
*/
$swiftlet = TRUE;
require('_app/Application.php');
require('_app/Plugin.php');
require('_app/Controller.php');
require('_app/View.php');
new Application;
exit;