shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
mpc.brannanatkinson.com
/
vendor
/
statamic
/
cms
/
src
/
Preferences
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
CorePreferences.php
<?php namespace Statamic\Preferences; use Locale; use Statamic\Facades\Preference; use Statamic\Statamic; class CorePreferences { public function boot() { Preference::register('locale', [ 'type' => 'select', 'display' => __('Locale'), 'instructions' => __('statamic::messages.preference_locale_instructions'), 'clearable' => true, 'label_html' => true, 'options' => $this->localeOptions(), ]); Preference::register('start_page', [ 'type' => 'text', 'display' => __('Start Page'), 'instructions' => __('statamic::messages.preference_start_page_instructions'), ]); Preference::register('favorites', [ 'type' => 'grid', 'display' => __('Favorites'), 'instructions' => __('statamic::messages.preference_favorites_instructions'), 'fields' => [ [ 'handle' => 'name', 'field' => [ 'type' => 'text', 'width' => 33, ], ], [ 'handle' => 'url', 'field' => [ 'display' => __('URL'), 'type' => 'text', ], ], ], ]); } private function localeOptions(): array { $current = Statamic::cpLocale(); return collect([ 'ar' => 'Arabic', 'cs' => 'Czech', 'da' => 'Danish', 'de' => 'German', 'de_CH' => 'German (Switzerland)', 'en' => 'English', 'es' => 'Spanish', 'fa' => 'Persian', 'fr' => 'French', 'hu' => 'Hungarian', 'id' => 'Indonesian', 'it' => 'Italian', 'ja' => 'Japanese', 'ms' => 'Malay', 'nb' => 'Norwegian', 'nl' => 'Dutch', 'pl' => 'Polish', 'pt' => 'Portuguese', 'pt_BR' => 'Portuguese (Brazil)', 'ru' => 'Russian', 'sl' => 'Slovenian', 'sv' => 'Swedish', 'tr' => 'Turkish', 'uk' => 'Ukrainian', 'zh_CN' => 'Chinese (China)', 'zh_TW' => 'Chinese (Taiwan)', ])->when(extension_loaded('intl'), fn ($locales) => $locales ->map(fn ($label, $locale) => [ 'label' => Locale::getDisplayName($locale, $current), 'native' => Locale::getDisplayName($locale, $locale), ]) ->sortBy('native', SORT_NATURAL | SORT_FLAG_CASE) ->map(function ($item, $locale) use ($current) { ['label' => $label, 'native' => $native] = $item; if ($locale !== $current && $label !== $native) { $label .= '<span class="ltr:ml-4 rtl:mr-4 text-gray-600">'.$native.'</span>'; } return $label; }))->all(); } }
© 2026 UnknownSec