diff options
author | Claude <longneck@scratchbook.ch> | 2018-09-29 15:28:00 +0200 |
---|---|---|
committer | Claude <longneck@scratchbook.ch> | 2018-09-29 15:28:00 +0200 |
commit | 70df71f49f22b17b9c33561922ab7f61972554f8 (patch) | |
tree | 0364dd54bff1a077462fe6f9fbd7998de6d436dc | |
parent | 3fdf28338619b807ea5249d28c3775277369e60f (diff) | |
download | stikked-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.php | 7 |
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 |