Files
epic-download/download-package.php
2026-05-06 04:31:04 +00:00

42 lines
1.0 KiB
PHP

<?php
/**
* Epic Travel & Expeditions - Complete Package Download
*
* HOW TO USE:
* 1. Upload this file to your server (anywhere accessible)
* 2. Visit: https://yourdomain.com/download-package.php
* 3. File will download automatically
*
* No website or API needs to be running - this works standalone!
*/
// Path to the zip file
$zipFile = __DIR__ . '/epic-travel-complete.zip';
// Check if file exists
if (!file_exists($zipFile)) {
die('Error: Package file not found. Please ensure epic-travel-complete.zip is in the same directory as this script.');
}
// Get file info
$fileName = basename($zipFile);
$fileSize = filesize($zipFile);
// Set headers for download
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename="' . $fileName . '"');
header('Content-Length: ' . $fileSize);
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: public');
header('Expires: 0');
// Clear output buffer
if (ob_get_level()) {
ob_end_clean();
}
// Read and output file
readfile($zipFile);
exit;
?>