-
Notifications
You must be signed in to change notification settings - Fork 214
/
system.class.php
62 lines (62 loc) · 1.52 KB
/
system.class.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* System, the basic system layout.
*
* PHP Version 5
*
* This just presents the system variables
*
* @category System
* @package FOGProject
* @author Tom Elliott <tommygunsster@gmail.com>
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link https://fogproject.org
*/
/**
* System, the basic system layout.
*
* @category System
* @package FOGProject
* @author Tom Elliott <tommygunsster@gmail.com>
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link https://fogproject.org
*/
class System
{
const PHP_REQUIRED = '5.3.0';
/**
* Checks the php version against what we require.
*
* @return void
*/
private static function _versionCompare()
{
$msg = '';
if (false === version_compare(PHP_VERSION, PHP_REQUIRED, '>=')) {
$msg = sprintf(
'%s. %s %s, %s %s %s.',
_('Your system PHP Version is not sufficient'),
_('You have version'),
PHP_VERSION,
_('version'),
PHP_REQUIRED,
_('is required')
);
}
if ($msg) {
die($msg);
}
}
/**
* Constructs the system variables.
*/
public function __construct()
{
self::_versionCompare();
define('FOG_VERSION', '1.3.1-RC-2');
define('FOG_SCHEMA', 245);
define('FOG_BCACHE_VER', 111);
define('FOG_SVN_REVISION', 6052);
define('FOG_CLIENT_VERSION', '0.11.7');
}
}