forked from pH7Software/pH7-Social-Dating-CMS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·31 lines (25 loc) · 1.29 KB
/
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
<?php
/**
* @title Index
* @desc Index file for public root.
*
* @author HiZup, Ltd <[email protected]>
* @author Pierre-Henry Soria <[email protected]>
* @copyright (c) 2014-2016, HiZup, Ltd. All Rights Reserved.
* @copyright (c) 2012-2016, Pierre-Henry Soria. All Rights Reserved.
* @license See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
* @link http://hizup.uk
* @link http://ph7cms.com
* @package PH7 / ROOT / Core
*/
namespace PH7;
define('PH7', 1);
define('PH7_REQUIRE_SERVER_VERSION', '5.5.0');
define('PH7_REQUIRE_SQL_VERSION', '5.0');
if (version_compare(PHP_VERSION, PH7_REQUIRE_SERVER_VERSION, '<'))
exit('ERROR: Your current PHP version is ' . PHP_VERSION . '. pH7CMS requires PHP ' . PH7_REQUIRE_SERVER_VERSION . ' or newer.<br /> Please ask your Web host to upgrade PHP to ' . PH7_REQUIRE_SERVER_VERSION . ' or newer.');
// If no system settings, go install
if (!is_file(__DIR__ . '/_constants.php'))
exit( (is_dir(__DIR__ . '/_install/') ? header('Location: _install/') : 'CONFIG FILE NOT FOUND! If you want to make a new installation, please re-upload _install/ folder and clear your database.') );
require __DIR__ . '/_constants.php';
require PH7_PATH_APP . 'Bootstrap.php';