commented activatedarea.php

This commit is contained in:
Thies Mueller 2021-01-12 17:38:49 +01:00
parent 2b67675b51
commit 8d2ffcde8a

View File

@ -7,20 +7,21 @@
<body> <body>
<script src="ressources/js/bootstrap.min.js"></script> <script src="ressources/js/bootstrap.min.js"></script>
<?php <?php
session_start(); session_start(); //check for a session
if($_SESSION['activated'] == 0) { if($_SESSION['activated'] == 0) { //check if the account is activated, if not, die with an error
die ("Not activated yet"); die ("Not activated yet");
} }
echo "heres the fun world"; echo "heres the fun world"; //just a placeholder
?> ?>
<br /> <br /> <br /> <br />
<div class="jumbotron jumbotron-fluid"> <div class="jumbotron jumbotron-fluid">
<div class="container"> <div class="container">
<?php <?php
echo "Hi ".$_SESSION['username']."!"; echo "Hi ".$_SESSION['username']."!";
if(isset($_GET['notimplemented'])) { if(isset($_GET['notimplemented'])) { //if "?notimplemented=1" is received, print the following error code:
echo '<div class="alert alert-danger" role="alert">Feature not yet implemented!</div>'; echo '<div class="alert alert-danger" role="alert">Feature not yet implemented!</div>';
} }
//some html links to other pages
?> ?>
<br /><br /> <br /><br />
<a href="changeprofilepicture.php"><button class="btn btn-primary">Change Profile Picture</button> <a href="changeprofilepicture.php"><button class="btn btn-primary">Change Profile Picture</button>