0){ //if the user is logged in (has a userid above 0) print a logout button
echo 'Sign Out';
}else{ //if there isn't a user session print a login button
echo 'Sign In';
}
?>
Your account isnt activated yet! ';
}?>
loginpagefoo POC (PHP & MySQL)
Just a crappy POC written in PHP using PHP, HTML & MySQL.
0){ // you get the drift, if the user is logged in print this
?>
Profile
Your Profile
Register
If you don't have a user already.
0){ //same
?>
Already activated?
Show the Activated Area
';
}
if ($activated == 1) { //if enabled, than activate the button & give it a real function.
echo '';
}?>
Login
If you want to access your profile
0){//yeah, you guessed. same as above
?>
Reset Password
The only way to change your password right now.. :/ Needs a valid Mail Address.