summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-09-30 15:51:25 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-09-30 15:51:25 +0200
commitcd8bc917087164ae13ae9f9063ddefbe0f9dcdaf (patch)
treed7647d5f71d6a59b9eafa9676b366967a08a142c /application
parent5cc91f8cd4b9f1a3a2b17d5e5bf7606acf0fcd07 (diff)
Bring a/views/file_plaintext in line with a/v/file
- Add missing files - Fix paths missing FCPATH - Remove left over header/footer Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/views/file_plaintext/file_info.php16
-rw-r--r--application/views/file_plaintext/footer.php0
-rw-r--r--application/views/file_plaintext/header.php0
-rw-r--r--application/views/file_plaintext/html_footer.php2
-rw-r--r--application/views/file_plaintext/html_header.php2
-rw-r--r--application/views/file_plaintext/html_paste_footer.php2
-rw-r--r--application/views/file_plaintext/html_paste_header.php2
-rw-r--r--application/views/file_plaintext/multipaste_info.php10
8 files changed, 30 insertions, 4 deletions
diff --git a/application/views/file_plaintext/file_info.php b/application/views/file_plaintext/file_info.php
new file mode 100644
index 000000000..125f1d118
--- /dev/null
+++ b/application/views/file_plaintext/file_info.php
@@ -0,0 +1,16 @@
+<?php if($filedata): ?>
+ID: <?php echo $id; ?>
+
+Filename: <?php echo $filedata["filename"]; ?>
+
+Date of upload: <?php echo date("r", $filedata["date"]); ?>
+
+Date of removal: <?php echo $timeout; ?>
+
+Size: <?php echo format_bytes($filedata["filesize"]); ?>
+
+Mimetype: <?php echo $filedata["mimetype"]; ?>
+
+Hash (MD5): <?php echo $filedata["hash"]; ?>
+
+<?php endif; ?>
diff --git a/application/views/file_plaintext/footer.php b/application/views/file_plaintext/footer.php
deleted file mode 100644
index e69de29bb..000000000
--- a/application/views/file_plaintext/footer.php
+++ /dev/null
diff --git a/application/views/file_plaintext/header.php b/application/views/file_plaintext/header.php
deleted file mode 100644
index e69de29bb..000000000
--- a/application/views/file_plaintext/header.php
+++ /dev/null
diff --git a/application/views/file_plaintext/html_footer.php b/application/views/file_plaintext/html_footer.php
index d46a93ce4..3b60874dd 100644
--- a/application/views/file_plaintext/html_footer.php
+++ b/application/views/file_plaintext/html_footer.php
@@ -1 +1 @@
-<?php include "application/views/file/html_footer.php"; ?>
+<?php include FCPATH."application/views/file/html_footer.php"; ?>
diff --git a/application/views/file_plaintext/html_header.php b/application/views/file_plaintext/html_header.php
index 5cc4c40a7..0280b72a7 100644
--- a/application/views/file_plaintext/html_header.php
+++ b/application/views/file_plaintext/html_header.php
@@ -1 +1 @@
-<?php include "application/views/file/html_header.php"; ?>
+<?php include FCPATH."application/views/file/html_header.php"; ?>
diff --git a/application/views/file_plaintext/html_paste_footer.php b/application/views/file_plaintext/html_paste_footer.php
index f3cf21e3a..c283fd434 100644
--- a/application/views/file_plaintext/html_paste_footer.php
+++ b/application/views/file_plaintext/html_paste_footer.php
@@ -1 +1 @@
-<?php include "application/views/file/html_paste_footer.php"; ?>
+<?php include FCPATH."application/views/file/html_paste_footer.php"; ?>
diff --git a/application/views/file_plaintext/html_paste_header.php b/application/views/file_plaintext/html_paste_header.php
index 2a5db977e..2760d4a2a 100644
--- a/application/views/file_plaintext/html_paste_header.php
+++ b/application/views/file_plaintext/html_paste_header.php
@@ -1 +1 @@
-<?php include "application/views/file/html_paste_header.php"; ?>
+<?php include FCPATH."application/views/file/html_paste_header.php"; ?>
diff --git a/application/views/file_plaintext/multipaste_info.php b/application/views/file_plaintext/multipaste_info.php
new file mode 100644
index 000000000..5a438789c
--- /dev/null
+++ b/application/views/file_plaintext/multipaste_info.php
@@ -0,0 +1,10 @@
+ID: <?=$id; ?>
+
+Number of files: <?=$file_count; ?>
+
+Date of upload: <?=date("r", $upload_date); ?>
+
+Date of removal: <?=$timeout_string; ?>
+
+Total size (including duplicates): <?=format_bytes($size); ?>
+