diff options
| author | Jules Laplace <carbon@melanarchy.org> | 2013-09-12 13:30:42 -0500 |
|---|---|---|
| committer | Jules Laplace <carbon@melanarchy.org> | 2013-09-12 13:30:42 -0500 |
| commit | 8c2ef23fc75a42f9ca59676be5f9d321b20dfb80 (patch) | |
| tree | e231f4a12367fe52d6cc55722c8f3d4de65956cc /cgi-bin/bury | |
| parent | 63b0cf5fd4a637b0dba3b823c0c028d5087134fb (diff) | |
500
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"); |
