[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved. 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 9 the GNU General Public License as published by the Free Software Foundation; 10 either version 2 of the License, or (at your option) any later version. 11 12 The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html 13 A copy is found in the textfile GPL.txt and important notices to the license 14 from the author is found in LICENSE.txt distributed with these scripts. 15 16 This script is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 18 PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 This copyright notice MUST APPEAR in all copies of the script! 21 *************************************************************************************/ 22 23 24 // ---------------------------------------------------------------- 25 // obligate check for phpwcms constants 26 if (!defined('PHPWCMS_ROOT')) { 27 die("You Cannot Access This Script Directly, Have a Nice Day."); 28 } 29 // ---------------------------------------------------------------- 30 31 32 33 //Listing eventuell im Verzeichnis enthaltener Dateien 34 $file_sql = "SELECT * FROM ".DB_PREPEND."phpwcms_file WHERE f_pid=0 AND f_uid=".$root_user_id. 35 " AND f_public=1 AND f_aktiv=1 AND f_kid=1 AND f_trash=0 ORDER BY f_name"; 36 37 if($file_result = mysql_query($file_sql, $db) or die ("error while listing files")) { 38 $file_durchlauf = 0; 39 while($file_row = mysql_fetch_array($file_result)) { 40 $filename = html_specialchars($file_row["f_name"]); 41 if(!$file_durchlauf) { //Aufbau der Zeile zum Einfließen der Filelisten-Tabelle 42 echo "<tr bgcolor=\"#F5F8F9\"><td colspan=\"2\"><table width=\"538\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; 43 } else { 44 echo "<tr bgcolor=\"#FFFFFF\"><td colspan=\"5\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n"; 45 } 46 echo "<tr>\n"; 47 echo "<td width=\"55\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"55\" border=\"0\"></td>\n"; 48 echo "<td width=\"13\" class=\"msglist\">"; 49 echo "<img src=\"img/icons/small_".extimg($file_row["f_ext"])."\" border=\"0\"></td>\n"; 50 echo "<td width=\"455\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"5\">"; 51 echo "<a href=\"fileinfo.php?fid=".$file_row["f_id"]; 52 echo "\" target=\"_blank\" onclick=\"flevPopupLink(this.href,'filedetail','scrollbars=yes,resizable=yes,width=500,height=400',1);return document.MM_returnValue;\">"; 53 echo $filename."</a>"; 54 55 echo "</td>\n"; 56 57 echo "<td width=\"15\" align=\"right\" class=\"msglist\">"; 58 echo "<a href=\"include/inc_act/act_download.php?dl=".$file_row["f_id"]; 59 echo "\" target=\"_blank\" title=\"".$BL['be_fprivfunc_dlfile'].": ".$filename."\" target=\"_blank\">"; 60 echo "<img src=\"img/button/download_disc.gif\" border=\"0\"></a>"; 61 echo "<img src=\"img/leer.gif\" width=\"2\" height=\"1\">"; //Spacer 62 echo "</td>\n"; 63 //Ende Aufbau 64 echo "</tr>\n"; 65 66 67 if($_SESSION["wcs_user_thumb"]) { 68 69 $thumb_image = get_cached_image( 70 array( "target_ext" => $file_row["f_ext"], 71 "image_name" => $file_row["f_hash"] . '.' . $file_row["f_ext"], 72 "thumb_name" => md5($file_row["f_hash"].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 73 ) 74 ); 75 76 if($thumb_image != false) { 77 echo "<tr>\n"; 78 echo "<td width=\"55\"><img src=\"img/leer.gif\" height=\"1\" width=\"55\" border=\"0\"></td>\n"; 79 echo "<td width=\"13\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\" border=\"0\"></td>\n<td width=\""; 80 echo "505\"><img src=\"img/leer.gif\" height=\"1\" width=\"6\"><a href=\"fileinfo.php?fid="; 81 echo $file_row["f_id"]."\" target=\"_blank\" onclick=\"flevPopupLink(this.href,'filedetail','scrollbars="; 82 echo "yes,resizable=yes,width=500,height=400',1); return document.MM_returnValue;\">"; 83 echo '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3]."></a></td>\n"; 84 echo "<td width=\"15\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\" border=\"0\"></td>\n</tr>\n"; 85 echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" height=\"2\" width=\"1\" border=\"0\"></td>\n</tr>\n"; 86 } 87 88 } 89 90 $file_durchlauf++; 91 } 92 if($file_durchlauf) { //Abschluss der Filelisten-Tabelle 93 echo "</table>\n"; 94 echo "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n"; 95 } 96 } //Ende Liste Dateien 97 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |