28require
'../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/memory.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/geturl.lib.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
33require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
36@phan-var-force string $dolibarr_main_document_root_alt
39$langs->loadLangs(array(
"install",
"other",
"admin"));
41$action =
GETPOST(
'action',
'aZ09');
55if ($action ==
'getlastversion') {
56 $result =
getURLContent(
'https://sourceforge.net/projects/dolibarr/rss');
58 if (function_exists(
'simplexml_load_string')) {
59 if (LIBXML_VERSION < 20900) {
63 libxml_disable_entity_loader(
true);
66 $sfurl = simplexml_load_string($result[
'content'],
'SimpleXMLElement', LIBXML_NOCDATA | LIBXML_NONET);
68 setEventMessages($langs->trans(
"ErrorPHPDoesNotSupport",
"xml"),
null,
'errors');
80$title = $langs->trans(
"InfoDolibarr");
82llxHeader(
'', $title, $help_url,
'', 0, 0,
'',
'',
'',
'mod-admin page-system_dolibarr');
87print
'<div class="div-table-responsive-no-min">';
88print
'<table class="noborder centpercent">';
89print
'<tr class="liste_titre"><td class="titlefieldcreate">'.$langs->trans(
"Version").
'</td><td></td></tr>'.
"\n";
90print
'<tr class="oddeven"><td>'.$langs->trans(
"CurrentVersion").
'<br><span class="opacitymedium">('.$langs->trans(
"Programs").
')</span></td><td>'.DOL_VERSION;
94 if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_INSTALL) {
95 print
' '.img_warning($langs->trans(
"RunningUpdateProcessMayBeRequired", DOL_VERSION,
getDolGlobalString(
'MAIN_VERSION_LAST_INSTALL')));
99 if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_UPGRADE) {
100 print
' '.img_warning($langs->trans(
"RunningUpdateProcessMayBeRequired", DOL_VERSION,
getDolGlobalString(
'MAIN_VERSION_LAST_UPGRADE')));
104$version = DOL_VERSION;
105if (preg_match(
'/[a-z]+/i', $version)) {
106 $version =
'develop';
108print
' <a href="https://raw.githubusercontent.com/Dolibarr/dolibarr/'.$version.
'/ChangeLog" target="_blank" rel="noopener noreferrer external">'.$langs->trans(
"SeeChangeLog").
'</a>';
111if (function_exists(
'curl_init')) {
112 $conf->global->MAIN_USE_RESPONSE_TIMEOUT = 10;
113 print
' - ';
114 if ($action ==
'getlastversion') {
117 while (!empty($sfurl->channel[0]->item[$i]->title) && $i < 10000) {
118 $title = $sfurl->channel[0]->item[$i]->title;
120 if (preg_match(
'/([0-9]+\.([0-9\.]+))/', $title, $reg)) {
121 $newversion = $reg[1];
122 $newversionarray = explode(
'.', $newversion);
123 $versionarray = explode(
'.', $version);
126 $version = $newversion;
133 print $langs->trans(
"LastStableVersion").
' : <b>'.(($version !=
'0.0') ? $version : $langs->trans(
"Unknown")).
'</b>';
134 if ($version !=
'0.0') {
135 print
' <a href="https://raw.githubusercontent.com/Dolibarr/dolibarr/'.$version.
'/ChangeLog" target="_blank" rel="noopener noreferrer external">'.$langs->trans(
"SeeChangeLog").
'</a>';
138 print $langs->trans(
"LastStableVersion").
' : <b>'.$langs->trans(
"UpdateServerOffline").
'</b>';
141 print $langs->trans(
"LastStableVersion").
' : <a href="'.$_SERVER[
"PHP_SELF"].
'?action=getlastversion" class="butAction smallpaddingimp">'.$langs->trans(
"Check").
'</a>';
148$version = DOL_VERSION;
149if (preg_match(
'/[a-z]+/i', $version)) {
150 $version =
'develop';
153print
'</td></tr>'.
"\n";
154print
'<tr class="oddeven"><td>'.$langs->trans(
"VersionLastUpgrade").
'<br><span class="opacitymedium">('.$langs->trans(
"Database").
')</span></td><td>'.
getDolGlobalString(
'MAIN_VERSION_LAST_UPGRADE').
'</td></tr>'.
"\n";
155print
'<tr class="oddeven"><td>'.$langs->trans(
"VersionLastInstall").
'<br><span class="opacitymedium">('.$langs->trans(
"Database").
')</span></td><td>'.
getDolGlobalString(
'MAIN_VERSION_LAST_INSTALL').
'</td></tr>'.
"\n";
161print
'<div class="div-table-responsive-no-min">';
162print
'<table class="noborder centpercent">';
163print
'<tr class="liste_titre"><td class="titlefieldcreate">'.$langs->trans(
"Session").
'</td><td></td></tr>'.
"\n";
164print
'<tr class="oddeven"><td>'.$langs->trans(
"SessionSavePath").
'</td><td>'.session_save_path().
'</td></tr>'.
"\n";
165print
'<tr class="oddeven"><td>'.$langs->trans(
"SessionName").
'</td><td>'.session_name().
'</td></tr>'.
"\n";
166print
'<tr class="oddeven"><td>'.$langs->trans(
"SessionId").
'</td><td>'.session_id().
'</td></tr>'.
"\n";
167print
'<tr class="oddeven"><td>';
168print $langs->trans(
"CurrentSessionTimeOut");
171print ini_get(
'session.gc_maxlifetime').
' '.$langs->trans(
"seconds");
172print
'<!-- session.gc_maxlifetime = '.ini_get(
"session.gc_maxlifetime").
' -->'.
"\n";
173print
'<!-- session.gc_probability = '.ini_get(
"session.gc_probability").
' -->'.
"\n";
174print
'<!-- session.gc_divisor = '.ini_get(
"session.gc_divisor").
' -->'.
"\n";
175print $form->textwithpicto(
'', $langs->trans(
"Parameter").
' <b>php.ini</b>: <b>session.gc_maxlifetime</b><br>'.$langs->trans(
"SessionExplanation", ini_get(
"session.gc_probability"), ini_get(
"session.gc_divisor")));
177print
'<tr class="oddeven"><td>'.$langs->trans(
"CurrentTheme").
'</td><td>'.$conf->theme.
'</td></tr>'.
"\n";
178print
'<tr class="oddeven"><td>'.$langs->trans(
"CurrentMenuHandler").
'</td><td>';
179print $conf->standard_menu;
180print
'</td></tr>'.
"\n";
181print
'<tr class="oddeven"><td>'.$langs->trans(
"Screen").
'</td><td>';
182print $_SESSION[
'dol_screenwidth'].
' x '.$_SESSION[
'dol_screenheight'];
183print
'</td></tr>'.
"\n";
184print
'<tr class="oddeven"><td>'.$langs->trans(
"Session").
'</td><td class="wordbreak">';
186foreach ($_SESSION as $key => $val) {
190 if (is_array($val)) {
191 print $key.
' => array(...)';
197print
'</td></tr>'.
"\n";
207 print
'<div class="div-table-responsive-no-min">';
208 print
'<table class="noborder centpercent">';
209 print
'<tr class="liste_titre">';
210 print
'<td class="titlefieldcreate">'.$langs->trans(
"LanguageFilesCachedIntoShmopSharedMemory").
'</td>';
211 print
'<td>'.$langs->trans(
"NbOfEntries").
'</td>';
212 print
'<td class="right">'.$langs->trans(
"Address").
'</td>';
215 foreach ($shmoparray as $key => $val) {
216 print
'<tr class="oddeven"><td>'.$key.
'</td>';
217 print
'<td>'.count($val).
'</td>';
218 print
'<td class="right">'.dol_getshmopaddress($key).
'</td>';
229print
'<div class="div-table-responsive-no-min">';
230print
'<table class="noborder centpercent">';
231print
'<tr class="liste_titre"><td class="titlefieldcreate">'.$langs->trans(
"LocalisationDolibarrParameters").
'</td><td></td></tr>'.
"\n";
232print
'<tr class="oddeven"><td>'.$langs->trans(
"LanguageBrowserParameter",
"HTTP_ACCEPT_LANGUAGE").
'</td><td>'.$_SERVER[
"HTTP_ACCEPT_LANGUAGE"].
'</td></tr>'.
"\n";
233print
'<tr class="oddeven"><td>'.$langs->trans(
"CurrentUserLanguage").
'</td><td>'.$langs->getDefaultLang().
'</td></tr>'.
"\n";
235$thousand = $langs->transnoentitiesnoconv(
"SeparatorThousand");
236if ($thousand ==
'SeparatorThousand') {
239if ($thousand ==
'None') {
242print
'<tr class="oddeven"><td>'.$langs->trans(
"CurrentValueSeparatorThousand").
'</td><td>'.($thousand ==
' ' ? $langs->transnoentitiesnoconv(
"Space") : $thousand).
'</td></tr>'.
"\n";
244$dec = $langs->transnoentitiesnoconv(
"SeparatorDecimal");
245print
'<tr class="oddeven"><td>'.$langs->trans(
"CurrentValueSeparatorDecimal").
'</td><td>'.$dec.
'</td></tr>'.
"\n";
247print
'<tr class="oddeven"><td> => price2num(1233.56+1)</td><td>'.price2num(1233.56 + 1, 2).
'</td></tr>'.
"\n";
248print
'<tr class="oddeven"><td> => price2num('.
"'1".$thousand.
"234".$dec.
"56')</td><td>".
price2num(
"1".$thousand.
"234".$dec.
"56", 2).
"</td></tr>\n";
249if (($thousand !=
',' && $thousand !=
'.') || ($thousand !=
' ')) {
250 print
'<tr class="oddeven"><td> => price2num('.
"'1 234.56')</td><td>".
price2num(
"1 234.56", 2).
"</td>";
253print
'<tr class="oddeven"><td> => price(1234.56)</td><td>'.price(1234.56).
'</td></tr>'.
"\n";
258if ($conf->db->type ==
'mysql' || $conf->db->type ==
'mysqli') {
259 print
'<tr class="oddeven"><td>'.$langs->trans(
"MySQLTimeZone").
' (database)</td><td>';
260 $sql =
"SHOW VARIABLES where variable_name = 'system_time_zone'";
261 $resql = $db->query($sql);
263 $obj = $db->fetch_object($resql);
264 print $form->textwithtooltip($obj->Value, $langs->trans(
'TZHasNoEffect'), 2, 1,
img_info(
''));
266 print
'</td></tr>'.
"\n";
268$txt = $langs->trans(
"OSTZ").
' (variable system TZ): '.(!empty($_ENV[
"TZ"]) ? $_ENV[
"TZ"] : $langs->trans(
"NotDefined")).
'<br>'.
"\n";
269$txt .= $langs->trans(
"PHPTZ").
' (date_default_timezone_get() / php.ini date.timezone): '.(
getServerTimeZoneString().
" / ".(ini_get(
"date.timezone") ? ini_get(
"date.timezone") : $langs->trans(
"NotDefined"))).
"<br>\n";
270$txt .= $langs->trans(
"Dolibarr constant MAIN_SERVER_TZ").
': '.
getDolGlobalString(
'MAIN_SERVER_TZ', $langs->trans(
"NotDefined"));
271print
'<tr class="oddeven"><td>'.$langs->trans(
"CurrentTimeZone").
'</td><td>';
275$daylight = round($c - $b);
277$val = ($a >= 0 ?
'+' :
'').$a;
278$val .=
' ('.($a ==
'unknown' ?
'unknown' : ($a >= 0 ?
'+' :
'').($a * 3600)).
')';
279$val .=
' '.getServerTimeZoneString();
280$val .=
' '.$langs->trans(
"DaylingSavingTime").
': '.((is_null($b) || is_null($c)) ?
'unknown' : ($a == $c ?
yn((int) $daylight) :
yn(0).($daylight ?
' ('.$langs->trans(
'YesInSummer').
')' :
'')));
281print $form->textwithtooltip($val, $txt, 2, 1,
img_info(
''));
282print
'</td></tr>'.
"\n";
283print
'<tr class="oddeven"><td> => '.$langs->trans(
"CurrentHour").
'</td><td>'.
dol_print_date(
dol_now(
'gmt'),
'dayhour',
'tzserver').
'</td></tr>'.
"\n";
284print
'<tr class="oddeven"><td> => dol_print_date(0,"dayhourtext")</td><td>'.dol_print_date(0,
"dayhourtext").
'</td>';
285print
'<tr class="oddeven"><td> => dol_get_first_day(1970,1,false)</td><td>'.dol_get_first_day(1970, 1,
false).
' (=> dol_print_date() or idate() of this value = '.
dol_print_date(
dol_get_first_day(1970, 1,
false),
'dayhour').
')</td>';
286print
'<tr class="oddeven"><td> => dol_get_first_day(1970,1,true)</td><td>'.dol_get_first_day(1970, 1,
true).
' (=> dol_print_date() or idate() of this value = '.
dol_print_date(
dol_get_first_day(1970, 1,
true),
'dayhour').
')</td>';
288$tz = (int) $_SESSION[
'dol_tz'] + (
int) $_SESSION[
'dol_dst'];
289print
'<tr class="oddeven"><td>'.$langs->trans(
"ClientTZ").
'</td><td>'.($tz ? ($tz >= 0 ?
'+' :
'').$tz :
'').
' ('.($tz >= 0 ?
'+' :
'').($tz * 60 * 60).
')';
290print
' '.$_SESSION[
'dol_tz_string'];
291print
' '.$langs->trans(
"DaylingSavingTime").
': ';
292if ($_SESSION[
'dol_dst'] > 0) {
297if (!empty($_SESSION[
'dol_dst_first'])) {
300print
'</td></tr>'.
"\n";
301print
'</td></tr>'.
"\n";
302print
'<tr class="oddeven"><td> => '.$langs->trans(
"ClientHour").
'</td><td>'.
dol_print_date(
dol_now(
'gmt'),
'dayhour',
'tzuser').
'</td></tr>'.
"\n";
304$filesystemencoding = ini_get(
"unicode.filesystem_encoding");
305print
'<tr class="oddeven"><td>'.$langs->trans(
"File encoding").
' (php.ini unicode.filesystem_encoding)</td><td>'.$filesystemencoding.
'</td></tr>'.
"\n";
307$tmp = ini_get(
"unicode.filesystem_encoding");
308if (empty($tmp) && !empty($_SERVER[
"WINDIR"])) {
317print
'<tr class="oddeven"><td> => '.$langs->trans(
"File encoding").
'</td><td>'.$tmp.
'</td></tr>'.
"\n";
326$configfileparameters = array(
327 'dolibarr_main_prod' =>
'Production mode (Hide all error messages)',
328 'dolibarr_main_instance_unique_id' => $langs->trans(
"InstanceUniqueID"),
330 'dolibarr_main_url_root' => $langs->trans(
"URLRoot"),
331 '?dolibarr_main_url_root_alt' => $langs->trans(
"URLRoot").
' (alt)',
332 'dolibarr_main_document_root' => $langs->trans(
"DocumentRootServer"),
333 '?dolibarr_main_document_root_alt' => $langs->trans(
"DocumentRootServer").
' (alt)',
334 'dolibarr_main_data_root' => $langs->trans(
"DataRootServer"),
336 'dolibarr_main_db_host' => $langs->trans(
"DatabaseServer"),
337 'dolibarr_main_db_port' => $langs->trans(
"DatabasePort"),
338 'dolibarr_main_db_name' => $langs->trans(
"DatabaseName"),
339 'dolibarr_main_db_type' => $langs->trans(
"DriverType"),
340 'dolibarr_main_db_user' => $langs->trans(
"DatabaseUser"),
341 'dolibarr_main_db_pass' => $langs->trans(
"DatabasePassword"),
342 'dolibarr_main_db_character_set' => $langs->trans(
"DBStoringCharset"),
343 'dolibarr_main_db_collation' => $langs->trans(
"DBSortingCollation"),
344 '?dolibarr_main_db_prefix' => $langs->trans(
"DatabasePrefix"),
345 'dolibarr_main_db_readonly' => $langs->trans(
"ReadOnlyMode"),
347 'dolibarr_main_authentication' => $langs->trans(
"AuthenticationMode"),
348 '?multicompany_transverse_mode' => $langs->trans(
"MultiCompanyMode"),
350 '?dolibarr_main_auth_ldap_login_attribute' =>
'dolibarr_main_auth_ldap_login_attribute',
351 '?dolibarr_main_auth_ldap_host' =>
'dolibarr_main_auth_ldap_host',
352 '?dolibarr_main_auth_ldap_port' =>
'dolibarr_main_auth_ldap_port',
353 '?dolibarr_main_auth_ldap_version' =>
'dolibarr_main_auth_ldap_version',
354 '?dolibarr_main_auth_ldap_dn' =>
'dolibarr_main_auth_ldap_dn',
355 '?dolibarr_main_auth_ldap_admin_login' =>
'dolibarr_main_auth_ldap_admin_login',
356 '?dolibarr_main_auth_ldap_admin_pass' =>
'dolibarr_main_auth_ldap_admin_pass',
357 '?dolibarr_main_auth_ldap_debug' =>
'dolibarr_main_auth_ldap_debug',
359 '?dolibarr_lib_FPDF_PATH' =>
'dolibarr_lib_FPDF_PATH',
360 '?dolibarr_lib_TCPDF_PATH' =>
'dolibarr_lib_TCPDF_PATH',
361 '?dolibarr_lib_FPDI_PATH' =>
'dolibarr_lib_FPDI_PATH',
362 '?dolibarr_lib_TCPDI_PATH' =>
'dolibarr_lib_TCPDI_PATH',
363 '?dolibarr_lib_NUSOAP_PATH' =>
'dolibarr_lib_NUSOAP_PATH',
364 '?dolibarr_lib_GEOIP_PATH' =>
'dolibarr_lib_GEOIP_PATH',
365 '?dolibarr_lib_ODTPHP_PATH' =>
'dolibarr_lib_ODTPHP_PATH',
366 '?dolibarr_lib_ODTPHP_PATHTOPCLZIP' =>
'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
367 '?dolibarr_js_CKEDITOR' =>
'dolibarr_js_CKEDITOR',
368 '?dolibarr_js_JQUERY' =>
'dolibarr_js_JQUERY',
369 '?dolibarr_js_JQUERY_UI' =>
'dolibarr_js_JQUERY_UI',
370 '?dolibarr_font_DOL_DEFAULT_TTF' =>
'dolibarr_font_DOL_DEFAULT_TTF',
371 '?dolibarr_font_DOL_DEFAULT_TTF_BOLD' =>
'dolibarr_font_DOL_DEFAULT_TTF_BOLD',
373 'dolibarr_main_restrict_os_commands' =>
'Restrict CLI commands for backups',
374 'dolibarr_main_restrict_ip' =>
'Restrict access to some IPs only',
375 '?dolibarr_mailing_limit_sendbyweb' =>
'Limit nb of email sent by page',
376 '?dolibarr_mailing_limit_sendbycli' =>
'Limit nb of email sent by cli',
377 '?dolibarr_mailing_limit_sendbyday' =>
'Limit nb of email sent per day',
378 '?dolibarr_strict_mode' =>
'Strict mode is on/off',
379 '?dolibarr_nocsrfcheck' =>
'Disable CSRF security checks'
382print
'<div class="div-table-responsive-no-min">';
383print
'<table class="noborder centpercent">';
384print
'<tr class="liste_titre">';
385print
'<td class="titlefieldcreate">'.$langs->trans(
"Parameters").
' ';
386print $langs->trans(
"ConfigurationFile").
' ('.$conffiletoshowshort.
')';
388print
'<td>'.$langs->trans(
"Name").
'</td>';
395foreach ($configfileparameters as $key => $value) {
398 if (empty($ignore)) {
399 $newkey = preg_replace(
'/^\?/',
'', $key);
401 if (preg_match(
'/^\?/', $key) && empty(${$newkey})) {
402 if ($newkey !=
'multicompany_transverse_mode' || !isModEnabled(
'multicompany')) {
406 if (strpos($newkey,
'separator') !==
false && $lastkeyshown ==
'separator') {
410 print
'<tr class="oddeven">';
411 if (strpos($newkey,
'separator') !==
false) {
412 print
'<td colspan="3"> </td>';
415 print
"<td>".$value.
'</td>';
417 print
'<td>'.$newkey.
'</td>';
420 if (in_array($newkey, array(
'dolibarr_main_db_pass',
'dolibarr_main_auth_ldap_admin_pass'))) {
421 if (empty($dolibarr_main_prod)) {
422 print
'<!-- '.${$newkey}.
' -->';
427 } elseif ($newkey ==
'dolibarr_main_url_root' && preg_match(
'/__auto__/', ${$newkey})) {
428 print ${$newkey}.
' => '.constant(
'DOL_MAIN_URL_ROOT');
429 } elseif ($newkey ==
'dolibarr_main_document_root_alt') {
430 $tmparray = explode(
',', $dolibarr_main_document_root_alt);
432 foreach ($tmparray as $value2) {
437 if (!is_readable($value2)) {
438 $langs->load(
"errors");
439 print
' '.img_warning($langs->trans(
"ErrorCantReadDir", $value2));
443 } elseif ($newkey ==
'dolibarr_main_instance_unique_id') {
445 global $dolibarr_main_cookie_cryptkey, $dolibarr_main_instance_unique_id;
446 $valuetoshow = $dolibarr_main_instance_unique_id ? $dolibarr_main_instance_unique_id : $dolibarr_main_cookie_cryptkey;
447 if (empty($dolibarr_main_prod)) {
448 print
'<!-- '.$dolibarr_main_instance_unique_id.
' (this will not be visible if $dolibarr_main_prod = 1 -->';
450 print
' <span class="opacitymedium">'.$langs->trans(
"ThisValueCanBeReadBecauseInstanceIsNotInProductionMode").
'</span>';
453 print
' <span class="opacitymedium">'.$langs->trans(
"SeeConfFile").
'</span>';
455 if (empty($valuetoshow)) {
456 print
img_warning(
"EditConfigFileToAddEntry",
'dolibarr_main_instance_unique_id');
459 print
'<tr class="oddeven"><td></td><td> => '.$langs->trans(
"HashForPing").
'</td><td>'.md5(
'dolibarr'.$valuetoshow).
'</td></tr>'.
"\n";
460 } elseif ($newkey ==
'dolibarr_main_prod') {
463 $valuetoshow = ${$newkey};
464 if (empty($valuetoshow)) {
465 print
img_warning($langs->trans(
'SwitchThisForABetterSecurity', 1));
467 } elseif ($newkey ==
'dolibarr_nocsrfcheck') {
470 $valuetoshow = ${$newkey};
471 if (!empty($valuetoshow)) {
472 print
img_warning($langs->trans(
'SwitchThisForABetterSecurity', 0));
474 } elseif ($newkey ==
'dolibarr_main_db_readonly') {
477 $valuetoshow = ${$newkey};
478 if (!empty($valuetoshow)) {
479 print
img_warning($langs->trans(
'ReadOnlyMode', 1));
482 print(empty(${$newkey}) ?
'' : ${$newkey});
484 if ($newkey ==
'dolibarr_main_url_root' && ${$newkey} != DOL_MAIN_URL_ROOT) {
485 print
' (currently overwritten by autodetected value: '.DOL_MAIN_URL_ROOT.
')';
490 $lastkeyshown = $newkey;
500print
'<div class="div-table-responsive-no-min">';
501print
'<table class="noborder">';
502print
'<tr class="liste_titre">';
503print
'<td class="titlefield">'.$langs->trans(
"Parameters").
' '.$langs->trans(
"Database").
'</td>';
505if (!isModEnabled(
'multicompany') || !$user->entity) {
506 print
'<td class="center width="80px"">'.$langs->trans(
"Entity").
'</td>';
512$sql .=
", ".$db->decrypt(
'name').
" as name";
513$sql .=
", ".$db->decrypt(
'value').
" as value";
517$sql .=
" FROM ".MAIN_DB_PREFIX.
"const";
518if (!isModEnabled(
'multicompany')) {
520 $sql .=
" WHERE entity IN (0,".$conf->entity.
")";
524 $sql .=
" WHERE entity IN (".$db->sanitize($user->entity.
",".$conf->entity).
")";
527$sql .=
" ORDER BY entity, name ASC";
528$resql = $db->query($sql);
530 $num = $db->num_rows($resql);
534 $obj = $db->fetch_object($resql);
536 print
'<tr class="oddeven">';
537 print
'<td class="tdoverflowmax600" title="'.dol_escape_htmltag($obj->name).
'">'.
dol_escape_htmltag($obj->name).
'</td>'.
"\n";
538 print
'<td class="tdoverflowmax300">';
540 if (empty($dolibarr_main_prod)) {
541 print
'<!-- '.$obj->value.
' -->';
548 if (!isModEnabled(
'multicompany') || !$user->entity) {
549 print
'<td class="center" width="80px">'.$obj->entity.
'</td>'.
"\n";
versioncompare($versionarray1, $versionarray2)
Compare 2 versions (stored into 2 arrays).
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
getServerTimeZoneString()
Return server timezone string.
getServerTimeZoneInt($refgmtdate='now')
Return server timezone int.
dol_get_first_day($year, $month=1, $gm=false)
Return GMT time for first day of a month or year.
dol_stringtotime($string, $gm=1)
Convert a string date into a GM Timestamps date Warning: YYYY-MM-DDTHH:MM:SS+02:00 (RFC3339) is not s...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
showValueWithClipboardCPButton($valuetocopy, $showonlyonhover=1, $texttoshow='')
Create a button to copy $valuetocopy in the clipboard (for copy and paste feature).
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
isASecretKey($keyname)
Return if string has a name dedicated to store a secret.
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
yn($yesno, $format=1, $color=0)
Return yes or no in current language.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
img_info($titlealt='default')
Show info logo.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
getURLContent($url, $postorget='GET', $param='', $followlocation=1, $addheaders=array(), $allowedschemes=array('http', 'https'), $localurl=0, $ssl_verifypeer=-1)
Function to get a content from an URL (use proxy if proxy defined).
dol_listshmop()
Return list of contents of all memory area shared.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.