aboutsummaryrefslogtreecommitdiff
path: root/cgi/manage.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/manage.py')
-rw-r--r--cgi/manage.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi/manage.py b/cgi/manage.py
index 0c95268..86d8ffa 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -158,6 +158,10 @@ def manage(self, path_split):
threads = FetchAll("SELECT * FROM `posts` WHERE boardid = %s AND parentid = 0 ORDER BY `bumped` DESC" % board["id"])
template_filename = "mod.html"
template_values = {"mode": 2, "dir": board["dir"], "threads": threads}
+ elif path_split[2] == "recent":
+ posts = FetchAll("SELECT * FROM `posts` WHERE parentid > 0 ORDER BY `timestamp` DESC LIMIT 50")
+ template_filename = "recent.html"
+ template_values = {"posts": posts}
elif path_split[2] == 'staff':
if staff_account['rights'] != '0':
return