aboutsummaryrefslogtreecommitdiffstats
path: root/config/rate
diff options
context:
space:
mode:
Diffstat (limited to 'config/rate')
-rw-r--r--config/rate/bandwidth_by_ip.php2
-rw-r--r--config/rate/rate.inc4
-rw-r--r--config/rate/status_graph.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/config/rate/bandwidth_by_ip.php b/config/rate/bandwidth_by_ip.php
index 3fd01a61..8d9a9246 100644
--- a/config/rate/bandwidth_by_ip.php
+++ b/config/rate/bandwidth_by_ip.php
@@ -1,5 +1,5 @@
<?php
-/*
+/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*
diff --git a/config/rate/rate.inc b/config/rate/rate.inc
index 3a2f13a9..a00ee736 100644
--- a/config/rate/rate.inc
+++ b/config/rate/rate.inc
@@ -9,7 +9,7 @@ function rate_install() {
mwexec("cp /usr/local/pkg/bandwidth_by_ip.php /usr/local/www/bandwidth_by_ip.php");
mwexec("cp /usr/local/pkg/status_graph.php /usr/local/www/status_graph.php");
- assign_privs();
+ rate_assign_privs();
/* Clear the APC cache so that the updates to installed files will work. */
apc_clear_cache();
}
@@ -20,7 +20,7 @@ function rate_deinstall() {
mwexec("cp /usr/local/www/status_graph.php.orig /usr/local/www/status_graph.php");
}
-function assign_privs() {
+function rate_assign_privs() {
/* Fix permissions on replaced files */
mwexec("chown root:wheel /usr/local/www/bandwidth_by_ip.php");
mwexec("chown root:wheel /usr/local/www/status_graph.php");
diff --git a/config/rate/status_graph.php b/config/rate/status_graph.php
index 12a9fd39..a5c8cbcd 100644
--- a/config/rate/status_graph.php
+++ b/config/rate/status_graph.php
@@ -140,7 +140,7 @@ function updateBandwidthHosts(data){
}
}
}
-
+
setTimeout('updateBandwidth()', 3000);
}
@@ -160,7 +160,7 @@ if((isset($config['ipsec']['enable'])) || (isset($config['ipsec']['mobileclients
}
/* link the ipsec interface magically */
-if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable']))
+if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable']))
$ifdescrs['enc0'] = "IPsec";
?>