From 89c29265b1d3a42c0673e7f7bf7016c4af3fa00a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Jul 2005 01:17:40 +0000 Subject: [PATCH] =?UTF-8?q?S=E9paration=20boite=20A=20propos=20de=20page?= =?UTF-8?q?=20Info=20syst=E8me=20Dolibarr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/system/dolibarr.php | 108 +++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 htdocs/admin/system/dolibarr.php diff --git a/htdocs/admin/system/dolibarr.php b/htdocs/admin/system/dolibarr.php new file mode 100644 index 00000000000..b0df849862e --- /dev/null +++ b/htdocs/admin/system/dolibarr.php @@ -0,0 +1,108 @@ + + * + * 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/system/dolibarr.php + \brief Fichier page info systemes Dolibarr + \version $Revision$ +*/ + +require("./pre.inc.php"); + + +llxHeader(); + + +print_titre("Dolibarr"); + +print "
\n"; + +print ''; +print ''."\n"; +print "\n"; +print '
'.$langs->trans("Parameter").''.$langs->trans("Value").'
".$langs->trans("Version")."".DOL_VERSION."
'; +print '
'; + +print ''; +print ''."\n"; +print "\n"; +print "\n"; +print "\n"; +print "\n"; +print '
'.$langs->trans("Parameter").''.$langs->trans("Value").'
".$langs->trans("Language")." (LC_ALL)".setlocale(LC_ALL,0)."
".$langs->trans("Language")." (LC_NUMERIC)".setlocale(LC_NUMERIC,0)."
".$langs->trans("Language")." (LC_TIME)".setlocale(LC_TIME,0)."
".$langs->trans("Language")." (LC_MONETARY)".setlocale(LC_MONETARY,0)."
'; +print '
'; + + +// Charge les modules +$db->begin(); + +$dir = DOL_DOCUMENT_ROOT . "/includes/modules/"; +$handle=opendir($dir); +$modules = array(); +while (($file = readdir($handle))!==false) +{ + if (is_readable($dir.$file) && substr($file, 0, 3) == 'mod' && substr($file, strlen($file) - 10) == '.class.php') + { + $modName = substr($file, 0, strlen($file) - 10); + + if ($modName) + { + include_once("../../includes/modules/$file"); + $objMod = new $modName($db); + + $modules[$objMod->numero]=$objMod->name; + $picto[$objMod->numero]=$objMod->picto?$objMod->picto:'generic'; + $permissions[$objMod->numero]=$objMod->rights; + } + } +} +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +$var=false; +$sortorder=$modules; +ksort($sortorder); +foreach($sortorder as $numero=>$name) +{ + $idperms=""; + $var=!$var; + print ""; + if ($permissions[$numero]) + { + foreach($permissions[$numero] as $rights) + { + $idperms.=($idperms?",":"").$rights[0]; + } + } + print ''; + print "\n"; +} +print '
'.$langs->trans("Modules").''.$langs->trans("Id").''.$langs->trans("Id Permissions").'
".img_object("",$picto[$numero]).' '.$modules[$numero]."".$numero."'.($idperms?$idperms:" ").'
'; +print '
'; + + +llxFooter('$Date$ - $Revision$'); + +?>