summaryrefslogtreecommitdiff
path: root/tpl/file/upload.php
diff options
context:
space:
mode:
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");
+
+