25if ( !defined (
'ALLOWED')) die(
'Forbidden');
29<
span class=
"notice"><?=_(
"100 dernières connexions")?></
span>
33 $cn->exec_sql(
"select ac_user,ac_ip,to_char(ac_date,'DD.MM.YYYY HH24:MI') as fmt_date,ac_state,ac_module from audit_connect order by ac_date desc limit 100 ");
35<TABLE CLASS=
"result" style=
"border-collapse:separate;border-spacing:2">
37<
th><?php echo _(
"Utilisateur");?> </
th>
38<
th><?php echo _(
"Date");?> </
th>
39<
th><?php echo _(
"Adresse");?> </
th>
40<
th><?php echo _(
"Module");?></
th>
41<
th><?php echo _(
"Résultat");?></
th>
50 <?php echo
h(
$r[
'ac_user']);?>
54<?php echo
$r[
'fmt_date'];?>
58<?php echo
$r[
'ac_ip'];?>
62<?php echo
$r[
'ac_module'];?>
67switch (
$r[
'ac_state'] )
70 echo
'<td style="background-color:red;color:white">';
73 echo
'<td style="background-color:green;color:white">';
79<?php echo
$r[
'ac_state']?>
th($p_string, $p_extra='', $raw='')
span($p_string, $p_extra='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
h( $row[ 'oa_description'])
contains the class for connecting to Noalyss
static echo_file($msg, $print=true)
display the file