Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!empty($_POST['submit']))
- {
- if(!empty($_POST['username']) && !empty($_POST['password']))
- {
- $password = md5($_POST['password']);
- $sql = mysql_query("SELECT * FROM login WHERE username = '".dRead($_POST['username'])."' AND password = '".dRead($password)."' LIMIT 1");
- if(!mysql_fetch_array($sql))
- {
- echo mysql_errno.": ".mysql_error();
- }
- else
- {
- echo "bauch";
- //setcookie("loggedin", 1, time()+3600);
- //header("Location: /admin/index.php");
- }
- }
- else
- {
- header("Location: login.php");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement