|
|
@ -117,13 +117,13 @@ BODY;
|
|
|
|
$stmt->execute(array($_SERVER['REMOTE_USER']));
|
|
|
|
$stmt->execute(array($_SERVER['REMOTE_USER']));
|
|
|
|
$user = $stmt->fetch();
|
|
|
|
$user = $stmt->fetch();
|
|
|
|
if ($user) return $user;
|
|
|
|
if ($user) return $user;
|
|
|
|
if ($_SERVER['SSL_CLIENT_S_DN_EMAIL']) {
|
|
|
|
if ($_SERVER['SSL_CLIENT_S_DN_Email']) {
|
|
|
|
$stmt->execute(array($_SERVER['SSL_CLIENT_S_DN_EMAIL']));
|
|
|
|
$stmt->execute(array($_SERVER['SSL_CLIENT_S_DN_Email']));
|
|
|
|
$user = $stmt->fetch();
|
|
|
|
$user = $stmt->fetch();
|
|
|
|
if ($user) return $user;
|
|
|
|
if ($user) return $user;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$d=0;
|
|
|
|
$d=0;
|
|
|
|
while ($email=$_SERVER["SSL_CLIENT_S_DN_EMAIL_$d"]) {
|
|
|
|
while ($email=$_SERVER["SSL_CLIENT_S_DN_Email_$d"]) {
|
|
|
|
$stmt->execute(array($email));
|
|
|
|
$stmt->execute(array($email));
|
|
|
|
$user = $stmt->fetch();
|
|
|
|
$user = $stmt->fetch();
|
|
|
|
if ($user) return $user;
|
|
|
|
if ($user) return $user;
|
|
|
|