shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
lolasweb.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Tags
/
Concerns
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
OutputsItems.php
<?php namespace Statamic\Tags\Concerns; use Illuminate\Contracts\Pagination\Paginator; use Statamic\Tags\Chunks; trait OutputsItems { protected function output($items) { if ($items instanceof Paginator) { return $this->paginatedOutput($items); } if ($items instanceof Chunks) { return $this->chunkedOutput($items); } if ($as = $this->params->get('as')) { return array_merge([$as => $items], $this->extraOutput($items)); } return $items; } protected function chunkedOutput($items) { $key = $this->params->get('chunk_key', 'chunk'); $extra = [ 'total_items' => $items->sum(fn ($chunk) => $chunk->count()), 'total_chunks' => $items->count(), ]; return $items->map(fn ($chunk) => array_merge([ $key => $chunk, ], $extra))->all(); } protected function extraOutput($items) { $extra = []; $extra['total_results'] = $items->count(); $extra['no_results'] = $items->isEmpty(); return $extra; } protected function paginatedOutput($paginator) { $paginator->withQueryString(); if ($window = $this->params->int('on_each_side')) { $paginator->onEachSide($window); } $as = $this->getPaginationResultsKey(); $items = $paginator->getCollection()->supplement('total_results', $paginator->total()); return array_merge([ $as => $items, 'paginate' => $this->getPaginationData($paginator), ], $this->extraOutput($items)); } protected function getPaginationResultsKey() { return $this->params->get('as', $this->defaultAsKey ?? 'results'); } protected function getPaginationData($paginator) { return [ 'total_items' => $paginator->total(), 'items_per_page' => $paginator->perPage(), 'total_pages' => $paginator->lastPage(), 'current_page' => $paginator->currentPage(), 'prev_page' => $paginator->previousPageUrl(), 'next_page' => $paginator->nextPageUrl(), 'auto_links' => (string) $paginator->render(), 'links' => $paginator->renderArray(), ]; } }
© 2026 UnknownSec