aboutsummaryrefslogtreecommitdiff
path: root/actions/get_details.php
blob: 4944fc4a98661b94480ecf1074beb38a5597d712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/
	 */
	
	gatekeeper();
	header('Content-type: application/json');
	$user = $_SESSION['user'];
	$t = array('username' => $user->username,
		   'password' => $user->password);
	
	echo json_encode($t);
	
	exit();
?>