aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaude <longneck@scratchbook.ch>2018-09-29 15:28:00 +0200
committerClaude <longneck@scratchbook.ch>2018-09-29 15:28:00 +0200
commit70df71f49f22b17b9c33561922ab7f61972554f8 (patch)
tree0364dd54bff1a077462fe6f9fbd7998de6d436dc
parent3fdf28338619b807ea5249d28c3775277369e60f (diff)
downloadstikked-fit-70df71f49f22b17b9c33561922ab7f61972554f8.tar.gz
stikked-fit-70df71f49f22b17b9c33561922ab7f61972554f8.tar.bz2
stikked-fit-70df71f49f22b17b9c33561922ab7f61972554f8.zip
nicer burn on read description. fixes #436
-rw-r--r--htdocs/application/models/Pastes.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/htdocs/application/models/Pastes.php b/htdocs/application/models/Pastes.php
index 28bbf4d..088cde9 100644
--- a/htdocs/application/models/Pastes.php
+++ b/htdocs/application/models/Pastes.php
@@ -141,11 +141,16 @@ class Pastes extends CI_Model
if ($burn)
{
- echo 'copy this URL, it will become invalid on visit: ' . site_url('view/' . $data['pid']);
+ $CItemp =& get_instance();
+ echo '<!DOCTYPE html><html><head><title>Warning!</title></head><body>';
+ echo '<pre>Copy this URL:</pre>';
+ echo '<span style="background-color: black; color: white">' . site_url('view/'.$data['pid']) . "</span>\n";
if ($data['snipurl'] !== false)
{
echo '<br>Shorturl: ' . $shorturl . '">' . $shorturl . '<br>';
}
+ echo "<pre>It will become invalid on visit (will be deleted after first read)</pre><br />\n";
+ echo '<a href="' . base_url() . '" class="title">Return to ' . $CItemp->config->item('site_name') . '</a></body></html>';
exit;
}
else

© 2014-2024 Faster IT GmbH | imprint | privacy policy