Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Problem ze skryptem
-Micahll-
post
Post #1





Goście







Dlaczego jak raz wpisze źle hasło, to już ciągle wywala mnie na blad.html questionmark.gif
  1. <?php
  2. if(!($PHP_AUTH_USER)):
  3.  Header("WWW-authenticate: basic realm=Restricted Area");
  4.  Header("HTTP/1.0 401 Unauthorized");
  5.  echo "";
  6.  exit;
  7. else:
  8. if (($PHP_AUTH_USER)!=("login")): 
  9. echo "<meta http-equiv="refresh"content="0; url=blad.html">"; 
  10. exit; 
  11. endif;
  12. if (($PHP_AUTH_PW)!=("password")): 
  13. echo "<meta http-equiv="refresh"content="0; url=blad.html">"; 
  14. exit; 
  15. endif;
  16. endif;
  17. ?>
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 04:10