diff options
Diffstat (limited to 'mod/beechat/actions/get_state.php')
-rw-r--r-- | mod/beechat/actions/get_state.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mod/beechat/actions/get_state.php b/mod/beechat/actions/get_state.php new file mode 100644 index 000000000..6cfd2f725 --- /dev/null +++ b/mod/beechat/actions/get_state.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_state')) + echo $SESSION->offsetGet('beechat_state'); + + exit(); +?> |