aboutsummaryrefslogtreecommitdiff
path: root/actions/get_connection.php
diff options
context:
space:
mode:
authorroot <root@migration.vz.lan>2012-10-23 09:04:43 +0000
committerroot <root@migration.vz.lan>2012-10-23 09:04:43 +0000
commit074dc8fda6f634cc8c024a913d8033600b336b3a (patch)
tree1a9959d61e9f308b0a3443d9d67c00d26421581c /actions/get_connection.php
downloadelgg-074dc8fda6f634cc8c024a913d8033600b336b3a.tar.gz
elgg-074dc8fda6f634cc8c024a913d8033600b336b3a.tar.bz2
initial commit.
Diffstat (limited to 'actions/get_connection.php')
-rw-r--r--actions/get_connection.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/actions/get_connection.php b/actions/get_connection.php
new file mode 100644
index 000000000..a31174179
--- /dev/null
+++ b/actions/get_connection.php
@@ -0,0 +1,21 @@
+<?php
+ /**
+ * Beechat
+ *
+ * @package beechat
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Beechannels <contact@beechannels.com>
+ * @copyright Beechannels 2007-2010
+ * @link http://beechannels.com/
+ */
+
+ header('Content-type: application/json');
+ gatekeeper();
+
+ global $SESSION;
+
+ if ($SESSION->offsetExists('beechat_conn'))
+ echo $SESSION->offsetGet('beechat_conn');
+
+ exit();
+?>