index.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. * Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
  4. * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. /**
  20. * \file htdocs/admin/tools/index.php
  21. * \brief Page d'accueil de l'espace outils admin
  22. */
  23. // Load Dolibarr environment
  24. require '../../main.inc.php';
  25. // Load translation files required by the page
  26. $langs->loadLangs(array("companies", "admin"));
  27. if (!$user->admin) {
  28. accessforbidden();
  29. }
  30. /*
  31. * View
  32. */
  33. $form = new Form($db);
  34. $title = $langs->trans("AdminTools");
  35. //if (GETPOST('leftmenu',"aZ09") == 'admintools') $title=$langs->trans("ModulesSystemTools");
  36. llxHeader('', $title);
  37. print load_fiche_titre($title, '', 'title_setup');
  38. print $langs->trans("SystemToolsAreaDesc").'<br>';
  39. print "<br>";
  40. print info_admin($langs->trans("SystemAreaForAdminOnly")).'<br>';
  41. print '<br><br>';
  42. // Show logo
  43. //print '<div class="center"><div class="logo_setup"></div></div>';
  44. 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>
  45. // End of page
  46. llxFooter();
  47. $db->close();