From 6ff5ba77adb87a09b7954bb8c3c9be04bf7fd93f Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 8 Sep 2019 10:41:26 +0200 Subject: [PATCH 01/11] Typo DatabaseCore --- html/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/install.php b/html/install.php index 75b2498bc..f6004718f 100644 --- a/html/install.php +++ b/html/install.php @@ -202,9 +202,9 @@ if (isset($_POST['save_config'])) { require_once NOALYSS_INCLUDE.'/lib/config_file.php'; // Try to connect , if it doesn't work that do not create the config file if ($multi=="N") { - $cnx = Database::connect($db_user, $db_password,'template1', $db_host, $db_port); + $cnx = new DatabaseCore($db_user, $db_password,'template1', $db_host, $db_port); }else { - $cnx = Database::connect($db_user, $db_password,$db_name, $db_host, $db_port); + $cnx = new DatabaseCore($db_user, $db_password,$db_name, $db_host, $db_port); } // ----- // If conx successfull save the file or display it From 925ffa3f0420b7a860bbaf55efd21a782d5d373b Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 7 Sep 2019 23:26:13 +0200 Subject: [PATCH 02/11] highlight default password --- html/install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/install.php b/html/install.php index f6004718f..330e1ae96 100644 --- a/html/install.php +++ b/html/install.php @@ -214,8 +214,10 @@ if (isset($_POST['save_config'])) { echo '

',_("Voici l'utilisateur et mot de passe de l'utilisateur administrateur de Noalyss , il a tous les droits et a accès à tout." . " Connectez-vous avec ses identifiants et changer le mot de passe dans préférence (en haut à droit)"), "

"; + echo '
'; echo '

'._('Utilisateur administrateur'),' ',' ',$cadmin,'','

'; echo '

',_('Mot de passe'),' phpcompta ','

'; + echo '
'; // Create the db if (is_writable(NOALYSS_INCLUDE)) { $url=config_file_create($_POST,1,$os); From 69d73db9a7cec2cc470122d5192085166c4ae764 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 8 Sep 2019 00:02:50 +0200 Subject: [PATCH 03/11] hightlight password + add waiting box when installing --- html/install.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/html/install.php b/html/install.php index 330e1ae96..2c4248fec 100644 --- a/html/install.php +++ b/html/install.php @@ -73,6 +73,9 @@ session_start(); color: inherit; } + +

@@ -129,6 +132,13 @@ if ( ! isset($_GET['lang'])){ require_once '../include/constant.php'; include_once NOALYSS_INCLUDE.'/lib/ac_common.php'; include_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; +include_once '../lib/function_javascript.php'; +load_all_script(); + + + + +echo '

'; if ( $_GET['lang'] == "en_US.utf8" || $_GET['lang']=='fr_FR.utf8') { $_SESSION['g_lang']=$_GET['lang']; @@ -137,8 +147,11 @@ if ( $_GET['lang'] == "en_US.utf8" || $_GET['lang']=='fr_FR.utf8') ?> +