aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/index.php b/index.php
index aff455e..7c9cb31 100644
--- a/index.php
+++ b/index.php
@@ -5,15 +5,10 @@ session_start();
-require(__DIR__ . '/fn/w.fn.php');
-
-function class_autoloader($class)
-{
- require(__DIR__ . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower($class) . '.php');
-}
+require('app/fn/fn.php');
-require(__DIR__ . '/../vendor/autoload.php');
+require('./vendor/autoload.php');
spl_autoload_register('class_autoloader');