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
09a92f248a
commit
ec950f6699
10
common.php
10
common.php
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
if (isset($_REQUEST['GLOBALS'])) die();
|
if (isset($_REQUEST['GLOBALS'])) die();
|
||||||
|
|
||||||
|
ignore_user_abort(true);
|
||||||
|
define('TIMESTART', utime());
|
||||||
|
define('TIMENOW', time());
|
||||||
|
|
||||||
// Check system requirements
|
// Check system requirements
|
||||||
// PHP
|
// PHP
|
||||||
if (PHP_VERSION_ID < 50304) die('TorrentPier II requires PHP version 5.3.4+. Your PHP version ' . PHP_VERSION);
|
if (PHP_VERSION_ID < 50304) die('TorrentPier II requires PHP version 5.3.4+. Your PHP version ' . PHP_VERSION);
|
||||||
@ -9,7 +13,7 @@ if (PHP_VERSION_ID >= 70000) die('TorrentPier II requires PHP version lower than
|
|||||||
// Magic quotes
|
// Magic quotes
|
||||||
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) die('Set: magic_quotes_gpc = Off');
|
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) die('Set: magic_quotes_gpc = Off');
|
||||||
// MySQL
|
// MySQL
|
||||||
if (!extension_loaded('mysql')) die('MySQL extension not installed');
|
if (!function_exists('mysql_connect') || !extension_loaded('mysql')) die('MySQL extension not installed');
|
||||||
// JSON
|
// JSON
|
||||||
if (!function_exists('json_encode')) die('json_encode() function not exists');
|
if (!function_exists('json_encode')) die('json_encode() function not exists');
|
||||||
// getmypid
|
// getmypid
|
||||||
@ -21,10 +25,6 @@ if (!extension_loaded('bcmath')) die('BCMath extension not installed');
|
|||||||
// Intl
|
// Intl
|
||||||
if (!extension_loaded('intl')) die('Intl extension not installed');
|
if (!extension_loaded('intl')) die('Intl extension not installed');
|
||||||
|
|
||||||
ignore_user_abort(true);
|
|
||||||
define('TIMESTART', utime());
|
|
||||||
define('TIMENOW', time());
|
|
||||||
|
|
||||||
if (empty($_SERVER['REMOTE_ADDR'])) $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
|
if (empty($_SERVER['REMOTE_ADDR'])) $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
|
||||||
if (empty($_SERVER['HTTP_USER_AGENT'])) $_SERVER['HTTP_USER_AGENT'] = '';
|
if (empty($_SERVER['HTTP_USER_AGENT'])) $_SERVER['HTTP_USER_AGENT'] = '';
|
||||||
if (empty($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = '';
|
if (empty($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user