Jump to content
php.lv forumi

Aizsragāt scriptu ar paroli


autly

Recommended Posts

Ieliec config failaa:

if ($_SERVER['PHP_AUTH_USER'] != 'superuser') {
header('WWW-Authenticate: Basic realm="Usr/Psw"');
header('HTTP/1.0 401 Unauthorized');
echo 'unauth';
exit;
}

Edited by MC_
Link to comment
Share on other sites

×
×
  • Create New...