$handle = @opendir(PHPWCMS_ROOT . $phpwcms["ftp_path"]);
$fx = 0;
$fxsg = 0;
while ($file = @readdir($handle)) {
    if ($file != "." && $file != ".." && $file[0] != '.') {
        if (!is_dir($file) && ($fxs = filesize(PHPWCMS_ROOT . $phpwcms["ftp_path"] . $file))) {
            // test if the file should be deleted
            $file_base64 = base64_encode($file);
            if (isset($deleteFiles[$file_base64])) {
                if (@unlink(PHPWCMS_ROOT . $phpwcms["ftp_path"] . $file)) {
                    continue;
                }
            }
            $fxb = $fx % 2 ? " bgColor=\"#F9FAFB\"" : "";
            $fxsg += $fxs;
            $fxe = extimg(which_ext($file));
            // there is a big problem with special chars on Mac OS X and seems Windows too
            $filename = PHPWCMS_CHARSET != 'utf-8' && phpwcms_seems_utf8($file) ? str_replace('?', '', utf8_decode($file)) : $file;
            $filename = html($filename);
            ?>
          <tr<?php 
            echo $fxb;
            ?>
>
            <td align="center"><input name="ftp_mark[<?php 
            echo $fx;
            ?>
]" type="checkbox" id="ftp_mark_<?php 
            echo $fx;
            ?>
" value="1" class="ftp_mark" /></td>
 //Root files anzeigen
 $file_sql = "SELECT * FROM " . DB_PREPEND . "phpwcms_file WHERE f_pid=0 AND f_uid=" . $root_user_id . " AND f_public=1 AND f_aktiv=1 AND f_kid=1 AND f_trash=0 ORDER BY f_name;";
 if ($file_result = mysql_query($file_sql, $db) or die("error while listing files")) {
     $file_durchlauf = 0;
     while ($file_row = mysql_fetch_array($file_result)) {
         $filename = html($file_row["f_name"]);
         if (!$file_durchlauf) {
             //Aufbau der Zeile zum Einfließen der Filelisten-Tabelle
             echo "<tr bgcolor=\"#F5F8F9\"><td colspan=\"2\"><table width=\"538\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
         } else {
             echo "<tr bgcolor=\"#FFFFFF\"><td colspan=\"5\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n";
         }
         echo "<tr>\n";
         echo "<td width=\"37\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"37\" border=\"0\"></td>\n";
         echo "<td width=\"13\" class=\"msglist\">";
         echo "<img src=\"img/icons/small_" . extimg($file_row["f_ext"]) . "\" border=\"0\"";
         echo ' onmouseover="Tip(\'ID: ' . $file_row["f_id"] . '\');" onmouseout="UnTip()" alt=""';
         echo "></td>\n";
         echo "<td width=\"473\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"5\">";
         //438-$vor
         //echo "<a href=\"fileinfo_public.php?fid=".$file_row["f_id"];
         echo "<a href=\"fileinfo.php?public&amp;fid=" . $file_row["f_id"];
         echo "\" target=\"_blank\" onclick=\"flevPopupLink(this.href,'filedetail','scrollbars=yes,resizable=yes,width=500,height=400',1);return document.MM_returnValue;\">";
         echo $filename . "</a>";
         echo "</td>\n";
         echo "<td width=\"15\" align=\"right\" class=\"msglist\">";
         echo "<a href=\"include/inc_act/act_download.php?pl=1&dl=" . $file_row["f_id"];
         echo "\" target=\"_blank\" title=\"" . $BL['be_fprivfunc_dlfile'] . ": " . $filename . "\">";
         echo "<img src=\"img/button/download_disc.gif\" border=\"0\"></a>";
         //target='_blank'
         echo "<img src=\"img/leer.gif\" width=\"2\" height=\"1\">";
        $filename = html($filename);
        ?>
	<tr<?php 
        echo $fxb;
        ?>
>
		<td align="center"><input name="ftp_mark[<?php 
        echo $file_row["f_id"];
        ?>
]" type="checkbox" id="ftp_mark_<?php 
        echo $file_row["f_id"];
        ?>
" value="1" class="ftp_mark" /></td>
		<td bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="17" /></td>
		<td align="center"><img src="img/icons/small_<?php 
        echo extimg($file_row["f_ext"]);
        ?>
" alt="" width="13" height="11" /></td>
		<td class="v10"><?php 
        echo $filename;
        ?>
</td>
		<td bgcolor="#D9DEE3"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
		<td align="right" class="v10">
			<?php 
        //Icons Public/Non-Public
        echo "<img src=\"img/button/aktiv_12x13_" . $file_row["f_aktiv"] . ".gif\" border=\"0\">";
        echo "<img src=\"img/button/public_12x13_" . $file_row["f_public"] . ".gif\" border=\"0\">";
        ?>
&nbsp;
			<input name="ftp_fileid[<?php 
		<td><img src="img/leer.gif" alt="" width="1" height="6"></td>
	</tr>
	<tr><td class="title"><?php 
    echo $BL['be_fprivedit_title'];
    ?>
</td></tr>
	<tr>
	  <td colspan="2" valign="top"><img src="img/leer.gif" alt="" width="1" height="5"></td>
	  </tr>
	<tr>
      <td align="right" class="v09">&nbsp;</td>
      <td class="v11"><?php 
    if ($file_thumb_small) {
        echo $file_thumb_small;
    } else {
        echo '<img src="img/icons/small_' . extimg($file_ext) . '" border="0" alt="" style="position:relative;top:1px" /> ';
        echo html($file_name);
    }
    ?>
</td>
	  </tr>
	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2"></td></tr>
	<tr>
      <td><img src="img/leer.gif" alt="" width="1" height="1"></td>
      <td class="v09">
	  	ID: <strong class="v10"><?php 
    echo $file_id;
    ?>
</strong>&nbsp;&nbsp;&nbsp;&nbsp;Hash: <strong class="v10"><?php 
    echo $file_hash;
    ?>
function list_public($pid, $dbcon, $vor, $zieldatei, $userID, $show_thumb = 1, $phpwcms)
{
    $pid = intval($pid);
    //Folder Listing für Public files
    $sql = "SELECT f_id, f_name FROM " . DB_PREPEND . "phpwcms_file WHERE " . "f_pid=" . intval($pid) . " AND " . "f_public=1 AND f_aktiv=1 AND " . "f_uid=" . intval($userID) . " AND " . "f_kid=0 AND f_trash=0 ORDER BY f_sort, f_name";
    $result = mysql_query($sql, $dbcon);
    while ($row = mysql_fetch_array($result)) {
        $dirname = html($row["f_name"]);
        //Ermitteln des Aufklappwertes
        $klapp_status = empty($_SESSION["pklapp"][$row["f_id"]]) ? 1 : 0;
        //Ermitteln, ob überhaupt abhängige Dateien/Ordner existieren
        $count_sql = "SELECT COUNT(f_id) FROM " . DB_PREPEND . "phpwcms_file WHERE " . "f_pid=" . $row["f_id"] . " AND " . "f_uid=" . intval($userID) . " AND " . "f_public=1 AND f_aktiv=1 AND " . "f_trash=0 LIMIT 1";
        if ($count_result = mysql_query($count_sql, $dbcon)) {
            if ($count_row = mysql_fetch_row($count_result)) {
                $count = "<img src=\"img/leer.gif\" width=\"2\" height=\"1\">" . "<a href=\"" . $zieldatei . "&pklapp=" . $row["f_id"] . "|" . $klapp_status . "\">" . on_off($klapp_status, $dirname, 0) . "</a>";
                $count_wert = $count_row[0];
            }
            mysql_free_result($count_result);
        }
        //Aufbau der Zeile
        echo "<tr bgcolor=\"#EBF2F4\"><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n";
        //Abstand vor
        echo "<tr bgcolor=\"#EBF2F4\">\n";
        //Einleitung Tabellenzeile
        echo "<td width=\"488\" class='msglist'>";
        //Einleiten der Tabellenzelle
        echo $count . "<img src=\"img/leer.gif\" height=\"1\" width=\"" . ($vor + 6) . "\" border=\"0\"><img src=\"img/icons/folder_zu.gif\" border=\"0\">";
        //Zellinhalt 1. Spalte
        echo "<img src=\"img/leer.gif\" height=\"1\" width=\"5\"><strong>" . $dirname;
        //Zellinhalt 1. Spalte Fortsetzung
        echo "</strong></td>\n";
        //Schließen Zelle 1. Spalte
        //Zelle 2. Spalte - vorgesehen für Buttons/Tasten Edit etc.
        echo "<td width=\"50\" align=\"right\" class=\"msglist\">";
        echo "<img src=\"img/leer.gif\" width=\"50\" height=\"1\">";
        //Spacer
        echo "</td>\n";
        echo "</tr>\n";
        //Abschluss Tabellenzeile
        //Aufbau trennende Tabellen-Zeile
        echo "<tr bgcolor=\"#EBF2F4\"><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n";
        //Abstand nach
        echo "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n";
        //Trennlinie<img src='img/lines/line-lightgrey-dotted-538.gif'>
        //Weiter, wenn Unterstruktur
        if (!$klapp_status && $count_wert) {
            //$vor."<img src='img/leer.gif' height=1 width=18 border=0>"
            list_public($row["f_id"], $dbcon, $vor + 18, $zieldatei, $userID, $show_thumb, $phpwcms);
            //Listing eventuell im Verzeichnis enthaltener Dateien
            $file_sql = "SELECT * FROM " . DB_PREPEND . "phpwcms_file WHERE f_pid=" . $row["f_id"] . " AND f_uid=" . intval($userID) . " AND f_public=1 AND f_aktiv=1 AND f_kid=1 AND f_trash=0 ORDER BY f_sort, f_name";
            if ($file_result = mysql_query($file_sql, $dbcon) or die("error while listing files")) {
                $file_durchlauf = 0;
                while ($file_row = mysql_fetch_array($file_result)) {
                    $filename = html($file_row["f_name"]);
                    if (!$file_durchlauf) {
                        //Aufbau der Zeile zum Einfließen der Filelisten-Tabelle
                        echo "<tr bgcolor=\"#F5F8F9\"><td colspan=\"2\"><table width=\"538\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
                    } else {
                        echo "<tr bgcolor=\"#FFFFFF\"><td colspan=\"5\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n";
                    }
                    echo "<tr>\n";
                    echo "<td width=\"" . ($vor + 37) . "\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"" . ($vor + 37) . "\" border=\"0\"></td>\n";
                    echo "<td width=\"13\" class=\"msglist\">";
                    echo "<img src=\"img/icons/small_" . extimg($file_row["f_ext"]) . "\" border=\"0\"";
                    echo ' onmouseover="Tip(\'ID: ' . $file_row["f_id"] . '&lt;br&gt;Sort: ' . $file_row["f_sort"] . '\');" onmouseout="UnTip()" alt=""';
                    echo "></td>\n";
                    echo "<td width=\"" . (473 - $vor) . "\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"5\">";
                    //438-$vor
                    echo "<a href=\"fileinfo.php?public&amp;fid=" . $file_row["f_id"];
                    echo "\" target=\"_blank\" onclick=\"flevPopupLink(this.href,'filedetail','scrollbars=yes,resizable=yes,width=500,height=400',1);return document.MM_returnValue;\">";
                    echo $filename . "</a>";
                    echo "</td>\n";
                    echo "<td width=\"15\" align=\"right\" class=\"msglist\">";
                    echo "<a href=\"include/inc_act/act_download.php?pl=1&dl=" . $file_row["f_id"];
                    echo "\" target=\"_blank\" title=\"" . $GLOBALS['BL']['be_fprivfunc_dlfile'] . ": " . $filename . "\">";
                    echo "<img src=\"img/button/download_disc.gif\" border=0></a>";
                    //target='_blank'
                    echo "<img src=\"img/leer.gif\" width=\"2\" height=\"1\">";
                    //Spacer
                    echo "</td>\n";
                    //Ende Aufbau
                    echo "</tr>\n";
                    if ($_SESSION["wcs_user_thumb"]) {
                        $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"] . $phpwcms['colorspace'])));
                        if ($thumb_image != false) {
                            echo "<tr>\n";
                            echo "<td width=\"" . ($vor + 37) . "\"><img src=\"img/leer.gif\" height=\"1\" width=\"" . ($vor + 37) . "\" border=\"0\"></td>\n";
                            echo "<td width=\"13\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\" border=\"0\"></td>\n<td width=\"";
                            echo 473 - $vor . "\"><img src=\"img/leer.gif\" height=\"1\" width=\"6\"><a href=\"fileinfo.php?public&amp;fid=";
                            echo $file_row["f_id"] . "\" target=\"_blank\" onclick=\"flevPopupLink(this.href,'filedetail','scrollbars=";
                            echo "yes,resizable=yes,width=500,height=400',1); return document.MM_returnValue;\">";
                            echo '<img src="' . PHPWCMS_IMAGES . $thumb_image[0] . '" border="0" ' . $thumb_image[3];
                            echo ' onmouseover="Tip(\'ID: ' . $file_row["f_id"] . '\');" onmouseout="UnTip()" alt=""';
                            echo "></a></td>\n";
                            echo "<td width=\"15\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\" border=\"0\"></td>\n</tr>\n";
                            echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" height=\"2\" width=\"1\" border=\"0\"></td>\n</tr>\n";
                        }
                    }
                    $file_durchlauf++;
                }
                if ($file_durchlauf) {
                    //Abschluss der Filelisten-Tabelle
                    echo "</table>\n";
                    echo "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\"></td></tr>\n";
                }
            }
            //Ende Liste Dateien
        }
        //Zaehler mitführen
        $_SESSION["list_zaehler"]++;
    }
    mysql_free_result($result);
    return $vor;
}
Exemple #6
0
            }
            // show "add all files"
            if ($file_durchlauf === 0 && $add_all) {
                echo '
						<tr id="addAllFilesLink">
							<td colspan="4" class="add_all_files"><a href="#" onclick="addAllFiles();return false;" title="' . $BL['ADD_ALL_FILES'] . '">' . $BL['ADD_ALL_FILES'] . '
								<img src="img/button/add_9x9a.gif" alt="" border="0" />
								</a></td>
						</tr>
						<tr>
							<td colspan="4" bgcolor="#CDDEE4"><img src="img/leer.gif" alt="" border="0" /></td>
						</tr>
						  ';
            }
            echo '<tr><td colspan="4"><img src="img/leer.gif" width="1" height="2" border="0" alt="" /></td></tr>' . LF;
            echo "<tr>\n<td><img src=\"img/icons/small_" . extimg($file_row["f_ext"]) . "\" border=\"0\" alt=\"\" hspace=\"3\" vspace=\"1\" /></td>\n";
            if ($js_aktion != 4 && $js_aktion != 10 && $js_aktion != 16) {
                echo "<td class=\"msglist\">" . $filename . "</td>\n<td><img src=\"img/leer.gif\" width=\"5\" height=\"1\" alt=\"\" border=\"0\" />";
            } else {
                echo "<td class=\"msglist\"><a href=\"#\" onclick=\"" . $js . "tmt_winControl('self','close()');\">" . $filename . "</a></td>\n<td align=\"right\">";
            }
            echo "<a href=\"#\" onclick=\"" . $js . "return false;\" title=\"" . $BL['TAKE_IMAGE'] . "\">";
            echo "<img src=\"img/button/add_9x9a.gif\" border=\"0\" alt=\"\" hspace=\"5\" vspace=\"2\" /></a></td>\n";
            echo "<td><img src=\"img/leer.gif\" alt=\"\" border=\"0\" /></td>\n</tr>\n";
            echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></td></tr>\n";
            if (!empty($thumb_image[0]) && in_array($js_aktion, array(0, 1, 3, 5, 6, 7, 8, 10, 11, 17, 18))) {
                echo "<tr><td>&nbsp;</td>\n<td colspan=\"3\"><a href=\"#\" onclick=\"" . $js;
                echo "tmt_winControl('self','close()');\">";
                echo '<img src="' . PHPWCMS_IMAGES . $thumb_image[0] . '" border="0" ' . $thumb_image[3] . ' alt="" />';
                echo "</a></td>\n</tr>\n";
            }
Exemple #7
0
		window.resizeTo(width,height);
	}
		</script>
	';
            ?>

	<link href="include/inc_css/phpwcms.min.css" rel="stylesheet" type="text/css" />
</head>

<body onload="ResizeAndCenter();">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#C1D2E2" summary="">
  <tr bgcolor="#C1D2E2"><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
  <tr bgcolor="#C1D2E2">
    <td width="10"><img src="img/leer.gif" alt="" width="10" height="1" /></td>
    <td width="20"><img src='img/icons/small_<?php 
            echo extimg($row["f_ext"]);
            ?>
' alt="" border="0" /></td>
    <td width="518" class="h14b"><strong><?php 
            echo $filename;
            ?>
</strong></td>
    <td width="10"><img src="img/leer.gif" alt="" width="10" height="1" /></td>
  </tr>
  <tr bgcolor="#C1D2E2"><td colspan="4"><img src="img/leer.gif" alt="" width="10" height="6" /></td></tr>
  <tr bgcolor="#363E57"><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  <tr><td colspan="4" bgcolor="#F5F8F9"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
  <tr>
    <td bgcolor="#F5F8F9"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
    <td bgcolor="#F5F8F9"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
    <td bgcolor="#F5F8F9"><table width="518" border="0" cellpadding="0" cellspacing="0" summary="">
Exemple #8
0
                    }
                }
            }
        }
    }
    if (count($fxb)) {
        $fx = 0;
        $cinfo_files = '';
        foreach ($fxb as $key => $value) {
            if (!isset($fxb[$key]["fname"])) {
                continue;
            }
            if ($fx) {
                $cinfo_files .= "<br />";
            }
            $cinfo_files .= "<img src=\"img/icons/small_" . extimg($fxb[$key]["fext"]) . "\" border=\"0\">";
            $cinfo_files .= "<img src=\"img/leer.gif\" width=\"3\" height=\"1\" border=\"0\">";
            $cinfo_files .= $fxb[$key]["fname"];
            $fx++;
        }
    }
} else {
    $cinfo_files = "";
}
$cinfo["result"] = trim($cinfo["result"]);
if ($cinfo["result"] && $cinfo_files) {
    $cinfo["result"] = html($cinfo["result"]) . "<br />" . $cinfo_files;
} else {
    if ($cinfo_files) {
        $cinfo["result"] = $cinfo_files;
    } else {
function list_private($pid, $dbcon, $vor, $zieldatei, $userID, $cutID = 0, $show_thumb = 1, $phpwcms)
{
    $cutID = intval($cutID);
    $pid = intval($pid);
    $sql = "SELECT * FROM " . DB_PREPEND . "phpwcms_file f ";
    $sql .= "LEFT JOIN " . DB_PREPEND . "phpwcms_user u ON u.usr_id=f.f_uid ";
    $sql .= "WHERE ";
    $sql .= "f.f_pid=" . intval($pid) . " AND ";
    if (empty($_SESSION["wcs_user_admin"])) {
        $sql .= "f.f_uid=" . intval($userID) . " AND ";
    }
    $sql .= "f.f_kid=0 AND f.f_trash=0 ORDER BY f_sort, f_name";
    $result = mysql_query($sql, $dbcon);
    while ($row = mysql_fetch_array($result)) {
        $dirname = html($row["f_name"]);
        if ($_SESSION["wcs_user_id"] != $row["f_uid"]) {
            $dirname .= ' (' . html($row["usr_login"]) . ')';
        }
        //Ermitteln des Aufklappwertes
        $klapp_status = empty($_SESSION["klapp"][$row["f_id"]]) ? 1 : 0;
        //Ermitteln, ob überhaupt abhängige Dateien/Ordner existieren
        $count_sql = "SELECT COUNT(f_id) FROM " . DB_PREPEND . "phpwcms_file WHERE ";
        $count_sql .= "f_pid=" . $row["f_id"] . " AND ";
        if (empty($_SESSION["wcs_user_admin"])) {
            $count_sql .= "f_uid=" . intval($userID) . " AND ";
        }
        $count_sql .= "f_trash=0 LIMIT 1";
        if ($count_result = mysql_query($count_sql, $dbcon)) {
            if ($count_row = mysql_fetch_row($count_result)) {
                $count = '<img src="img/leer.gif" width="2" height="1">' . '<a href="' . $zieldatei . "&amp;klapp=" . $row["f_id"] . '%7C' . $klapp_status . '">' . on_off($klapp_status, $dirname, 0) . "</a>";
                // | = %7C
                $count_wert = $count_row[0];
            }
            mysql_free_result($count_result);
        }
        //Aufbau der Zeile
        echo '<tr bgcolor="#EBF2F4"><td colspan="2"><img src="img/leer.gif" height="1" width="1" alt="" /></td></tr>' . "\n";
        //Abstand vor
        echo "<tr bgcolor=\"#EBF2F4\">\n";
        //Einleitung Tabellenzeile
        echo "<td width=\"438\" class=\"msglist\">";
        //Einleiten der Tabellenzelle
        echo $count . "<img src=\"img/leer.gif\" height=\"1\" width=\"" . ($vor + 6) . "\" border=\"0\">";
        // Gallery status
        switch ($row["f_gallerystatus"]) {
            case 2:
                // gallery root dir
                echo '<img src="img/icons/folder_galleryroot.gif" border="0" alt="' . $GLOBALS['BL']['be_gallery_root'] . '" title="' . $GLOBALS['BL']['be_gallery_root'] . '" />';
                break;
            case 3:
                // gallery subdir
                echo '<img src="img/icons/folder_gallerysub.gif" border="0" alt="' . $GLOBALS['BL']['be_gallery_directory'] . '" title="' . $GLOBALS['BL']['be_gallery_directory'] . '" />';
                break;
            default:
                echo "<img src=\"img/icons/folder_zu.gif\" border=\"0\" alt=\"\" />";
        }
        echo "<img src=\"img/leer.gif\" height=\"1\" width=\"5\"><strong>" . $dirname;
        //Zellinhalt 1. Spalte Fortsetzung
        echo "</strong></td>\n";
        //Schließen Zelle 1. Spalte
        //Zelle 2. Spalte - vorgesehen für Buttons/Tasten Edit etc.
        echo "<td width=\"100\" align=\"right\" class=\"msglist\">";
        //Button zum Uploaden einer Datei in dieses Verzeichnisses
        echo "<a href=\"" . $zieldatei . "&amp;upload=" . $row["f_id"] . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_upload'] . ": " . $dirname . "\">";
        echo "<img src=\"img/button/upload_13x13.gif\" border=\"0\" alt=\"\" /></a>";
        if (!$cutID) {
            //Button zum Erzeugen eines Neuen Unterverzeichnisses
            echo "<a href=\"" . $zieldatei . "&amp;mkdir=" . $row["f_id"] . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_makenew'] . ": " . $dirname . "\">";
            echo "<img src=\"img/button/add_13x13.gif\" border=\"0\" alt=\"\" /></a>";
        } else {
            //Button zum Einfügen der Clipboard-Datei in das Verzeichnis
            echo "<a href=\"include/inc_act/act_file.php?paste=" . $cutID . '%7C' . $row["f_id"] . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_paste'] . ": " . $dirname . "\">";
            echo "<img src=\"img/button/paste_13x13.gif\" border=\"0\" alt=\"\" /></a>";
        }
        //Button zum Bearbeiten des Verzeichnisses
        echo "<a href=\"" . $zieldatei . "&amp;editdir=" . $row["f_id"] . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_edit'] . ": " . $dirname . "\">";
        echo "<img src=\"img/button/edit_22x13.gif\" border=\"0\" alt=\"\" /></a>";
        //Button zum Umschalten zwischen Aktiv/Inaktiv
        echo "<a href=\"include/inc_act/act_file.php?aktiv=" . $row["f_id"] . '%7C' . true_false($row["f_aktiv"]) . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_cactive'] . ": " . $dirname . "\">";
        echo "<img src=\"img/button/aktiv_12x13_" . $row["f_aktiv"] . ".gif\" border=\"0\" alt=\"\" /></a>";
        //Button zum Umschalten zwischen Public/Non-Public
        echo "<a href=\"include/inc_act/act_file.php?public=" . $row["f_id"] . '%7C' . true_false($row["f_public"]) . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_cpublic'] . ": " . $dirname . "\">";
        echo "<img src=\"img/button/public_12x13_" . $row["f_public"] . ".gif\" border=\"0\" alt=\"\" /></a>";
        echo "<img src=\"img/leer.gif\" width=\"5\" height=\"1\">";
        //Spacer
        //Button zum Löschen des Verzeichnisses, wenn leer
        if (!$count_wert) {
            echo "<a href=\"include/inc_act/act_file.php?delete=" . $row["f_id"] . '%7C' . "9" . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_deldir'] . ": " . $dirname . "\" onclick=\"return confirm('" . $GLOBALS['BL']['be_fprivfunc_jsdeldir'] . " \\n[" . $dirname . "]? ');\">";
            echo "<img src=\"img/button/trash_13x13_1.gif\" border=\"0\" alt=\"\" /></a>";
        } else {
            echo "<img src=\"img/button/trash_13x13_0.gif\" title=\"";
            echo str_replace('{VAL}', $dirname, $GLOBALS['BL']['be_fprivfunc_notempty']) . '" border="0" alt="" />';
        }
        echo "<img src=\"img/leer.gif\" width=\"2\" height=\"1\" border=\"0\" alt=\"\" />";
        //Spacer
        echo "</td>\n";
        echo "</tr>\n";
        //Abschluss Tabellenzeile
        //Aufbau trennende Tabellen-Zeile
        echo "<tr bgcolor=\"#EBF2F4\"><td colspan=\"2\"><img src=\"img/leer.gif\" border=\"0\" alt=\"\" /></td></tr>\n";
        //Abstand nach
        echo "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" border=\"0\" alt=\"\" /></td></tr>\n";
        //Trennlinie<img src='img/lines/line-lightgrey-dotted-538.gif'>
        //Weiter, wenn Unterstruktur
        if (!$klapp_status && $count_wert) {
            //$vor."<img src='img/leer.gif' height=1 width=18 border=0>"
            list_private($row["f_id"], $dbcon, $vor + 18, $zieldatei, $userID, $cutID, $show_thumb, $phpwcms);
            //Listing eventuell im Verzeichnis enthaltener Dateien
            $file_sql = "SELECT * FROM " . DB_PREPEND . "phpwcms_file WHERE f_pid=" . $row["f_id"];
            if (empty($_SESSION["wcs_user_admin"])) {
                $file_sql .= " AND f_uid=" . $userID;
            }
            $file_sql .= " AND f_kid=1 AND f_trash=0 ORDER BY f_sort, f_name";
            if ($file_result = mysql_query($file_sql, $dbcon) or die("error while listing files")) {
                $file_durchlauf = 0;
                while ($file_row = mysql_fetch_array($file_result)) {
                    $filename = html($file_row["f_name"]);
                    $file_row["edit"] = '<a href="' . $zieldatei . "&amp;editfile=" . $file_row["f_id"] . '" title="' . $GLOBALS['BL']['be_fprivfunc_editfile'] . ": " . $filename . '">';
                    if (!$file_durchlauf) {
                        //Aufbau der Zeile zum Einfließen der Filelisten-Tavbelle
                        echo "<tr bgcolor=\"#F5F8F9\"><td colspan=\"2\"><table width=\"538\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
                        echo "<!-- start file list: private-functions //-->\n";
                    } else {
                        echo "<tr bgcolor=\"#FFFFFF\"><td colspan=\"5\"><img src=\"img/leer.gif\" border=\"0\" alt=\"\" /></td></tr>\n";
                    }
                    echo "<tr>\n";
                    echo "<td width=\"" . ($vor + 37) . "\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"" . ($vor + 37) . "\" border=\"0\" alt=\"\" /></td>\n";
                    echo "<td width=\"13\" class=\"msglist\">";
                    echo "<img src=\"img/icons/small_" . extimg($file_row["f_ext"]) . "\" border=\"0\" ";
                    echo 'onmouseover="Tip(\'ID: ' . $file_row["f_id"] . '&lt;br&gt;Sort: ' . $file_row["f_sort"];
                    echo '&lt;br&gt;Name: ' . html($file_row["f_name"]);
                    if ($file_row["f_copyright"]) {
                        echo '&lt;br&gt;&copy;: ' . html($file_row["f_copyright"]);
                    }
                    echo '\');" onmouseout="UnTip()" alt=""';
                    echo " /></td>\n";
                    echo "<td width=\"" . (388 - $vor) . "\" class=\"msglist\"><img src=\"img/leer.gif\" height=\"1\" width=\"5\" border=\"0\" alt=\"\" />";
                    //echo "<a href=\"fileinfo.php?fid=".$file_row["f_id"];
                    //echo "\" target=\"_blank\" onclick=\"flevPopupLink(this.href,'filedetail','scrollbars=yes,resizable=yes,width=500,height=400',1);return document.MM_returnValue;\">";
                    echo $file_row["edit"] . $filename . "</a></td>\n";
                    //Aufbauen Buttonleiste für jeweilige Datei
                    echo "<td width=\"100\" align=\"right\" class=\"msglist\">";
                    //Button zum Downloaden der Datei
                    echo "<a href=\"include/inc_act/act_download.php?dl=" . $file_row["f_id"] . "\"  target=\"_blank\" title=\"" . $GLOBALS['BL']['be_fprivfunc_dlfile'] . ": " . $filename . "\">" . "<img src=\"img/button/download_disc.gif\" border=\"0\" alt=\"\" /></a>";
                    //target='_blank'
                    //Button zum Erzeugen eines Neuen Unterverzeichnisses
                    if ($cutID == $file_row["f_id"]) {
                        echo "<img src=\"img/button/cut_13x13_1.gif\" border=\"0\" title=\"" . $GLOBALS['BL']['be_fprivfunc_clipfile'] . ": " . $filename . "\" alt=\"\" />";
                    } else {
                        echo "<a href=\"" . $zieldatei . "&amp;cut=" . $file_row["f_id"] . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_cutfile'] . ": " . $filename . "\">";
                        echo "<img src=\"img/button/cut_13x13_0.gif\" border=\"0\" alt=\"\" /></a>";
                    }
                    //Button zum Bearbeiten der Dateiinformationn
                    echo $file_row["edit"];
                    echo "<img src=\"img/button/edit_22x13.gif\" border=\"0\" alt=\"\" /></a>";
                    //Button zum Umschalten zwischen Aktiv/Inaktiv
                    echo "<a href=\"include/inc_act/act_file.php?aktiv=" . $file_row["f_id"] . '%7C' . true_false($file_row["f_aktiv"]) . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_cactivefile'] . ": " . $filename . "\">";
                    echo "<img src=\"img/button/aktiv_12x13_" . $file_row["f_aktiv"] . ".gif\" border=\"0\" alt=\"\" /></a>";
                    //Button zum Umschalten zwischen Public/Non-Public
                    echo "<a href=\"include/inc_act/act_file.php?public=" . $file_row["f_id"] . '%7C' . true_false($file_row["f_public"]) . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_cpublicfile'] . ": " . $filename . "\">";
                    echo "<img src=\"img/button/public_12x13_" . $file_row["f_public"] . ".gif\" border=\"0\" alt=\"\" /></a>";
                    echo "<img src=\"img/leer.gif\" width=\"5\" height=\"1\">";
                    //Spacer
                    //Button zum Löschen der Datei
                    if ($file_row["f_uid"] == intval($_SESSION["wcs_user_id"])) {
                        //if user is owner then delete button is active
                        echo "<a href=\"include/inc_act/act_file.php?trash=" . $file_row["f_id"] . '%7C' . "1" . "\" title=\"" . $GLOBALS['BL']['be_fprivfunc_movetrash'] . ": " . $filename . "\" onclick=\"return confirm('" . $GLOBALS['BL']['be_fprivfunc_jsmovetrash1'] . "\\n[" . $filename . "]\\n" . $GLOBALS['BL']['be_fprivfunc_jsmovetrash2'] . "');\">" . "<img src=\"img/button/trash_13x13_1.gif\" border=\"0\" alt=\"\" /></a>";
                    } else {
                        echo "<img src=\"img/button/trash_13x13_0.gif\" border=\"0\">";
                    }
                    echo "<img src=\"img/leer.gif\" width=\"2\" height=\"1\" border=\"0\" alt=\"\" />";
                    //Spacer
                    echo "</td>\n";
                    //Ende Aufbau
                    echo "</tr>\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"] . $phpwcms['colorspace'])));
                        if ($thumb_image != false) {
                            echo "<tr>\n";
                            echo "<td width=\"" . ($vor + 37) . "\"><img src=\"img/leer.gif\" height=\"1\" width=\"" . ($vor + 37) . "\" border=\"0\" alt=\"\" /></td>\n";
                            echo "<td width=\"13\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\" border=\"0\" alt=\"\" /></td>\n<td width=\"";
                            echo 388 - $vor . "\"><img src=\"img/leer.gif\" height=\"1\" width=\"6\" border=\"0\" alt=\"\" />";
                            //<a href=\"fileinfo.php?fid=";
                            //echo $file_row["f_id"]."\" target=\"_blank\" onclick=\"flevPopupLink(this.href,'filedetail','scrollbars=";
                            //echo "yes,resizable=yes,width=500,height=400',1); return document.MM_returnValue;\">";
                            echo $file_row["edit"];
                            echo '<img src="' . PHPWCMS_IMAGES . $thumb_image[0] . '" border="0" ' . $thumb_image[3] . ' ';
                            echo 'onmouseover="Tip(\'ID: ' . $file_row["f_id"] . '&lt;br&gt;Sort: ' . $file_row["f_sort"];
                            echo '&lt;br&gt;Name: ' . html($file_row["f_name"]);
                            if ($file_row["f_copyright"]) {
                                echo '&lt;br&gt;&copy;: ' . html($file_row["f_copyright"]);
                            }
                            echo '\');" onmouseout="UnTip()" alt=""';
                            echo " /></a></td>\n";
                            echo "<td width=\"100\"><img src=\"img/leer.gif\" border=\"0\" alt=\"\" /></td>\n</tr>\n";
                            echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" height=\"2\" width=\"1\" border=\"0\" alt=\"\" /></td>\n</tr>\n";
                        }
                    }
                    $file_durchlauf++;
                }
                if ($file_durchlauf) {
                    //Abschluss der Filelisten-Tabelle
                    echo "</table>\n<!-- end file list: private-functions //-->\n";
                    echo "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" border=\"0\" alt=\"\" /></td></tr>\n";
                }
            }
            //Ende Liste Dateien
        }
        //Zaehler mitführen
        $_SESSION["list_zaehler"]++;
    }
    mysql_free_result($result);
    return $vor;
}