28 require
'../main.inc.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
38 $langs->loadLangs(array(
"admin",
"other"));
41 $action =
GETPOST(
'action',
'aZ09');
49 if ($action ==
'set') {
54 if ($result1 < 0 || $result2 < 0) {
72 llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-debugbar');
74 $form =
new Form($db);
76 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
77 print
load_fiche_titre($langs->trans(
"DebugBarSetup"), $linkback,
'title_setup');
79 if (!function_exists(
'mb_check_encoding')) {
80 $langs->load(
"errors");
81 print
info_admin($langs->trans(
"ErrorPHPNeedModule",
'mbstring'), 0, 0,
'error');
87 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
88 print
'<input type="hidden" name="token" value="'.newToken().
'">';
89 print
'<input type="hidden" name="action" value="set">';
91 print
'<table class="noborder centpercent">';
92 print
'<tr class="liste_titre">';
93 print
'<td>'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td>';
94 print
'<td class="right"><input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'"></td>';
97 print
'<tr class="oddeven"><td class="nowrap">'.$langs->trans(
"DEBUGBAR_USE_LOG_FILE").
'</td>';
99 print $form->selectyesno(
'DEBUGBAR_USE_LOG_FILE',
getDolGlobalString(
'DEBUGBAR_USE_LOG_FILE'), 1);
101 print
'<span class="opacitymedium"> '.$langs->trans(
"UsingLogFileShowAllRecordOfSubrequestButIsSlower").
'</span>';
104 print
'<tr class="oddeven"><td class="nowrap">'.$langs->trans(
"DEBUGBAR_LOGS_LINES_NUMBER").
'</td>';
105 print
'<td><input type="text" class="flat width75" name="DEBUGBAR_LOGS_LINES_NUMBER" value="'.(!
getDolGlobalString(
'DEBUGBAR_LOGS_LINES_NUMBER') ? 250 : $conf->global->DEBUGBAR_LOGS_LINES_NUMBER).
'">';
107 print
'<span class="opacitymedium">'.$langs->trans(
"WarningValueHigherSlowsDramaticalyOutput").
'</span>';
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin='1', $morecss='hideonsmartphone', $textfordropdown='')
Show information in HTML for admin users or standard users.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
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.