slepp / pastebin.ca

The new code base of the pastebin at Pastebin.ca

This URL has Read+Write access

pastebin.ca / tpl / statistics.tpl
100644 17 lines (16 sloc) 0.519 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{include file='header.tpl' title='Pastebin Statistics'}
{box title='Pastebin Statistics'}
<p>
{php}
$stmt = Database::prepare("SELECT * FROM statistics");
$stmt->execute();
$res = $stmt->fetch();
$this->assign('basestats', $res);
{/php}
<table>
<tr><th>Total Pastes:</th><td>{$basestats.total|number_format}</td></tr>
<tr><th>Expired or Expiring:</th><td>{$basestats.expiring|number_format}</td></tr>
<tr><th>Marked as Spam:</th><td>{$basestats.spam|number_format}</td></tr>
</table>
{/box}
{include file='footer.tpl'}