Projects
Kolab:16:Enterprise
kolab-hkccp
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
kolab-hkccp.spec
Changed
@@ -3,7 +3,7 @@ %endif Name: kolab-hkccp -Version: 0.7.17 +Version: 0.7.18 Release: 1%{?dist} Summary: Hosted Kolab Customer Control Panel License: AGPLv3+ @@ -72,7 +72,7 @@ %post if [ -f "%{php_inidir}/apc.ini" ]; then - if [ ! -z "`grep ^apc.enabled=1 %{php_inidir}/apc.ini`" ]; then + if [ ! -z "`grep ^apc.enabled=1 %{php_inidir}/apc{,u}.ini 2>/dev/null`" ]; then %if 0%{?fedora} > 15 /sbin/systemctl condrestart httpd.service %else @@ -104,9 +104,6 @@ %attr(0770,apache,apache) %{_var}/log/%{name} %changelog -* Tue Jul 25 2017 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.17-1 -- Release of version 0.7.17 - * Wed Aug 24 2016 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.7.16-1 - Release of version 0.7.16
View file
kolab-hkccp-0.7.17.tar.gz/composer.phar -> kolab-hkccp-0.7.18.tar.gz/composer.phar
Changed
View file
kolab-hkccp-0.7.17.tar.gz/config/config.ini.sample -> kolab-hkccp-0.7.18.tar.gz/config/config.ini.sample
Changed
@@ -144,6 +144,9 @@ ; set this to the date/time when subscripton prices were updated last prices_updated = "2014-01-01 06:00" +; Global discount for all subscriptions for this site (in percent) +discount = 0 + ; Redirect URL for use on user logout logout_redirect = "/"
View file
kolab-hkccp-0.7.17.tar.gz/lib/Kolab/Hosted/Controller/SignupController.php -> kolab-hkccp-0.7.18.tar.gz/lib/Kolab/Hosted/Controller/SignupController.php
Changed
@@ -186,6 +186,7 @@ exit; } + $site_discount = round(floatval($this->config->get('site.discount')) / 100, 3); $account_types = array_filter((array)$this->config->get('accounttype'), function($val){ return Config::boolean($val['signup']); }); if (count($this->route) > 1){ @@ -355,9 +356,13 @@ // handle account attributes $attributes = Utils::array_filter_keys($attributes, array_keys($this->config->get('attribute', array()))); + // set site discount to the configured value + if (!empty($site_discount)) { + $attributes['discount'] += $site_discount; + } // set discount to the configured value for this account type if (!empty($account_prop['discount'])) { - $attributes['discount'] = floatval($account_prop['discount']); + $attributes['discount'] += floatval($account_prop['discount']); } // store the selected subscription plan @@ -505,6 +510,7 @@ $this->output->set('captcha', $captcha ? $captcha->html() : ''); $this->output->set_env('storage', array_map('floatval', $this->config->get('storage'))); $this->output->set_env('options', $jsoptions); + $this->output->set_env('discount', $site_discount); $this->output->set_env('accounttype', $account_type); $this->output->set_env('subscriptionplans', array_map(function($plan) { return array('factor' => intval($plan['factor'])); }, $subscriptionplans));
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.