forked from pH7Software/pH7-Social-Dating-CMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.ph7
executable file
·33 lines (27 loc) · 1.17 KB
/
init.ph7
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
/**
* @title Index
* @desc Index file for public root.
*
* @author HiZup, Ltd <contact@hizup.net>
* @author Pierre-Henry Soria <hello@ph7cms.com>
* @copyright (c) 2014-2015, HiZup, Ltd. All Rights Reserved.
* @copyright (c) 2012-2015, 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
* @version 1.0
*/
namespace PH7;
define('PH7', 1);
//define('PH7_REQUIRE_SERVER_VERSION', '5.5.0'); // For pH7CMS 2.0
define('PH7_REQUIRE_SERVER_VERSION', '5.4.0');
define('PH7_REQUIRE_SQL_VERSION', '5.0');
if (version_compare(PHP_VERSION, PH7_REQUIRE_SERVER_VERSION, '<'))
exit('ERROR: Your PHP version is ' . PHP_VERSION . '. pH7CMS requires PHP ' . 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!');
require __DIR__ . '/_constants.php';
require PH7_PATH_APP . 'Bootstrap.php';