From d656c28369c86f57375757c9a3fe645d5a989641 Mon Sep 17 00:00:00 2001 From: Ganesh Kandu Date: Tue, 5 Sep 2017 16:34:41 +0530 Subject: [PATCH] :cry: :cry: die(); :cry: :cry: die(); --- kchat/actions/conline.php | 2 +- kchat/ctrl/login.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kchat/actions/conline.php b/kchat/actions/conline.php index c868360..8b45610 100644 --- a/kchat/actions/conline.php +++ b/kchat/actions/conline.php @@ -22,7 +22,7 @@ function action(){ $ip4db = $this->data['config']['path'].'/kchat/data/GeoLiteCity.dat'; $ip6db = $this->data['config']['path'].'/kchat/data/GeoLiteCityv6.dat'; - $stmt = $this->data['pdo']->prepare("SELECT `id`,(SELECT concat(`fname`,' ',`lname`) from {$this->dbprefix}users WHERE id = {$this->dbprefix}guest.id) as guest ,`ip`,`country_code`,`time_zone`,`latitude`,`longitude` from {$this->dbprefix}guest;"); + $stmt = $this->data['pdo']->prepare("SELECT `id`,(SELECT concat(`fname`,' ',`lname`) from {$this->dbprefix}users WHERE id = {$this->dbprefix}guest.id) as guest ,`ip`,`country_code`,`time_zone`,`latitude`,`longitude` from {$this->dbprefix}guest where `id` IN (SELECT `support_id` FROM `{$this->dbprefix}temp`);"); $stmt->execute(); while ($row = $stmt->fetch()) { diff --git a/kchat/ctrl/login.php b/kchat/ctrl/login.php index 5c47f7c..81f0907 100644 --- a/kchat/ctrl/login.php +++ b/kchat/ctrl/login.php @@ -17,8 +17,8 @@ function index(){ $array['host'] = $_SERVER['HTTP_HOST']; $install = array(); $install['extensions'] = array( - "gd", - "zip" + "json", + "pdo" ); $install['writable'] = array( 'config',