diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -1,19 +1,8 @@ <?php require __DIR__.'/check_setup.php'; -require __DIR__.'/controllers/base.php'; -require __DIR__.'/lib/router.php'; +require __DIR__.'/common.php'; +require __DIR__.'/core/router.php'; -if (file_exists('config.php')) require 'config.php'; - -// Auto-refresh frequency in seconds for the public board view -defined('AUTO_REFRESH_DURATION') or define('AUTO_REFRESH_DURATION', 60); - -// Custom session save path -defined('SESSION_SAVE_PATH') or define('SESSION_SAVE_PATH', ''); - -// Database filename -defined('DB_FILENAME') or define('DB_FILENAME', 'data/db.sqlite'); - -$router = new Router; +$router = new Core\Router($registry); $router->execute(); |