showpersout() наконец удалена!
This commit is contained in:
@@ -80,24 +80,24 @@ class User
|
||||
$variables = $this->level . '<br>' . $this->getStrength() . '<br>' . $this->getDexterity() . '<br>' . $this->getIntuition() . '<br>' . $this->getEndurance() . '<br>' . $this->getIntelligence() . '<br>' . $this->getWisdom() . '<br>' . $this->getRoomName($this->room);
|
||||
if ($isMainWindow) {
|
||||
$this->Bank = new Bank($this->id);
|
||||
$captions = 'Уровень:<br>Сила:<br>Ловкость:<br>Интуиция:<br>Выносливость:<br>Интеллект:<br>Мудрость:<br>Деньги:<br>Деньги в банке:';
|
||||
$variables =$this->level . '<br>' . $this->getStrength(1) . '<br>' . $this->getDexterity(1) . '<br>' . $this->getIntuition(1) . '<br>' . $this->getEndurance(1) . '<br>' . $this->getIntelligence(1) . '<br>' . $this->getWisdom(1) . '<br>' . $this->money . '<br>' . $this->Bank->money;
|
||||
$captions = 'Уровень:<br>Сила:<br>Ловкость:<br>Интуиция:<br>Выносливость:<br>Интеллект:<br>Мудрость:<br>Опыт:<br>Очки характеристик:<br>Деньги:<br>Деньги в банке:';
|
||||
$variables = $this->level . '<br>' . $this->getStrength(1) . '<br>' . $this->getDexterity(1) . '<br>' . $this->getIntuition(1) . '<br>' . $this->getEndurance(1) . '<br>' . $this->getIntelligence(1) . '<br>' . $this->getWisdom(1) . '<br>' . $this->experience . '<br>' . $this->stat_points . '<br>' . $this->money . '<br>' . $this->Bank->money;
|
||||
}
|
||||
|
||||
if ($this->align) {
|
||||
$nameString = sprintf('<img src="/i/align_%s.png" >', $this->align);
|
||||
}
|
||||
if ($this->block) {
|
||||
$nameString .= '<span class="private"><s>'.$this->login.'</s></span>';
|
||||
$nameString .= '<span class="private"><s>' . $this->login . '</s></span>';
|
||||
} else {
|
||||
$nameString .= ' <b>'.$this->login.'</b> ';
|
||||
$nameString .= ' <b>' . $this->login . '</b> ';
|
||||
}
|
||||
if ($this->clan) {
|
||||
$nameString .= sprintf('<img src="/i/klan/%s.png" >', ClanImage($this->clan));
|
||||
}
|
||||
echo '<div class="user-info">';
|
||||
echo '<div class="info">';
|
||||
echo '<b>' .$nameString. '</b>';
|
||||
echo '<b>' . $nameString . '</b>';
|
||||
echo '</div><!-- info -->';
|
||||
echo '<div class="stats-container">';
|
||||
echo '<div class="column">';
|
||||
@@ -111,37 +111,48 @@ class User
|
||||
echo '</div><!-- user-info -->';
|
||||
}
|
||||
|
||||
private function getStrength($isMainWindow = 0) {
|
||||
private function getStrength($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->strength);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getDexterity($isMainWindow = 0) {
|
||||
|
||||
private function getDexterity($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->dexterity);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getIntuition($isMainWindow = 0) {
|
||||
|
||||
private function getIntuition($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->intuition);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getEndurance($isMainWindow = 0) {
|
||||
|
||||
private function getEndurance($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->endurance);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getIntelligence($isMainWindow = 0) {
|
||||
|
||||
private function getIntelligence($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->intelligence);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getWisdom($isMainWindow = 0) {
|
||||
|
||||
private function getWisdom($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->wisdom);
|
||||
}
|
||||
@@ -229,7 +240,8 @@ class User
|
||||
echo '</div><!-- user-info-container -->';
|
||||
}
|
||||
|
||||
public function showUserInfoMain() {
|
||||
public function showUserInfoMain()
|
||||
{
|
||||
echo '<div class="user-info-container">';
|
||||
$this->UserInfoDoll();
|
||||
$this->userInfoStats(1);
|
||||
|
||||
Reference in New Issue
Block a user