diff --git a/auditlog.php b/auditlog.php
index 069c3ac5..0cc746cc 100644
--- a/auditlog.php
+++ b/auditlog.php
@@ -7,8 +7,7 @@
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
?>
-
-
+
Audit log (showing live data)
diff --git a/db_graph.php b/db_graph.php
index fba0909b..cfb00a50 100644
--- a/db_graph.php
+++ b/db_graph.php
@@ -6,16 +6,7 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
-
-// Generate CSRF token
-if(empty($_SESSION['token'])) {
- $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));
-}
-$token = $_SESSION['token'];
-
?>
-
-
Compute graphical statistics from the Pi-hole query database
diff --git a/db_lists.php b/db_lists.php
index 1161d731..329450dc 100644
--- a/db_lists.php
+++ b/db_lists.php
@@ -6,19 +6,11 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
-
-// Generate CSRF token
-if(empty($_SESSION['token'])) {
- $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));
-}
-$token = $_SESSION['token'];
-
?>
+
-
-
diff --git a/db_queries.php b/db_queries.php
index 73ee2def..5f4e1196 100644
--- a/db_queries.php
+++ b/db_queries.php
@@ -6,16 +6,7 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
-
-// Generate CSRF token
-if(empty($_SESSION['token'])) {
- $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));
-}
-$token = $_SESSION['token'];
-
?>
-
-
diff --git a/network.php b/network.php
index 7ce7635f..e629e076 100644
--- a/network.php
+++ b/network.php
@@ -6,15 +6,8 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
-
-// Generate CSRF token
-if(empty($_SESSION['token'])) {
- $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));
-}
-$token = $_SESSION['token'];
?>
-
-
+
diff --git a/queries.php b/queries.php
index 8a5ae112..a1e2695b 100644
--- a/queries.php
+++ b/queries.php
@@ -7,12 +7,6 @@
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";
-// Generate CSRF token
-if(empty($_SESSION['token'])) {
- $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));
-}
-$token = $_SESSION['token'];
-
$showing = "";
if(isset($setupVars["API_QUERY_LOG_SHOW"]))
@@ -80,8 +74,6 @@ if(strlen($showing) > 0)
$showing .= ", show all";
}
?>
-
-