<?php
if (!defined('IN_HK') || !IN_HK)
{
exit;
}
if (!HK_LOGGED_IN || !$users->hasFuse(USER_ID, 'fuse_admin'))
{
exit;
}
if (isset($_POST['hatext']))
{
fMessage('ok', 'Message sent:<br />"' . clean($_POST['hatext']) . '"');
$lol = clean($_POST['hatext']);
$hmsg = "
".derpC($_POST['hatext'] . "
- " . USER_NAME);
$core->Mus('ha', $hmsg);
dbquery("INSERT INTO `cms_alerts` (alert, author) VALUES ('". $lol ."', '". USER_NAME ."')");
}
require_once "top.php";
?>
<h1>Hotel Alert</h1>
<br />
<p>
Please use this setting with care! <i>DO NOT SPAM!</i> <b>This system is logged.</b>
</p>
<br />
<p>
<?php if (isset($_POST['hatext'])) { ?>
<h1 style="padding: 15px;">Message Sent <span style="border: 2px dotted gray; padding: 10px; margin: 5px; font-size: 70%; font-weight: normal;"><?php echo clean($_POST['hatext']); ?></span><input type="button" value="Send new message?" onclick="document.location = 'index.php?_cmd=ha';"></h1>
<?php } else { ?>
<form method="post">
<textarea name="hatext" cols="70" rows="10"></textarea>
<input type="submit" value="Send">
</form>
</p>
<?php
}
require_once "bottom.php";
?>