mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-14 02:29:27 +00:00
check_user() hinzugefügt
This commit is contained in:
@@ -921,4 +921,25 @@ function setSprache($sprache)
|
||||
$_SESSION['sprache']=$sprache;
|
||||
setcookie('sprache',$sprache,time()+60*60*24*30,'/');
|
||||
}
|
||||
|
||||
|
||||
function check_user($username, $passwort)
|
||||
{
|
||||
if($username=='')
|
||||
{
|
||||
$user = get_uid();
|
||||
if($user=='')
|
||||
return false;
|
||||
return $user;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!checkldapuser($username,$passwort))
|
||||
return false;
|
||||
else
|
||||
return $username;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user