|
|
|
@ -36,12 +36,9 @@ function getOwnerOfChar($charid, $buffer_enabled = true) {
|
|
|
|
|
if(!is_numeric($charid)){
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
// Wenn Char nicht im Puffer ist, oder nicht gepuffert werden soll
|
|
|
|
|
if ($GLOBALS['user_buffered_instances'][$userid] == null || !$buffer_enabled) {
|
|
|
|
|
$user = mysql_fetch_assoc(mysql_query('SELECT u.nickname, u.id FROM user u INNER JOIN chars ch ON ch.besitzer=u.id WHERE ch.id = '.$charid));
|
|
|
|
|
$GLOBALS['user_buffered_instances'][$userid] = $user;
|
|
|
|
|
}
|
|
|
|
|
return $GLOBALS['user_buffered_instances'][$userid];
|
|
|
|
|
|
|
|
|
|
$user = mysql_fetch_assoc(mysql_query('SELECT u.id FROM user u INNER JOIN chars ch ON ch.besitzer=u.id WHERE ch.id = '.$charid));
|
|
|
|
|
return getUser($user['id']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function addMoneyToUser($userid, $amount) {
|
|
|
|
|