diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2014-01-15 01:39:04 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2014-01-15 01:39:04 -0800 |
commit | 640816989a99e069397ed18f3fa703d1ec12d596 (patch) | |
tree | cfacd78341fd48044c6b31d2c9b2854ba8b7f791 /ajax | |
parent | 64848a7e2a21d5da9a8c32fd45cd892398db1d42 (diff) | |
download | pathery-640816989a99e069397ed18f3fa703d1ec12d596.tar.xz |
More work on channel list.
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/chat.ajax.php | 13 |
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'])) {
|