if (isset($_GET['name']) andisset($_GET['password'])) { if ($_GET['name'] == $_GET['password']) echo'Your password can not be your name!'; elseif (sha1($_GET['name']) === sha1($_GET['password'])) die('welcome'); else echo'Invalid password.'; } else echo'Login first!'; ?>
if (isset($_GET['name']) andisset($_GET['password'])) { if ($_GET['name'] == $_GET['password']) echo'Your password can not be your name!'; elseif(is_array($_GET['name']) || is_array($_GET['password'])) die('There is no way you can sneak me, young man!'); elseif (sha1($_GET['name']) === sha1($_GET['password'])){ die('yes'); } else echo'Invalid password.'; }else echo'Login first!'; ?>