From 8bbc669c86a8790fdb456e5a945179d9163c0065 Mon Sep 17 00:00:00 2001 From: Marc Kemper Date: Thu, 6 Apr 2017 17:17:16 +0200 Subject: [PATCH] Krasses xUpdate --- index.php | 20 +++++++++----------- logout.php | 6 +++--- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/index.php b/index.php index 02f4511..85d750f 100644 --- a/index.php +++ b/index.php @@ -5,17 +5,6 @@ Nicht eingeloggt!'; -// echo '
' . -// 'Username:' . -// 'Passwort:' . -// '' . -// '
'; -// return; -// } - session_start(); if (!isset($_SESSION['id'])){ echo '

Nicht eingeloggt!

'; @@ -29,6 +18,15 @@ if (!isset($_SESSION['id'])){ return; } +if (isset($_SESSION['id'])){ + echo '

Hier klicken zum Ausloggen!

'; + echo '
' . + '
' . + '' . + '
' . + '
'; +} + $cockDatabase = "dulow"; $host = "localhost"; $user = "root"; diff --git a/logout.php b/logout.php index 5ea0e56..c273422 100644 --- a/logout.php +++ b/logout.php @@ -1,6 +1,6 @@ +header('Location: /'); +exit(); +?>