Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 426 Bytes
require 'includes/header.php';
update_activity('shuffle', 1);
$stmt = $link->db_exec('SELECT id FROM topics WHERE deleted = 0 AND stealth_ban = 0 AND locked = 0 AND ((UNIX_TIMESTAMP()-last_post)<%1) ORDER BY RAND() LIMIT 1', NECRO_BUMP_TIME);
list($shuffle_topic_id) = $link->fetch_row($stmt);
redirect('There you go — a semi-random topic!', 'topic/'.$shuffle_topic_id);
require 'includes/footer.php';
You can’t perform that action at this time.