27 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
35 $langs->loadLangs(array(
"admin",
"other"));
38 $action =
GETPOST(
'action',
'aZ09');
50 $result1 =
dolibarr_set_const($db,
"DEBUGBAR_LOGS_LINES_NUMBER",
GETPOST(
'DEBUGBAR_LOGS_LINES_NUMBER',
'int'),
'chaine', 0,
'', 0);
52 if ($result1 < 0 || $result2 < 0)
74 $form =
new Form($db);
76 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
79 if (!function_exists(
'mb_check_encoding'))
81 $langs->load(
"errors");
82 print info_admin($langs->trans(
"ErrorPHPNeedModule",
'mbstring'), 0, 0,
'error');
88 print '<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
89 print '<input type="hidden" name="token" value="'.newToken().
'">';
90 print '<input type="hidden" name="action" value="set">';
92 print '<table class="noborder centpercent">';
93 print '<tr class="liste_titre">';
94 print '<td>'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td>';
95 print '<td class="right"><input type="submit" class="button" '.$option.
' value="'.$langs->trans(
"Modify").
'"></td>';
98 print '<tr class="oddeven"><td>'.$langs->trans(
"DEBUGBAR_LOGS_LINES_NUMBER").
'</td>';
99 print '<td colspan="2"><input type="text" class="flat" name="DEBUGBAR_LOGS_LINES_NUMBER" value="'.(empty($conf->global->DEBUGBAR_LOGS_LINES_NUMBER) ? 250 : $conf->global->DEBUGBAR_LOGS_LINES_NUMBER).
'">';
100 print ' '.$langs->trans(
"WarningValueHigherSlowsDramaticalyOutput");
103 print '<tr class="oddeven"><td>'.$langs->trans(
"DEBUGBAR_USE_LOG_FILE").
'</td>';
104 print '<td colspan="2">';
105 print $form->selectyesno(
'DEBUGBAR_USE_LOG_FILE', $conf->global->DEBUGBAR_USE_LOG_FILE, 1);
106 print ' '.$langs->trans(
"UsingLogFileShowAllRecordOfSubrequestButIsSlower");
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
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).
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
print
Draft customers invoices.
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin= '1', $morecss= '', $textfordropdown= '')
Show information for admin users or standard users.