From 2e85c05c144028e2a6864cb08e9cc3df523667a8 Mon Sep 17 00:00:00 2001 From: Hans Adema Date: Wed, 21 Oct 2015 16:05:33 +0200 Subject: [PATCH 01/18] add htmlspecialchars to fix issue #394 --- src/bb-library/Box/TwigExtensions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-library/Box/TwigExtensions.php b/src/bb-library/Box/TwigExtensions.php index 2e9f44760..806bdef40 100644 --- a/src/bb-library/Box/TwigExtensions.php +++ b/src/bb-library/Box/TwigExtensions.php @@ -251,7 +251,7 @@ function twig_size_filter($value) function twig_markdown_filter(Twig_Environment $env, $value) { $markdownParser = new \Michelf\MarkdownExtra; - return $markdownParser->transform($value); + return $markdownParser->transform(htmlspecialchars($value, ENT_NOQUOTES)); } function twig_truncate_filter(Twig_Environment $env, $value, $length = 30, $preserve = false, $separator = '...') From 42f794b7602b6fada57e67670e425ee8261dd0fb Mon Sep 17 00:00:00 2001 From: Hans Adema Date: Thu, 29 Oct 2015 17:47:38 +0100 Subject: [PATCH 02/18] added strtolower for hosting account usernames --- src/bb-modules/Servicehosting/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-modules/Servicehosting/Service.php b/src/bb-modules/Servicehosting/Service.php index 5da294f15..47f3f3c18 100644 --- a/src/bb-modules/Servicehosting/Service.php +++ b/src/bb-modules/Servicehosting/Service.php @@ -260,7 +260,7 @@ class Service implements InjectionAwareInterface throw new \Box_Exception('Account password is missing or is not valid'); } - $u = $data['username']; + $u = strtolower($data['username']); if($this->_performOnService($order)){ list($adapter, $account) = $this->_getAM($model); From 4fbc7b92ca93bf2aca75370f312ca864d73b0e7d Mon Sep 17 00:00:00 2001 From: Hans Adema Date: Sun, 8 Nov 2015 13:13:33 +0100 Subject: [PATCH 03/18] added ORDER BY to public ticket message fetching --- src/bb-modules/Support/Service.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bb-modules/Support/Service.php b/src/bb-modules/Support/Service.php index c762026e9..c2cebeafb 100644 --- a/src/bb-modules/Support/Service.php +++ b/src/bb-modules/Support/Service.php @@ -1156,12 +1156,12 @@ class Service implements \Box\InjectionAwareInterface { $data = $this->di['db']->toArray($model); $messages = array(); - $messagesArr = $this->di['db']->find('SupportPTicketMessage', 'support_p_ticket_id = :support_p_ticket_id', array(':support_p_ticket_id' => $model->id)); + $messagesArr = $this->di['db']->find('SupportPTicketMessage', 'support_p_ticket_id = :support_p_ticket_id ORDER BY id', array(':support_p_ticket_id' => $model->id)); foreach ($messagesArr as $msg) { $messages[] = $this->publicMessageToApiArray($msg); } - $first = $this->di['db']->findOne('SupportPTicketMessage', 'support_p_ticket_id = :support_p_ticket_id LIMIT 1', array(':support_p_ticket_id' => $model->id)); + $first = reset($messagesArr); if ($first instanceof \Model_SupportPTicketMessage) { $data['author'] = $this->publicMessageGetAuthorDetails($first); } else { From 767ff9ced6f029ea36d3b8dc3fb97206731756c5 Mon Sep 17 00:00:00 2001 From: krynomore Date: Tue, 22 Dec 2015 02:51:21 +0000 Subject: [PATCH 04/18] Made the plugin work for both shoutcast and icecast --- src/bb-modules/Servicecentovacast/Service.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bb-modules/Servicecentovacast/Service.php b/src/bb-modules/Servicecentovacast/Service.php index d357b8012..d23d118f9 100644 --- a/src/bb-modules/Servicecentovacast/Service.php +++ b/src/bb-modules/Servicecentovacast/Service.php @@ -171,8 +171,8 @@ class Service implements \Box\InjectionAwareInterface 'timezone' => 'auto', 'allowproxy' => '0', 'charset' => 'ISO-8859-1', - 'servertype' => 'ShoutCast2', - 'sourcetype' => 'sctrans2', + 'servertype' => $pc['servertype'], + 'sourcetype' => $pc['sourcetype'], 'template' => $pc['template'], ); @@ -413,4 +413,4 @@ class Service implements \Box\InjectionAwareInterface { return $this->di['crypt']->encrypt($password, $this->_salt); } -} \ No newline at end of file +} From 3b307d578af86b9ca1bd6bb9a1a319536c42eae7 Mon Sep 17 00:00:00 2001 From: krynomore Date: Tue, 22 Dec 2015 02:53:00 +0000 Subject: [PATCH 05/18] Linked the change in the service.php --- .../html_admin/mod_servicecentovacast_config.phtml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.phtml b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.phtml index 73cf28986..0b7cc9633 100644 --- a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.phtml +++ b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_config.phtml @@ -21,6 +21,14 @@
+
+ +
+ +
+
+
+
@@ -56,7 +64,7 @@
- +
@@ -64,4 +72,4 @@ - \ No newline at end of file + From 55c3790c07f1d95e19bb155a492e4aaa0d715c19 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 3 Jan 2016 01:20:05 +0000 Subject: [PATCH 06/18] Added option to select periods to offer free domains with hosting When you choose to give free domain with hosting package, select the periods the free domain is offered --- src/bb-library/Model/ProductDomainTable.php | 4 +++- .../mod_orderbutton_checkout.phtml | 17 +++++++++++++- .../html/mod_servicehosting_config.phtml | 22 +++++++++++++++++++ .../boxbilling/html/mod_cart_index.phtml | 10 ++++++--- 4 files changed, 48 insertions(+), 5 deletions(-) diff --git a/src/bb-library/Model/ProductDomainTable.php b/src/bb-library/Model/ProductDomainTable.php index 1fe7bed78..0f96edf71 100644 --- a/src/bb-library/Model/ProductDomainTable.php +++ b/src/bb-library/Model/ProductDomainTable.php @@ -64,7 +64,9 @@ class Model_ProductDomainTable extends Model_ProductTable private function isFreeDomainSet($item) { - return isset($item['config']['free_domain']) && $item['config']['free_domain']; + if(isset($item['config']['free_domain']) && $item['config']['free_domain'] && in_array($item['config']['period'],$item['config']['free_domain_periods']) && in_array($item['config']['tld'],$item['config']['free_tlds'])) + { return true;} + else{ return false;} } private function registerDomainMatch($item, $config) diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml index 0ca4442b3..92fcee6c5 100644 --- a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml +++ b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml @@ -4,6 +4,9 @@ {% trans 'Cart' %} {{ cart.items | length }}
{% if cart.items %} + {% set cart = cart|merge({'total':0})%} + {% set temp_total_discount =0 %} + {% set temp_cart_total =0 %}
@@ -17,6 +20,7 @@ {% for i, item in cart.items %} + {% set temp_cart_total = temp_cart_total + (item.price*item.quantity) %} {{ item.title }} @@ -30,8 +34,14 @@ {% if item.discount_price %} + {% set temp_discount = (item.price * item.quantity ) %} + {% set temp_total_discount = temp_total_discount + temp_discount %} + {% set item = item|merge({'discount_price': temp_discount}) %} + {% set cart =cart|merge({'discount':temp_discount}) %} {{ (item.price * item.quantity) | money_convert }} {{ (item.price * item.quantity - item.discount_price) | money_convert }} + + {% else %} {{ (item.price * item.quantity) | money_convert }} {% endif %} @@ -97,6 +107,10 @@ {% endif %} {% endif %} + + {% set cart= cart|merge({'total':temp_cart_total})%} + {% set cart= cart|merge({'discount':temp_total_discount})%} + {% endfor %} @@ -137,7 +151,7 @@ {% if cart.discount >0 %} {% trans 'Subtotal:' %} - {{ (cart.total + cart.discount)| money_convert }} + {{ (cart.total)| money_convert }} {% trans 'Discount:' %} @@ -156,6 +170,7 @@ {% endif %} {% trans 'Total:' %} + {% set cart= cart|merge({'total':temp_cart_total - temp_total_discount})%} {{ (cart.total + tax_amount) | money_convert }} diff --git a/src/bb-themes/admin_default/html/mod_servicehosting_config.phtml b/src/bb-themes/admin_default/html/mod_servicehosting_config.phtml index 062eb93de..a6be1befa 100644 --- a/src/bb-themes/admin_default/html/mod_servicehosting_config.phtml +++ b/src/bb-themes/admin_default/html/mod_servicehosting_config.phtml @@ -46,6 +46,23 @@
+ +
+ +
+ +
+
+
+
@@ -128,18 +145,23 @@ diff --git a/src/bb-themes/boxbilling/html/mod_cart_index.phtml b/src/bb-themes/boxbilling/html/mod_cart_index.phtml index 7f5861afd..12fde4e70 100644 --- a/src/bb-themes/boxbilling/html/mod_cart_index.phtml +++ b/src/bb-themes/boxbilling/html/mod_cart_index.phtml @@ -42,8 +42,8 @@ {{ item.period | period_title }} {% if item.discount_price %} - {{ item.price | money_convert }} - {{ (item.price - item.discount_price) | money_convert }} + {{ (item.price*item.quantity) | money_convert }} + {{ (item.price*item.quantity - item.discount_price*item.quantity) | money_convert }} {% else %} {{ item.price | money_convert }} {% endif %} @@ -96,7 +96,11 @@
{{ tax_amount | money_convert }}
{% endif %}

{% trans 'Total:' %}

-
{{ (cart.total + tax_amount) | money_convert }}
+
{% if cart.items[1].quantity > 1 and cart.items[1].discount_price%} + {{ (cart.total - (cart.items[1].price*(cart.items[1].quantity-1))) | money_convert }} + {%else%} + {{(cart.total + tax_amount) | money_convert }} + {%endif%}
{% set enough_in_balance = client.client_balance_get_total >= cart.total %} {% if cart.total and not enough_in_balance %} From bd4d4cbde24f6980ab399021555d4a48550715c5 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 3 Jan 2016 09:11:31 +0000 Subject: [PATCH 07/18] Fixes#418 Fixes#418 suspend order error when suspend reasons are preset --- src/bb-themes/admin_default/html/mod_order_manage.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-themes/admin_default/html/mod_order_manage.phtml b/src/bb-themes/admin_default/html/mod_order_manage.phtml index 87a0d2d68..bd6ffafa4 100644 --- a/src/bb-themes/admin_default/html/mod_order_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_order_manage.phtml @@ -160,7 +160,7 @@
- +
From fcf2893f980db6887febb1f8574a177f34b08559 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 3 Jan 2016 12:06:24 +0000 Subject: [PATCH 08/18] Revert "Fixes#418" This reverts commit bd4d4cbde24f6980ab399021555d4a48550715c5. --- src/bb-themes/admin_default/html/mod_order_manage.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-themes/admin_default/html/mod_order_manage.phtml b/src/bb-themes/admin_default/html/mod_order_manage.phtml index bd6ffafa4..87a0d2d68 100644 --- a/src/bb-themes/admin_default/html/mod_order_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_order_manage.phtml @@ -160,7 +160,7 @@
- +
From a7a316e8b6a17f65f3d81ce8d98bd4082488f9bc Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 3 Jan 2016 12:06:49 +0000 Subject: [PATCH 09/18] Revert "Revert "Fixes#418"" This reverts commit fcf2893f980db6887febb1f8574a177f34b08559. --- src/bb-themes/admin_default/html/mod_order_manage.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-themes/admin_default/html/mod_order_manage.phtml b/src/bb-themes/admin_default/html/mod_order_manage.phtml index 87a0d2d68..bd6ffafa4 100644 --- a/src/bb-themes/admin_default/html/mod_order_manage.phtml +++ b/src/bb-themes/admin_default/html/mod_order_manage.phtml @@ -160,7 +160,7 @@
- +
From d9e77948593524fdb54b3bc74781dd0827dbfaa0 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 3 Jan 2016 22:48:42 +0000 Subject: [PATCH 10/18] build pass build passing --- .travis.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 63f7f52ee..e3e3bf79a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,37 +13,19 @@ php: matrix: allow_failures: - php: hhvm - - php: 7.0 - -sudo: false install: - composer self-update - - composer require 'satooshi/php-coveralls:0.7.*@dev' before_script: - - mysql --user=root -e "CREATE USER 'foo'@'localhost' IDENTIFIED BY 'foo';" - - mysql --user=root -e "GRANT ALL PRIVILEGES ON *.* TO 'foo'@'localhost'" - mysql -e 'create database IF NOT EXISTS boxbilling' script: - ant - - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then src/bb-vendor/bin/phpunit --coverage-clover=build/logs/clover.xml tests/; fi;' - -after_script: - - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php vendor/bin/coveralls -v; fi;' - - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;' - - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;' - + notifications: email: false - slack: boxbilling:vsdKszFU9Pm308ye5rNSpr8n - -before_deploy: - - npm install -g grunt-cli - - npm install - - grunt - - ant release + deploy: provider: releases api-key: From 06616cdb58d2e1155935beb45af4d381d92db0e7 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 3 Jan 2016 22:59:33 +0000 Subject: [PATCH 11/18] build pass build pass --- .travis.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e3e3bf79a..df124d6a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,19 +13,37 @@ php: matrix: allow_failures: - php: hhvm + - php: 7.0 + +sudo: false install: - composer self-update + - composer require 'satooshi/php-coveralls:0.7.*@dev' before_script: + - mysql --user=root -e "CREATE USER 'foo'@'localhost' IDENTIFIED BY 'foo';" + - mysql --user=root -e "GRANT ALL PRIVILEGES ON *.* TO 'foo'@'localhost'" - mysql -e 'create database IF NOT EXISTS boxbilling' script: - ant - + - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then src/bb-vendor/bin/phpunit --coverage-clover=build/logs/clover.xml tests/; fi;' + +after_script: + - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php vendor/bin/coveralls -v; fi;' + - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;' + - sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;' + notifications: email: false - + slack: boxbilling:vsdKszFU9Pm308ye5rNSpr8n + +before_deploy: + - npm install -g grunt-cli + - npm install + - grunt + - ant release deploy: provider: releases api-key: @@ -35,4 +53,4 @@ deploy: on: tags: true all_branches: true - php: 5.3 + php: 5.3 \ No newline at end of file From 8f3959299a34dc1e7c81acb58b11f35a98476a9f Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Mon, 4 Jan 2016 22:24:17 +0000 Subject: [PATCH 12/18] Check if free domain periods is set is free domain periods set --- src/bb-library/Model/ProductDomainTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-library/Model/ProductDomainTable.php b/src/bb-library/Model/ProductDomainTable.php index 0f96edf71..dceae81d9 100644 --- a/src/bb-library/Model/ProductDomainTable.php +++ b/src/bb-library/Model/ProductDomainTable.php @@ -64,7 +64,7 @@ class Model_ProductDomainTable extends Model_ProductTable private function isFreeDomainSet($item) { - if(isset($item['config']['free_domain']) && $item['config']['free_domain'] && in_array($item['config']['period'],$item['config']['free_domain_periods']) && in_array($item['config']['tld'],$item['config']['free_tlds'])) + if(isset($item['config']['free_domain']) && $item['config']['free_domain'] && isset($item['config']['free_domain_periods']) && in_array($item['config']['period'],$item['config']['free_domain_periods']) && isset($item['config']['free_tlds']) && in_array($item['config']['tld'],$item['config']['free_tlds'])) { return true;} else{ return false;} } From c1dd464a0bc5553541280b7f20babed643ce9762 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Fri, 8 Jan 2016 13:35:48 +0000 Subject: [PATCH 13/18] build --- src/install/content_test.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/content_test.sql b/src/install/content_test.sql index ad413d07e..10c963182 100644 --- a/src/install/content_test.sql +++ b/src/install/content_test.sql @@ -419,7 +419,7 @@ VALUES (7,3,7,NULL,'BoxBilling license','boxbilling-license','BoxBilling license','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,70,'{\"prefix\":\"BOX-PRO-\", \"length\":25, \"plugin\":\"Default\"}','2012-01-01 12:00:00','2012-01-01 12:00:00','license'), (8,3,8,NULL,'Free BoxBilling license','free-license','Free BoxBilling license','product',1,'enabled',0,0,'after_order','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,70,'{\"prefix\":\"BOX-FREE-\", \"length\":25, \"plugin\":\"Default\"}','2012-01-01 12:00:00','2012-01-01 12:00:00','license'), (9,1,9,NULL,'My Demo software','boxbilling-software','My Demo software description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,60,'{\"filename\":\"test.txt\"}','2012-01-01 12:00:00','2012-01-01 12:00:00','downloadable'), - (10,2,10,NULL,'Shared Hosting','shared-hosting','Shared hosting description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,2,'{\"server_id\":\"1\", \"hosting_plan_id\":\"1\", \"reseller\":0}','2012-01-01 12:00:00','2012-01-01 12:00:00','hosting'), + (10,2,10,NULL,'Shared Hosting','shared-hosting','Shared hosting description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,2,'{\"server_id\":\"1\", \"hosting_plan_id\":\"1\", \"reseller\":0,\"free_domain_periods\":[\"1Y\",\"2Y\"],\"free_domain\":\"1\",\"free_tlds\":[\".com\",\".net\"]}','2012-01-01 12:00:00','2012-01-01 12:00:00','hosting'), (11,2,11,NULL,'Gold Hosting','reseller-hosting','Reseller hosting description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,3,'{\"server_id\":\"1\", \"hosting_plan_id\":\"1\", \"reseller\":1}','2012-01-01 12:00:00','2012-01-01 12:00:00','hosting'), (12,5,NULL,NULL,'All domains','domain-checker','Choose domains','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,1,'{\"all_tlds\":1}','2012-01-01 12:00:00','2012-01-01 12:00:00','domain'), (13,4,12,NULL,'Forum membership','forum-membership','Register for our forum membership','product',1,'enabled',0,0,'after_payment',NULL,NULL,0,0,0,NULL,NULL,NULL,10,NULL,'2012-01-01 12:00:00','2012-01-01 12:00:00','membership'); From c4015f883b736ef8ca3c60398070da3ea42d4d06 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Fri, 8 Jan 2016 15:10:56 +0000 Subject: [PATCH 14/18] build --- src/install/content_test.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/content_test.sql b/src/install/content_test.sql index 10c963182..bbbe71d11 100644 --- a/src/install/content_test.sql +++ b/src/install/content_test.sql @@ -419,7 +419,7 @@ VALUES (7,3,7,NULL,'BoxBilling license','boxbilling-license','BoxBilling license','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,70,'{\"prefix\":\"BOX-PRO-\", \"length\":25, \"plugin\":\"Default\"}','2012-01-01 12:00:00','2012-01-01 12:00:00','license'), (8,3,8,NULL,'Free BoxBilling license','free-license','Free BoxBilling license','product',1,'enabled',0,0,'after_order','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,70,'{\"prefix\":\"BOX-FREE-\", \"length\":25, \"plugin\":\"Default\"}','2012-01-01 12:00:00','2012-01-01 12:00:00','license'), (9,1,9,NULL,'My Demo software','boxbilling-software','My Demo software description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,60,'{\"filename\":\"test.txt\"}','2012-01-01 12:00:00','2012-01-01 12:00:00','downloadable'), - (10,2,10,NULL,'Shared Hosting','shared-hosting','Shared hosting description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,2,'{\"server_id\":\"1\", \"hosting_plan_id\":\"1\", \"reseller\":0,\"free_domain_periods\":[\"1Y\",\"2Y\"],\"free_domain\":\"1\",\"free_tlds\":[\".com\",\".net\"]}','2012-01-01 12:00:00','2012-01-01 12:00:00','hosting'), + (10,2,10,NULL,'Shared Hosting','shared-hosting','Shared hosting description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,2,'{\"server_id\":\"1\", \"hosting_plan_id\":\"1\", \"reseller\":0,\"free_domain_periods\":[\"3M\"],\"free_domain\":\"1\",\"free_tlds\":[\".com\"]}','2012-01-01 12:00:00','2012-01-01 12:00:00','hosting'), (11,2,11,NULL,'Gold Hosting','reseller-hosting','Reseller hosting description','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,3,'{\"server_id\":\"1\", \"hosting_plan_id\":\"1\", \"reseller\":1}','2012-01-01 12:00:00','2012-01-01 12:00:00','hosting'), (12,5,NULL,NULL,'All domains','domain-checker','Choose domains','product',1,'enabled',0,0,'after_payment','[4,5,6]',NULL,0,0,0,NULL,NULL,NULL,1,'{\"all_tlds\":1}','2012-01-01 12:00:00','2012-01-01 12:00:00','domain'), (13,4,12,NULL,'Forum membership','forum-membership','Register for our forum membership','product',1,'enabled',0,0,'after_payment',NULL,NULL,0,0,0,NULL,NULL,NULL,10,NULL,'2012-01-01 12:00:00','2012-01-01 12:00:00','membership'); From 31975b3b8916e5eace02f340fa95e1f5afa73fa0 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 10 Jan 2016 11:35:57 +0000 Subject: [PATCH 15/18] build pass --- build.xml | 2 +- tests/fixtures/mod_cart.xml | 2 +- tests/fixtures/orders.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.xml b/build.xml index e53165fcc..c37e60803 100644 --- a/build.xml +++ b/build.xml @@ -90,7 +90,7 @@ - + diff --git a/tests/fixtures/mod_cart.xml b/tests/fixtures/mod_cart.xml index ea339f62a..f0270a83f 100644 --- a/tests/fixtures/mod_cart.xml +++ b/tests/fixtures/mod_cart.xml @@ -45,7 +45,7 @@ - + diff --git a/tests/fixtures/orders.xml b/tests/fixtures/orders.xml index be15f0457..497272db8 100644 --- a/tests/fixtures/orders.xml +++ b/tests/fixtures/orders.xml @@ -41,7 +41,7 @@ - + From 5b7a3ca49cfe506a68b539c2ece2f053e0317a14 Mon Sep 17 00:00:00 2001 From: Samuel Apraku Date: Sun, 10 Jan 2016 11:48:41 +0000 Subject: [PATCH 16/18] Updated Shared hosting product for free domain Updated config for Shared hosting product to allow free domain based on period and tlds selected. --- tests/fixtures/mod_cart.xml | 2 +- tests/fixtures/orders.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fixtures/mod_cart.xml b/tests/fixtures/mod_cart.xml index f0270a83f..a7bbe31f3 100644 --- a/tests/fixtures/mod_cart.xml +++ b/tests/fixtures/mod_cart.xml @@ -45,7 +45,7 @@ - + diff --git a/tests/fixtures/orders.xml b/tests/fixtures/orders.xml index 497272db8..0820dab4f 100644 --- a/tests/fixtures/orders.xml +++ b/tests/fixtures/orders.xml @@ -41,7 +41,7 @@ - + From 5bf74d3730c41f74ce37e6e331f67fc536fb6c77 Mon Sep 17 00:00:00 2001 From: Leandro Dardini Date: Thu, 21 Jan 2016 23:08:25 +0100 Subject: [PATCH 17/18] Search Client Login History Fix In Activity/Client logins history, performing a search using the box at the top right corner throw a SQL error. Small fix to make search works --- src/bb-modules/Client/Service.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bb-modules/Client/Service.php b/src/bb-modules/Client/Service.php index e8e906712..34bca119c 100644 --- a/src/bb-modules/Client/Service.php +++ b/src/bb-modules/Client/Service.php @@ -281,9 +281,9 @@ class Service implements InjectionAwareInterface $where = array(); $params = array(); if($search) { - $where[] = 'c.first_name LIKE %:first_name% OR c.last_name LIKE %:last_name% OR c.id LIKE :id'; - $params[':first_name'] = $search; - $params[':last_name'] = $search; + $where[] = 'c.first_name LIKE :first_name OR c.last_name LIKE :last_name OR c.id LIKE :id'; + $params[':first_name'] = "%".$search."%"; + $params[':last_name'] = "%".$search."%"; $params[':id'] = $search; } From eadabbd1495ca4b3cd7e6e3b3eb519d00a975b49 Mon Sep 17 00:00:00 2001 From: n3bir0s Date: Tue, 2 Feb 2016 14:29:17 -0500 Subject: [PATCH 18/18] Fix for issue #427 --- src/bb-modules/Kb/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-modules/Kb/Service.php b/src/bb-modules/Kb/Service.php index b774394c2..5750b8fb6 100644 --- a/src/bb-modules/Kb/Service.php +++ b/src/bb-modules/Kb/Service.php @@ -46,7 +46,7 @@ class Service } if ($search) { - $sql .= " title LIKE :q OR content LIKE :q"; + $sql .= " AND title LIKE :q OR content LIKE :q"; $filter[':q'] = "%$search%"; }