aboutsummaryrefslogtreecommitdiffstats
path: root/config/lightsquid/sqstat.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/lightsquid/sqstat.php')
-rw-r--r--config/lightsquid/sqstat.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/lightsquid/sqstat.php b/config/lightsquid/sqstat.php
index a56b604a..7b12b970 100644
--- a/config/lightsquid/sqstat.php
+++ b/config/lightsquid/sqstat.php
@@ -61,7 +61,7 @@ if ($_REQUEST['getactivity'])
$pgtitle = "Proxy Squid: Realtime stat (sqstat)";
require_once("head.inc");
-
+$csrf_token= csrf_get_tokens();
?>
<link href="sqstat.css" rel="stylesheet" type="text/css"/>
@@ -79,7 +79,7 @@ function el(id) {
function getactivity(action) {
var url = "<?php echo ($_SERVER["PHP_SELF"]); ?>";
- var pars = "getactivity=yes";
+ var pars = "getactivity=yes" + "<? echo '&__csrf_magic='.$csrf_token ?>";
var myAjax = new Ajax.Request( url,
{
@@ -414,4 +414,4 @@ function sqstat_get_real_interface_address($iface)
return array($ip, long2ip(hexdec($netmask)));
}
-?> \ No newline at end of file
+?>