aboutsummaryrefslogtreecommitdiff
path: root/actions/save_state.php
blob: 42e429e4a019f06c42dc1be317d74f6f977443e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 (isloggedin())
	{
		
		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();
?>