c = $user_id; } public function class($class) { $this->class = $class; } public function i() { $user = new User($this->c['user_id']); echo '
'.Date::zmdate($this->c['posted_at']).'
Цитировать · Ссылка
'.htmlspecialchars($user->i('username')).' · '; if (json_decode($user->i('content'), true)['aboutrid']['value'] != null) { echo ''; } if (json_decode($user->i('content'), true)['aboutlive']['value'] != null) { echo ' '.htmlspecialchars(json_decode($user->i('content'), true)['aboutlive']['value']); } if ($user->i('admin') === 1) { $admintype = ' · Администратор сервера'; } else if ($user->i('admin') === 2) { $admintype = ' · Фотомодератор'; } if ((int)Vote::countcommrates($this->c['id'], -1) >= 1) { $commclass = 'pro'; $symb = '+'; } else if ((int)Vote::countcommrates($this->c['id'], -1) < 0) { $commclass = 'con'; $symb = ''; } else if ((int)Vote::countcommrates($this->c['id'], -1) === 0) { $commclass = ''; } echo '
Фото: '.Photo::fetchAll($this->c['user_id']).' '.$admintype.'
'.htmlspecialchars($this->c['body']).'
+
'.$symb.Vote::countcommrates($this->c['id'], -1).'
+'.Vote::countcommrates($this->c['id'], 1).' / '.Vote::countcommrates($this->c['id'], 0).'
'; } }