ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAuthFrontendCredentialsHTTP.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once './Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentials.php';
6include_once './Services/Authentication/interfaces/interface.ilAuthCredentials.php';
7
15{
16 private $settings = null;
17
18
22 public function __construct()
23 {
24 parent::__construct();
25 }
26
30 public function initFromRequest()
31 {
32 $this->setUsername($_SERVER['PHP_AUTH_USER']);
33 $this->setPassword($_SERVER['PHP_AUTH_PW']);
34 }
35}
An exception for terminatinating execution or to throw for unit testing.
initFromRequest()
Init credentials from request.
Interface of auth credentials.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']