diff options
Diffstat (limited to 'cgi-bin/bury')
| -rwxr-xr-x | cgi-bin/bury | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/cgi-bin/bury b/cgi-bin/bury index 9aa43b8..07fcd43 100755 --- a/cgi-bin/bury +++ b/cgi-bin/bury @@ -7,16 +7,20 @@ use localbucky; $dbh = DBI->connect ($dsn); -our ($USER, $lastlog) = checkin(); -logout() unless ($USER != -1); +#our ($USER, $lastlog) = checkin(); +#logout() unless ($USER != -1); + +$input->{id} ||= $input->{object_from_uri} if defined($input->{object_from_uri}); +if (exists($input->{id}) && $input->{id} > 0) + { $id = $input->{id}; } +else + { error("No post specified."); } +$id = $input->{id}; -my $id = $input->{id}; if (get_thread($id) == -1) { error("no such thread"); } my $changed_date = get_most_recent_change($id); if ($changed_date > 0) { - print $id . "\n"; - print $changed_date . "\n"; update_thread_lastmodified($id, $changed_date); } redirect("$BUCKY/index"); |
