[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');
- }
- }
+
}
?>
- [Noalyss-commit] [noalyss] branch master updated (659cbc6 -> 02d8767), Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 02/16: Rename file admin_repo by admin_repo.inc, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 05/16: Administration : add information about system, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 01/16: Move Admin_repo to include , add setup.php for redirecting Move user_menu to include/lib, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 06/16: System information : display variable from config.inc.php, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 08/16: Administration : add information about system update all the databases + account_repository, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 11/16: Force the login in lower case in table where it is used, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 09/16: System information : display variable from config.inc.php, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 07/16: Administration : add information about system update all the databases + account_repository, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 04/16: Restructure file , remove html/admin/sql , backup ..., Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 10/16: Administration : update MULTI,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 14/16: remove obsolete file, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 15/16: Improve installation system, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 12/16: force login user to lower case for ACTION_GESTION, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 03/16: Restructure file , remove html/admin , backup ..., Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 16/16: Remove admin folder and use another system installation, it is now possible to upgrade DB thanks the administration page, Dany De Bontridder, 2015/10/20
- [Noalyss-commit] [noalyss] 13/16: Improve installation system, Dany De Bontridder, 2015/10/20