Kaynağa Gözat

post.php: load config earlier

tags/vichan-4.4.98
czaks 10 yıl önce
ebeveyn
işleme
8e9db69375
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +5
    -5
      post.php

+ 5
- 5
post.php Dosyayı Görüntüle

@@ -149,6 +149,10 @@ if (isset($_POST['delete'])) {
} elseif (isset($_POST['post'])) {
if (!isset($_POST['body'], $_POST['board']))
error($config['error']['bot']);

// Check if board exists
if (!openBoard($post['board']))
error($config['error']['noboard']);
if (!isset($_POST['name']))
$_POST['name'] = $config['anonymous'];
@@ -172,7 +176,7 @@ if (isset($_POST['delete'])) {
$post['thread'] = round($_POST['quick-reply']);
} else
$post['op'] = true;
if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) ||
(!$post['op'] && $_POST['post'] == $config['button_reply'])))
error($config['error']['bot']);
@@ -184,10 +188,6 @@ if (isset($_POST['delete'])) {
checkDNSBL();
// Check if board exists
if (!openBoard($post['board']))
error($config['error']['noboard']);
// Check if banned
checkBan($board['uri']);


Yükleniyor…
İptal
Kaydet