1 <?php /* Smarty version Smarty-3.1.21-dev, created on 2016-09-14 19:44:46
2 compiled from "/var/www/server/discoverkalamazoo.com/wp-content/plugins/glm-serverstats/views/adminServerStatsConfig.html" */ ?>
3 <?php /*%%SmartyHeaderCode:8830363857d98e67f03272-04963035%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
4 $_valid = $_smarty_tpl->decodeProperties(array (
7 '5cc7f37bdbecb309b4681cb8d3e4e23f95a0d4cf' =>
9 0 => '/var/www/server/discoverkalamazoo.com/wp-content/plugins/glm-serverstats/views/adminServerStatsConfig.html',
14 'nocache_hash' => '8830363857d98e67f03272-04963035',
18 'version' => 'Smarty-3.1.21-dev',
19 'unifunc' => 'content_57d98e67f0d528_24407775',
25 'settingsUpdated' => 0,
26 'settingsUpdateError' => 0,
35 'has_nocache_code' => false,
36 ),false); /*/%%SmartyHeaderCode%%*/?>
37 <?php if ($_valid && !is_callable('content_57d98e67f0d528_24407775')) {function content_57d98e67f0d528_24407775($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
40 <!-- Server Settings -->
41 <div id="glm-table-serverstats-server" class="glm-settings-table">
43 <?php if ($_smarty_tpl->tpl_vars['dbError']->value!='') {?>
44 <h2 class="glm-error">Unable to test database connection!</h2>
45 <p><b>Error reported:</b> <?php echo $_smarty_tpl->tpl_vars['dbError']->value;?>
48 <h2>Server Bandwidth Statistics Configuration</h2>
49 <form action="<?php echo $_smarty_tpl->tpl_vars['thisUrl']->value;?>
50 ?page=<?php echo $_smarty_tpl->tpl_vars['thisPage']->value;?>
51 " method="post" enctype="multipart/form-data">
52 <input type="hidden" name="option" value="submit">
54 <table class="glm-admin-table">
56 <!-- Settings for talking with the Bandwidth Database -->
59 <?php if ($_smarty_tpl->tpl_vars['settingsUpdated']->value) {?><h2 class="glm-notice glm-flash-updated glm-right">Settings Updated</h2><?php }?>
60 <?php if ($_smarty_tpl->tpl_vars['settingsUpdateError']->value) {?><span class="glm-error glm-flash-updated glm-right">Settings Update Error</span><?php }?>
66 <input type="checkbox" name="active"<?php if ($_smarty_tpl->tpl_vars['active']->value) {?> checked="checked"<?php }?>>
69 <th class="glm-required">Database Name:</th>
70 <td <?php if (!$_smarty_tpl->tpl_vars['db_name']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
71 <input type="text" name="db_name" value="<?php echo $_smarty_tpl->tpl_vars['db_name']->value;?>
72 " class="glm-form-text-input-medium">
73 <?php if (!$_smarty_tpl->tpl_vars['db_name']->value) {?><p>Database Name not provided or invalid!</p><?php }?>
77 <th class="glm-required">Database Server Hostname:</th>
79 <input type="text" name="db_host" value="<?php echo $_smarty_tpl->tpl_vars['db_host']->value;?>
80 " class="glm-form-text-input-medium">
84 <th class="glm-required">Database Username:</th>
86 <input type="text" name="db_user" value="<?php echo $_smarty_tpl->tpl_vars['db_user']->value;?>
87 " class="glm-form-text-input-medium">
91 <th class="glm-required">Database Password:</th>
93 <input type="text" name="db_pass" value="<?php echo $_smarty_tpl->tpl_vars['db_pass']->value;?>
94 " class="glm-form-text-input-medium">
98 <th class="glm-required">Website Name:</th>
100 <input type="text" name="website" value="<?php echo $_smarty_tpl->tpl_vars['website']->value;?>
101 " class="glm-form-text-input-medium">
102 <br>This is the name of the Website as it's listed in the server stats database. Normally does not include 'www'.
106 <th class="glm-required">Monthly Target Bandwidth:</th>
108 <input type="text" name="target" value="<?php echo $_smarty_tpl->tpl_vars['target']->value;?>
109 " class="glm-form-text-input-medium">
110 <br>Monthly target bandwidth is entered in Megabytes without any fractions.
114 <input type="submit" value="Update Settings" class="button-primary">
119 <?php echo $_smarty_tpl->getSubTemplate ('footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>