This commit is contained in:
Savetheinternet 2011-05-25 20:17:36 +10:00
parent 38cc13f9b9
commit 9903421235

View File

@ -25,7 +25,7 @@
if($action == 'all' || $action == 'post') if($action == 'all' || $action == 'post')
// file_put_contents($config['dir']['home'] . $config['file_index'], $this->homepage($settings)); // file_put_contents($config['dir']['home'] . $config['file_index'], $this->homepage($settings));
file_put_contents($config['dir']['home'] . 'recent.html', $this->homepage($settings)); file_write($config['dir']['home'] . 'recent.html', $this->homepage($settings));
} }
// Build news page // Build news page
@ -118,7 +118,7 @@
$query = preg_replace('/UNION ALL $/', ') AS `posts_all`', $query); $query = preg_replace('/UNION ALL $/', ') AS `posts_all`', $query);
$query = query($query) or error(db_error()); $query = query($query) or error(db_error());
$res = $query->fetch(); $res = $query->fetch();
$body .= '<li>Unqiue posters: ' . number_format($res['count']) . '</li>'; $body .= '<li>Unique posters: ' . number_format($res['count']) . '</li>';
// Active content // Active content
$query = 'SELECT SUM(`filesize`) AS `count` FROM ('; $query = 'SELECT SUM(`filesize`) AS `count` FROM (';