summaryrefslogtreecommitdiffstats
path: root/ajax/chat.ajax.php
diff options
context:
space:
mode:
Diffstat (limited to 'ajax/chat.ajax.php')
-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'])) {