explode('/', $_SERVER['REQUEST_URI'])[2])); ?>

$gallery['id'])); foreach ($photos as $p) { $photo = new Photo($p['photo_id']); $user = new User($p['user_id']); echo '
598 КБ
'.DB::query('SELECT COUNT(*) FROM photos_views WHERE photo_id=:id', array(':id'=>$photo->i('id')))[0]['COUNT(*)'].'

'.htmlspecialchars($photo->i('postbody')).'

'.htmlspecialchars($photo->i('place')).'

'.Date::zmdate($photo->i('posted_at')).'
Автор: '.$user->i('username').'


'; } ?>