Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
- /* Remove errors. */
- @error_reporting(0);
/* Show admin interface if not downloading a file. */
if (!(isset($_POST['action']) && strcmp($_POST['action'], 'download') == 0)) {
/* Show admin interface if not downloading a file. */
if (!(isset($_POST['action']) && strcmp($_POST['action'], 'download') == 0)) {
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
-/* Remove errors. */
-@error_reporting(0);
if ($cfg['debug'] === true)
{
if ($cfg['debug'] === true)
{
- error_reporting(E_ALL);
+ @error_reporting(E_ALL);
+else
+{
+ @error_reporting(0);
+}
+
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
* Be sure PHP's safe mode is off.
*/
@set_time_limit(0);
-/* Remove errors. */
-@error_reporting(0);
if ($_SERVER['REQUEST_METHOD'] == "GET" && count($_GET) == 0) {
require(JIRAFEAU_ROOT . 'lib/template/header.php');
if ($_SERVER['REQUEST_METHOD'] == "GET" && count($_GET) == 0) {
require(JIRAFEAU_ROOT . 'lib/template/header.php');