uid < 0 is now pseudo "system" user account
This commit is contained in:
parent
e09dd8782e
commit
6657b13067
4
mod.php
4
mod.php
@ -375,7 +375,7 @@
|
|||||||
$boards[$_b['id']] = $_b['uri'];
|
$boards[$_b['id']] = $_b['uri'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = prepare("SELECT `mods`.`id`,`username`,`ip`,`board`,`time`,`text` FROM `modlogs` LEFT JOIN `mods` ON `mod` = `mods`.`id` ORDER BY `time` DESC LIMIT :offset, :limit");
|
$query = prepare("SELECT `mod` as `id`, `username`, `ip`, `board`, `time`, `text` FROM `modlogs` LEFT JOIN `mods` ON `mod` = `mods`.`id` ORDER BY `time` DESC LIMIT :offset, :limit");
|
||||||
$query->bindValue(':limit', $config['mod']['modlog_page'], PDO::PARAM_INT);
|
$query->bindValue(':limit', $config['mod']['modlog_page'], PDO::PARAM_INT);
|
||||||
$query->bindValue(':offset', ($page - 1) * $config['mod']['modlog_page'], PDO::PARAM_INT);
|
$query->bindValue(':offset', ($page - 1) * $config['mod']['modlog_page'], PDO::PARAM_INT);
|
||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
@ -431,7 +431,7 @@
|
|||||||
'<td class="minimal">' .
|
'<td class="minimal">' .
|
||||||
($log['username'] ?
|
($log['username'] ?
|
||||||
'<a href="?/new_PM/' . $log['id'] . '">' . $log['username'] . '</a>'
|
'<a href="?/new_PM/' . $log['id'] . '">' . $log['username'] . '</a>'
|
||||||
: '<em>deleted?</em>') .
|
: '<em>' . ($log['id'] < 0 ? 'system' : 'deleted?') . '</em>') .
|
||||||
'</td>' .
|
'</td>' .
|
||||||
'<td class="minimal"><a href="?/IP/' . $log['ip'] . '">' . $log['ip'] . '</a></td>' .
|
'<td class="minimal"><a href="?/IP/' . $log['ip'] . '">' . $log['ip'] . '</a></td>' .
|
||||||
'<td class="minimal">' . ago($log['time']) . '</td>' .
|
'<td class="minimal">' . ago($log['time']) . '</td>' .
|
||||||
|
Loading…
Reference in New Issue
Block a user