|
|
@ -230,8 +230,15 @@ if (isset($_POST['delete'])) { |
|
|
|
if ($password != '' && $post['password'] != $password && (!$thread || $thread['password'] != $password)) |
|
|
|
error($config['error']['invalidpassword']); |
|
|
|
|
|
|
|
if ($post['time'] > time() - $config['delete_time'] && (!$thread || $thread['password'] != $password)) { |
|
|
|
error(sprintf($config['error']['delete_too_soon'], until($post['time'] + $config['delete_time']))); |
|
|
|
if ($post['thread'] == NULL) { |
|
|
|
if ($post['time'] > time() - $config['delete_time_op'] && (!$thread || $thread['password'] != $password)) { |
|
|
|
error(sprintf($config['error']['delete_too_soon'], until($post['time'] + $config['delete_time_op']))); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
if ($post['time'] > time() - $config['delete_time_reply'] && (!$thread || $thread['password'] != $password)) { |
|
|
|
error(sprintf($config['error']['delete_too_soon'], until($post['time'] + $config['delete_time_reply']))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($_POST['file'])) { |
|
|
@ -498,7 +505,6 @@ if (isset($_POST['delete'])) { |
|
|
|
$thread = false; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Check for an embed field |
|
|
|
if ($config['enable_embedding'] && isset($_POST['embed']) && !empty($_POST['embed'])) { |
|
|
|
// yep; validate it |
|
|
|