aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-11 18:37:36 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-11 18:37:36 +0100
commit45903fe3960b65d63f70188640630c895dbbe222 (patch)
treeba0b0f9ba0615cd46214eeab236031c062664d6d /index.php
parentd7f3313ff4514e38c9f53439cd1a1287e56e45f7 (diff)
downloadwcms-45903fe3960b65d63f70188640630c895dbbe222.tar.gz
wcms-45903fe3960b65d63f70188640630c895dbbe222.zip
cleaning
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');