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!
'; }?>
@@ -55,7 +57,7 @@ $activated = $_SESSION['activated'];
0){ + if($userid > 0){ // you get the drift, if the user is logged in print this ?>
@@ -69,7 +71,7 @@ $activated = $_SESSION['activated'];
@@ -86,7 +88,7 @@ $activated = $_SESSION['activated']; } ?> 0){ + if($userid > 0){ //same ?>
@@ -97,16 +99,16 @@ $activated = $_SESSION['activated'];
  • Show the Activated Area
  • '; } -if ($activated == 1) { +if ($activated == 1) { //if enabled, than activate the button & give it a real function. echo ''; }?>
    @@ -123,7 +125,7 @@ if ($activated == 1) { } ?> 0){ + if($userid > 0){//yeah, you guessed. same as above ?>
    @@ -138,7 +140,7 @@ if ($activated == 1) {
    @@ -156,12 +158,13 @@ if ($activated == 1) { } ?> '; } -if ($isadmin == 1) { +if ($isadmin == 1) { //if admin rights are granted, print a admin area button echo ''; } +//footer and stuff ?>