W usługach, w których PHP realizowane jest jako moduł CGI nie ma możliwości uwierzytelniania HTTP. W celu rozwiązania tego problemu należy postępować zgodnie z poniższymi krokami:
RewriteEngine onRewriteCond %{HTTP:Authorization} ^(.*)RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
<?phpif ($_SERVER["HTTP_AUTHORIZATION"] != "") { $ha = base64_decode( substr($_SERVER["HTTP_AUTHORIZATION"],6) ); list($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"]) = explode(":", $ha); unset($ha);}if (!isset($_SERVER["PHP_AUTH_USER"])) { header("WWW-Authenticate: Basic realm="My Realm""); header("HTTP/1.0 401 Unauthorized"); echo "Tekst po wciśnięciu anuluj"; exit;}?>
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add st@forpsi.pl to your trusted senders list in your email software.
A code was sent to the recovery email address. Please provide the 6-digit code.
A code can be retrieved from your authentication app. Please provide the 6-digit code.
An email was sent to your recovery email address. If you need further assistance, please contact your system admin.