-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathlog.php
executable file
·37 lines (29 loc) · 962 Bytes
/
log.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php # POL.VirtualPol.com — Copyright (c) 2008 Javier González González <gonzo@virtualpol.com> — MIT License
if (is_numeric($_GET[1])) {
paginacion('eventos', '/log/', null, $_GET[1], null, '500');
} else {
paginacion('eventos', '/log/'.$_GET[1].'/'.$_GET[2], null, $_GET[3], null, '500');
}
echo '<br />'.$p_paginas.'
<table class="rich">
<tr>
<th colspan="2">'._('Fecha').'</th>
<th>'._('Quien').'</th>
<th>'._('Acción').'</th>
</tr>';
$result = mysql_query_old("SELECT *
FROM log
WHERE pais = '".PAIS."'".($_GET[1]=='nick'?" AND nick = '".$_GET[2]."'":"")."
ORDER BY time DESC LIMIT ".$p_limit, $link);
while($r = mysqli_fetch_array($result)){
echo '<tr>
<td align="right">'.timer($r['time']).'</td><td class="gris">'.substr($r['time'], 11, 5).'</td>
<td>'.crear_link($r['nick']).'</td><td>'.$r['accion'].'</td>
</tr>'."\n";
}
echo '</table>';
//THEME
$txt_title = _('Log de eventos');
$txt_nav = array(_('Log'));
$txt_menu = 'info';
?>