summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2014-01-15 01:39:04 -0800
committerPatrick Davison <snapwilliam@gmail.com>2014-01-15 01:39:04 -0800
commit640816989a99e069397ed18f3fa703d1ec12d596 (patch)
treecfacd78341fd48044c6b31d2c9b2854ba8b7f791 /ajax
parent64848a7e2a21d5da9a8c32fd45cd892398db1d42 (diff)
downloadpathery-640816989a99e069397ed18f3fa703d1ec12d596.tar.xz
More work on channel list.
Diffstat (limited to 'ajax')
-rw-r--r--ajax/chat.ajax.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php
index 8302c33..91c5b95 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -7,10 +7,15 @@ session_start();
// }
-ini_set('display_errors',1);
-ini_set('display_startup_errors',1);
-error_reporting(-1);
+//ini_set('display_errors',1);
+//ini_set('display_startup_errors',1);
+//error_reporting(-1);
+if (isset($_REQUEST['pollChannelList'])) {
+ require_once('../includes/chats.php');
+ echo json_encode(getChannelList());
+ exit;
+}
if (isset($_SESSION['chatLastReset'])) $chatLastReset = $_SESSION['chatLastReset'];
else $chatLastReset = 0;
@@ -50,7 +55,9 @@ $use_psuedo_longpoll = true;
require_once('../includes/chats.php');
+//exit;
+enterChannel($userID);
$sent = false;
if (isset($_REQUEST['messages'])) {