summaryrefslogtreecommitdiff
path: root/tpl/file/upload.php
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-06-21 16:34:27 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-06-21 16:34:27 +0200
commit889e8eaf7c40817663dd602a21ac771062ccac3b (patch)
treeca8ac81ee202165333e5ffe16147d09e5cdaf2ab /tpl/file/upload.php
parent5c4caed8560d5fded00525844dfa8386b97e7918 (diff)
downloadBits-889e8eaf7c40817663dd602a21ac771062ccac3b.tar.gz
Bits-889e8eaf7c40817663dd602a21ac771062ccac3b.zip
Big change, sir. Can now upload any kind of files.
Diffstat (limited to 'tpl/file/upload.php')
-rw-r--r--tpl/file/upload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tpl/file/upload.php b/tpl/file/upload.php
new file mode 100644
index 0000000..31bdda7
--- /dev/null
+++ b/tpl/file/upload.php
@@ -0,0 +1,16 @@
+<?php
+$title = "Upload a file";
+
+if ($user['id'] == 0) $message = "You should create an account so that you can track files you have uploaded.";
+
+$form_message = "If you upload an image, a $img_mini_width"."px preview will be created.";
+$need_file = true;
+$fields = array(
+ array("label" => "Image file : ", "type" => "file", "name" => "file"),
+ array("label" => "Image title (optionnal) : ", "type" => "text", "name" => "name")
+ );
+$validate = "Upload";
+
+require("tpl/general/form.php");
+
+