Added to base model

This commit is contained in:
2023-02-27 07:31:26 -05:00
parent b6abcb1586
commit 0be3d41b77
6 changed files with 231 additions and 29 deletions
-16
View File
@@ -102,22 +102,6 @@ class userAccess extends baseModel
return $tk;
}
private function getIPAddress_old()
{
//whether ip is from the share internet
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
}
//whether ip is from the proxy
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
//whether ip is from the remote address
else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
}
/*