Fix fatal errors on board create/DNSBL bypass

This commit is contained in:
8chan 2015-04-25 18:06:29 -07:00
parent 691bc1c3fa
commit 79168cc4e1
2 changed files with 0 additions and 2 deletions

View File

@ -5,7 +5,6 @@ include "inc/functions.php";
checkBan('*'); checkBan('*');
if (!isset($_POST['uri'], $_POST['title'], $_POST['subtitle'], $_POST['username'], $_POST['password'])) { if (!isset($_POST['uri'], $_POST['title'], $_POST['subtitle'], $_POST['username'], $_POST['password'])) {
include '8chan-captcha/functions.php';
$password = base64_encode(openssl_random_pseudo_bytes(9)); $password = base64_encode(openssl_random_pseudo_bytes(9));

View File

@ -1,6 +1,5 @@
<?php <?php
include 'inc/functions.php'; include 'inc/functions.php';
include '8chan-captcha/functions.php';
if ($_SERVER['REQUEST_METHOD'] === 'GET') { if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$captcha = generate_captcha($config['captcha']['extra']); $captcha = generate_captcha($config['captcha']['extra']);