forked from leftypol/leftypol
Automatically check for Tinyboard updates
This commit is contained in:
parent
568761f99c
commit
bdb05b16d8
4 changed files with 91 additions and 7 deletions
|
@ -9,7 +9,7 @@
|
|||
loadConfig();
|
||||
|
||||
function loadConfig() {
|
||||
global $board, $config, $__ip;
|
||||
global $board, $config, $__ip, $debug;
|
||||
|
||||
require 'config.php';
|
||||
if (file_exists('inc/instance-config.php')) {
|
||||
|
@ -19,6 +19,12 @@
|
|||
require $board['dir'] . '/config.php';
|
||||
}
|
||||
|
||||
if($config['debug']) {
|
||||
if(!isset($debug))
|
||||
$debug = Array('sql');
|
||||
$debug['start'] = time();
|
||||
}
|
||||
|
||||
if(!isset($config['url_stylesheet']))
|
||||
$config['url_stylesheet'] = $config['root'] . 'style.css';
|
||||
if(!isset($config['url_javascript']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue