Fixed setup error

Fixed db structure
This commit is contained in:
Furentes
2019-05-14 12:17:00 +02:00
parent df4ba337d8
commit eaa735da68
2 changed files with 6 additions and 5 deletions

View File

@ -22,8 +22,8 @@ if(@include(__DIR__."/config.php")) {
if(!($request_uri == "/setup")) {
$pdo = new \PDO('mysql:dbname='.DB_NAME.';host='.DB_HOST.';charset=utf8mb4', DB_USER, DB_PASS);
$auth = new \Bloggr\Auth($pdo);
}
if ($auth->isLoggedIn()) {
echo 'Eingeloggt als <b>'.$auth->getUsernameById($auth->getId()).'</b>';
if ($auth->isLoggedIn()) {
echo 'Eingeloggt als <b>'.$auth->getUsernameById($auth->getId()).'</b>';
}
}