<?php if (!defined('ABSPATH')) exit; if (!class_exists('MCWPSettings')) : class MCWPSettings { public function getOption($key) { $res = false; if (function_exists('get_site_option')) { $res = get_site_option($key, false); } if ($res === false) { $res = get_option($key, false); } return $res; } public function deleteOption($key) { if (function_exists('delete_site_option')) { return delete_site_option($key); } else { return delete_option($key); } } public function updateOption($key, $value) { if (function_exists('update_site_option')) { return update_site_option($key, $value); } else { return update_option($key, $value); } } public function getOptions($options = array()) { $result = array(); foreach ($options as $option) $result[$option] = $this->getOption($option); return $result; } public function updateOptions($args) { $result = array(); foreach ($args as $option => $value) { $this->updateOption($option, $value); $result[$option] = $this->getOption($option); } return $result; } public function deleteOptions($options) { $result = array(); foreach ($options as $option) { $this->deleteOption($option); $result[$option] = !$this->getOption($option); } return $result; } public function setTransient($name, $value, $time) { if (function_exists('set_site_transient')) { return set_site_transient($name, $value, $time); } return false; } public function deleteTransient($name) { if (function_exists('delete_site_transient')) { return delete_site_transient($name); } return false; } public function getTransient($name) { if (function_exists('get_site_transient')) { return get_site_transient($name); } return false; } public function deleteMetaData($meta_type, $object_id, $meta_key, $meta_value = '', $delete_all = false) { if (function_exists('delete_metadata')) { return delete_metadata($meta_type, $object_id, $meta_key, $meta_value, $delete_all); } return false; } } endif;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
admin | Folder | 0755 |
|
|
callback | Folder | 0755 |
|
|
css | Folder | 0755 |
|
|
form_testing | Folder | 0755 |
|
|
img | Folder | 0755 |
|
|
php_error_monitoring | Folder | 0755 |
|
|
protect | Folder | 0755 |
|
|
public_keys | Folder | 0755 |
|
|
wp_2fa | Folder | 0755 |
|
|
account.php | File | 7.14 KB | 0644 |
|
helper.php | File | 10.68 KB | 0644 |
|
info.php | File | 7.66 KB | 0644 |
|
license.txt | File | 19.46 KB | 0644 |
|
malcare.php | File | 8.49 KB | 0644 |
|
readme.txt | File | 32.06 KB | 0644 |
|
recover.php | File | 1.71 KB | 0644 |
|
wp_actions.php | File | 2.92 KB | 0644 |
|
wp_actlog.php | File | 17.52 KB | 0644 |
|
wp_admin.php | File | 12.67 KB | 0644 |
|
wp_api.php | File | 1.04 KB | 0644 |
|
wp_cli.php | File | 5.6 KB | 0644 |
|
wp_db.php | File | 6.1 KB | 0644 |
|
wp_dynsync.php | File | 34.75 KB | 0644 |
|
wp_file_system.php | File | 2.29 KB | 0644 |
|
wp_login_whitelabel.php | File | 1.48 KB | 0644 |
|
wp_settings.php | File | 2.06 KB | 0644 |
|
wp_site_info.php | File | 2.4 KB | 0644 |
|