mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-17 11:28:41 +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) {
|
if (!$dropped_post) {
|
||||||
|
|
||||||
|
// Check if banned
|
||||||
|
checkBan($board['uri']);
|
||||||
|
|
||||||
// Check for CAPTCHA right after opening the board so the "return" link is in there
|
// Check for CAPTCHA right after opening the board so the "return" link is in there
|
||||||
if ($config['recaptcha']) {
|
if ($config['recaptcha']) {
|
||||||
if (!isset($_POST['g-recaptcha-response']))
|
if (!isset($_POST['g-recaptcha-response']))
|
||||||
@ -418,8 +422,6 @@ if (isset($_POST['delete'])) {
|
|||||||
|
|
||||||
checkDNSBL();
|
checkDNSBL();
|
||||||
|
|
||||||
// Check if banned
|
|
||||||
checkBan($board['uri']);
|
|
||||||
|
|
||||||
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
|
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
|
||||||
check_login(false);
|
check_login(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user