/** * @file * @brief Upgrade all the database : the central repository , the templates and * the folder * @param $rep db connection to central repository */ if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); if ( ! defined ('ALLOWED_ADMIN')) { die (_('Non autorisé'));} require_once NOALYSS_INCLUDE.'/lib/http_input.class.php'; $http=new HttpInput(); $menu=array( ["?action=upgrade&sb=database", _("Base de données"), _("Met à jour toutes les dossiers et modèles"), 'database'], ["?action=upgrade&sb=application", _("Application"), _("Installe la dernière version de Noalyss"), 'application'], ["?action=upgrade&sb=plugin", _("Extension"), _("Installe ou met à jour les extensions"), "plugin"], ["?action=upgrade&sb=template", _("Modèle"), _("Installe des modèles"), "template"] ); $sb=$http->request("sb", "string", "application"); echo '
'; $sc=$http->get("sc", "string", "none"); //----------------------------------------------------------------------------- // Upgrade Databases (Folder, Template , Account ) //----------------------------------------------------------------------------- if ($sb=="database") { ?>'; Dossier::upgrade(); echo ''; return; } } // Import the file with the package //------------------------------------------------------------------------------ // Upgrade Main application, show all the info from the NOALYSS_PACKAGE site //------------------------------------------------------------------------------ if ($sb=="application") { require NOALYSS_INCLUDE."/upgrade-core.php"; } //------------------------------------------------------------------------------ // Install or Upgrade Extension, show all the info from the NOALYSS_PACKAGE site //------------------------------------------------------------------------------ if ($sb=="plugin") { require NOALYSS_INCLUDE."/upgrade-plugin.php"; } //------------------------------------------------------------------------------------------------------------------------------- // Install template //------------------------------------------------------------------------------------------------------------------------------- if ( $sb == 'template') { require NOALYSS_INCLUDE."/upgrade-template.php"; } ?>