From 45903fe3960b65d63f70188640630c895dbbe222 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 18:37:36 +0100 Subject: cleaning --- index.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'index.php') 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'); -- cgit v1.2.3