25 require
'../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/agenda.lib.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/class/events.class.php';
36 $langs->loadLangs(array(
"users",
"admin",
"other"));
38 $action =
GETPOST(
'action',
'aZ09');
39 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'auditeventslist';
40 $optioncss =
GETPOST(
'optioncss',
'aZ');
43 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
44 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
45 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
47 if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) { $page = 0; }
48 $offset = $limit * $page;
49 $pageprev = $page - 1;
50 $pagenext = $page + 1;
52 $securityevent =
new Events($db);
53 $eventstolog = $securityevent->eventstolog;
60 if ($action ==
"save")
66 foreach ($eventstolog as $key => $arr)
68 $param =
'MAIN_LOGEVENTS_'.$arr[
'id'];
83 $form =
new Form($db);
85 $varpage = empty($contextpage) ?
$_SERVER[
"PHP_SELF"] : $contextpage;
87 $selectedfields .= $form->showCheckAddButtons(
'checkforselect', 1);
89 $wikihelp =
'EN:Setup_Security|FR:Paramétrage_Sécurité|ES:Configuración_Seguridad';
95 print '<span class="opacitymedium">'.$langs->trans(
"LogEventDesc", $langs->transnoentitiesnoconv(
"AdminTools"), $langs->transnoentitiesnoconv(
"Audit")).
"</span><br>\n";
99 print '<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
100 print '<input type="hidden" name="token" value="'.newToken().
'">';
101 print '<input type="hidden" name="action" value="save">';
107 print '<table class="noborder" width="100%">';
108 print "<tr class=\"liste_titre\">";
113 foreach ($eventstolog as $key => $arr)
117 print '<tr class="oddeven">';
118 print '<td>'.$arr[
'id'].
'</td>';
119 print '<td class="center">';
120 $key =
'MAIN_LOGEVENTS_'.$arr[
'id'];
121 $value = empty($conf->global->$key) ?
'' : $conf->global->$key;
122 print '<input class="oddeven checkforselect" type="checkbox" name="'.$key.
'" value="1"'.($value ?
' checked' :
'').
'>';
123 print '</td></tr>'.
"\n";
130 print '<div class="center">';
131 print '<input type="submit" name="save" class="button button-save" value="'.$langs->trans(
"Save").
'">';
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).
if(GETPOST('button_removefilter_x', 'alpha')||GETPOST('button_removefilter.x', 'alpha')||GETPOST('button_removefilter', 'alpha')) if(GETPOST('button_search_x', 'alpha')||GETPOST('button_search.x', 'alpha')||GETPOST('button_search', 'alpha')) if($action=="save"&&empty($cancel)) $wikihelp
View.
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
dolibarr_del_const($db, $name, $entity=1)
Effacement d'une constante dans la base de donnees.
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 ...
security_prepare_head()
Prepare array with list of tabs.
print $_SERVER["PHP_SELF"]
Edit parameters.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip= '', $forcenowrapcolumntitle=0)
Get title line of an array.