2006-08-20 21:15:47 +02:00
|
|
|
<?php
|
2012-08-02 10:07:55 +02:00
|
|
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
|
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
2018-10-27 14:43:12 +02:00
|
|
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
2024-11-04 23:53:20 +01:00
|
|
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
2006-08-20 21:15:47 +02:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 15:36:08 +01:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2006-08-20 21:15:47 +02:00
|
|
|
* (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
|
2019-09-23 21:55:30 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2006-08-20 21:15:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2009-07-26 13:19:11 +02:00
|
|
|
* \file htdocs/admin/tools/index.php
|
|
|
|
|
* \brief Page d'accueil de l'espace outils admin
|
|
|
|
|
*/
|
2006-08-20 21:15:47 +02:00
|
|
|
|
2022-09-07 20:08:59 +02:00
|
|
|
// Load Dolibarr environment
|
2012-08-22 23:24:21 +02:00
|
|
|
require '../../main.inc.php';
|
2006-08-20 21:15:47 +02:00
|
|
|
|
2024-11-04 23:53:20 +01:00
|
|
|
/**
|
|
|
|
|
* @var Conf $conf
|
|
|
|
|
* @var DoliDB $db
|
|
|
|
|
* @var HookManager $hookmanager
|
|
|
|
|
* @var Translate $langs
|
|
|
|
|
* @var User $user
|
|
|
|
|
*/
|
|
|
|
|
|
2018-09-08 10:30:10 +02:00
|
|
|
// Load translation files required by the page
|
2020-04-10 10:59:32 +02:00
|
|
|
$langs->loadLangs(array("companies", "admin"));
|
2006-08-20 21:15:47 +02:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if (!$user->admin) {
|
2012-08-02 10:07:55 +02:00
|
|
|
accessforbidden();
|
2021-02-26 22:04:03 +01:00
|
|
|
}
|
2006-08-20 21:15:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2009-07-26 13:19:11 +02:00
|
|
|
* View
|
2006-08-20 21:15:47 +02:00
|
|
|
*/
|
|
|
|
|
|
2013-09-06 12:10:09 +02:00
|
|
|
$form = new Form($db);
|
|
|
|
|
|
2020-04-10 10:59:32 +02:00
|
|
|
$title = $langs->trans("AdminTools");
|
2017-06-18 21:13:48 +02:00
|
|
|
//if (GETPOST('leftmenu',"aZ09") == 'admintools') $title=$langs->trans("ModulesSystemTools");
|
2012-09-05 16:20:51 +02:00
|
|
|
|
2024-06-08 17:03:08 +02:00
|
|
|
llxHeader('', $title, '', '', 0, 0, '', '', '', 'mod-admin page-tools_index');
|
2006-08-20 21:15:47 +02:00
|
|
|
|
2019-01-27 11:55:16 +01:00
|
|
|
print load_fiche_titre($title, '', 'title_setup');
|
2006-08-20 21:15:47 +02:00
|
|
|
|
2006-12-09 00:35:28 +01:00
|
|
|
print $langs->trans("SystemToolsAreaDesc").'<br>';
|
|
|
|
|
print "<br>";
|
2006-11-11 16:52:17 +01:00
|
|
|
|
2006-12-09 00:35:28 +01:00
|
|
|
print info_admin($langs->trans("SystemAreaForAdminOnly")).'<br>';
|
2006-08-20 21:15:47 +02:00
|
|
|
|
2013-01-14 15:18:15 +01:00
|
|
|
print '<br><br>';
|
|
|
|
|
|
|
|
|
|
|
2013-01-16 15:54:07 +01:00
|
|
|
// Show logo
|
2015-05-31 16:36:11 +02:00
|
|
|
//print '<div class="center"><div class="logo_setup"></div></div>';
|
2020-04-10 10:59:32 +02:00
|
|
|
print '<center><div class="logo_setup"></div></center>'; // For a reason I don't know, the div class="center does not works, we must keep the <center>
|
2015-05-31 16:36:11 +02:00
|
|
|
|
2018-07-28 14:29:28 +02:00
|
|
|
// End of page
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2012-08-02 10:07:55 +02:00
|
|
|
$db->close();
|