// We don't have a config option, so create a default one.
$config = array(
- 'active' => true,
- 'db_name' => 'bandwidth',
- 'db_host' => 'bandwidth.gaslightmedia.com',
- 'db_user' => 'bandwidthRO',
- 'db_pass' => ',Wv4W*~^bL_vF3F4PbGsS',
- 'website' => 'www.gaslightmedia.com',
- 'target' => '10000'
+ 'active' => true,
+ 'db_name' => 'bandwidth',
+ 'db_host' => 'bandwidth.gaslightmedia.com',
+ 'db_user' => 'bandwidthRO',
+ 'db_pass' => ',Wv4W*~^bL_vF3F4PbGsS',
+ 'website' => 'www.gaslightmedia.com',
+ 'target' => '10000'
);
add_option('glmServerStatsConfigData', $config);
<!-- Server Settings -->
<div id="glm-table-serverstats-server" class="glm-settings-table">
-
+
{if $settingsUpdated}<h2 class="glm-notice glm-flash-updated glm-right">Settings Updated</h2>{/if}
{if $settingsUpdateError}<span class="glm-error glm-flash-updated glm-right">Settings Update Error</span>{/if}
-
+
{if $dbError != ''}
<h2 class="glm-error">Unable to test database connection!</h2>
<p><b>Error reported:</b> {$dbError}</p>
- {/if}
+ {/if}
<h2>Server Bandwidth Statistics Configuration</h2>
<form action="{$thisUrl}?page={$thisPage}" method="post" enctype="multipart/form-data">
<input type="hidden" name="option" value="submit">
-
+
<table class="glm-admin-table">
-
+
<!-- Settings for talking with the Bandwidth Database -->
<tr>
<th class="glm-required">Database Name:</th>
<th class="glm-required">Website Name:</th>
<td {if !$website}class="glm-form-bad-input glm-form-bad-input-misc"{/if}>
<input type="text" name="website" value="{$website}" class="glm-form-text-input-medium">
- <br>This is the name of the Website as it's listed in the server stats database. Normally does not include 'www'.
+ <br>This is the name of the Website as it's listed in the server stats database. Normally does include 'www'.
</td>
</tr>
<tr>
</form>
</div>
<script type="text/javascript">
-
+
jQuery(document).ready(function($) {
- // Flash certain elements for a short time after display
+ // Flash certain elements for a short time after display
$(".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);
-
+
});
</script>