This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get the 'id' from the URL parameters | |
$id = isset($_GET['id']) ? $_GET['id'] : null; | |
if ($id) { | |
// API endpoint for the first request | |
$apiUrl = "https://terabox.hnn.workers.dev/api/get-info?shorturl={$id}&pwd="; | |
// Initialize a cURL session for the first request | |
$ch = curl_init(); |