some more design foo

This commit is contained in:
Thies Mueller 2021-01-08 18:09:03 +01:00
parent fabb233496
commit 092c7010c1
2 changed files with 4 additions and 27 deletions

View File

@ -58,10 +58,8 @@ echo "</tr>";
<br>
<br/>
<b>You can logout <a href="logout.php">here</a></b>
<br/>
<br/>
<a href="logout.php"><button>LOGOUT</button></a>
<a href="logout.php"><button class="btn btn-danger">LOGOUT</button></a>
</body>
</html>

View File

@ -7,36 +7,15 @@
<script src="ressources/js/bootstrap.min.js"></script>
<?php
session_start();
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
if(!isset($_SESSION['userid'])) {
die('Please <a href="login.php">login</a>');
}
/*
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
$useremail = $_SESSION['email'];
$usergn = $_SESSION['givenName'];
$userln = $_SESSION['lastName'];
echo "Hi ".$username;
echo "<br/>";
echo "Your User-ID is: ".$userid;
echo "<br/>";
echo "Your full name is: ".$usergn." ".$userln;
echo "<br/>";
echo "And your email is: ".$useremail;
echo "<br/>";
echo 'You can logout <a href="logout.php">here</a>';
echo "<br/>";
echo "<br/>";
echo "This is the end now!";
echo "<br />";
echo "goodbye";
*/
echo "Hi ".$username."!";
?>
<br><br>
<a href="profile.php"><button class="btn btn-primary">Profile</button></a>
<br>
<br><br><br><br>
<a href="logout.php"><button class="btn btn-danger">LOGOUT</button></a>
</body>
</html>