mam skrypt, który chroni stronę www hasłem (to ten poniższy) i pytanie: gdzie go mam wstawić aby to działało?
<?php
if(!($PHP_AUTH_USER)):
Header("WWW-authenticate: basic realm=Restricted Area"); Header("HTTP/1.0 401 Unauthorized"); else:
if (($PHP_AUTH_USER)!=("login")):
echo "<meta http-equiv="refresh
"content="0; url
=blad
.html
">"; endif;
if (($PHP_AUTH_PW)!=("password")):
echo "<meta http-equiv="refresh
"content="0; url
=blad
.html
">"; endif;
endif;
?>