'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'
'; echo '',_('Mot de passe')," ",NOALYSS_ADMIN_PASSWORD,'
'; @@ -623,10 +623,10 @@ if (defined("MULTI") && MULTI == 0) $db = new Database(); if ($db->exist_table("repo_version") == false) { - if ( ! DEBUG) { ob_start(); } + if ( DEBUGNOALYSS > 0 ) { ob_start(); } $db->execute_script(NOALYSS_INCLUDE.'/sql/mono/mono.sql'); - if ( ! DEBUG) ob_end_clean(); + if ( DEBUGNOALYSS > 0 ) ob_end_clean(); } @@ -651,7 +651,7 @@ if (defined("MULTI") && MULTI == 0) echo ""._("Tout est installé"). $succeed; echo "
'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'
'; diff --git a/include/ajax/ajax_action_concerned_list.php b/include/ajax/ajax_action_concerned_list.php index 55548a1a2..357a8b9c0 100644 --- a/include/ajax/ajax_action_concerned_list.php +++ b/include/ajax/ajax_action_concerned_list.php @@ -51,7 +51,7 @@ echo HtmlInput::button_anchor(_("Export CSV"), $csv,"",' title="Export Contacts echo HtmlInput::button_close("action_concerned_list_dv"); $response = ob_get_clean(); -if ( headers_sent() && DEBUG) { +if ( headers_sent() && DEBUGNOALYSS > 0) { echo $response; } $html = escape_xml($response); @@ -63,4 +63,4 @@ echo <<'; @@ -160,7 +160,7 @@ class DatabaseCore $this->array = $p_array; if ($p_array == null) { - if (!DEBUG) + if ( DEBUGNOALYSS == 0 ) $this->ret = pg_query($this->db, $p_string); else $this->ret = @pg_query($this->db, $p_string); @@ -169,7 +169,7 @@ class DatabaseCore if (!is_array($p_array)) { throw new Exception(_("Erreur : exec_sql attend un array")); } - if (!DEBUG) + if ( DEBUGNOALYSS == 0 ) $this->ret =@pg_query_params($this->db, $p_string, $p_array); else $this->ret = pg_query_params($this->db, $p_string, $p_array); @@ -179,7 +179,7 @@ class DatabaseCore throw new Exception(" SQL ERROR $p_string " . $str_error, 1); } } catch (Exception $a) { - if (DEBUG) { + if ( DEBUGNOALYSS > 0 ) { print_r($p_string); print_r($p_array); echo $a->getMessage(); @@ -277,7 +277,7 @@ class DatabaseCore function execute_script($script) { - if (!DEBUG) { + if ( DEBUGNOALYSS == 0 ) { ob_start(); } else { $debug = fopen("/tmp/debug.log", "w+"); @@ -335,11 +335,11 @@ class DatabaseCore $buffer = str_replace(';', '', $buffer); } $sql .= $buffer; - if (DEBUG) fwrite($debug, $sql); + if ( DEBUGNOALYSS > 0 ) fwrite($debug, $sql); if ($this->exec_sql($sql) == false) { $this->rollback(); - if (!DEBUG) + if ( DEBUGNOALYSS == 0 ) ob_end_clean(); print "ERROR : $sql"; throw new Exception("ERROR : $sql"); @@ -349,7 +349,7 @@ class DatabaseCore print "