From 45903fe3960b65d63f70188640630c895dbbe222 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 11 Nov 2018 18:37:36 +0100 Subject: cleaning --- app/fn/fn.php | 43 ++----------------------------------------- 1 file changed, 2 insertions(+), 41 deletions(-) (limited to 'app/fn') diff --git a/app/fn/fn.php b/app/fn/fn.php index 8bfdee8..029e9d3 100644 --- a/app/fn/fn.php +++ b/app/fn/fn.php @@ -1,52 +1,13 @@ getMessage()); - } - return $bdd; -} -function secure() +function class_autoloader($class) { - if (!isset($_SESSION['id'])) { - header("location: ./"); - } + require('.'. DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower($class) . '.php'); } -function head($title) -{ - ?> - - - - - <?= $title ?> - -