Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
Removed js redirect and use PHP.
Browse files Browse the repository at this point in the history
Should fix PRG for some browsers
  • Loading branch information
p410n3 authored Mar 26, 2018
1 parent 8eae7f3 commit ea498e3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions ydl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
include "php/verification.php";
verifyLogin();

ignore_user_abort(true);
set_time_limit(0);

flush();

//Include files here
include 'php/foldersize.php';
include 'php/rrmdir.php';
Expand Down Expand Up @@ -70,8 +65,6 @@
". File size: " . (folderSize($md5_date) / 1000000) . "mb";

$log = file_put_contents($logFileName, $data . PHP_EOL, FILE_APPEND | LOCK_EX);

echo '<script>window.location = "dl.php?folder=' . $md5_date . '"</script>';
echo '<p><a href="dl.php?folder=' . $md5_date . '">DOWNLOAD HERE</a></p>';

}

header('Location: ./dl.php?folder=' . $md5_date);
}

0 comments on commit ea498e3

Please sign in to comment.