e194f3e394fe4fcb0f4228e45114d3d19a8e900e
[WP-Plugins/glm-serverstats.git] /
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 (
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 => 1473882282,
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     'dbError' => 0,
23     'thisUrl' => 0,
24     'thisPage' => 0,
25     'settingsUpdated' => 0,
26     'settingsUpdateError' => 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['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;?>
46 </p>
47     <?php }?>    
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">
53             
54             <table class="glm-admin-table">
55             
56                 <!-- Settings for talking with the Bandwidth Database -->
57                 <tr>
58                     <td colspan="2">
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 }?>
61                     </td>
62                 </tr>
63                 <tr>
64                     <th>Enabled:</th>
65                     <td>
66                         <input type="checkbox" name="active"<?php if ($_smarty_tpl->tpl_vars['active']->value) {?> checked="checked"<?php }?>>
67                     </td>
68                 </tr>
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 }?>
74                     </td>
75                 </tr>
76                 <tr>
77                     <th class="glm-required">Database Server Hostname:</th>
78                     <td>
79                         <input type="text" name="db_host" value="<?php echo $_smarty_tpl->tpl_vars['db_host']->value;?>
80 " class="glm-form-text-input-medium">
81                     </td>
82                 </tr>
83                 <tr>
84                     <th class="glm-required">Database Username:</th>
85                     <td>
86                         <input type="text" name="db_user" value="<?php echo $_smarty_tpl->tpl_vars['db_user']->value;?>
87 " class="glm-form-text-input-medium">
88                     </td>
89                 </tr>
90                 <tr>
91                     <th class="glm-required">Database Password:</th>
92                     <td>
93                         <input type="text" name="db_pass" value="<?php echo $_smarty_tpl->tpl_vars['db_pass']->value;?>
94 " class="glm-form-text-input-medium">
95                     </td>
96                 </tr>
97                 <tr>
98                     <th class="glm-required">Website Name:</th>
99                     <td>
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'.
103                     </td>
104                 </tr>
105                 <tr>
106                     <th class="glm-required">Monthly Target Bandwidth:</th>
107                     <td>
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.
111                     </td>
112                 </tr>
113             </table>
114             <input type="submit" value="Update Settings" class="button-primary">
115         </form>
116     </div>
117
118
119 <?php echo $_smarty_tpl->getSubTemplate ('footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
120
121 <?php }} ?>