// All rights reserved. This script is part of PHPWCMS. The PHPWCMS web content management system is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html A copy is found in the textfile GPL.txt and important notices to the license from the author is found in LICENSE.txt distributed with these scripts. This script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This copyright notice MUST APPEAR in all copies of the script! *************************************************************************************/ // ---------------------------------------------------------------- // obligate check for phpwcms constants if (!defined('PHPWCMS_ROOT')) { die("You Cannot Access This Script Directly, Have a Nice Day."); } // ---------------------------------------------------------------- //Listing eventuell im Verzeichnis enthaltener Dateien $file_sql = "SELECT * FROM ".DB_PREPEND."phpwcms_file WHERE f_pid=0 AND f_uid=".$_SESSION["wcs_user_id"]. " AND f_kid=1 AND f_trash=0 ORDER BY f_sort, f_name"; if($file_result = mysql_query($file_sql, $db) or die ("error while listing files")) { $file_durchlauf = 0; $zieldatei = "phpwcms.php?do=files&f=0"; while($file_row = mysql_fetch_array($file_result)) { $filename = html_specialchars($file_row["f_name"]); if(!$file_durchlauf) { //Aufbau der Zeile zum Einfließen der Filelisten-Tavbelle echo "\n"; } else { echo "\n"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; //Aufbauen Buttonleiste für jeweilige Datei echo "\n"; //Ende Aufbau echo "\n"; if($_SESSION["wcs_user_thumb"]) { // now try to get existing thumbnails or if not exists // build new based on default thumbnail listing sizes // build thumbnail image name $thumb_image = get_cached_image( array( "target_ext" => $file_row["f_ext"], "image_name" => $file_row["f_hash"] . '.' . $file_row["f_ext"], "thumb_name" => md5($file_row["f_hash"].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) ) ); if($thumb_image != false) { echo "\n"; echo "\n"; echo "\n'."\n"; echo "\n\n"; echo "\n\n"; } } $file_durchlauf++; } if($file_durchlauf) { //Abschluss der Filelisten-Tabelle echo "
"; echo ""; echo ""; echo $filename.""; //Button zum Downloaden der Datei echo "". ""; //Button zum Erzeugen eines Neuen Unterverzeichnisses if($cutID == $file_row["f_id"]) { echo ""; } else { echo ""; echo ""; } //Button zum Bearbeiten der Dateiinformationn echo ""; echo ""; //Button zum Umschalten zwischen Aktiv/Inaktiv echo ""; echo ""; //Button zum Umschalten zwischen Public/Non-Public echo ""; echo ""; echo ""; //Spacer //Button zum Löschen der Datei echo "". ""; echo ""; //Spacer echo "
"; echo '
\n"; echo "\n"; //Abstand vor } } //Ende Liste Dateien ?>