文件操作 - wp_api.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/kidsonlychiropract/public_html/wp-content/plugins/malcare-security/wp_api.php
编辑文件内容
<?php if (!defined('ABSPATH')) exit; if (!class_exists('MCWPAPI')) : class MCWPAPI { public $settings; public function __construct($settings) { $this->settings = $settings; } public function pingbv($method, $body, $public = false) { if ($public) { return $this->do_request($method, $body, $public); } else { $api_public_key = $this->settings->getOption('bvApiPublic'); if (!empty($api_public_key) && (strlen($api_public_key) >= 32)) { return $this->do_request($method, $body, $api_public_key); } } } public function do_request($method, $body, $pubkey) { $account = MCAccount::find($this->settings, $pubkey); if (isset($account)) { $url = $account->authenticatedUrl($method); return $this->http_request($url, $body); } } public function http_request($url, $body, $headers = array()) { $_body = array( 'method' => 'POST', 'timeout' => 15, 'body' => $body ); if (!empty($headers)) { $_body['headers'] = $headers; } return wp_remote_post($url, $_body); } } endif;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件