[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 33/46: If database connx failed then reload t
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 33/46: If database connx failed then reload the form |
Date: |
Tue, 13 Jul 2021 05:01:59 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 03dcc7e0e06e92924c28af0881b2c060156a154f
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Jun 20 11:15:43 2021 +0200
If database connx failed then reload the form
---
html/install.php | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/html/install.php b/html/install.php
index ba2e565..72fabbc 100644
--- a/html/install.php
+++ b/html/install.php
@@ -252,11 +252,16 @@ if (isset($_POST['save_config'])) {
}
// Try to connect , if it doesn't work that do not create the config file
- if ($multi=="N") {
- $cnx = new DatabaseCore($db_user, $db_password,'template1', $db_host,
$db_port);
- }else {
- $cnx = new DatabaseCore($db_user, $db_password,$db_name, $db_host,
$db_port);
- }
+ try {
+ if ($multi=="N") {
+ $cnx = new DatabaseCore($db_user, $db_password,'template1',
$db_host, $db_port);
+ }else {
+ $cnx = new DatabaseCore($db_user, $db_password,$db_name, $db_host,
$db_port);
+ }
+
+ } catch (Exception $ex) {
+ $cnx=false;
+ }
// -----
// If conx successfull save the file or display it
// -----
- [Noalyss-commit] [noalyss] 15/46: Task #0001417: Reconnexion souple connect, (continued)
- [Noalyss-commit] [noalyss] 15/46: Task #0001417: Reconnexion souple connect, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 09/46: Add waiting_box, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 17/46: Task #0001595: CA - liste d'opérations - pas de choix de l'execice., Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 19/46: clean code : remove useless comment, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 20/46: New #0001983: CA - permettre désactivation poste, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 18/46: Bug: possible to set an empy name for an Analytic plan, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 21/46: Bug #0002011: Encodage opération – Verrouillage nombre de lignes si non vides, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 23/46: Task #0002014: Comptabilité analytique = export des pièces des opérations rapprochées, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 27/46: Task #0002014: Comptabilité analytique ordre par date Database_Core setter/getter for sql, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 24/46: Task #0001974: Duplication d'opération – Inclure l'intitulé, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 33/46: If database connx failed then reload the form,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 12/46: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 22/46: Cosmetic, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 26/46: Typo menu, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 28/46: Task #0002015: Export CSV depuis ANCGL : ajout de colonnes, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 29/46: Use autoload, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 31/46: Module decrease font-size, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 32/46: Code Cleaning #0002022: Utilisation d'un autoloader, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 35/46: Update Translation, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 36/46: get the output with transform2pdf in case it fails, Dany De Bontridder, 2021/07/13
- [Noalyss-commit] [noalyss] 41/46: Cosmetic #0002033: Alignement totaux + Trésorerie -> Financier/banque, Dany De Bontridder, 2021/07/13