* 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'); // Version $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("VersionLastInstall")."".$conf->global->MAIN_VERSION_LAST_INSTALL."
".$langs->trans("VersionLastUpgrade")."".$conf->global->MAIN_VERSION_LAST_UPGRADE; print "
".$langs->trans("VersionProgram")."".DOL_VERSION; // If current version differs from last upgrade if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_UPGRADE) print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired")); print "
'; print '
'; // Session $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 "\n"; print '
'.$langs->trans("Session").''.$langs->trans("Value").'
".$langs->trans("SessionSavePath").''.session_save_path()."
".$langs->trans("SessionName").''.session_name()."
".$langs->trans("SessionId").''.session_id()."
".$langs->trans("CurrentSessionTimeOut").''.ini_get('session.gc_maxlifetime').' '.$langs->trans("seconds"); print ''; print $form->textwithpicto('',$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."
'; print '
'; // Localisation $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"; */ // 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"; // Show results of functions to see if everything works $var=!$var; print ""; $var=!$var; print ""; if (($thousand != ',' && $thousand != '.') || ($thousand != ' ')) { $var=!$var; print ""; print "\n"; } $var=!$var; print ""; //print ''."\n"; // Timezone // PHP server $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"; $var=!$var; print ""; # Parent company $var=!$var; print "\n"; $var=!$var; #print "\n"; print "\n"; # Client $var=!$var; print "\n"; $var=!$var; #print "\n"; print "\n"; print '
'.$langs->trans("LocalisationDolibarrParameters").''.$langs->trans("Value").'
".$langs->trans("LanguageBrowserParameter","HTTP_ACCEPT_LANGUAGE")."".$_SERVER["HTTP_ACCEPT_LANGUAGE"]."
".$langs->trans("CurrentUserLanguage").''.$langs->getDefaultLang()."
".$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_MONETARY")."".setlocale(LC_MONETARY,0)."
".$langs->trans("CurrentValueSeparatorThousand")."".($thousand==' '?$langs->trans("Space"):$thousand)."
".$langs->trans("CurrentValueSeparatorDecimal")."".$dec."
=> price2num(1233.56+1)'.price2num(1233.56+1,'2')."
=> price2num('."'1".$thousand."234".$dec."56')".price2num("1".$thousand."234".$dec."56",'2')."
=> price2num('."'1 234.56')".price2num("1 234.56",'2')."
=> price(1234.56)'.price(1234.56)."
'.$langs->trans("TimeZone").''.$langs->trans("Value").'
".$langs->trans("OSTZ")." (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")."".(- dol_mktime(0,0,0,1,1,1970))."
=> ".$langs->trans("CurrentHour")."".dol_print_date(dol_now('tzserver'),'dayhour')."
=> dol_print_date(0,"dayhourtext")'.dol_print_date(0,"dayhourtext")."
".$langs->trans("CompanyTZ")."".$langs->trans("FeatureNotYetAvailable")."
=> ".$langs->trans("CompanyHour")."".dol_print_date(dol_now('tzuser'),'dayhour')."
=> ".$langs->trans("CompanyHour")."".$langs->trans("FeatureNotYetAvailable")."
".$langs->trans("ClientTZ")."".$langs->trans("FeatureNotYetAvailable")."
=> ".$langs->trans("ClientHour")."".dol_print_date(dol_now('tzuser'),'dayhour')."
=> ".$langs->trans("ClientHour")."".$langs->trans("FeatureNotYetAvailable")."
'; print '
'; llxFooter('$Date$ - $Revision$'); ?>