Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function login($user,$pass) {
- if(isset( $_POST["login"] )) {
- if($user == strtolower(trim($_REQUEST["username"])) && $pass == sha1($_REQUEST["password"])) {
- $_SESSION["user_online"] = true;
- $_SESSION["username"] = $_REQUEST["username"];
- }
- elseif(mysql_num_rows($result) < 1) {
- echo "Fehlerhafte Login Daten!";
- echo '<meta http-equiv="refresh" content="1; url=index.php">';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement