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; }
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; }