forked from csphere-cms/cSphere
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (25 loc) · 736 Bytes
/
index.php
File metadata and controls
33 lines (25 loc) · 736 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
<?php
/**
* Processes all incoming requests
*
* PHP Version 5
*
* @category Index
* @package Index
* @author Hans-Joachim Piepereit <contact@csphere.eu>
* @copyright 2013 cSphere Team
* @license http://opensource.org/licenses/bsd-license Simplified BSD License
* @link http://www.csphere.eu
**/
// Check for PHP version requirement
$php = '5.4.0';
$check = version_compare(PHP_VERSION, $php, '>=');
if ($check === true) {
// Start execution
set_include_path(__DIR__);
include 'csphere/core/init/functions.php';
\csphere\core\init\start();
} else {
// Use echo to show this message even with display_errors off
echo 'PHP ' . $php . ' or newer required but found ' . PHP_VERSION;
}