1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

fix require's

This commit is contained in:
h00j 2021-02-13 21:30:27 +01:00
parent e405a6c676
commit 7d855c5316
4 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,5 @@
<?php
include 'inc/functions.php';
include 'inc/mod/pages.php';
require 'inc/bootstrap.php';
if (!isset($_GET['board']) || !preg_match("/{$config['board_regex']}/u", $_GET['board'])) {
http_response_code(400);

View File

@ -1,5 +1,5 @@
<?php
include 'inc/functions.php';
require 'inc/bootstrap.php';
$global = isset($_GET['global']);
$post = (isset($_GET['post']) ? $_GET['post'] : false);
$board = (isset($_GET['board']) ? $_GET['board'] : false);

View File

@ -1,5 +1,5 @@
<?php
require 'inc/functions.php';
require 'inc/bootstrap.php';
if (!$config['search']['enable']) {
die(_("Post search is disabled"));

View File

@ -1,5 +1,5 @@
<?php
require_once("inc/functions.php");
require_once("inc/bootstrap.php");
require_once("inc/route.php");
require_once("inc/controller.php");