From e9b1fc5637b8412038a9c400c983c526829b6664 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 26 Sep 2016 11:34:19 +0200 Subject: Drop file_plaintext views Signed-off-by: Florian Pritz --- application/controllers/file/file_default.php | 6 +----- application/views/file_plaintext/deleted.php | 8 -------- application/views/file_plaintext/file_info.php | 16 --------------- application/views/file_plaintext/html_footer.php | 1 - application/views/file_plaintext/html_header.php | 1 - .../views/file_plaintext/html_paste_footer.php | 1 - .../views/file_plaintext/html_paste_header.php | 1 - .../views/file_plaintext/multipaste_info.php | 10 ---------- application/views/file_plaintext/non_existent.php | 1 - application/views/file_plaintext/show_url.php | 4 ---- application/views/file_plaintext/upload_form.php | 19 ------------------ .../views/file_plaintext/upload_history.php | 23 ---------------------- 12 files changed, 1 insertion(+), 90 deletions(-) delete mode 100644 application/views/file_plaintext/deleted.php delete mode 100644 application/views/file_plaintext/file_info.php delete mode 100644 application/views/file_plaintext/html_footer.php delete mode 100644 application/views/file_plaintext/html_header.php delete mode 100644 application/views/file_plaintext/html_paste_footer.php delete mode 100644 application/views/file_plaintext/html_paste_header.php delete mode 100644 application/views/file_plaintext/multipaste_info.php delete mode 100644 application/views/file_plaintext/non_existent.php delete mode 100644 application/views/file_plaintext/show_url.php delete mode 100644 application/views/file_plaintext/upload_form.php delete mode 100644 application/views/file_plaintext/upload_history.php diff --git a/application/controllers/file/file_default.php b/application/controllers/file/file_default.php index 3b5eb0ee4..82e933021 100644 --- a/application/controllers/file/file_default.php +++ b/application/controllers/file/file_default.php @@ -16,11 +16,7 @@ class File_default extends MY_Controller { $this->load->model('mfile'); $this->load->model('mmultipaste'); - if (is_cli_client()) { - $this->var->view_dir = "file_plaintext"; - } else { - $this->var->view_dir = "file"; - } + $this->var->view_dir = "file"; } function index() diff --git a/application/views/file_plaintext/deleted.php b/application/views/file_plaintext/deleted.php deleted file mode 100644 index 347766092..000000000 --- a/application/views/file_plaintext/deleted.php +++ /dev/null @@ -1,8 +0,0 @@ - - - - of deleted. diff --git a/application/views/file_plaintext/file_info.php b/application/views/file_plaintext/file_info.php deleted file mode 100644 index 125f1d118..000000000 --- a/application/views/file_plaintext/file_info.php +++ /dev/null @@ -1,16 +0,0 @@ - -ID: - -Filename: - -Date of upload: - -Date of removal: - -Size: - -Mimetype: - -Hash (MD5): - - diff --git a/application/views/file_plaintext/html_footer.php b/application/views/file_plaintext/html_footer.php deleted file mode 100644 index 3b60874dd..000000000 --- a/application/views/file_plaintext/html_footer.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/application/views/file_plaintext/html_header.php b/application/views/file_plaintext/html_header.php deleted file mode 100644 index 0280b72a7..000000000 --- a/application/views/file_plaintext/html_header.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/application/views/file_plaintext/html_paste_footer.php b/application/views/file_plaintext/html_paste_footer.php deleted file mode 100644 index c283fd434..000000000 --- a/application/views/file_plaintext/html_paste_footer.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/application/views/file_plaintext/html_paste_header.php b/application/views/file_plaintext/html_paste_header.php deleted file mode 100644 index 2760d4a2a..000000000 --- a/application/views/file_plaintext/html_paste_header.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/application/views/file_plaintext/multipaste_info.php b/application/views/file_plaintext/multipaste_info.php deleted file mode 100644 index 5a438789c..000000000 --- a/application/views/file_plaintext/multipaste_info.php +++ /dev/null @@ -1,10 +0,0 @@ -ID: - -Number of files: - -Date of upload: - -Date of removal: - -Total size (including duplicates): - diff --git a/application/views/file_plaintext/non_existent.php b/application/views/file_plaintext/non_existent.php deleted file mode 100644 index 7da92e954..000000000 --- a/application/views/file_plaintext/non_existent.php +++ /dev/null @@ -1 +0,0 @@ -I'm sorry, but the requested file doesn't exist. diff --git a/application/views/file_plaintext/show_url.php b/application/views/file_plaintext/show_url.php deleted file mode 100644 index 3288ba08e..000000000 --- a/application/views/file_plaintext/show_url.php +++ /dev/null @@ -1,4 +0,0 @@ - days 0): ?> unless they are smaller than . -Maximum upload size is . -You can upload a maximum of files at once. - -How to link your uploads: - - "//" automatically highlight the uploads - - "/" set the detected MIME type and let the browser do the rest - - "//plain" force the MIME type to be text/plain - - "//" override auto detection and use the supplied - file extension or language name for highlighting - - "//qr" display a qr code containing a link to // - - "//rmd" convert markdown to HTML - - "//ascii" convert text with ANSI (shell) escape codes to HTML - - "//info" display some information about the ID - -If your upload is not detected as text, only "//qr", "//plain" -and "//info" will work as above and all others will simply return -the file with the detected MIME type. - diff --git a/application/views/file_plaintext/upload_history.php b/application/views/file_plaintext/upload_history.php deleted file mode 100644 index 53801494f..000000000 --- a/application/views/file_plaintext/upload_history.php +++ /dev/null @@ -1,23 +0,0 @@ - $item) { - echo - mb_str_pad($item["id"], $lengths["id"])." | " - .mb_str_pad($item["filename"], $lengths["filename"])." | " - .mb_str_pad($item["mimetype"], $lengths["mimetype"])." | " - .date($dateformat, $item["date"])." | " - .mb_str_pad($item["hash"], $lengths["hash"])." | " - .$item["filesize"]."\n"; -} -?> - -Total sum of your distinct uploads: . -- cgit v1.2.3-24-g4f1b