[UberCMS] Housekeeping Hotel Alert Fix
Sick and tired of your god damn Housekeeping Hotel Alert not working?
Well look no further, as I am about to release a Rip and Paste from Zap Hotel's hotel alert page from there housekeeping!
Replace C:\xampp\htdocs\manage\pages\ha.php with this:
PHP Code:
<?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";
?>
98% Credits To Jontycat - For coding it!
2% Credits To Me - For releasing it here!
Please don't spam saying this is a 'Rip' because I know it is, and I only released it for the noobs...
Re: [UberCMS] Housekeeping Hotel Alert Fix
Hotel Alert works in Uber if you just swich MUS on...
Re: [UberCMS] Housekeeping Hotel Alert Fix
mhm, still people can use this ;p
Re: [UberCMS] Housekeeping Hotel Alert Fix
you cant use it because you dont know how to setup it -,-
please stop with this bullshit releases -,-
Re: [UberCMS] Housekeeping Hotel Alert Fix
Wow, no need to be rude O.O
Don't need to post mean comments like that ^.
Re: [UberCMS] Housekeeping Hotel Alert Fix
we post means comments because people like you ^^
Re: [UberCMS] Housekeeping Hotel Alert Fix
3 Releases in a row, obviously copying Releases from somewhere.
Re: [UberCMS] Housekeeping Hotel Alert Fix
I'm not copying releases... I am posting stuff from rCMS if people don't want to download the CMS, they can just add stuff from it to there CMS...
Re: [UberCMS] Housekeeping Hotel Alert Fix
Re: [UberCMS] Housekeeping Hotel Alert Fix
Re: [UberCMS] Housekeeping Hotel Alert Fix
People, if you don't like it, just leave the thread -.-
Re: [UberCMS] Housekeeping Hotel Alert Fix
Quote:
Originally Posted by
MikeDavies
Hotel Alert works in Uber if you just swich MUS on...
Quoted for 'ze truth, mmk? :glare:
Re: [UberCMS] Housekeeping Hotel Alert Fix
Mhm, Well I don't know if this will help or not... -.-
Re: [UberCMS] Housekeeping Hotel Alert Fix
End spam
He got DisClaimer and Contact us page from Zap Hotel and code he got from somewhere.
Re: [UberCMS] Housekeeping Hotel Alert Fix
The only thing I changed in this was to log hotel alerts sent out because I had :ha disabled in my emulator, and coded added protection onto the login of my hk (removed in rCMS Public).
You'll need to create the table cms_alerts with the fields author and alert (I think thats it).
You'll also want the halogs.php out of /pages/