예제 #1
0
 private static function tryFingerprint()
 {
     static $fp = null;
     if ($fp == NULL) {
         $fp = array();
         $fp['IPaddress'] = UL_SESSION_CHECK_IP ? ulUtils::GetRemoteIP(false) : '';
         $fp['hostDomain'] = !UL_SESSION_CHECK_REFERER || empty($_SERVER['HTTP_REFERER']) ? '' : parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
         $fp['userAgent'] = empty($_SERVER['HTTP_USER_AGENT']) ? '' : $_SERVER['HTTP_USER_AGENT'];
     }
     return $fp;
 }
예제 #2
0
 public function DeleteUser($uid)
 {
     // Needed for logging
     $username = self::Username($uid);
     if ($username === false) {
         return false;
     }
     // Delete user and logout
     $ret = $this->Backend->DeleteLogin($uid);
     if ($ret === true) {
         ulLog::Log('delete login', $username, ulUtils::GetRemoteIP(false));
     }
     return $ret === true;
 }