You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Mastercooling
God
Quoted
Sie versuchen, auf eine Datei zuzugreifen, die auf einer privaten Mitgliederseite auf Tripod kostenlos gehostet wird:
http://mitglied.lycos.de/xxxxxxxxxxxxxxxx/xxxxx.avi
Um auf diese Datei zuzugreifen, müssen Sie in den Account über die Startseite der Mitgliderseite einsteigen:
http://mitglied.lycos.de/xxxxxxxx
(Weiterleitung in 5 Sekunden)
lacc4
Unregistered
lacc4
Unregistered
Quoted from "Daywalker2004"
Das kannste relativ einfach mit nem PHP Downloadscript machen wenn du das Know-How hast.
So hab ich das jedenfalls immer gemacht...
Daywalker313
Senior Member
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<?php if (!isset($_REQUEST['dl'])) { echo "<html><body>Es wurde kein File zum Download ausgewählt.</body></html>"; exit; } else { $filename = $_REQUEST['dl']; $ext = substr( $filename,-3 ); if( $filename == "" ) { echo "<html><body>Es wurde kein File zum Download ausgewählt.</body></html>"; exit; } elseif ( ! file_exists( $filename ) ) { echo "<html><body>Fehler: Datei existiert nicht</body></html>"; exit; }; switch( $ext ){ case "pdf": $ctype="application/pdf"; break; case "exe": $ctype="application/octet-stream"; break; case "zip": $ctype="application/zip"; break; case "doc": $ctype="application/msword"; break; case "xls": $ctype="application/vnd.ms-excel"; break; case "ppt": $ctype="application/vnd.ms-powerpoint"; break; case "gif": $ctype="image/gif"; break; case "png": $ctype="image/png"; break; case "jpg": $ctype="image/jpg"; break; default: $ctype="application/force-download"; } header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: $ctype"); $user_agent = strtolower ($_SERVER["HTTP_USER_AGENT"]); if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpos($user_agent, "win")))) { header( "Content-Disposition: filename=".basename($filename).";" ); } else { header( "Content-Disposition: attachment; filename=".basename($filename).";" ); } header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($filename)); readfile("$filename"); exit(); } ?> |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<?php if (!isset($_REQUEST['dl'])) { echo "<html><body>Es wurde kein File zum Download ausgewählt.</body></html>"; exit; } else { $filename = $_REQUEST['dl']; $ext = substr( $filename,-3 ); if( $filename == "" ) { echo "<html><body>Es wurde kein File zum Download ausgewählt.</body></html>"; exit; } elseif ( ! file_exists( $filename ) ) { echo "<html><body>Fehler: Datei existiert nicht</body></html>"; exit; }; switch( $ext ){ case "pdf": $ctype="application/pdf"; break; case "exe": $ctype="application/octet-stream"; break; case "zip": $ctype="application/zip"; break; case "doc": $ctype="application/msword"; break; case "xls": $ctype="application/vnd.ms-excel"; break; case "ppt": $ctype="application/vnd.ms-powerpoint"; break; case "gif": $ctype="image/gif"; break; case "png": $ctype="image/png"; break; case "jpg": $ctype="image/jpg"; break; default: $ctype="application/force-download"; } header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: $ctype"); $user_agent = strtolower ($_SERVER["HTTP_USER_AGENT"]); if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpos($user_agent, "win")))) { header( "Content-Disposition: filename=".basename($filename).";" ); } else { header( "Content-Disposition: attachment; filename=".basename($filename).";" ); } header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($filename)); readfile("$filename"); exit(); } ?> |
-