Revision: 18298
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 27, 2009 19:06 by daveismyname
Initial Code
function logged_in() { if($_SESSION['authorized'] == true) { return true; } else { return false; } } function login_required() { if(logged_in()) { return true; } else { header('Location: login.php'); } }
Initial URL
Initial Description
2 login functions that check if a user is logged in by checking is a session is equal to true that would have been set on login. If not logged in the redirect to login.php
Initial Title
Login checker Functions
Initial Tags
login
Initial Language
PHP