aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/save_state.php25
1 files changed, 14 insertions, 11 deletions
diff --git a/actions/save_state.php b/actions/save_state.php
index f3a818f72..42e429e4a 100644
--- a/actions/save_state.php
+++ b/actions/save_state.php
@@ -9,18 +9,21 @@
* @link http://beechannels.com/
*/
- gatekeeper();
+// gatekeeper();
- global $SESSION;
-
- if (!empty($_POST['beechat_state']))
- {
- $SESSION->offsetSet('beechat_state', get_input('beechat_state'));
- }
- elseif (!empty($_POST['beechat_conn']))
+ if (isloggedin())
{
- $SESSION->offsetSet('beechat_conn', get_input('beechat_conn'));
- }
-
+
+ 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();
?>