From ea498e3fa7214adef7e721284710b1c062b35151 Mon Sep 17 00:00:00 2001 From: Phillip L Date: Mon, 26 Mar 2018 20:36:05 +0200 Subject: [PATCH] Removed js redirect and use PHP. Should fix PRG for some browsers --- ydl.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ydl.php b/ydl.php index e67ee23..0bad59b 100644 --- a/ydl.php +++ b/ydl.php @@ -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'; @@ -70,8 +65,6 @@ ". File size: " . (folderSize($md5_date) / 1000000) . "mb"; $log = file_put_contents($logFileName, $data . PHP_EOL, FILE_APPEND | LOCK_EX); - - echo ''; - echo '

DOWNLOAD HERE

'; - -} \ No newline at end of file + + header('Location: ./dl.php?folder=' . $md5_date); +}