Advertisement
Borzyk

Untitled

Jun 28th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1.  
  2.  
  3. function cms_authorize($x,$y,$user,$pass){
  4. if (($user==$x)&&($pass==$y))
  5. echo "Witaj $x, twoje hasło to:$y";
  6.  
  7.  
  8. else
  9.  
  10. echo "nooo chyba nie to hasło albo login";
  11.  
  12.  
  13.  
  14. }
  15. require ('index.php');
  16.  
  17. $user="franek";
  18. $pass="marian";
  19. $x =$_GET["login"];
  20. $y=$_GET["pass"];
  21.  
  22. cms_authorize($x,$y,$user,$pass);
  23. require('index.php');
  24.  
  25. if(!$x || !$y)
  26. echo "WPISZ DANE!!!!";
  27. else
  28. cms_authorize($x,$y,$user,$pass);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement