// запросы для Магазина Сайта $clr = mysql_fetch_assoc(mysql_query("SELECT `cnick`,`cstat` FROM `users` WHERE `id`='".$user['id']."'")); $cnick = $clr['cnick']; $cstat = $clr['cstat']; if (!$user['id']) { $out = '' . self::$lng['guest'] . ''; if (!empty($user['name'])) $out .= ': ' . $user['name']; if (!empty($arg['header'])) $out .= ' ' . $arg['header']; } else { if (self::$user_set['avatar']) { $out .= '
'; if (file_exists(($rootpath . 'files/users/avatar/' . $user['id'] . '.png'))) $out .= ' '; else $out .= ' '; $out .= ''; } if ($user['sex']) $out .= '' . ($user['sex'] == 'm' ? 'М' : 'Ж') . ' '; else $out .= ' '; $out .= !self::$user_id || self::$user_id == $user['id'] ? ''.(strlen($cnick) == 1 ? '' . $user['name'] . '' : '' . $user['name'] . '').'' : ''.(strlen($cnick) == 1 ? '' . $user['name'] . '' : '' . $user['name'] . '').''; $rank = array( 0 => '', 1 => '(GMod)', 2 => '(CMod)', 3 => '(FMod)', 4 => '(DMod)', 5 => '(LMod)', 6 => '(Smd)', 7 => '(Adm)', 9 => '(SV!)' ); $out .= ' ' . $rank[$user['rights']]; $out .= (time() > $user['lastdate'] + 300 ? ' [Off]' : ' [ON]'); if (!empty($arg['header'])) $out .= ' ' . $arg['header']; if (!isset($arg['stshide']) && !empty($user['status'])) $out .= '
 '.(strlen($cstat) == 1 ? '' . $user['status'] . '' : '' . $user['status'] . '').'
';