You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
252 B
PHTML
14 lines
252 B
PHTML
12 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Returns user by id.
|
||
|
* @param $id UID
|
||
|
*/
|
||
|
function User($id) {
|
||
|
$user_source = sql_select("SELECT * FROM `User` WHERE `UID`=" . sql_escape($id) . " LIMIT 1");
|
||
|
if(count($user_source) > 0)
|
||
|
return $user_source[0];
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
?>
|