63ffd9a2b9b4eea56ab8ccf6721a3f91dc1d3e56
[WP-Plugins/glm-serverstats.git] /
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 (
5   'file_dependency' => 
6   array (
7     '5cc7f37bdbecb309b4681cb8d3e4e23f95a0d4cf' => 
8     array (
9       0 => '/var/www/server/discoverkalamazoo.com/wp-content/plugins/glm-serverstats/views/adminServerStatsConfig.html',
10       1 => 1473968140,
11       2 => 'file',
12     ),
13   ),
14   'nocache_hash' => '8830363857d98e67f03272-04963035',
15   'function' => 
16   array (
17   ),
18   'version' => 'Smarty-3.1.21-dev',
19   'unifunc' => 'content_57d98e67f0d528_24407775',
20   'variables' => 
21   array (
22     'settingsUpdated' => 0,
23     'settingsUpdateError' => 0,
24     'dbError' => 0,
25     'thisUrl' => 0,
26     'thisPage' => 0,
27     'db_name' => 0,
28     'db_host' => 0,
29     'db_user' => 0,
30     'db_pass' => 0,
31     'website' => 0,
32     'target' => 0,
33   ),
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);?>
37
38
39     <!--  Server Settings  -->
40     <div id="glm-table-serverstats-server" class="glm-settings-table">
41     
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 }?>
44     
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;?>
48 </p>
49     <?php }?>    
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">
55             
56             <table class="glm-admin-table">
57             
58                 <!-- Settings for talking with the Bandwidth Database -->
59                 <tr>
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 }?>
65                     </td>
66                 </tr>
67                 <tr>
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">
72                     </td>
73                 </tr>
74                 <tr>
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">
79                     </td>
80                 </tr>
81                 <tr>
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">
86                     </td>
87                 </tr>
88                 <tr>
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'.
94                     </td>
95                 </tr>
96                 <tr>
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.
102                     </td>
103                 </tr>
104             </table>
105             <input type="submit" value="Update Settings" class="button-primary">
106         </form>
107     </div>
108     <?php echo '<script'; ?>
109  type="text/javascript">
110         
111         jQuery(document).ready(function($) {
112
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);
115                     
116         });
117     <?php echo '</script'; ?>
118 >
119
120
121 <?php echo $_smarty_tpl->getSubTemplate ('footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
122
123 <?php }} ?>