Skip to content

Commit

Permalink
Repo Change
Browse files Browse the repository at this point in the history
Repo Change
  • Loading branch information
GaneshKandu committed Sep 5, 2017
1 parent d656c28 commit 9bc129f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ docs
README.txt
kchat.zip
box/logs/error.log
box/config/*
!box/config/.gitkeep
!box/config/.htaccess
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,31 @@
#### Using with Composer

```
composer require ganeshkandu/kchat
composer require php-kchat/kchat
```

#### Or

#### Using with git

```
git clone https://github.com/ganeshkandu/kchat.git
git clone git@github.com:php-kchat/kchat.git
```

#### Or

[Download Zip](https://github.com/ganeshkandu/kchat/archive/master.zip)
[Download Zip](https://github.com/php-kchat/kchat/archive/master.zip)
and Extract to your Web Direcotory

#### And

Give a Writable Permission on

- config
- logs/*
* config
* logs
* cache
* logs/kchat.log.php
* box/config


Visit the subfolder https://mydomain.com/index.php in your web-browser.
Expand Down
Empty file added box/config/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions box/config/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deny to all
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ganeshkandu/kchat",
"name": "php-kchat/kchat",
"type": "application",
"description": "PHP Based Chating Aplication",
"keywords": ["php","mysql","maria","chating","support","helpdesk"],
Expand All @@ -12,8 +12,8 @@
}
],
"support": {
"issues": "https://github.com/ganeshkandu/kchat/issues",
"source": "https://github.com/ganeshkandu/kchat"
"issues": "https://github.com/php-kchat/kchat/issues",
"source": "https://github.com/php-kchat/kchat"
},
"require": {
"php": ">=5.3.0",
Expand Down
3 changes: 3 additions & 0 deletions kchat/actions/getdepart.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ function action(){
$stmt->execute(array());
while ($row = $stmt->fetch())
{
if(strtolower($row['dept']) == 'admin'){
continue;
}
$dept[] = array(
'id' => $row['id'],
'dept' => $row['dept'],
Expand Down
2 changes: 1 addition & 1 deletion kchat/lib/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function set_notification($data,$not,$url = '#'){
}

function __end(){
$txt = "YWxlcnRpZnkuYWxlcnQoJzxjZW50ZXI+RG9uYWl0PGJyLz5HYW5lc2ggS2FuZHU8YnIvPjxhIGhyZWY9XCJcL1wvcGF5cGFsLm1lL0dhbmVzaEthbmR1XCIgPkRvbmFpdDwvYT48L2NlbnRlcicpOw==";
$txt = "YWxlcnRpZnkuYWxlcnQoJzxjZW50ZXI+RG9uYXRlPGJyLz5HYW5lc2ggS2FuZHU8YnIvPjxhIGhyZWY9XCJodHRwczovL3d3dy5wYXlwYWwubWUvR2FuZXNoS2FuZHVcIiBUQVJHRVQ9XCJfQkxBTktcIiA+RG9uYXRlPC9hPjwvY2VudGVyPicpOw==";
$file = 'cache\~~kchat';
if((time() - @filemtime($file)) > 129600){
touch($file);
Expand Down

0 comments on commit 9bc129f

Please sign in to comment.