3 * @name DevelopmentDebugger
4 * @author Piero Wbmstr <piero.wbmstr@gmail.com>
6 if (!defined("_ECRIRE_INC_VERSION")) return;
8 # --------------------------------------------------------------
9 # Fichier de configuration pris en compte par config_outils.php
10 # et specialement dedie a la configuration de ma lame perso
11 # --------------------------------------------------------------
13 // Ajout de l'outil 'devdebug'
14 function outils_devdebug_config_dist() {
15 // Pour ne pas voir les erreurs dans le formulaire CS
16 @ini_set
('display_errors','1');
17 error_reporting(E_ALL ^
(E_NOTICE | E_WARNING
));
19 @define
('_DEVDEBUG_MODE_DEF', 0);
20 @define
('_DEVDEBUG_ESPACE_DEF', 'tout');
21 @define
('_DEVDEBUG_NIVEAU_DEF', 'warning');
26 'auteur' => 'Piero Wbmstr',
27 'categorie' => 'divers',
28 'code:options' => "%%devdebug_mode%%%%devdebug_espace%%%%devdebug_niveau%%devdebug_charger_debug();\n",
29 'autoriser' => "autoriser('webmestre')",
30 'description' => '<:devdebug::>[[%devdebug_mode%]][[%devdebug_espace%]][[%devdebug_niveau%]]',
32 // Ajout des variables utilisees ci-dessus
34 'nom' => 'devdebug_mode',
35 'format' => _format_NOMBRE
,
36 'radio' => array(1=>'item_oui',0=>'item_non'),
37 'defaut' => _DEVDEBUG_MODE_DEF
,
38 'code' => "define('_DEVDEBUG_MODE', %s);\n",
40 'nom' => 'devdebug_espace',
41 'format' => _format_CHAINE
,
43 'tout'=>'couteauprive:devdebug:item_tout',
44 'prive'=>'couteauprive:devdebug:item_espace_prive',
45 'public'=>'couteauprive:devdebug:item_espace_public'),
46 'defaut' => _DEVDEBUG_ESPACE_DEF
,
47 'code' => "define('_DEVDEBUG_ESPACE', %s);\n",
49 'nom' => 'devdebug_niveau',
50 'format' => _format_CHAINE
,
52 'warning' => 'couteauprive:devdebug:item_e_warning',
53 'notice' => 'couteauprive:devdebug:item_e_notice',
54 'all' => 'couteauprive:devdebug:item_e_all',
55 'error' => 'couteauprive:devdebug:item_e_error',
56 'strict' => 'couteauprive:devdebug:item_e_strict',
58 'defaut' => _DEVDEBUG_NIVEAU_DEF
,
59 'code' => "define('_DEVDEBUG_NIVEAU', %s);\n",