Ejemplo n.º 1
0
function list_files()
{
    $base = $_GET["browse-tree"];
    $folder = $_GET["dar-list-files"];
    $cryt = new SimpleCrypt();
    $mounted_path_decrypted = $cryt->decrypt(base64_decode($_GET["mounted-path"]));
    $tpl = new templates();
    $KEY = md5(implode("", $_GET));
    if (isset($_SESSION["DAR_FILE_PAGE"][$KEY])) {
        echo $tpl->_ENGINE_parse_body($_SESSION["DAR_FILE_PAGE"][$KEY], "dar.index.php");
        return true;
    }
    $folder = str_replace($base, '', $folder);
    if (substr($folder, strlen($folder) - 1, 1) == '/') {
        $folder = substr($folder, 0, strlen($folder) - 1);
    }
    if (substr($folder, 0, 1) == '/') {
        $folder = substr($folder, 1, strlen($folder));
    }
    $folder = str_replace('//', '/', $folder);
    $array = DirFilesCaches($base, $folder, $mounted_path_decrypted);
    $foldernum = get_path_id($folder, $mounted_path_decrypted);
    $html = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='middle'><strong>{$folder}</strong></td>\n\t\t<td width=1%>" . imgtootltip('24-redo.png', "{restore}", "DarLoadPathDetails('{$foldernum}');") . "</td>\n\t</tr>\n\t</table>\n\t<hr>\n\t<table style='width:100%'>\n\t";
    while (list($num, $line) = each($array)) {
        $file_path = $line["PATH"];
        $date = $line["DATE"];
        $size = $line["SIZE"];
        $js = "DarLoadPathDetails('{$num}');";
        $size = ParseBytes($size);
        $html = $html . "\n\t\t<tr " . CellRollOver($js) . ">\n\t\t<td width=1% valign='top'>" . get_img_ext($file_path) . "</td>\n\t\t<td><code style='font-size:11px'>{$file_path}</code></td>\n\t\t<td><code style='font-size:11px'>{$size}</code></td>\n\t\t<td width=1% valign='top' nowrap>{$date}</td>\n\t\t\n\t\t</tr>\n\t\t";
    }
    $html = $html . "</table>";
    $_SESSION["DAR_FILE_PAGE"][$KEY] = $html;
    echo $tpl->_ENGINE_parse_body($html, "dar.index.php");
}
Ejemplo n.º 2
0
<tr valign="top" height="266px">
<td width="100%" style="padding-left:20px; padding-right:20px;" valign="top">
	<table id="Table_Top" width="100%" border="0" cellpadding="0"  cellspacing="0" align="center">
	<tr valign="top" height="266px">
	<td align="right" width="100%" valign="top">
	<table id="Table_Menu" width="100%" border="0" cellpadding="0"  cellspacing="0">
	<tr>
	<td align="right" width="200px" valign="top">
		<div style="position:relative;top:-20px;">
		<table id="Table_Menu" width="180px" border="0" cellpadding="0"  cellspacing="0" >
		<tr height="4px">
		<td><img src="/images/navright/top.jpg" height="4px" width="180px" /></td>
		</tr>
		<?php 
$arr_path = get_path_id($_GET[id]);
echo block("rid=16 ORDER BY date DESC", "catalog_item", "catalog_item_separator");
?>
		<tr height="4px">
		<td><img src="/images/navright/bottom.jpg" height="4px" width="180px" /></td>
		</tr>

		</table>
		</div>		
	</td>