Changes.
This commit is contained in:
parent
4a5e5d224a
commit
70c8a87e15
25 changed files with 508 additions and 187 deletions
17
download.php
Normal file
17
download.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
require_once 'includes/globals.php';
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
use DJMixHosting\Database;
|
||||
use DJMixHosting\Mix;
|
||||
use DJMixHosting\DownloadMix;
|
||||
|
||||
if (isset($_GET['slug'])) {
|
||||
$db = new Database($config);
|
||||
$download = new DownloadMix(new Mix($_GET['slug'], $db), $db);
|
||||
$download->download();
|
||||
} else {
|
||||
header("Location: /");
|
||||
exit();
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue