From b973705021aeb6b9245918aceae069574f3e287a Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 15 Jul 2018 20:17:47 +0100 Subject: [PATCH] show source URL in query --- core/database.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 161aac29..a8addf7a 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -600,7 +600,11 @@ class Database { try { if(is_null($this->db)) $this->connect_db(); $this->count_execs($query, $args); - $stmt = $this->db->prepare($query); + $stmt = $this->db->prepare( + "-- " . str_replace("%2F", "/", urlencode(@$_GET['q'])). "\n" . + $query + ); + // $stmt = $this->db->prepare($query); if (!array_key_exists(0, $args)) { foreach($args as $name=>$value) { if(is_numeric($value)) {