Ubercms housekeeping error

LOOKATYOU

Member
May 9, 2011
34
4
Hello everyone.
Today i have come across something and i dont know why it wont work, i have an option in my housekeeping that lets me send :ha messages out, when i first installed it and tested it all it worked fine, but i tried to use it today and it tells me by housekeeping that the :ha message was sent, when i check my client it's not there..
heres my code
Code:
<?php

if (!defined('IN_HK') || !IN_HK)
{
    exit;
}

if (!HK_LOGGED_IN || !$users->hasFuse(USER_ID, 'fuse_housekeeping_moderation'))
{
    exit;
}

if (isset($_POST['hatext']))
{
    fMessage('ok', 'Message sent:<br />"' . clean($_POST['hatext']) . '"');
    $lol = clean($_POST['hatext']);
    $hmsg = "" . clean($_POST["hatext"]) . " \r - " . USER_NAME;
    $core->Mus('ha', $hmsg);
}

require_once "top.php";

?>           

<h1>Hotel Alert</h1>

<br />

<p>
    Notify the entire hotel with an alert. Use with care. <i>DO NOT USE APOSTROPHIES (') or QUOTATION MARKS (")</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";

?>
 

Users who are viewing this thread

Top