diff options
-rw-r--r-- | action.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/action.php b/action.php index c20b07d3a..c343b4c25 100644 --- a/action.php +++ b/action.php @@ -58,7 +58,13 @@ function force_download ($filename) .basename($filename)."\";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".@filesize($filename)); - set_time_limit(0); + + // Looking at the safe_mode configuration for execution time + if (ini_get('safe_mode') == 0) + { + @set_time_limit(0); + } + @readfile("$filename") or die("File not found."); } |