From 889e8eaf7c40817663dd602a21ac771062ccac3b Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Thu, 21 Jun 2012 16:34:27 +0200 Subject: Big change, sir. Can now upload any kind of files. --- tpl/file/index.php | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 tpl/file/index.php (limited to 'tpl/file/index.php') diff --git a/tpl/file/index.php b/tpl/file/index.php new file mode 100644 index 0000000..dc8cb52 --- /dev/null +++ b/tpl/file/index.php @@ -0,0 +1,61 @@ +You have uploaded no files yet.'; +} else { + echo '

You have uploaded ' . count($files) .' files.

'; + echo ''; + echo ''; + foreach ($files as $fl) { + $min = $baseurl . $fl['id'] . "-min." . $fl['extension']; + $flf = $baseurl . $fl['id'] . "." . $fl['extension']; + echo ''; + echo ''; + echo ''; + } + echo '
InfoDate
'; + if (has_mini($fl['extension'])) { + echo ''; + } else { + echo 'download'; + } + echo '' . $fl['name'] . ''; + if ($fl['folder_id'] != 0) { + echo ' (in folder: ' . $fl['folder_name'] . ')'; + } + echo '
MD: ' . (has_mini($fl['extension']) ? '!' : '') . '['.$fl['name'].']('.$flf.')'; + echo '
' . $fl['comment_html'] . '
'; + /*echo 'Miniature: ' . $min . '
'; + echo 'Image: ' . $flf . '
'; */ + echo '
' . $fl['upl_date'] . '
'; + if ($can_delete) echo '
delete'; + if ($can_rename) echo '
edit info'; + echo '
'; +} + +if ($can_upload) { +?> + +
+

Upload a file

+
+If you upload an image, a px preview will be created.

+Title :
+
+
+ +

+

Your folders

+ +