mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
Log all errors on developpement instance and with magic URL parameter LSdebug
This commit is contained in:
parent
34d4c1a8ba
commit
13bf3b6507
1 changed files with 4 additions and 1 deletions
|
@ -24,6 +24,9 @@
|
||||||
ini_set( 'magic_quotes_gpc', 'off' );
|
ini_set( 'magic_quotes_gpc', 'off' );
|
||||||
ini_set( 'magic_quotes_sybase', 'off' );
|
ini_set( 'magic_quotes_sybase', 'off' );
|
||||||
ini_set( 'magic_quotes_runtime', 'off' );
|
ini_set( 'magic_quotes_runtime', 'off' );
|
||||||
|
if (isset($_REQUEST['LSdebug']) || preg_match('/^127\.[0-9]+\.[0-9]+\.[0-9]+$/', $_SERVER['HTTP_HOST']))
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
else
|
||||||
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
|
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
|
||||||
|
|
||||||
// Définitions des dossiers d'inclusions
|
// Définitions des dossiers d'inclusions
|
||||||
|
|
Loading…
Reference in a new issue