summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/index.php b/index.php
index 8ab3dcba..bd691c10 100644
--- a/index.php
+++ b/index.php
@@ -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();