1 <?php /* Smarty version Smarty-3.1.21-dev, created on 2016-09-15 19:35: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',
22 'settingsUpdated' => 0,
23 'settingsUpdateError' => 0,
34 'has_nocache_code' => false,
35 ),false); /*/%%SmartyHeaderCode%%*/?>
36 <?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);?>
39 <!-- Server Settings -->
40 <div id="glm-table-serverstats-server" class="glm-settings-table">
42 <?php if ($_smarty_tpl->tpl_vars['settingsUpdated']->value) {?><h2 class="glm-notice glm-flash-updated glm-right">Settings Updated</h2><?php }?>
43 <?php if ($_smarty_tpl->tpl_vars['settingsUpdateError']->value) {?><span class="glm-error glm-flash-updated glm-right">Settings Update Error</span><?php }?>
45 <?php if ($_smarty_tpl->tpl_vars['dbError']->value!='') {?>
46 <h2 class="glm-error">Unable to test database connection!</h2>
47 <p><b>Error reported:</b> <?php echo $_smarty_tpl->tpl_vars['dbError']->value;?>
50 <h2>Server Bandwidth Statistics Configuration</h2>
51 <form action="<?php echo $_smarty_tpl->tpl_vars['thisUrl']->value;?>
52 ?page=<?php echo $_smarty_tpl->tpl_vars['thisPage']->value;?>
53 " method="post" enctype="multipart/form-data">
54 <input type="hidden" name="option" value="submit">
56 <table class="glm-admin-table">
58 <!-- Settings for talking with the Bandwidth Database -->
60 <th class="glm-required">Database Name:</th>
61 <td <?php if (!$_smarty_tpl->tpl_vars['db_name']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
62 <input type="text" name="db_name" value="<?php echo $_smarty_tpl->tpl_vars['db_name']->value;?>
63 " class="glm-form-text-input-medium">
64 <?php if (!$_smarty_tpl->tpl_vars['db_name']->value) {?><p>Database Name not provided or invalid!</p><?php }?>
68 <th class="glm-required">Database Server Hostname:</th>
69 <td <?php if (!$_smarty_tpl->tpl_vars['db_host']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
70 <input type="text" name="db_host" value="<?php echo $_smarty_tpl->tpl_vars['db_host']->value;?>
71 " class="glm-form-text-input-medium">
75 <th class="glm-required">Database Username:</th>
76 <td <?php if (!$_smarty_tpl->tpl_vars['db_user']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
77 <input type="text" name="db_user" value="<?php echo $_smarty_tpl->tpl_vars['db_user']->value;?>
78 " class="glm-form-text-input-medium">
82 <th class="glm-required">Database Password:</th>
83 <td <?php if (!$_smarty_tpl->tpl_vars['db_pass']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
84 <input type="text" name="db_pass" value="<?php echo $_smarty_tpl->tpl_vars['db_pass']->value;?>
85 " class="glm-form-text-input-medium">
89 <th class="glm-required">Website Name:</th>
90 <td <?php if (!$_smarty_tpl->tpl_vars['website']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
91 <input type="text" name="website" value="<?php echo $_smarty_tpl->tpl_vars['website']->value;?>
92 " class="glm-form-text-input-medium">
93 <br>This is the name of the Website as it's listed in the server stats database. Normally does not include 'www'.
97 <th class="glm-required">Monthly Target Bandwidth:</th>
98 <td <?php if (!$_smarty_tpl->tpl_vars['target']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
99 <input type="text" name="target" value="<?php echo $_smarty_tpl->tpl_vars['target']->value;?>
100 " class="glm-form-text-input-medium">
101 <br>Monthly target bandwidth is entered in Megabytes without any fractions.
105 <input type="submit" value="Update Settings" class="button-primary">
108 <?php echo '<script'; ?>
109 type="text/javascript">
111 jQuery(document).ready(function($) {
113 // Flash certain elements for a short time after display
114 $(".glm-flash-updated").fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500);
117 <?php echo '</script'; ?>
121 <?php echo $_smarty_tpl->getSubTemplate ('footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>