diff options
Diffstat (limited to 'mod/beechat/actions/save_state.php')
-rw-r--r-- | mod/beechat/actions/save_state.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mod/beechat/actions/save_state.php b/mod/beechat/actions/save_state.php new file mode 100644 index 000000000..f8a61c580 --- /dev/null +++ b/mod/beechat/actions/save_state.php @@ -0,0 +1,29 @@ +<?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/ + */ + +// gatekeeper(); + + if (elgg_is_logged_in()) + { + + global $SESSION; + + if (!empty($_POST['beechat_state'])) + { + $SESSION->offsetSet('beechat_state', $_POST['beechat_state']); + } + elseif (!empty($_POST['beechat_conn'])) + { + $SESSION->offsetSet('beechat_conn', get_input('beechat_conn')); + } + } + exit(); +?> |