2011-02-14 19:01:52 +01:00
|
|
|
<?php
|
|
|
|
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
|
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
2018-10-27 14:43:12 +02:00
|
|
|
* Copyright (C) 2005-2010 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>
|
2011-02-14 19:01:52 +01: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
|
2011-02-14 19:01:52 +01: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/>.
|
2011-02-14 19:01:52 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \file htdocs/core/tools.php
|
|
|
|
|
* \brief Home page for top menu tools
|
|
|
|
|
*/
|
|
|
|
|
|
2022-09-07 20:08:59 +02:00
|
|
|
// Load Dolibarr environment
|
2012-08-22 23:24:21 +02:00
|
|
|
require '../main.inc.php';
|
2011-02-14 19:01:52 +01: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-15 11:51:21 +02:00
|
|
|
// Load translation files required by the page
|
2020-04-10 10:59:32 +02:00
|
|
|
$langs->loadLangs(array("companies", "other"));
|
2011-02-14 19:01:52 +01:00
|
|
|
|
|
|
|
|
// Security check
|
2020-04-10 10:59:32 +02:00
|
|
|
$socid = 0;
|
2021-02-23 22:03:23 +01:00
|
|
|
if ($user->socid > 0) {
|
|
|
|
|
$socid = $user->socid;
|
|
|
|
|
}
|
2011-02-14 19:08:44 +01:00
|
|
|
|
2011-02-14 19:01:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-14 12:09:46 +01:00
|
|
|
$socstatic = new Societe($db);
|
2011-02-14 19:01:52 +01:00
|
|
|
|
2019-01-27 11:55:16 +01:00
|
|
|
llxHeader("", $langs->trans("Tools"), "");
|
2011-02-14 19:01:52 +01:00
|
|
|
|
2019-11-14 12:09:46 +01:00
|
|
|
$text = $langs->trans("Tools");
|
2011-02-14 19:01:52 +01:00
|
|
|
|
2019-10-02 19:04:24 +02:00
|
|
|
print load_fiche_titre($text, '', 'wrench');
|
2011-02-14 19:01:52 +01:00
|
|
|
|
|
|
|
|
// Show description of content
|
2020-05-14 14:56:15 +02:00
|
|
|
print '<div class="justify opacitymedium">'.$langs->trans("ToolsDesc").'</div><br><br>';
|
2011-02-14 19:01:52 +01:00
|
|
|
|
|
|
|
|
|
2017-09-19 02:01:05 +02:00
|
|
|
// Show logo
|
|
|
|
|
print '<div class="center"><div class="logo_setup"></div></div>';
|
2011-02-14 19:01:52 +01:00
|
|
|
|
|
|
|
|
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2013-02-24 14:57:49 +01:00
|
|
|
|
|
|
|
|
$db->close();
|