git-svn-id: http://xe-core.googlecode.com/svn/trunk@142 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-02-20 15:36:03 +00:00
parent a35379d3a6
commit d283c3cee7
2 changed files with 8 additions and 1 deletions

View file

@ -62,7 +62,7 @@
<td>{$lang->uploaded_file}</td>
<td>
<!--@foreach($document->uploaded_list as $key => $file)-->
<div><a href="./?mid={$mid}&amp;act=procDownload&amp;file_srl={$file->file_srl}&amp;sid={$file->sid}&amp;document_srl={$file->document_srl}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})</a> ({number_format($file->download_count)})</div>
<div><a href="./?mid={$mid}&amp;act=procDownloadFile&amp;file_srl={$file->file_srl}&amp;sid={$file->sid}&amp;document_srl={$file->document_srl}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})</a> ({number_format($file->download_count)})</div>
<!--@end-->
</td>
</tr>

View file

@ -152,6 +152,13 @@
$buff .= sprintf("parent.editor_insert_uploaded_file(\"%d\", \"%d\",\"%s\", \"%d\", \"%s\", \"%s\", \"%s\");\n", $document_srl, $file_info->file_srl, $file_info->source_filename, $file_info->file_size, FileHandler::filesize($file_info->file_size), $file_info->direct_download=='Y'?$file_info->uploaded_filename:'', $file_info->sid);
}
header("Content-Type: text/html; charset=UTF-8");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$buff = sprintf("<script type=\"text/javascript\">\nparent.editor_upload_clear_list(\"%s\");\n%s</script>", $document_srl, $buff);
print $buff;
exit();