From: Jerome Jutteau Date: Thu, 1 Aug 2013 19:29:56 +0000 (+0000) Subject: Remove errors when occurs X-Git-Tag: 1.1~190 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/8d0d50765bc4cd7b98fc28dbccbf4284d034d466?ds=inline Remove errors when occurs --- diff --git a/admin.php b/admin.php index 56db0e5..5ae2d6e 100755 --- a/admin.php +++ b/admin.php @@ -110,7 +110,9 @@ elseif (!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) /* Operations may take a long time. * Be sure PHP's safe mode is off. */ - set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); /* Admin interface. */ require (JIRAFEAU_ROOT . 'lib/template/header.php'); diff --git a/f.php b/f.php index 2a5a6da..6f8f836 100644 --- a/f.php +++ b/f.php @@ -33,7 +33,9 @@ if (!isset ($_GET['h']) || empty ($_GET['h'])) /* Operations may take a long time. * Be sure PHP's safe mode is off. */ -set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); $link_name = $_GET['h']; diff --git a/script.php b/script.php index 1d420b6..b6fa71f 100755 --- a/script.php +++ b/script.php @@ -36,7 +36,9 @@ require (JIRAFEAU_ROOT . 'lib/lang.php'); /* Operations may take a long time. * Be sure PHP's safe mode is off. */ - set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) {