Skip to content

Commit 8aa603c

Browse files
committed
🐸 Logo Change
🐸 Logo Change
1 parent b44a676 commit 8aa603c

File tree

16 files changed

+33
-11
lines changed

16 files changed

+33
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ kchat.zip
5959
box/config/*
6060
!box/config/.gitkeep
6161
!box/config/.htaccess
62+
icon

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
![](https://github.com/php-kchat/kchat/blob/master/kchat/assets/images/logo.png)
3+
24
# KChat
35
#### PHP Based Chat Application.
46

@@ -18,7 +20,7 @@
1820
#### Using git
1921

2022
```
21-
git clone git@github.com:php-kchat/kchat.git
23+
git clone https://github.com/php-kchat/kchat.git
2224
```
2325

2426
#### Or

box/assets/images/logo.png

-1.21 KB
Loading

box/assets/js/kchat.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ kbox.loademoji = (function(){
162162
}
163163
$.post(kbox.url + "kchat.php?msg",
164164
{
165-
msg: msg,
165+
msg: toanchor(msg),
166166
key: kbox.key,
167167
},
168168
function(data,status){
@@ -288,4 +288,11 @@ function _loadoldmsg() {
288288
}
289289
}
290290
}
291+
}
292+
293+
294+
295+
function toanchor(text) {
296+
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/i;
297+
return text.replace(exp,"<a href='$1'>$1</a>");
291298
}

box/core/kchat.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616

1717
if(!($data = @include "config/config.php")){
1818
$config = new config();
19-
$data = $conf = $config->config($cache);
19+
$data = $conf = $config->config();
2020
$conf = $config->getconfig($conf);
2121
file_put_contents('config/config.php',$conf);
2222
}
2323

24+
if(isset($data['timezone'])){
25+
date_default_timezone_set($data['timezone']);
26+
}
27+
2428
if(!isset($data['installed'])){
2529
$config = new config();
2630
$t = new TempCache('~C~kchat~'.$global['key'].'~@~');

box/core/sandesh.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function js($data){
346346
_p("global = new Object();\n");
347347
_p("global.guest = ".$global_guest.";\n");
348348
_p("global.name = \"".$global_name."\";\n");
349-
_p("global.heading = \"KChat Heading\";\n");
349+
_p("global.heading = \"KChat\";\n");
350350
_p("global.dept = ");
351351
$dept = array();
352352
$stmt = $this->global['pdo']->prepare("SELECT `id`,`dept` FROM `{$data['db_prefix']}department`");

box/kchat.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
$global = array();
44

5-
date_default_timezone_set("Asia/Kolkata");
6-
75
session_name('KChat_Client_SESSION');
86
session_start();
97

favicon.ico

-56.6 KB
Binary file not shown.

kchat/actions/plotly.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function action(){
1616
$json = 'cache/Plotly.json';
1717
//create cache in every 5 second on access
1818
if((time() - @filemtime($json)) > 5){
19-
$stmt = $this->data['pdo']->prepare("SELECT `x`, `y` from {$this->dbprefix}plotly");
19+
$stmt = $this->data['pdo']->prepare("SELECT `x`, `y` from {$this->dbprefix}plotly WHERE x >= DATE_SUB(NOW(), INTERVAL 7 DAY)");
2020
$stmt->execute();
2121
while ($row = $stmt->fetch())
2222
{

kchat/assets/images/kchat.png

21.6 KB
Loading

0 commit comments

Comments
 (0)