mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update common.php
This commit is contained in:
parent
f91c58aae4
commit
e5dc056d50
38
common.php
38
common.php
@ -3,27 +3,23 @@
|
|||||||
if (isset($_REQUEST['GLOBALS'])) die();
|
if (isset($_REQUEST['GLOBALS'])) die();
|
||||||
|
|
||||||
// Check system requirements
|
// Check system requirements
|
||||||
$check_sys_req = true;
|
// PHP
|
||||||
|
if (PHP_VERSION_ID < 50304) die('TorrentPier II requires PHP version 5.3.4+. Your PHP version ' . PHP_VERSION);
|
||||||
if ($check_sys_req)
|
if (PHP_VERSION_ID >= 70000) die('TorrentPier II requires PHP version lower than PHP 7. Your PHP version ' . PHP_VERSION);
|
||||||
{
|
// Magic quotes
|
||||||
// PHP
|
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) die('Set: magic_quotes_gpc = Off');
|
||||||
if (PHP_VERSION_ID < 50304) die('TorrentPier II requires PHP version 5.3.4+. Your PHP version ' . PHP_VERSION);
|
// MySQL
|
||||||
// Magic quotes
|
if (!extension_loaded('mysql')) die('MySQL extension not installed');
|
||||||
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) die('Set: magic_quotes_gpc = Off');
|
// JSON
|
||||||
// MySQL
|
if (!function_exists('json_encode')) die('json_encode() function not exists');
|
||||||
if (!extension_loaded('mysql')) die('MySQL extension not installed');
|
// getmypid
|
||||||
// JSON
|
if (!function_exists('getmypid') || !getmypid()) die('getmypid() function is disabled');
|
||||||
if (!function_exists('json_encode')) die('json_encode() function not exists');
|
// Mbstring
|
||||||
// getmypid
|
if (!extension_loaded('mbstring')) die('Mbstring extension not installed');
|
||||||
if (!function_exists('getmypid') || !getmypid()) die('getmypid() function is disabled');
|
// BCMath
|
||||||
// Mbstring
|
if (!extension_loaded('bcmath')) die('BCMath extension not installed');
|
||||||
if (!extension_loaded('mbstring')) die('Mbstring extension not installed');
|
// Intl
|
||||||
// BCMath
|
if (!extension_loaded('intl')) die('Intl extension not installed');
|
||||||
if (!extension_loaded('bcmath')) die('BCMath extension not installed');
|
|
||||||
// Intl
|
|
||||||
if (!extension_loaded('intl')) die('Intl extension not installed');
|
|
||||||
}
|
|
||||||
|
|
||||||
ignore_user_abort(true);
|
ignore_user_abort(true);
|
||||||
define('TIMESTART', utime());
|
define('TIMESTART', utime());
|
||||||
|
Loading…
Reference in New Issue
Block a user