noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 10/16: Administration : update MULTI


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/16: Administration : update MULTI
Date: Tue, 20 Oct 2015 14:26:33 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3a2bf47f316b2dd8237820571d33045c63ffafed
Author: Dany De Bontridder <address@hidden>
Date:   Mon Oct 19 16:29:16 2015 +0200

    Administration : update MULTI
---
 include/upgrade.inc.php |   38 +++++++++++++++++++++-----------------
 1 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/include/upgrade.inc.php b/include/upgrade.inc.php
index 877a5f3..015fd82 100644
--- a/include/upgrade.inc.php
+++ b/include/upgrade.inc.php
@@ -39,13 +39,31 @@ if (!defined('ALLOWED'))
 $sb= HtmlInput::default_value_get("sb", "none");
 if ($sb === "upg_all" && (!defined('MULTI')||(defined('MULTI')&&MULTI==1)))
 {
+    echo '<div class="content">';
     /* If multi folders */
     $Resdossier=$rep->exec_sql("select dos_id, dos_name from ac_dossier");
     $MaxDossier=$rep->size($Resdossier);
-
+    
+    //----------------------------------------------------------------------
+    // Upgrade the account_repository
+    //----------------------------------------------------------------------
+    echo "<h2>"._("Mise à jour de la base de données principale")."</h2>";
+    $cn=new Database();
+    if (DEBUG==false)
+        ob_start();
+    $MaxVersion=DBVERSIONREPO-1;
+    for ($i=4; $i<=$MaxVersion; $i++)
+    {
+        if ($cn->get_version()<=$i)
+        {
+            $cn->execute_script('sql/patch/ac-upgrade'.$i.'.sql');
+        }
+    }
     //----------------------------------------------------------------------
     // Upgrade the folders
     //----------------------------------------------------------------------
+    echo "<h2>"._("Mise à jour dossiers")."</h2>";
+
     for ($e=0; $e<$MaxDossier; $e++)
     {
         $db_row=Database::fetch_array($Resdossier, $e);
@@ -70,7 +88,7 @@ if ($sb === "upg_all" && 
(!defined('MULTI')||(defined('MULTI')&&MULTI==1)))
     //----------------------------------------------------------------------
     $Resdossier=$rep->exec_sql("select mod_id, mod_name from modeledef");
     $MaxDossier=$rep->size();
-    echo "<h2>"._("Mise à modèle")."</h2>";
+    echo "<h2>"._("Mise à jour modèles")."</h2>";
 
     for ($e=0; $e<$MaxDossier; $e++)
     {
@@ -88,20 +106,6 @@ if ($sb === "upg_all" && 
(!defined('MULTI')||(defined('MULTI')&&MULTI==1)))
             echo_warning(_("Modèle inexistant")." $name");
         }
     }
-    //----------------------------------------------------------------------
-    // Upgrade the account_repository
-    //----------------------------------------------------------------------
-    echo "<h2>"._("Mise à jour de la base de données principale")."</h2>";
-    $cn=new Database();
-    if (DEBUG==false)
-        ob_start();
-    $MaxVersion=DBVERSIONREPO-1;
-    for ($i=4; $i<=$MaxVersion; $i++)
-    {
-        if ($cn->get_version()<=$i)
-        {
-            $cn->execute_script('sql/patch/ac-upgrade'.$i.'.sql');
-        }
-    }
+
 }
 ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]