Location: PHPKode > projects > PHP-Comics > php-comics/ajax/userinfo.php
<?php
include('../inc/inc.php');
if($_SESSION['Admin']!= 1)
{
	exit(0);
}
$result = DB::Query("SELECT ID, Username, FullName FROM Users WHERE ID = $_GET[UID]");
if(mysql_num_rows($result) > 0)
{
	$row = mysql_fetch_array($result);
	$row['ShowCovers'] = DB::Setting("ShowCovers",$_GET['UID']);
	$display = "{";
	foreach($row as $key=>$value)
	{
		if(is_numeric($key)) {continue;}
		$display .= "\"$key\":\"$value\",";
	}
	$display = rtrim($display,",");
	$display .= "}";
	echo $display;
}

?>
Return current item: PHP-Comics