From 66d7d24788c9081ce7c5a7158f601b16d4c8b463 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 15 Sep 2016 15:37:09 -0400 Subject: [PATCH] Removed active flag from configuration form and improved input error display. --- ...e8a6603e49a.file.adminServerStats.html.php | 6 +++--- ...0d4cf.file.adminServerStatsConfig.html.php | 20 +++++++------------ views/adminServerStats.html | 2 +- views/adminServerStatsConfig.html | 15 +++++--------- 4 files changed, 16 insertions(+), 27 deletions(-) diff --git a/misc/smarty/templates_c/424fa8075e980e0b540d7353dc3dee8a6603e49a.file.adminServerStats.html.php b/misc/smarty/templates_c/424fa8075e980e0b540d7353dc3dee8a6603e49a.file.adminServerStats.html.php index 0be8243..ae82f6d 100644 --- a/misc/smarty/templates_c/424fa8075e980e0b540d7353dc3dee8a6603e49a.file.adminServerStats.html.php +++ b/misc/smarty/templates_c/424fa8075e980e0b540d7353dc3dee8a6603e49a.file.adminServerStats.html.php @@ -1,4 +1,4 @@ - decodeProperties(array ( @@ -7,7 +7,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( '424fa8075e980e0b540d7353dc3dee8a6603e49a' => array ( 0 => '/var/www/server/discoverkalamazoo.com/wp-content/plugins/glm-serverstats/views/adminServerStats.html', - 1 => 1473958725, + 1 => 1473963237, 2 => 'file', ), ), @@ -48,7 +48,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( to set the Target bandwidth for billing purposes. The target bandwidth is per-month and is indicated as a dotted line on the "2 Years" graph included below.

- Server Bandwidth is displayed below in Megabytes (millions of bytes) and Gigabytes + Server Bandwidth is displayed below in Megabytes (Millions of bytes) and Gigabytes (Billions of bytes). A byte is roughly equivalent to one character.

diff --git a/misc/smarty/templates_c/5cc7f37bdbecb309b4681cb8d3e4e23f95a0d4cf.file.adminServerStatsConfig.html.php b/misc/smarty/templates_c/5cc7f37bdbecb309b4681cb8d3e4e23f95a0d4cf.file.adminServerStatsConfig.html.php index 49dfa77..63ffd9a 100644 --- a/misc/smarty/templates_c/5cc7f37bdbecb309b4681cb8d3e4e23f95a0d4cf.file.adminServerStatsConfig.html.php +++ b/misc/smarty/templates_c/5cc7f37bdbecb309b4681cb8d3e4e23f95a0d4cf.file.adminServerStatsConfig.html.php @@ -1,4 +1,4 @@ - decodeProperties(array ( @@ -7,7 +7,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( '5cc7f37bdbecb309b4681cb8d3e4e23f95a0d4cf' => array ( 0 => '/var/www/server/discoverkalamazoo.com/wp-content/plugins/glm-serverstats/views/adminServerStatsConfig.html', - 1 => 1473950391, + 1 => 1473968140, 2 => 'file', ), ), @@ -24,7 +24,6 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 'dbError' => 0, 'thisUrl' => 0, 'thisPage' => 0, - 'active' => 0, 'db_name' => 0, 'db_host' => 0, 'db_user' => 0, @@ -58,11 +57,6 @@ $_valid = $_smarty_tpl->decodeProperties(array ( - Enabled: - - tpl_vars['active']->value) {?> checked="checked"> - - Database Name: tpl_vars['db_name']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"> Database Server Hostname: - + tpl_vars['db_host']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"> Database Username: - + tpl_vars['db_user']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"> Database Password: - + tpl_vars['db_pass']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"> Website Name: - + tpl_vars['website']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc">
This is the name of the Website as it's listed in the server stats database. Normally does not include 'www'. @@ -101,7 +95,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( Monthly Target Bandwidth: - + tpl_vars['target']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc">
Monthly target bandwidth is entered in Megabytes without any fractions. diff --git a/views/adminServerStats.html b/views/adminServerStats.html index 4f0851a..6352ecc 100644 --- a/views/adminServerStats.html +++ b/views/adminServerStats.html @@ -18,7 +18,7 @@ to set the Target bandwidth for billing purposes. The target bandwidth is per-month and is indicated as a dotted line on the "2 Years" graph included below.

- Server Bandwidth is displayed below in Megabytes (millions of bytes) and Gigabytes + Server Bandwidth is displayed below in Megabytes (Millions of bytes) and Gigabytes (Billions of bytes). A byte is roughly equivalent to one character.

diff --git a/views/adminServerStatsConfig.html b/views/adminServerStatsConfig.html index 970ac49..e190d2c 100644 --- a/views/adminServerStatsConfig.html +++ b/views/adminServerStatsConfig.html @@ -18,11 +18,6 @@ - Enabled: - - - - Database Name: @@ -31,32 +26,32 @@ Database Server Hostname: - + Database Username: - + Database Password: - + Website Name: - +
This is the name of the Website as it's listed in the server stats database. Normally does not include 'www'. Monthly Target Bandwidth: - +
Monthly target bandwidth is entered in Megabytes without any fractions. -- 2.17.1