Automatically check for Tinyboard updates

This commit is contained in:
Savetheinternet 2011-05-21 15:21:45 +10:00
parent 568761f99c
commit bdb05b16d8
4 changed files with 91 additions and 7 deletions

View file

@ -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']))