DATE_SUB(NOW(), INTERVAL 1 HOUR);', $board['uri'])); $query->bindValue(':ip', $_SERVER['REMOTE_ADDR']); $query->execute() or error(db_error($query)); $r = $query->fetch(PDO::FETCH_ASSOC); return ($r['count'] > $config['hour_max_threads']); } } function page_404() { include('404.php'); }