This commit is contained in:
2019-03-03 00:05:08 +01:00
parent 401cb920d2
commit c2e310e5d9
8 changed files with 108 additions and 41 deletions

View File

@ -4,6 +4,9 @@ use App\Router;
use App\Functions;
use App\Tags\Tag;
use App\Controller;
use App\DB\Author;
session_start();
error_reporting(E_ALL);
ini_set('display_errors', 'On');
@ -11,6 +14,8 @@ ini_set('display_errors', 'On');
/** @var Composer\Autoload\ClassLoader $loader */
$loader = require "../../vendor/autoload.php";
$_SESSION["author"] = Author::list(true, 1)[0];
define("DIR", str_replace("/php", "", __DIR__));
//renvoie vers le fichier css si il est demandé