diff --git a/start.php b/start.php
index de64402..bd3a32b 100644
--- a/start.php
+++ b/start.php
@@ -1,8 +1,10 @@
@@ -28,23 +30,23 @@ $activated = $_SESSION['activated'];
Git
0){
+ if($userid > 0){ //if the user is logged in (has a userid above 0) then print this:
echo 'Hi '.$_SESSION['username'].'';
- }else{
+ }else{ //if there isn't a user session print a register button instead
echo 'Register';
}
?>
0){
+ if($userid > 0){ //if the user is logged in (has a userid above 0) print a logout button
echo 'Sign Out';
- }else{
+ }else{ //if there isn't a user session print a login button
echo 'Sign In';
}
?>
Your account isnt activated yet!
';
}?>