Zugang zum Verzeichnis \"".$ordner."\" verweigert.
Bitte überprüfen Sie die erhaltenen Zugangsinformationen und versuchen Sie es erneut."; } else if ($e == "upload") { $userinfo = "..."; } else { $userinfo = "Inhalt von: ".$ordner.""; $userinfo .= "

In diesem Bereich stellt Ihnen die Stiftung Kulturförderung kostenfreies Material zur Verfügung und gewährt Ihnen das Recht,
dieses zu speichern und zum Zwecke der Berichterstattung zu vervielfältigen."; } //------------------------------ // // Funktionen // //------------------------------ function get_filesize($size) //give a size in bytes, and this will return the appropriate measurement format { $size = max(0, $size); $u = array('B', 'KB', 'MB', 'GB'); $i = 0; while ($size >= 1024 && $i < 4) { $size /= 1024; $i++; } return number_format($size, 1).' '.$u[$i]; } function download($filename) { // required for IE, otherwise Content-disposition is ignored if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression', 'Off'); // addition by Jorg Weske $file_extension = strtolower(substr(strrchr($filename,"."),1)); if( $filename == "" ) { echo "Download ERRORERROR: download file NOT SPECIFIED."; exit; } elseif ( ! file_exists( $filename ) ) { echo "Download ERRORERROR: File not found."; exit; }; switch( $file_extension ) { 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 "jpeg":$ctype="image/jpg"; break; case "jpg": $ctype="image/jpg"; break; case "mov": $ctype="video/quicktime"; break; default: $ctype="application/force-download"; } header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); // required for certain browsers header("Content-Type: $ctype"); // change, added quotes to allow spaces in filenames, by Rajkumar Singh header("Content-Disposition: attachment; filename=\"".basename($filename)."\";" ); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($filename)); readfile("$filename"); exit(); } function pasteIcon($file) { $suffix = strtolower(strrchr($file, '.')); switch (TRUE) { // Icons bestimmen: case $suffix == ".doc": return ".dir_files/icons/doc.png"; case $suffix == ".txt": return ".dir_files/icons/text.png"; case $suffix == ".pdf": return ".dir_files/icons/pdf.png"; case $suffix == ".xls": return ".dir_files/icons/xls.png"; case $suffix == ".ppt": return ".dir_files/icons/ppt.png"; case $suffix == ".mov": return ".dir_files/icons/qt.png"; case ($suffix == ".avi") || ($suffix ==".wmv") || ($suffix ==".mpg"): return ".dir_files/icons/movie.png"; case ($suffix == ".zip") || ($suffix ==".sit") || ($suffix == ".rar") || ($suffix == ".tar"): return ".dir_files/icons/compressed.png"; case ($suffix == ".tif") || ($suffix == ".eps") || ($suffix == ".png") || ($suffix == ".gif") || ($suffix == ".jpg"): return ".dir_files/icons/image.png"; default: return ".dir_files/icons/file.gif"; } } //--------------------------- // Download starten //--------------------------- if ($_POST) { $filename = $serverpath . $_POST['path']; download($filename); } ?> Download Center: <?=$ordner?>

Download Center

Fehler: Pfad existiert nicht

\n"); ?>

"; // Umlaute eleminieren: // $filename = utf8_encode($file); $filename = $file; $img_link = urlencode( $filename ); echo " "; // Loop Counter $i++; } // End of Loop // Close Directory closedir($dir_handle); ?>
File Preview Info Size Date Actions
".$ficon."  ".$filename." "; // EXIF Thumbnail Image $image_type = exif_imagetype($file); if (($image_type == IMAGETYPE_JPEG) || ($image_type == IMAGETYPE_TIFF_II) || ($image_type == IMAGETYPE_TIFF_MM)) { $preview_img = exif_thumbnail($file, $width, $height, $type); $exif_data = exif_read_data($file); if ($preview_img) { //echo ""; echo ""; } else { echo ""; } } else { echo ""; } // Größe und Farbraum $imagesize = getimagesize($file); if ($imagesize['channels'] == 4) { $farbraum = ""."CMYK".""; } else if ($imagesize['channels'] == 3) { $farbraum = ""."RGB".""; } $imagetype = Array (1 => "GIF", 2 => "JPEG", 3 => "PNG", 4 => "SWF", 5 => "PSD", 6 => "BMP", 7 => "TIFF", //PC 8 => "TIFF", //Mac 9 => "JPC", 10 => "JP2", 11 => "JPX", 12 => "JB2", 13 => "SWC", 14 => "IFF", 15 => "WBMP", 16 => "XBM" ); if (!empty($exif_data['XResolution'])) { $res = explode('/',$exif_data['XResolution']); $image_res = "".$res[0]/$res[1]."dpi"; } else $image_res = ""; $exif_info = ($imagesize) ? "".$imagetype[$image_type]."".$farbraum.$image_res."
".$imagesize[0]." x ".$imagesize[1]." px" : ""; echo "
".$exif_info." ".get_filesize($fsize)." ".gmdate("d.m.Y", $ferstellt) . " ". gmdate("H:i", $ferstellt)." "; // Download Btn echo "
Fenster schließen */ ?>