__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\Framework;
use Nextend\Framework\Model\Section;
class Settings {
private static $data;
public function __construct() {
$config = array(
'jquery' => 1,
'scriptattributes' => '',
'javascript-inline' => 'head',
'protocol-relative' => 1,
'force-english-backend' => 0,
'frontend-accessibility' => 1,
'curl' => 1,
'curl-clean-proxy' => 0,
'async-non-primary-css' => 0,
'icon-fa' => 1,
'header-preload' => 0
);
if (!defined('NEXTEND_INSTALL')) {
foreach (Section::getAll('system', 'global') as $data) {
$config[$data['referencekey']] = $data['value'];
}
}
self::$data = new Data\Data();
self::$data->loadArray($config);
}
public static function get($key, $default = '') {
return self::$data->get($key, $default);
}
public static function getAll() {
return self::$data->toArray();
}
public static function set($key, $value) {
self::$data->set($key, $value);
Section::set('system', 'global', $key, $value, 1, 1);
}
public static function setAll($data) {
if (is_array($data)) {
foreach ($data as $key => $value) {
if (self::$data->get($key, null) !== null) {
self::set($key, $value);
}
}
return true;
}
return false;
}
}
new Settings();| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Acl | Folder | 0775 |
|
|
| Application | Folder | 0775 |
|
|
| Asset | Folder | 0775 |
|
|
| Browse | Folder | 0775 |
|
|
| Cache | Folder | 0775 |
|
|
| Content | Folder | 0775 |
|
|
| Controller | Folder | 0775 |
|
|
| Data | Folder | 0775 |
|
|
| Database | Folder | 0775 |
|
|
| FastImageSize | Folder | 0775 |
|
|
| Filesystem | Folder | 0775 |
|
|
| Font | Folder | 0775 |
|
|
| Form | Folder | 0775 |
|
|
| Image | Folder | 0775 |
|
|
| Localization | Folder | 0775 |
|
|
| Misc | Folder | 0775 |
|
|
| Model | Folder | 0775 |
|
|
| Notification | Folder | 0775 |
|
|
| Parser | Folder | 0775 |
|
|
| Pattern | Folder | 0775 |
|
|
| Platform | Folder | 0775 |
|
|
| Request | Folder | 0775 |
|
|
| ResourceTranslator | Folder | 0775 |
|
|
| Response | Folder | 0775 |
|
|
| Router | Folder | 0775 |
|
|
| Session | Folder | 0775 |
|
|
| Style | Folder | 0775 |
|
|
| Translation | Folder | 0775 |
|
|
| Url | Folder | 0775 |
|
|
| View | Folder | 0775 |
|
|
| Visual | Folder | 0775 |
|
|
| Api.php | File | 5.64 KB | 0664 |
|
| Cast.php | File | 277 B | 0664 |
|
| Framework.php | File | 412 B | 0664 |
|
| PageFlow.php | File | 590 B | 0664 |
|
| Plugin.php | File | 1.44 KB | 0664 |
|
| Sanitize.php | File | 31.4 KB | 0664 |
|
| Settings.php | File | 1.62 KB | 0664 |
|