From 0e618a5c457880ab24c3184995128904e29b5377 Mon Sep 17 00:00:00 2001
From: 4giedrius <4giedrius@gmail.com>
Date: Thu, 23 Jul 2015 16:31:00 +0300
Subject: [PATCH 02/15] Pagination 'Previous' and 'Next' arrows fixed. Fixes
#354
---
src/bb-themes/huraga/html/partial_pagination.phtml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bb-themes/huraga/html/partial_pagination.phtml b/src/bb-themes/huraga/html/partial_pagination.phtml
index 50430ed6c..4c37084f1 100644
--- a/src/bb-themes/huraga/html/partial_pagination.phtml
+++ b/src/bb-themes/huraga/html/partial_pagination.phtml
@@ -4,11 +4,11 @@
From 719503ec6ee7fe735b118295af206ee57c4e68cd Mon Sep 17 00:00:00 2001
From: Vaidas Lungis
Date: Wed, 29 Jul 2015 13:46:21 +0300
Subject: [PATCH 03/15] fix input fields overlap in new domain order
configuration page
---
.../Servicedomain/html_admin/mod_servicedomain_order.phtml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.phtml b/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.phtml
index 6a2459cdc..459fb5dc5 100644
--- a/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.phtml
+++ b/src/bb-modules/Servicedomain/html_admin/mod_servicedomain_order.phtml
@@ -9,7 +9,7 @@
-
+
- {{ mf.selectboxtld('config[register_tld]', guest.serviceDomain_tlds({"allow_register":1})) }} @@ -21,7 +21,7 @@
- {{ mf.selectboxtld('config[transfer_tld]', guest.serviceDomain_tlds({"allow_transfer":1})) }} From 2382aca08bb7e0b8ef57d757dcb817c2d22194a1 Mon Sep 17 00:00:00 2001 From: 4giedrius <4giedrius@gmail.com> Date: Wed, 29 Jul 2015 16:47:32 +0300 Subject: [PATCH 04/15] Making sure that only single IP would be returned. HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP might return multiple IPs separated by comma --- src/bb-modules/Servicelicense/Server.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/bb-modules/Servicelicense/Server.php b/src/bb-modules/Servicelicense/Server.php index 28f2f2bd1..dcc2fc1f5 100644 --- a/src/bb-modules/Servicelicense/Server.php +++ b/src/bb-modules/Servicelicense/Server.php @@ -77,15 +77,20 @@ class Server implements \Box\InjectionAwareInterface private function getIp($checkProxy = true) { - $ip = NULL; + $ip = null; if ($checkProxy && $this->getServer('HTTP_CLIENT_IP') != null) { $ip = $this->getServer('HTTP_CLIENT_IP'); - } else if ($checkProxy && $this->getServer('HTTP_X_FORWARDED_FOR') != null) { - $ip = $this->getServer('HTTP_X_FORWARDED_FOR'); } else { - $ip = $this->getServer('REMOTE_ADDR'); + if ($checkProxy && $this->getServer('HTTP_X_FORWARDED_FOR') != null) { + $ip = $this->getServer('HTTP_X_FORWARDED_FOR'); + } else { + $ip = $this->getServer('REMOTE_ADDR'); + } } + $ips_arr = explode(',', $ip); + $ip = trim($ips_arr[0]); + return $ip; } From f39d4fb4f2d98896ba2eb37a00a1b0add05f42ce Mon Sep 17 00:00:00 2001 From: Vaidas Lungis
-
+