* Copyright (C) 2007 Rodolphe Quiedeville * * 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. */ /** * \file htdocs/admin/system/dolibarr.php * \brief Fichier page info systemes Dolibarr * \version $Id$ */ require("./pre.inc.php"); $langs->load("admin"); $langs->load("install"); $langs->load("other"); if (!$user->admin) accessforbidden(); /* * View */ $form=new Form($db); llxHeader(); print_fiche_titre("Dolibarr",'','setup'); print "
\n"; $var=true; print ''; print ''."\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; print '
'.$langs->trans("Version").''.$langs->trans("Value").'
".$langs->trans("VersionProgram")."".DOL_VERSION."
".$langs->trans("VersionLastInstall")."".$conf->global->MAIN_VERSION_LAST_INSTALL."
".$langs->trans("VersionLastUpgrade")."".$conf->global->MAIN_VERSION_LAST_UPGRADE."
'; print '
'; // Language $var=true; print ''; print ''."\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; //$var=!$var; //print "\n"; $var=!$var; print ""; $var=!$var; print ""; // Thousands $var=!$var; $thousand=$langs->trans("SeparatorThousand"); if ($thousand == 'SeparatorThousand') $thousand=' '; // ' ' does not work on trans method print "\n"; // Decimals $var=!$var; $dec=$langs->trans("SeparatorDecimal"); print "\n"; $var=!$var; print ""; if (($thousand != ',' && $thousand != '.') || ($thousand != ' ')) { $var=!$var; print ""; print "\n"; } //print ''."\n"; // Timezone $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; // date.timezone must be in valued defined in http://fr3.php.net/manual/en/timezones.europe.php if (function_exists('date_default_timezone_get')) { $var=!$var; print "\n"; // value defined in http://fr3.php.net/manual/en/timezones.europe.php } $var=!$var; print "\n"; $var=!$var; print "\n"; print '
'.$langs->trans("LocalisationDolibarrParameters").''.$langs->trans("Value").'
".$langs->trans("LanguageBrowserParameter","HTTP_ACCEPT_LANGUAGE")."".$_SERVER["HTTP_ACCEPT_LANGUAGE"]."
".$langs->trans("LanguageBrowserParameter","LANG")."".$_ENV["LANG"]."
".$langs->trans("LanguageParameter","PHP LC_ALL")."".setlocale(LC_ALL,0)."
".$langs->trans("LanguageParameter","PHP LC_NUMERIC")."".setlocale(LC_NUMERIC,0)."
".$langs->trans("LanguageParameter","PHP LC_TIME")."".setlocale(LC_TIME,0)."
".$langs->trans("LanguageParameter","PHP LC_MONETARY")."".setlocale(LC_MONETARY,0)."
=> price2num(1234.56)'.price2num(1233.56+1,'2')."
=> dolibarr_print_date(0,"dayhourtext")'.dolibarr_print_date(0,"dayhourtext")."
".$langs->trans("CurrentValueSeparatorThousand")."".($thousand==' '?$langs->trans("Space"):$thousand)."
".$langs->trans("CurrentValueSeparatorDecimal")."".$dec."
=> price2num('."'1".$thousand."234".$dec."56')".price2num("1".$thousand."234".$dec."56",'2')."
=> price2num('."'1 234.56')".price2num("1 234.56",'2')."
'.$langs->trans("TimeZone").''.$langs->trans("Value").'
".$langs->trans("ClientTZ")."".$langs->trans("FeatureNotYetAvailable")."
".$langs->trans("ServerTZ")." (variable system TZ)".$_ENV["TZ"]."
".$langs->trans("PHPTZ")." (php.ini date.timezone)".ini_get("date.timezone")."
=> ".$langs->trans("CurrentTimeZone").""; print date_default_timezone_get(); print "
=> ".$langs->trans("PHPServerOffsetWithGreenwich")."".(- dolibarr_mktime(0,0,0,1,1,1970))."
=> ".$langs->trans("CurrentHour")."".dolibarr_print_date(time(),'dayhour')."
'; print '
'; $var=true; print ''; print ''."\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; $var=!$var; print "\n"; print '
'.$langs->trans("Session").''.$langs->trans("Value").'
".$langs->trans("SessionId").''.session_id()."
".$langs->trans("CurrentSessionTimeOut").''.ini_get('session.gc_maxlifetime').' '.$langs->trans("seconds"); print ''; print $form->textwithhelp('',$langs->trans("SessionExplanation",ini_get("session.gc_probability"),ini_get("session.gc_divisor"))); print "
".$langs->trans("CurrentTheme").''.$conf->theme."
".$langs->trans("CurrentTopMenuHandler").''.$conf->top_menu."
".$langs->trans("CurrentLeftMenuHandler").''.$conf->left_menu."
".$langs->trans("CurrentUserLanguage").''.$langs->getDefaultLang()."
'; print '
'; llxFooter('$Date$ - $Revision$'); ?>