24require
'../../main.inc.php';
25require_once DOL_DOCUMENT_ROOT.
'/core/lib/memory.lib.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/geturl.lib.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
31$langs->loadLangs(array(
"install",
"other",
"admin",
"products"));
37if (
GETPOST(
'action',
'aZ09') ==
'donothing') {
53print
'<span class="opacitymedium">'.$langs->trans(
"YouMayFindPerfAdviceHere",
'https://wiki.dolibarr.org/index.php/FAQ_Increase_Performance').
'</span>';
54print
' ';
55print
'<a href="'.$_SERVER[
"PHP_SELF"].
'">';
56print
img_picto($langs->trans(
"Reload"),
'refresh').
' ';
57print $langs->trans(
"Reload");
65print
"<br><strong>PHP</strong> - ".$langs->trans(
"Version").
": ".$phpversion.
"<br>\n";
68print
"<br><strong>Web server</strong> - ".$langs->trans(
"Version").
": ".$_SERVER[
"SERVER_SOFTWARE"].
"<br>\n";
72print
'<strong>'.$langs->trans(
"XDebug").
'</strong>: ';
73$test = !function_exists(
'xdebug_is_enabled');
75 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NotInstalled").
' <span class="opacitymedium">'.$langs->trans(
"NotSlowedDownByThis").
'</span>';
77 print
img_picto(
'',
'warning').
' '.$langs->trans(
"ModuleActivated", $langs->transnoentities(
"XDebug"));
78 print
' - '.$langs->trans(
"MoreInformation").
' <a href="'.DOL_URL_ROOT.
'/admin/system/xdebug.php">XDebug admin page</a>';
84print
'<strong>'.$langs->trans(
"Syslog").
'</strong>: ';
85$test = !isModEnabled(
'syslog');
87 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NotInstalled").
' <span class="opacitymedium">'.$langs->trans(
"NotSlowedDownByThis").
'</span>';
90 print
img_picto(
'',
'warning').
' '.$langs->trans(
"ModuleActivatedWithTooHighLogLevel", $langs->transnoentities(
"Syslog"));
92 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"ModuleSyslogActivatedButLevelNotTooVerbose", $langs->transnoentities(
"Syslog"),
getDolGlobalInt(
'SYSLOG_LEVEL'));
100print
'<strong>'.$langs->trans(
"DebugBar").
'</strong>: ';
101$test = !isModEnabled(
'debugbar');
103 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NotInstalled").
' <span class="opacitymedium">'.$langs->trans(
"NotSlowedDownByThis").
'</span>';
105 print
img_picto(
'',
'warning').
' '.$langs->trans(
"ModuleActivated", $langs->transnoentities(
"DebugBar"));
112print
'<strong>'.$langs->trans(
"ApplicativeCache").
'</strong>: ';
113$test = isModEnabled(
'memcached');
116 print $langs->trans(
"MemcachedAvailableAndSetup");
117 print
' '.$langs->trans(
"MoreInformation").
' <a href="'.
dol_buildpath(
'/memcached/admin/memcached.php', 1).
'">Memcached module admin page</a>';
119 print $langs->trans(
"MemcachedModuleAvailableButNotSetup");
120 print
' <a href="'.dol_buildpath(
'/memcached/admin/memcached.php', 1).
'">Memcached module admin page</a>';
123 print $langs->trans(
"MemcachedNotAvailable");
129print
'<strong>'.$langs->trans(
"OPCodeCache").
'</strong>: ';
131$test = function_exists(
'xcache_info');
132if (!$foundcache && $test) {
134 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"PHPModuleLoaded",
"XCache");
135 print
' '.$langs->trans(
"MoreInformation").
' <a href="'.DOL_URL_ROOT.
'/admin/system/xcache.php">Xcache admin page</a>';
137$test = function_exists(
'eaccelerator_info');
138if (!$foundcache && $test) {
140 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"PHPModuleLoaded",
"Eaccelerator");
142$test = function_exists(
'opcache_get_status');
143if (!$foundcache && $test) {
145 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"PHPModuleLoaded",
"ZendOPCache");
149$test = function_exists(
'apc_cache_info');
150if (!$foundcache && $test) {
152 if (ini_get(
'apc.enabled')) {
154 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"APCInstalled");
156 print
img_picto(
'',
'warning').
' '.$langs->trans(
"APCCacheInstalledButDisabled");
160 print $langs->trans(
"NoOPCodeCacheFound");
165if (ini_get(
'opcache.preload')) {
167 print
'<strong>'.$langs->trans(
"PreloadOPCode").
'</strong>: ';
168 print ini_get(
'opcache.preload');
171 print
'<strong>'.$langs->trans(
"PreloadOPCode").
'</strong>: ';
172 print $langs->trans(
"No");
177print
'<script type="text/javascript">
178jQuery(document).ready(function() {
184 data: { token: \''.currentToken().
'\' },
185 url: \
''.DOL_URL_ROOT.
'/public/notice.php\',
188 /* crossDomain: true,*/
189 success: function () {
190 cachephpstring=getphpurl.getResponseHeader(\'Cache-Control\');
191 /* alert(\'php:\'+getphpurl.getAllResponseHeaders()); */
192 /*alert(\'php:\'+cachephpstring);*/
193 if (cachephpstring == null || cachephpstring.indexOf("no-cache") !== -1)
195 jQuery("#httpcachephpok").hide();
196 jQuery("#httpcachephpko").show();
200 jQuery("#httpcachephpok").show();
201 jQuery("#httpcachephpko").hide();
203 compphpstring=getphpurl.getResponseHeader(\'Content-Encoding\');
204 /* alert(\'php:\'+getphpurl.getAllResponseHeaders()); */
205 /*alert(\'php:\'+compphpstring);*/
206 if (compphpstring == null || (compphpstring.indexOf("gzip") == -1 && compphpstring.indexOf("deflate") == -1 && compphpstring.indexOf("br") == -1))
208 jQuery("#httpcompphpok").hide();
209 jQuery("#httpcompphpko").show();
213 jQuery("#httpcompphpok").show();
214 jQuery("#httpcompphpko").hide();
224 data: { token: \'notrequired\' },
225 url: \''.DOL_URL_ROOT.
'/includes/jquery/css/base/jquery-ui.css\',
228 /* crossDomain: true, */
229 success: function () {
230 cachecssstring=getcssurl.getResponseHeader(\'Cache-Control\');
231 /* alert(\'css:\'+getcssurl.getAllResponseHeaders()); */
232 /*alert(\'css:\'+cachecssstring);*/
233 if (cachecssstring != null && cachecssstring.indexOf("no-cache") !== -1)
235 jQuery("#httpcachecssok").hide();
236 jQuery("#httpcachecssko").show();
240 jQuery("#httpcachecssok").show();
241 jQuery("#httpcachecssko").hide();
243 compcssstring=getcssurl.getResponseHeader(\'Content-Encoding\');
244 /* alert(\'php:\'+getcssurl.getAllResponseHeaders()); */
245 /*alert(\'php:\'+compcssstring);*/
246 if (compcssstring == null || (compcssstring.indexOf("gzip") == -1 && compcssstring.indexOf("deflate") == -1 && compcssstring.indexOf("br") == -1))
248 jQuery("#httpcompcssok").hide();
249 jQuery("#httpcompcssko").show();
253 jQuery("#httpcompcssok").show();
254 jQuery("#httpcompcssko").hide();
260 var cachecssphpstring;
261 var compcssphpstring;
262 getcssphpurl = $.ajax({
265 url: \
''.DOL_URL_ROOT.
'/theme/eldy/style.css.php\',
268 /* crossDomain: true,*/
269 success: function () {
270 cachecssphpstring=getcssphpurl.getResponseHeader(\'Cache-Control\');
271 /* alert(\'cssphp:\'+getcssphpurl.getAllResponseHeaders()); */
272 /*alert(\'cssphp:\'+cachecssphpstring);*/
273 if (cachecssphpstring != null && cachecssphpstring.indexOf("no-cache") !== -1)
275 jQuery("#httpcachecssphpok").hide();
276 jQuery("#httpcachecssphpko").show();
280 jQuery("#httpcachecssphpok").show();
281 jQuery("#httpcachecssphpko").hide();
283 compcssphpstring=getcssphpurl.getResponseHeader(\'Content-Encoding\');
284 /* alert(\'php:\'+getcssphpurl.getAllResponseHeaders()); */
285 /*alert(\'php:\'+compcssphpstring);*/
286 if (compcssphpstring == null || (compcssphpstring.indexOf("gzip") == -1 && compcssphpstring.indexOf("deflate") == -1 && compcssphpstring.indexOf("br") == -1))
288 jQuery("#httpcompcssphpok").hide();
289 jQuery("#httpcompcssphpko").show();
293 jQuery("#httpcompcssphpok").show();
294 jQuery("#httpcompcssphpko").hide();
304 data: { token: \'notrequired\' },
305 url: \''.DOL_URL_ROOT.
'/theme/eldy/img/help.png\',
308 /* crossDomain: true,*/
309 success: function () {
310 cacheimgstring=getimgurl.getResponseHeader(\'Cache-Control\');
311 /* alert(\'img:\'+getimgurl.getAllResponseHeaders()); */
312 /*alert(\'img:\'+cacheimgstring);*/
313 if (cacheimgstring != null && cacheimgstring.indexOf("no-cache") !== -1)
315 jQuery("#httpcacheimgok").hide();
316 jQuery("#httpcacheimgko").show();
320 jQuery("#httpcacheimgok").show();
321 jQuery("#httpcacheimgko").hide();
323 compimgstring=getimgurl.getResponseHeader(\'Content-Encoding\');
324 /* alert(\'php:\'+getimgurl.getAllResponseHeaders()); */
325 /*alert(\'php:\'+compimgstring);*/
326 if (compimgstring == null || (compimgstring.indexOf("gzip") == -1 && compimgstring.indexOf("deflate") == -1 && compimgstring.indexOf("br") == -1))
328 jQuery("#httpcompimgok").hide();
329 jQuery("#httpcompimgko").show();
333 jQuery("#httpcompimgok").show();
334 jQuery("#httpcompimgko").hide();
344 data: { token: \'notrequired\' },
345 url: \''.DOL_URL_ROOT.
'/core/js/lib_rare.js\',
348 /* crossDomain: true,*/
349 success: function () {
350 cachejsstring=getjsurl.getResponseHeader(\'Cache-Control\');
351 /*alert(\'js:\'+getjsurl.getAllResponseHeaders());*/
352 /*alert(\'js:\'+cachejsstring);*/
353 if (cachejsstring != null && cachejsstring.indexOf("no-cache") !== -1)
355 jQuery("#httpcachejsok").hide();
356 jQuery("#httpcachejsko").show();
360 jQuery("#httpcachejsok").show();
361 jQuery("#httpcachejsko").hide();
363 compjsstring=getjsurl.getResponseHeader(\'Content-Encoding\');
364 /* alert(\'js:\'+getjsurl.getAllResponseHeaders()); */
365 /*alert(\'js:\'+compjsstring);*/
366 if (compjsstring == null || (compjsstring.indexOf("gzip") == -1 && compjsstring.indexOf("deflate") == -1 && compjsstring.indexOf("br") == -1))
368 jQuery("#httpcompjsok").hide();
369 jQuery("#httpcompjsko").show();
373 jQuery("#httpcompjsok").show();
374 jQuery("#httpcompjsko").hide();
380 var cachejsphpstring;
382 getjsphpurl = $.ajax({
385 url: \
''.DOL_URL_ROOT.
'/core/js/lib_head.js.php\',
388 /* crossDomain: true,*/
389 success: function () {
390 cachejsphpstring=getjsphpurl.getResponseHeader(\'Cache-Control\');
391 /* alert(\'jsphp:\'+getjsphpurl.getAllResponseHeaders()); */
392 /*alert(\'jsphp:\'+cachejsphpstring);*/
393 if (cachejsphpstring != null && cachejsphpstring.indexOf("no-cache") !== -1)
395 jQuery("#httpcachejsphpok").hide();
396 jQuery("#httpcachejsphpko").show();
400 jQuery("#httpcachejsphpok").show();
401 jQuery("#httpcachejsphpko").hide();
403 compjsphpstring=getjsphpurl.getResponseHeader(\'Content-Encoding\');
404 /* alert(\'php:\'+getjsphpurl.getAllResponseHeaders()); */
405 /*alert(\'php:\'+compjsphpstring);*/
406 if (compjsphpstring == null || (compjsphpstring.indexOf("gzip") == -1 && compjsphpstring.indexOf("deflate") == -1 && compjsphpstring.indexOf("br") == -1))
408 jQuery("#httpcompjsphpok").hide();
409 jQuery("#httpcompjsphpko").show();
413 jQuery("#httpcompjsphpok").show();
414 jQuery("#httpcompjsphpko").hide();
424print
'<strong>'.$langs->trans(
"HTTPCacheStaticResources").
' - ';
425print $form->textwithpicto($langs->trans(
"CacheByServer"), $langs->trans(
"CacheByServerDesc"));
426print
':</strong><br>';
431print
'<div id="httpcachecssok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCached",
'css (.css)').
'</div>';
432print
'<div id="httpcachecssko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCached",
'css (.css)').
'</div>';
433print
'<div id="httpcachecssphpok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCached",
'css (.css.php)').
'</div>';
434print
'<div id="httpcachecssphpko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCached",
'css (.css.php)').
'</div>';
435print
'<div id="httpcacheimgok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCached",
'img (.png)').
'</div>';
436print
'<div id="httpcacheimgko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCached",
'img (.png)').
'</div>';
437print
'<div id="httpcachejsok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCached",
'javascript (.js)').
'</div>';
438print
'<div id="httpcachejsko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCached",
'javascript (.js)').
'</div>';
439print
'<div id="httpcachejsphpok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCached",
'javascript (.js.php)').
'</div>';
440print
'<div id="httpcachejsphpko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCached",
'javascript (.js.php)').
'</div>';
442print
'<strong>'.$langs->trans(
"HTTPCacheStaticResources").
' - ';
443print $langs->trans(
"CacheByClient").
':</strong><br>';
444print $langs->trans(
"TestNotPossibleWithCurrentBrowsers").
'<br>';
450print $form->textwithpicto($langs->trans(
"CompressionOfResources"), $langs->trans(
"CompressionOfResourcesDesc"));
454print
'<div id="httpcompphpok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCompressed",
'php (.php)').
'</div>';
455print
'<div id="httpcompphpko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCompressed",
'php (.php)').
'</div>';
457print
'<div id="httpcompcssok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCompressed",
'css (.css)').
'</div>';
458print
'<div id="httpcompcssko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCompressed",
'css (.css)').
'</div>';
459print
'<div id="httpcompcssphpok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCompressed",
'css (.css.php)').
'</div>';
460print
'<div id="httpcompcssphpko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCompressed",
'css (.css.php)').
'</div>';
463print
'<div id="httpcompjsok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCompressed",
'javascript (.js)').
'</div>';
464print
'<div id="httpcompjsko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCompressed",
'javascript (.js)').
'</div>';
465print
'<div id="httpcompjsphpok">'.img_picto(
'',
'tick.png').
' '.$langs->trans(
"FilesOfTypeCompressed",
'javascript (.js.php)').
'</div>';
466print
'<div id="httpcompjsphpko">'.img_picto(
'',
'warning.png').
' '.$langs->trans(
"FilesOfTypeNotCompressed",
'javascript (.js.php)').
'</div>';
470print
'<strong>'.$langs->trans(
"DriverType").
'</strong>: ';
472if ($conf->db->type ==
'mysql' || $conf->db->type ==
'mysqli') {
473 $test = ($conf->db->type ==
'mysqli');
475 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"YouUseBestDriver", $conf->db->type);
477 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"YouDoNotUseBestDriver", $conf->db->type,
'mysqli');
483print
'<strong>'.$langs->trans(
"ComboListOptim").
'</strong>: ';
486$sql =
"SELECT COUNT(*) as nb";
487$sql .=
" FROM ".MAIN_DB_PREFIX.
"product as p";
488$resql = $db->query($sql);
490 $limitforoptim = 5000;
491 $num = $db->num_rows($resql);
492 $obj = $db->fetch_object($resql);
494 if ($nb > $limitforoptim) {
496 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"YouHaveXObjectUseComboOptim", $nb, $langs->transnoentitiesnoconv(
"ProductsOrServices"),
'PRODUIT_USE_SEARCH_TO_SELECT');
498 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv(
"ProductsOrServices"),
'PRODUIT_USE_SEARCH_TO_SELECT', $conf->global->PRODUIT_USE_SEARCH_TO_SELECT);
501 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv(
"ProductsOrServices"));
507$sql =
"SELECT COUNT(*) as nb";
508$sql .=
" FROM ".MAIN_DB_PREFIX.
"societe as s";
509$resql = $db->query($sql);
511 $limitforoptim = 5000;
512 $num = $db->num_rows($resql);
513 $obj = $db->fetch_object($resql);
515 if ($nb > $limitforoptim) {
517 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"YouHaveXObjectUseComboOptim", $nb, $langs->transnoentitiesnoconv(
"ThirdParties"),
'COMPANY_USE_SEARCH_TO_SELECT');
519 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv(
"ThirdParties"),
'COMPANY_USE_SEARCH_TO_SELECT', $conf->global->COMPANY_USE_SEARCH_TO_SELECT);
522 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv(
"ThirdParties"));
528$sql =
"SELECT COUNT(*) as nb";
529$sql .=
" FROM ".MAIN_DB_PREFIX.
"socpeople as s";
530$resql = $db->query($sql);
532 $limitforoptim = 5000;
533 $num = $db->num_rows($resql);
534 $obj = $db->fetch_object($resql);
536 if ($nb > $limitforoptim) {
538 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"YouHaveXObjectUseComboOptim", $nb, $langs->transnoentitiesnoconv(
"Contacts"),
'CONTACT_USE_SEARCH_TO_SELECT');
540 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv(
"Contacts"),
'CONTACT_USE_SEARCH_TO_SELECT', $conf->global->CONTACT_USE_SEARCH_TO_SELECT);
543 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv(
"Contacts"));
549$sql =
"SELECT COUNT(*) as nb";
550$sql .=
" FROM ".MAIN_DB_PREFIX.
"projet as s";
551$resql = $db->query($sql);
553 $limitforoptim = 5000;
554 $num = $db->num_rows($resql);
555 $obj = $db->fetch_object($resql);
557 if ($nb > $limitforoptim) {
559 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"YouHaveXObjectUseComboOptim", $nb, $langs->transnoentitiesnoconv(
"Projects"),
'PROJECT_USE_SEARCH_TO_SELECT');
561 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv(
"Projects"),
'PROJECT_USE_SEARCH_TO_SELECT', $conf->global->PROJECT_USE_SEARCH_TO_SELECT);
564 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv(
"Projects"));
572print
'<strong>'.$langs->trans(
"SearchOptim").
'</strong>: ';
575$sql =
"SELECT COUNT(*) as nb";
576$sql .=
" FROM ".MAIN_DB_PREFIX.
"product as p";
577$resql = $db->query($sql);
579 $limitforoptim = 100000;
580 $num = $db->num_rows($resql);
581 $obj = $db->fetch_object($resql);
583 if ($nb > $limitforoptim) {
585 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"YouHaveXObjectUseSearchOptim", $nb, $langs->transnoentitiesnoconv(
"ProductsOrServices"),
'PRODUCT_DONOTSEARCH_ANYWHERE');
586 print $langs->trans(
"YouHaveXObjectUseSearchOptimDesc");
588 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv(
"ProductsOrServices"),
'PRODUCT_DONOTSEARCH_ANYWHERE', $conf->global->PRODUCT_DONOTSEARCH_ANYWHERE);
591 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv(
"ProductsOrServices"));
598$sql =
"SELECT COUNT(*) as nb";
599$sql .=
" FROM ".MAIN_DB_PREFIX.
"societe as s";
600$resql = $db->query($sql);
602 $limitforoptim = 100000;
603 $num = $db->num_rows($resql);
604 $obj = $db->fetch_object($resql);
606 if ($nb > $limitforoptim) {
608 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"YouHaveXObjectUseSearchOptim", $nb, $langs->transnoentitiesnoconv(
"ThirdParties"),
'COMPANY_DONOTSEARCH_ANYWHERE');
609 print $langs->trans(
"YouHaveXObjectUseSearchOptimDesc");
611 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"YouHaveXObjectAndSearchOptimOn", $nb, $langs->transnoentitiesnoconv(
"ThirdParties"),
'COMPANY_DONOTSEARCH_ANYWHERE', $conf->global->COMPANY_DONOTSEARCH_ANYWHERE);
614 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"NbOfObjectIsLowerThanNoPb", $nb, $langs->transnoentitiesnoconv(
"ThirdParties"));
622print
'<strong>'.$langs->trans(
"Browser").
'</strong>:<br>';
623if (!in_array($conf->browser->name, array(
'chrome',
'opera',
'safari',
'firefox'))) {
624 print
img_picto(
'',
'warning.png').
' '.$langs->trans(
"BrowserIsKO", $conf->browser->name);
626 print
img_picto(
'',
'tick.png').
' '.$langs->trans(
"BrowserIsOK", $conf->browser->name);
632print
'<strong>'.$langs->trans(
"Options").
'</strong>:<br>';
634 print
'MAIN_ACTIVATE_FILECACHE = '.getDolGlobalInt(
'MAIN_ACTIVATE_FILECACHE').
' '.
img_picto(
'',
'tick.png');
636 print
'MAIN_ACTIVATE_FILECACHE = '.getDolGlobalInt(
'MAIN_ACTIVATE_FILECACHE', 0);
642 print
'MAIN_ENABLE_AJAX_TOOLTIP = '.getDolGlobalInt(
'MAIN_ENABLE_AJAX_TOOLTIP').
' '.
img_picto(
'',
'tick.png');
644 print
'MAIN_ENABLE_AJAX_TOOLTIP = '.getDolGlobalInt(
'MAIN_ENABLE_AJAX_TOOLTIP', 0);
651 print
'MAIN_CACHE_COUNT = '.getDolGlobalInt(
'MAIN_CACHE_COUNT').
' '.
img_picto(
'',
'tick.png');
653 print
'MAIN_CACHE_COUNT = '.getDolGlobalInt(
'MAIN_CACHE_COUNT', 0);
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
version_php()
Return PHP version.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
currentToken()
Return the value of token currently saved into session with name 'token'.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.