topical media & game development
portal-cms-login.php
<?php
include(<config.php>);
_GET['login'];
_POST['username'];
_POST['password'];
if (password = md5(query_userLogin = "SELECT *
FROM admins
WHERE admin_username = '".password."';";
query_userLogin);
userLoginResults);
if (Hour = 3600 + time(); //this adds 1 hour to the current time
setcookie("admin_Id", Hour);
header('Location: index2.php');
} else {
header('Location: index.php');
}
}
?>
(C) A. Eliëns
2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.