mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
fixed banned redirect i think (#270)
* fixed banned redirect i think my tinyboard script has been altered a lot but i think this is the fix for the wrong ban redirect. * maybe it's just this
This commit is contained in:
parent
464d3b4a04
commit
b3e16cfa0d
6
post.php
6
post.php
@ -378,6 +378,10 @@ if (isset($_POST['delete'])) {
|
||||
|
||||
|
||||
if (!$dropped_post) {
|
||||
|
||||
// Check if banned
|
||||
checkBan($board['uri']);
|
||||
|
||||
// Check for CAPTCHA right after opening the board so the "return" link is in there
|
||||
if ($config['recaptcha']) {
|
||||
if (!isset($_POST['g-recaptcha-response']))
|
||||
@ -418,8 +422,6 @@ if (isset($_POST['delete'])) {
|
||||
|
||||
checkDNSBL();
|
||||
|
||||
// Check if banned
|
||||
checkBan($board['uri']);
|
||||
|
||||
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
|
||||
check_login(false);
|
||||
|
Loading…
Reference in New Issue
Block a user