From de5b143cf1f98ad43db5dc4908a7c877e5fdc232 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 26 Oct 2023 23:35:41 +0700 Subject: [PATCH] Update common.php --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 467f7fd6..56e7dac8 100644 --- a/common.php +++ b/common.php @@ -6,7 +6,7 @@ if (isset($_REQUEST['GLOBALS'])) die(); // PHP if (PHP_VERSION_ID < 50304) die('TorrentPier II requires PHP version 5.3.4+. Your PHP version '. PHP_VERSION); // Magic quotes -if (@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 if (!extension_loaded('mysql')) die('MySQL extension not installed'); // JSON