Advertisement
Guest User

login.php

a guest
Nov 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $user="gianvito";
  4. $pass="gpass";
  5. $page_to="https://ghome.cloud/";
  6. if(isset($_POST['user']) && isset($_POST['pass']))
  7. {
  8. if( $_POST['user']==$user && $_POST['pass']==$pass)
  9. {
  10. $_SESSION['isLogged']="true";
  11. header("Location:".$page_to);
  12. }
  13. else
  14. {
  15. header("Location:index.php?error_login=1");
  16. }
  17. }
  18. else
  19. {
  20. header("Location:index.php?error_login=1");
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement