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/image/folder.php | 52 ---------------------------------------------- tpl/image/index.php | 55 ------------------------------------------------- tpl/image/upload-ok.php | 21 ------------------- tpl/image/upload.php | 16 -------------- 4 files changed, 144 deletions(-) delete mode 100644 tpl/image/folder.php delete mode 100644 tpl/image/index.php delete mode 100644 tpl/image/upload-ok.php delete mode 100644 tpl/image/upload.php (limited to 'tpl/image') diff --git a/tpl/image/folder.php b/tpl/image/folder.php deleted file mode 100644 index 5d5e57b..0000000 --- a/tpl/image/folder.php +++ /dev/null @@ -1,52 +0,0 @@ -edit folder info | '; - echo 'delete folder'; -} - -echo $fld['comment_html']; - -if (count($images) == 0) { - echo '
This folder has no images.
'; -} else { - echo ''; - echo ''; - foreach ($images as $img) { - $min = $baseurl . $img['id'] . "-min." . $img['extension']; - $imgf = $baseurl . $img['id'] . "." . $img['extension']; - echo ''; - echo ''; - echo ''; - } - echo '
PreviewInfoDate
' . $img['name'] . ''; - echo '
' . $img['comment_html'] . '
'; - /*echo 'Miniature: ' . $min . '
'; - echo 'Image: ' . $imgf . '
'; */ - echo '
' . $img['upl_date'] . '
'; - if ($can_edit) echo '
delete'; - if ($can_edit) echo '
edit info'; - echo '
'; -} - -echo '
'; -if ($is_owner) { - echo '

Your folders

'; -} else { - echo '

' . $fld["ownername"] . "'s folders

"; -} -echo ''; - -require("tpl/general/bottom.php"); diff --git a/tpl/image/index.php b/tpl/image/index.php deleted file mode 100644 index a89d024..0000000 --- a/tpl/image/index.php +++ /dev/null @@ -1,55 +0,0 @@ -You have uploaded no images yet.
'; -} else { - echo '

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

'; - echo ''; - echo ''; - foreach ($images as $img) { - $min = $baseurl . $img['id'] . "-min." . $img['extension']; - $imgf = $baseurl . $img['id'] . "." . $img['extension']; - echo ''; - echo ''; - echo ''; - } - echo '
PreviewInfoDate
' . $img['name'] . ''; - if ($img['folder_id'] != 0) { - echo ' (in folder: ' . $img['folder_name'] . ')'; - } - echo '
MD: !['.$img['name'].']('.$imgf.')'; - echo '
' . $img['comment_html'] . '
'; - /*echo 'Miniature: ' . $min . '
'; - echo 'Image: ' . $imgf . '
'; */ - echo '
' . $img['upl_date'] . '
'; - if ($can_delete) echo '
delete'; - if ($can_rename) echo '
edit info'; - echo '
'; -} - -if ($can_upload) { -?> - -
-

Upload an image

-
-A px preview will be created.

-Title :
-
-
- -

-

Your folders

- - -

Preview :
- Image :
- Markdown code : ![]()

-

-

- Back to upload form - = $apps['image']['index']) - echo ' - back to list of uploaded images'; - ?> -

- "Image file : ", "type" => "file", "name" => "image"), - array("label" => "Image title (optionnal) : ", "type" => "text", "name" => "name") - ); -$validate = "Upload"; - -require("tpl/general/form.php"); - - -- cgit v1.2.3