mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
nicer burn on read description. fixes #436
This commit is contained in:
parent
3fdf283386
commit
70df71f49f
@ -141,11 +141,16 @@ class Pastes extends CI_Model
|
|||||||
|
|
||||||
if ($burn)
|
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)
|
if ($data['snipurl'] !== false)
|
||||||
{
|
{
|
||||||
echo '<br>Shorturl: ' . $shorturl . '">' . $shorturl . '<br>';
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user