Example #1
0
 private function sendAuthRequest($msg = 'Для входа на страницу администрирования нужно авторизоваться')
 {
     header('WWW-Authenticate: Basic realm="' . Route::getRealm() . '"');
     header('HTTP/1.0 401 Unauthorized');
     View::renderClosed($msg);
 }