New feature: "events". Will eventually replace/extend "themes".

This commit is contained in:
Michael Save 2012-03-19 02:41:06 +11:00
parent ab1db9dd8a
commit 9d58186360
4 changed files with 70 additions and 1 deletions

View file

@ -5,6 +5,7 @@
exit;
}
require 'inc/events.php';
require 'contrib/gettext/gettext.inc';
register_shutdown_function('fatal_error_handler');
@ -14,6 +15,13 @@
function loadConfig() {
global $board, $config, $__ip, $debug, $__version;
reset_events();
if(!defined('PHP_VERSION_ID')) {
$version = explode('.', PHP_VERSION);
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
}
if(!isset($_SERVER['REMOTE_ADDR']))
$_SERVER['REMOTE_ADDR'] = '0.0.0.0';