summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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); ?>
+