PHP Code Editor
<?php /** * Skrip Penguji (Tester) Threads Downloader - DARK MODE EDITION */ // 1. VARIABLE TARGET (GANTI DENGAN URL SKRIP UTAMA ANDA) $target_script_url = "https://wphpt.rsl.my.id/thrds.php"; $response_html = ""; if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['test_url'])) { $video_link = trim($_POST['test_url']); // PROSES KIRIM POST VIA CURL KE SKRIP UTAMA $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_script_url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(['url' => $video_link])); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"); $response_html = curl_exec($ch); curl_close($ch); } ?> <!DOCTYPE html> <html lang="id"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tester POST Threads 2026 - Dark Mode</title> <style> /* Dark Mode Theme */ body { font-family: -apple-system, sans-serif; background: #000; color: #fff; display: flex; justify-content: center; padding: 40px 20px; margin: 0; } .test-card { background: #1a1a1a; width: 100%; max-width: 480px; padding: 30px; border-radius: 16px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center; } h3 { margin-bottom: 20px; font-weight: 800; color: #fff; } input { width: 100%; padding: 14px; margin: 15px 0; border-radius: 10px; border: 1px solid #444; background: #262626; color: #fff; box-sizing: border-box; outline: none; } input:focus { border-color: #0095f6; } button { width: 100%; padding: 14px; background: #fff; color: #000; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.3s; } button:hover { opacity: 0.8; transform: scale(1.01); } .result-area { margin-top: 30px; padding: 20px; border: 1px solid #333; border-radius: 12px; background: #111; } video { width: 100%; border-radius: 10px; margin-bottom: 15px; border: 1px solid #333; } .error-msg { color: #ff4d4d; font-size: 14px; } small { color: #555; display: block; margin-top: 15px; font-size: 11px; } </style> </head> <body> <div class="test-card"> <h3>🧪 Tester (Dark Mode)</h3> <form method="POST"> <input type="url" name="test_url" placeholder="Paste link Threads di sini..." required value="<?= isset($_POST['test_url']) ? htmlspecialchars($_POST['test_url']) : '' ?>"> <button type="submit">Kirim POST ke Server</button> </form> <?php if ($response_html): ?> <div class="result-area"> <?php // Ambil konten dari div class preview if (preg_match('/<div class="preview">(.*?)<\/div>/s', $response_html, $matches)) { $content = $matches[1]; // PERBAIKAN FORM ACTION: Arahkan ke server utama agar download bekerja $content = str_replace('<form method="POST">', '<form method="POST" action="'.$target_script_url.'">', $content); echo $content; } else { echo "<p class='error-msg'>Gagal mengambil preview video dari server utama.</p>"; } ?> </div> <?php endif; ?> <small>Target: <?= htmlspecialchars($target_script_url) ?></small> </div> </body> </html>
Run Code
<?php /** * Skrip Penguji (Tester) Threads Downloader - DARK MODE EDITION */ // 1. VARIABLE TARGET (GANTI DENGAN URL SKRIP UTAMA ANDA) $target_script_url = "https://wphpt.rsl.my.id/thrds.php"; $response_html = ""; if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['test_url'])) { $video_link = trim($_POST['test_url']); // PROSES KIRIM POST VIA CURL KE SKRIP UTAMA $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_script_url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(['url' => $video_link])); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"); $response_html = curl_exec($ch); curl_close($ch); } ?> <!DOCTYPE html> <html lang="id"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tester POST Threads 2026 - Dark Mode</title> <style> /* Dark Mode Theme */ body { font-family: -apple-system, sans-serif; background: #000; color: #fff; display: flex; justify-content: center; padding: 40px 20px; margin: 0; } .test-card { background: #1a1a1a; width: 100%; max-width: 480px; padding: 30px; border-radius: 16px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center; } h3 { margin-bottom: 20px; font-weight: 800; color: #fff; } input { width: 100%; padding: 14px; margin: 15px 0; border-radius: 10px; border: 1px solid #444; background: #262626; color: #fff; box-sizing: border-box; outline: none; } input:focus { border-color: #0095f6; } button { width: 100%; padding: 14px; background: #fff; color: #000; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.3s; } button:hover { opacity: 0.8; transform: scale(1.01); } .result-area { margin-top: 30px; padding: 20px; border: 1px solid #333; border-radius: 12px; background: #111; } video { width: 100%; border-radius: 10px; margin-bottom: 15px; border: 1px solid #333; } .error-msg { color: #ff4d4d; font-size: 14px; } small { color: #555; display: block; margin-top: 15px; font-size: 11px; } </style> </head> <body> <div class="test-card"> <h3>🧪 Tester (Dark Mode)</h3> <form method="POST"> <input type="url" name="test_url" placeholder="Paste link Threads di sini..." required value="<?= isset($_POST['test_url']) ? htmlspecialchars($_POST['test_url']) : '' ?>"> <button type="submit">Kirim POST ke Server</button> </form> <?php if ($response_html): ?> <div class="result-area"> <?php // Ambil konten dari div class preview if (preg_match('/<div class="preview">(.*?)<\/div>/s', $response_html, $matches)) { $content = $matches[1]; // PERBAIKAN FORM ACTION: Arahkan ke server utama agar download bekerja $content = str_replace('<form method="POST">', '<form method="POST" action="'.$target_script_url.'">', $content); echo $content; } else { echo "<p class='error-msg'>Gagal mengambil preview video dari server utama.</p>"; } ?> </div> <?php endif; ?> <small>Target: <?= htmlspecialchars($target_script_url) ?></small> </div> </body> </html>
Run Code New Tab
Result