Browse Source

logic for preventing deletion of old posts

main
RealAngeleno 6 months ago
committed by -
parent
commit
cf5ed3d08a
  1. 4
      post.php

4
post.php

@ -230,6 +230,10 @@ if (isset($_POST['delete'])) {
$thread = $thread_query->fetch(PDO::FETCH_ASSOC);
}
if ($post['time'] < time() - $config['max_delete_time'] && $config['max_delete_time'] != false) {
error(sprintf($config['error']['delete_too_late'], until($post['time'] + $config['max_delete_time'])));
}
if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password))
error($config['error']['invalidpassword']);

Loading…
Cancel
Save