From 28a28f00a46c53f8b6b77ddd6a8c44a1f90662b8 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 24 Apr 2017 06:13:42 +0000 Subject: [PATCH] New function skeleton for execution of queries --- include/auth_ejabberd.php | 2 ++ include/dba.php | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/auth_ejabberd.php b/include/auth_ejabberd.php index 8ee3af8e2..3ac72d916 100755 --- a/include/auth_ejabberd.php +++ b/include/auth_ejabberd.php @@ -32,6 +32,8 @@ * */ +die(); + if (sizeof($_SERVER["argv"]) == 0) die(); diff --git a/include/dba.php b/include/dba.php index 0d983be32..26da115b5 100644 --- a/include/dba.php +++ b/include/dba.php @@ -635,6 +635,10 @@ class dba { * @return boolean Was the query successfull? */ static public function e($sql) { + $args = func_get_args(); + + $stmt = self::p(); + self::close($stmt); } /** @@ -739,8 +743,6 @@ function dbesc($str) { // 'user', 1); function q($sql) { global $db; - $args = func_get_args(); - unset($args[0]); if ($db && $db->connected) { $sql = $db->any_value_fallback($sql);