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 
5 include_once './Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentials.php';
6 include_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 }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Interface of auth credentials.
setPassword($a_password)
Set password.
initFromRequest()
Init credentials from request.