38 dol_syslog(
"functions_http::check_user_password_http _SERVER[REMOTE_USER]=".(empty($_SERVER[
"REMOTE_USER"]) ?
'' : $_SERVER[
"REMOTE_USER"]));
41 if (!empty($_SERVER[
"REMOTE_USER"])) {
42 $login = $_SERVER[
"REMOTE_USER"];
44 require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
82 $encoded_basic_auth = substr($value, 6);
83 $decoded_basic_auth = base64_decode($encoded_basic_auth);
84 $credentials_basic_auth = explode(
':', $decoded_basic_auth);
87 'username'=> $credentials_basic_auth[0],
88 'password' => $credentials_basic_auth[1]
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
check_user_password_http($usertotest, $passwordtotest, $entitytotest)
Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_login...
decodeHttpBasicAuth($value)
Decode the value found into the Authorization HTTP header.