From fc90374b75e2dc4ad2911383283ff46afead8965 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 11 Nov 2015 16:07:19 +0100 Subject: [PATCH] =?UTF-8?q?Task=20#1225=20-=20Am=C3=A9lioration=20Install?= =?UTF-8?q?=20mono=20#1225=20:=20d=C3=A9tecte=20automatiquement=20s'il=20f?= =?UTF-8?q?aut=20installer=20le=20script=20mono.sql=20ou=20non,=20am=C3=A9?= =?UTF-8?q?lioration=20de=20l'interface,=20correction=20du=20search=5Fpath?= =?UTF-8?q?=20postgresql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/install.php | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/html/install.php b/html/install.php index 381448783..38425868a 100644 --- a/html/install.php +++ b/html/install.php @@ -75,13 +75,6 @@ session_start();

"; content[206]=""; content[207]=""; content[208]=""; -content[209]="";
✖"; $succeed=""; @@ -228,7 +216,6 @@ $locale=HtmlInput::default_value_request("clocale", "1"); $ctmp=HtmlInput::default_value_request("ctmp", "/tmp"); $cpath=HtmlInput::default_value_request("cpath", "/usr/bin"); $db_name=HtmlInput::default_value_request("cdbname", ""); -$cmodelemono=HtmlInput::default_value_request('cmodelemono',MONO_TEMPLATE_UPGRADE); //------------------------------------------------------------------------- // warn only if we can not write in include //------------------------------------------------------------------------- @@ -612,7 +599,21 @@ if (defined("MULTI") && MULTI == 0) $db->execute_script(NOALYSS_INCLUDE.'/sql/mono/mono.sql'); if ( ! DEBUG) ob_end_clean(); } - + if ($db->exist_table("version") == false) + { + echo '

' . $failed ; + printf (_('La base de donnée %s est vide, + veuillez vous y connecter + avec phpPgAdmin ou pgAdmin3 ou en commande en ligne + puis faites un seul de ces choix : '),dbname); + echo '

+

"; + exit(); + } echo "

Patching " . dbname . '

'; $db->apply_patch(dbname); echo "

"._("Tout est installé"). $succeed;