* 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 Page to show Dolibarr informations * \version $Id$ */ require("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/memory.lib.php"); require_once(DOL_DOCUMENT_ROOT."/lib/date.lib.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 (empty($conf->global->MAIN_VERSION_LAST_UPGRADE)) { // Compare version with last install database version (upgrades never occured) if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_INSTALL) print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired",DOL_VERSION,$conf->global->MAIN_VERSION_LAST_INSTALL)); } else { // Compare version with last upgrade database version if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_UPGRADE) print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired",DOL_VERSION,$conf->global->MAIN_VERSION_LAST_UPGRADE)); } 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"; 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("CurrentMenuHandler").''.$conf->top_menu."
'; print '
'; // Shmop if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x02)) { $shmoparray=dol_listshmop(); $var=true; print ''; print ''; print ''; print ''; print ''; print ''."\n"; foreach($shmoparray as $key => $val) { $var=!$var; print "'; print '"; print ''; print "\n"; } print '
'.$langs->trans("LanguageFilesCachedIntoShmopSharedMemory").''.$langs->trans("NbOfEntries").''.$langs->trans("Address").'
".$key.''.sizeof($val)."'.dol_getshmopaddress($key).'
'; 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 if ($thousand == 'None') $thousand=''; 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 ""; $var=!$var; print ""; $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"; $var=!$var; $filesystemencoding=ini_get("unicode.filesystem_encoding"); // Disponible avec PHP 6.0 print "\n"; // date.timezone must be in valued defined in http://fr3.php.net/manual/en/timezones.europe.php $var=!$var; $tmp=ini_get("unicode.filesystem_encoding"); // Disponible avec PHP 6.0 if (empty($tmp) && ! empty($_SERVER["WINDIR"])) $tmp='iso-8859-1'; // By default for windows if (empty($tmp)) $tmp='utf-8'; // By default for other if (! empty($conf->global->MAIN_FILESYSTEM_ENCODING)) $tmp=$conf->global->MAIN_FILESYSTEM_ENCODING; print "\n"; // date.timezone must be in valued defined in http://fr3.php.net/manual/en/timezones.europe.php 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").""; // Timezone server PHP 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")."
=> dol_get_first_day(1970,1,false)'.dol_get_first_day(1970,1,false)."     (with dol_print_date() or idate() = ".dol_print_date(dol_get_first_day(1970,1,false),'dayhour').")
=> dol_get_first_day(1970,1,true)'.dol_get_first_day(1970,1,true)."     (with dol_print_date() or idate() = ".dol_print_date(dol_get_first_day(1970,1,true),'dayhour').")
".$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")."
".$langs->trans("File encoding")." (php.ini unicode.filesystem_encoding)".$filesystemencoding."
=> ".$langs->trans("File encoding")."".$tmp."
'; print '
'; llxFooter('$Date$ - $Revision$'); ?>