summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-08-21 19:47:16 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-08-21 19:47:16 +0200
commite8ba604abcf1a861d550f78b629f81ef1a76bf1c (patch)
treecd923676d19fd7b6801be82dd2fee31dbe55ba5d /application/controllers
parent5947ccb5ff7078b10bd8541afc5dafc4122bfed7 (diff)
Display deprecation warning for files uploaded via plain text API
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index d432386ab..77e7c0413 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -85,6 +85,13 @@ class File extends MY_Controller {
$id = $this->uri->segment(1);
$lexer = urldecode($this->uri->segment(2));
+ if (isset($_GET["cli_deprecated"])) {
+ $this->data['alerts'][] = [
+ "type" => "warning",
+ "message" => "<b>WARNING:</b> This file has been uploaded with a client that uses an old and deprecated API.<br> This API will be removed in the near future. Please update your client to one that uses a more recent API."
+ ];
+ }
+
$is_multipaste = false;
if ($this->mmultipaste->id_exists($id)) {
$is_multipaste = true;