diff --git a/api/register.php b/api/register.php index d4e21fc7..eead3401 100644 --- a/api/register.php +++ b/api/register.php @@ -14,10 +14,7 @@ $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; - $ip = $_SERVER['REMOTE_ADDR']; - if (!filter_var($ip, FILTER_VALIDATE_IP)) { - $ip = "0.0.0.0"; - } + $ip = $utility->checkIp(); $getSettings = $database->prepare('SELECT * FROM settings WHERE active = 1'); $getSettings->execute(); diff --git a/pages/client/profile/edit.php b/pages/client/profile/edit.php index 1f13d146..ed06a5d2 100644 --- a/pages/client/profile/edit.php +++ b/pages/client/profile/edit.php @@ -247,7 +247,7 @@ function(data){
@@ -255,7 +255,7 @@ function(data){ -