diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/functions/func_download.php | 2 | ||||
| -rwxr-xr-x | www/httperror.php | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/www/functions/func_download.php b/www/functions/func_download.php index d9be089..26b25b1 100644 --- a/www/functions/func_download.php +++ b/www/functions/func_download.php @@ -106,6 +106,8 @@ function download_file($db, $file_id){ if(!preg_match("/^image\/.+/", $file_mime)){ header("Content-Disposition: attachment; filename=\"".$file_name."\""); + } else { + header("filename=".$file_name.""); } header("Content-Length: ".$file_size); set_time_limit(0); diff --git a/www/httperror.php b/www/httperror.php index d96f5c2..8b1a62a 100755 --- a/www/httperror.php +++ b/www/httperror.php @@ -34,6 +34,10 @@ echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>'; echo '<h2 id="Error-Page-description" >I could do that. I choose not to...</h2>'; + }elseif($_GET['e']==404){ + echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>'; + echo '<h2 id="Error-Page-description" >Wow! I didn't see that coming...Well, I'm sorry...</h2></br></br>'; + }elseif($_GET['e']==500){ echo '<h1 id="Error-Page-head" >'.$_GET['e'].'</h1>'; echo '<h2 id="Error-Page-description" >Oops! No that didn't just happen. NO....</br> Fine, it's my fault and i feel bad. </h2>'; |
