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