From c5688e866532a93173953be49b7455b85220c743 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Mar 2007 17:05:16 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20entr=E9e=20dans=20menu=20pour=20mise=20?= =?UTF-8?q?a=20jour=20Dolibarr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/tools/update.php | 74 +++++++++++++++++++ .../menus/barre_left/eldy_backoffice.php | 1 + htdocs/langs/en_US/admin.lang | 5 +- htdocs/langs/fr_FR/admin.lang | 2 + 4 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 htdocs/admin/tools/update.php diff --git a/htdocs/admin/tools/update.php b/htdocs/admin/tools/update.php new file mode 100644 index 00000000000..414a2caa527 --- /dev/null +++ b/htdocs/admin/tools/update.php @@ -0,0 +1,74 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * $Source$ + */ + +/** + \file htdocs/admin/tools/update.php + \brief Page de mise a jour online de dolibarr + \version $Revision$ +*/ + +require("./pre.inc.php"); +include_once $dolibarr_main_document_root."/lib/databases/".$conf->db->type.".lib.php"; + +$langs->load("admin"); + +if (! $user->admin) + accessforbidden(); + +if ($_GET["msg"]) $message='
'.$_GET["msg"].'
'; + + + +/* +* Actions +*/ +if ($_POST["action"]=='update') +{ + + +} + + +/* +* Affichage page +*/ + +llxHeader(); + +print_fiche_titre($langs->trans("Upgrade"),'','setup'); +print '
'; + +print $langs->trans("Version").' : '.DOL_VERSION.'
'; +print '
'; + +print $langs->trans("Upgrade").'
'; +print $langs->trans("FeatureNotYetAvailable"); + +print '
'; +print '
'; + +print $langs->trans("AddExtensionThemeModuleOrOther").'
'; +print $langs->trans("FeatureNotYetAvailable"); + +print ''; + +llxFooter('$Date$ - $Revision$'); +?> \ No newline at end of file diff --git a/htdocs/includes/menus/barre_left/eldy_backoffice.php b/htdocs/includes/menus/barre_left/eldy_backoffice.php index a396e82f2b3..e62824bbf10 100644 --- a/htdocs/includes/menus/barre_left/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_left/eldy_backoffice.php @@ -154,6 +154,7 @@ class MenuLeft { if ($leftmenu=="admintools") $newmenu->add_submenu(DOL_URL_ROOT."/admin/tools/dolibarr_export.php", $langs->trans("Backup"),1); if ($leftmenu=="admintools") $newmenu->add_submenu(DOL_URL_ROOT."/admin/tools/dolibarr_import.php", $langs->trans("Restore"),1); if ($leftmenu=="admintools") $newmenu->add_submenu(DOL_URL_ROOT."/admin/tools/purge.php", $langs->trans("Purge"),1); + if ($leftmenu=="admintools") $newmenu->add_submenu(DOL_URL_ROOT."/admin/tools/update.php", $langs->trans("Upgrade"),1); } $langs->load("users"); diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 034f87df89f..be9928a7789 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -70,8 +70,8 @@ BackupResult=Backup result BackupFileSuccessfullyCreated=Backup file successfully generated YouCanDownloadBackupFile=Generated files can now be downlaoded NoBackupFileAvailable=No backup files available. -ToBuildBackupFileClickHere=To build a backup file, click here. ExportMethod=Export method +ToBuildBackupFileClickHere=To build a backup file, click here. Yes=Yes No=No AutoDetectLang=Autodetect (browser language) @@ -95,7 +95,6 @@ DolibarrProjectLeader=Project leader OtherDeveloppers=Other developers/contributors OfficialWebSite=International official web site OfficialWebSiteFr=French official web site -Informations=Information CurrentTheme=Current theme CurrentTopMenuHandler=Current top menu handler CurrentLeftMenuHandler=Current left menu handler @@ -333,6 +332,8 @@ AtEndOfMonth=At end of month Offset=Offset AlwaysActive=Always active UpdateRequired=Your system needs to be updated. For this click on Update now. +Upgrade=Upgrade +AddExtensionThemeModuleOrOther=Add extension (theme, module, ...) WebServer=Web server DocumentRootServer=Web server root directory DataRootServer=Data files directory diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 9a45cdf8a6a..b382a91c908 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -332,6 +332,8 @@ AtEndOfMonth=En fin de mois Offset=Décalage AlwaysActive=Toujours actif UpdateRequired=Votre système nécessite une mise à jour. Pour cela cliquez sur Mettre à jour. +Upgrade=Mise à jour +AddExtensionThemeModuleOrOther=Ajout extension (theme, module, ...) WebServer=Serveur Web DocumentRootServer=Répertoire racine des pages web DataRootServer=Répertoire racine des fichiers de données