From 59bbd65932c96ad132b8e7c3057b9af9e4a98d36 Mon Sep 17 00:00:00 2001 From: Ganesh Kandu Date: Sat, 14 Oct 2017 21:42:00 +0530 Subject: [PATCH] fix fix --- README.md | 8 ++++++++ box/core/TempCache.php | 2 +- kchat/actions/msgs.php | 1 - kchat/assets/js/enjoyhint.js | 6 +++--- kchat/lib/TempCache.php | 2 +- kchat/lib/config.php | 2 +- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5a43942..906d0c3 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,14 @@ #### Downlaod Kchat Files +#### Using with Composer + +``` +composer create-project php-kchat/kchat +``` + +#### Or + #### Using git ``` diff --git a/box/core/TempCache.php b/box/core/TempCache.php index 7868395..d3244cc 100644 --- a/box/core/TempCache.php +++ b/box/core/TempCache.php @@ -16,7 +16,7 @@ function getTempDir(){ foreach($temp as $key => $value){ $temp[$key] = rtrim(rtrim($value,'\\'),'/'); } - return array_filter($temp); + return array_values(array_values(array_filter($temp))); } function getTemp($temp){ diff --git a/kchat/actions/msgs.php b/kchat/actions/msgs.php index 9352676..b021b8b 100644 --- a/kchat/actions/msgs.php +++ b/kchat/actions/msgs.php @@ -177,7 +177,6 @@ function chats($data){ //seen $status = ''; } - $msg[] = array( 'id' => $row['grp_id'], 'message' => msgdecode($data,$row['msg']), diff --git a/kchat/assets/js/enjoyhint.js b/kchat/assets/js/enjoyhint.js index b672575..a757269 100644 --- a/kchat/assets/js/enjoyhint.js +++ b/kchat/assets/js/enjoyhint.js @@ -171,7 +171,7 @@ enjoyhint_script_steps.settings = [ ]; -//user list +//guest list enjoyhint_script_steps.usersglist = [ { "next #usersglist": 'List of all the guest.', @@ -179,9 +179,9 @@ enjoyhint_script_steps.usersglist = [ { selector: "selector", event:'click', - description:'', + description:'Update username and password', onBeforeStart:function(){ - window.location = purl + "/"; + window.location = purl + "/users/profile"; } } ]; diff --git a/kchat/lib/TempCache.php b/kchat/lib/TempCache.php index 1576459..24bb632 100644 --- a/kchat/lib/TempCache.php +++ b/kchat/lib/TempCache.php @@ -22,7 +22,7 @@ function getTempDir(){ foreach($temp as $key => $value){ $temp[$key] = rtrim(rtrim($value,'\\'),'/'); } - return array_filter($temp); + return array_values(array_filter($temp)); } function getTemp($temp){ diff --git a/kchat/lib/config.php b/kchat/lib/config.php index 3c8154e..7ed6b32 100644 --- a/kchat/lib/config.php +++ b/kchat/lib/config.php @@ -52,7 +52,7 @@ function config(){ "salt" => _rand(32), "key" => _rand(12), "Admin" => "KkEtq2SNzvl02OR", //_rand(8), - "version" => "1.0.0", + "version" => "1.0.2", "timezone" => date_default_timezone_get(), ); }