49dfa77f50080e46af4e76a1ab469f16b9e3ec66
[WP-Plugins/glm-serverstats.git] /
1 <?php /* Smarty version Smarty-3.1.21-dev, created on 2016-09-15 14:39:55
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 => 1473950391,
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     'active' => 0,
28     'db_name' => 0,
29     'db_host' => 0,
30     'db_user' => 0,
31     'db_pass' => 0,
32     'website' => 0,
33     'target' => 0,
34   ),
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);?>
38
39
40     <!--  Server Settings  -->
41     <div id="glm-table-serverstats-server" class="glm-settings-table">
42     
43     <?php if ($_smarty_tpl->tpl_vars['settingsUpdated']->value) {?><h2 class="glm-notice glm-flash-updated glm-right">Settings Updated</h2><?php }?>
44     <?php if ($_smarty_tpl->tpl_vars['settingsUpdateError']->value) {?><span class="glm-error glm-flash-updated glm-right">Settings Update Error</span><?php }?>
45     
46     <?php if ($_smarty_tpl->tpl_vars['dbError']->value!='') {?>
47         <h2 class="glm-error">Unable to test database connection!</h2>
48         <p><b>Error reported:</b> <?php echo $_smarty_tpl->tpl_vars['dbError']->value;?>
49 </p>
50     <?php }?>    
51         <h2>Server Bandwidth Statistics Configuration</h2>
52         <form action="<?php echo $_smarty_tpl->tpl_vars['thisUrl']->value;?>
53 ?page=<?php echo $_smarty_tpl->tpl_vars['thisPage']->value;?>
54 " method="post" enctype="multipart/form-data">
55             <input type="hidden" name="option" value="submit">
56             
57             <table class="glm-admin-table">
58             
59                 <!-- Settings for talking with the Bandwidth Database -->
60                 <tr>
61                     <th>Enabled:</th>
62                     <td>
63                         <input type="checkbox" name="active"<?php if ($_smarty_tpl->tpl_vars['active']->value) {?> checked="checked"<?php }?>>
64                     </td>
65                 </tr>
66                     <th class="glm-required">Database Name:</th>
67                     <td <?php if (!$_smarty_tpl->tpl_vars['db_name']->value) {?>class="glm-form-bad-input glm-form-bad-input-misc"<?php }?>>
68                         <input type="text" name="db_name" value="<?php echo $_smarty_tpl->tpl_vars['db_name']->value;?>
69 " class="glm-form-text-input-medium">
70                         <?php if (!$_smarty_tpl->tpl_vars['db_name']->value) {?><p>Database Name not provided or invalid!</p><?php }?>
71                     </td>
72                 </tr>
73                 <tr>
74                     <th class="glm-required">Database Server Hostname:</th>
75                     <td>
76                         <input type="text" name="db_host" value="<?php echo $_smarty_tpl->tpl_vars['db_host']->value;?>
77 " class="glm-form-text-input-medium">
78                     </td>
79                 </tr>
80                 <tr>
81                     <th class="glm-required">Database Username:</th>
82                     <td>
83                         <input type="text" name="db_user" value="<?php echo $_smarty_tpl->tpl_vars['db_user']->value;?>
84 " class="glm-form-text-input-medium">
85                     </td>
86                 </tr>
87                 <tr>
88                     <th class="glm-required">Database Password:</th>
89                     <td>
90                         <input type="text" name="db_pass" value="<?php echo $_smarty_tpl->tpl_vars['db_pass']->value;?>
91 " class="glm-form-text-input-medium">
92                     </td>
93                 </tr>
94                 <tr>
95                     <th class="glm-required">Website Name:</th>
96                     <td>
97                         <input type="text" name="website" value="<?php echo $_smarty_tpl->tpl_vars['website']->value;?>
98 " class="glm-form-text-input-medium">
99                         <br>This is the name of the Website as it's listed in the server stats database. Normally does not include 'www'.
100                     </td>
101                 </tr>
102                 <tr>
103                     <th class="glm-required">Monthly Target Bandwidth:</th>
104                     <td>
105                         <input type="text" name="target" value="<?php echo $_smarty_tpl->tpl_vars['target']->value;?>
106 " class="glm-form-text-input-medium">
107                         <br>Monthly target bandwidth is entered in Megabytes without any fractions.
108                     </td>
109                 </tr>
110             </table>
111             <input type="submit" value="Update Settings" class="button-primary">
112         </form>
113     </div>
114     <?php echo '<script'; ?>
115  type="text/javascript">
116         
117         jQuery(document).ready(function($) {
118
119             // Flash certain elements for a short time after display      
120             $(".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);
121                     
122         });
123     <?php echo '</script'; ?>
124 >
125
126
127 <?php echo $_smarty_tpl->getSubTemplate ('footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
128
129 <?php }} ?>