summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-09 23:21:23 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-09 23:21:23 -0400
commit7749b8ed569f6d27b0bb2ed4c2040e8b61ed4422 (patch)
treeee101992e87d740bdf0362e35ea040c866986f5a /index.php
parent7bd4697dfca41a21f5857f83d6b29108fafb9a1e (diff)
Automatic actions
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();