insert-coin/resources/library/insert-coin.php

41 lines
1.0 KiB
PHP
Raw Normal View History

2018-02-03 23:14:25 -06:00
<?php
function celebrate($dest_file, $item_type, $image_url, $image_alt, $meta_data = false)
{
?>
<title><?php echo($site_name . ": " . $item_type); ?> inserted <3</title>
<p>Thanks for feeding me</p>
<p>Your <?php echo($item_type); ?>'s in safe hands</p>
<img alt="<?php echo($image_alt); ?>" src="<?php echo($image_url); ?>">
<p>Your <?php echo($item_type); ?>'s
<a href="<?php echo ($dest_file); ?>">over here</a></p>
2018-04-07 21:15:07 -05:00
<p><b><?php echo("https://" . get_cwd($_SERVER["REQUEST_URI"]) . "/" . $dest_file); ?></b></p>
<?php
2018-10-07 03:25:06 -05:00
if ($meta_data) {
?>
<p>It's meta-stuff (or lack thereof) is
<a href="<?php echo($dest_file); ?>.txt">here</a></p>
<?php
}
}
function celebrate_death($dest_file, $item_type, $image_url, $image_alt, $message)
{
2018-02-03 23:14:25 -06:00
?>
<title><?php echo($site_name . ": " . $item_type); ?> burned </3</title>
<p>Oh God, I've never seen so much blood—</p>
<p>err, I mean, there're just some minor problems under the hood!</p>
<img alt="<?php echo($image_alt); ?>" src="<?php echo($image_url); ?>">
<?php echo($message); ?>
<?php
}