24 lines
541 B
PHP
24 lines
541 B
PHP
<?php
|
|
|
|
if(!isset($_GET['paseo']))
|
|
die();
|
|
|
|
$id = $_GET['paseo'];
|
|
|
|
require_once( dirname(dirname(dirname(dirname( __FILE__ )))) . '/wp-load.php' );
|
|
require_once (dirname( __FILE__ ) . '/libs/classes.php');
|
|
|
|
$file_helper = new Soundwalk_File_Helper();
|
|
$path = $file_helper->get_Path($id);
|
|
|
|
if (!file_exists($path . '/data.zip'))
|
|
die();
|
|
|
|
$file = $path . '/data.zip';
|
|
|
|
header("Content-Type: application/zip");
|
|
header("Content-Disposition: attachment; filename=soundwalk.zip");
|
|
header("Content-Length: " . filesize($file));
|
|
readfile($file);
|
|
|
|
?>
|