[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / couteau_suisse / couteau_suisse / outils / devdebug_config.php
1 <?php
2 /**
3 * @name DevelopmentDebugger
4 * @author Piero Wbmstr <piero.wbmstr@gmail.com>
5 */
6 if (!defined("_ECRIRE_INC_VERSION")) return;
7
8 # --------------------------------------------------------------
9 # Fichier de configuration pris en compte par config_outils.php
10 # et specialement dedie a la configuration de ma lame perso
11 # --------------------------------------------------------------
12
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));
18 // Defaut
19 @define('_DEVDEBUG_MODE_DEF', 0);
20 @define('_DEVDEBUG_ESPACE_DEF', 'tout');
21 @define('_DEVDEBUG_NIVEAU_DEF', 'warning');
22 // Ajout de l'outil
23 add_outil(array(
24 'id' => 'devdebug',
25 'contrib' => 3572,
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%]]',
31 ));
32 // Ajout des variables utilisees ci-dessus
33 add_variables(array(
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",
39 ),array(
40 'nom' => 'devdebug_espace',
41 'format' => _format_CHAINE,
42 'radio' => array(
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",
48 ),array(
49 'nom' => 'devdebug_niveau',
50 'format' => _format_CHAINE,
51 'select' => array(
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',
57 ),
58 'defaut' => _DEVDEBUG_NIVEAU_DEF,
59 'code' => "define('_DEVDEBUG_NIVEAU', %s);\n",
60 )
61 );
62 }
63 ?>