mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
Check local ip
This commit is contained in:
parent
fd22806e51
commit
54a522f7e4
2 changed files with 13 additions and 4 deletions
|
|
@ -219,11 +219,18 @@ class Http
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $sValueToCheck = ''
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function IsLocalhost()
|
||||
public function IsLocalhost($sValueToCheck = '')
|
||||
{
|
||||
return $this->CheckLocalhost($this->GetServer('REMOTE_ADDR', ''));
|
||||
if (empty($sValueToCheck))
|
||||
{
|
||||
$sValueToCheck = $this->GetServer('REMOTE_ADDR', '');
|
||||
}
|
||||
|
||||
return $this->CheckLocalhost($sValueToCheck);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue