mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
optimization: we don`t need bans.php most of the time and bans.php has big dependencies
This commit is contained in:
parent
cbbebcd20c
commit
34eeaccea9
@ -18,7 +18,6 @@ require_once 'inc/template.php';
|
|||||||
require_once 'inc/database.php';
|
require_once 'inc/database.php';
|
||||||
require_once 'inc/events.php';
|
require_once 'inc/events.php';
|
||||||
require_once 'inc/api.php';
|
require_once 'inc/api.php';
|
||||||
require_once 'inc/bans.php';
|
|
||||||
if (!extension_loaded('gettext')) {
|
if (!extension_loaded('gettext')) {
|
||||||
require_once 'inc/lib/gettext/gettext.inc';
|
require_once 'inc/lib/gettext/gettext.inc';
|
||||||
}
|
}
|
||||||
|
7
mod.php
7
mod.php
@ -4,9 +4,10 @@
|
|||||||
* Copyright (c) 2010-2014 Tinyboard Development Group
|
* Copyright (c) 2010-2014 Tinyboard Development Group
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require 'inc/functions.php';
|
require_once 'inc/functions.php';
|
||||||
require 'inc/mod/pages.php';
|
require_once 'inc/bans.php';
|
||||||
require 'inc/mod/auth.php';
|
require_once 'inc/mod/pages.php';
|
||||||
|
require_once 'inc/mod/auth.php';
|
||||||
|
|
||||||
if ($config['debug'])
|
if ($config['debug'])
|
||||||
$parse_start_time = microtime(true);
|
$parse_start_time = microtime(true);
|
||||||
|
5
post.php
5
post.php
@ -3,8 +3,9 @@
|
|||||||
* Copyright (c) 2010-2014 Tinyboard Development Group
|
* Copyright (c) 2010-2014 Tinyboard Development Group
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require 'inc/functions.php';
|
require_once 'inc/functions.php';
|
||||||
require 'inc/anti-bot.php';
|
require_once 'inc/anti-bot.php';
|
||||||
|
require_once 'inc/bans.php';
|
||||||
|
|
||||||
// Fix for magic quotes
|
// Fix for magic quotes
|
||||||
if (get_magic_quotes_gpc()) {
|
if (get_magic_quotes_gpc()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user