UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Hotel Restart
Overview
This project was inspired by RastaLulz's PHP reboot application. This is designed to improve your hotels stability when it crashes (which will happen with almost every hotel). The project rely's heavily on your community, and whether or not they love your hotel (you'll find out sooner what I mean below).
The "Restart Hotel" box will ONLY appear if the server is offline. This will prevent users from massively restarting the hotel when it is not needed. There is another thing that you may add to improve this slightly, although I'll leave you guys to figuring it out.
Be sure to fill out the $reboot_app URL and the reboot_app.bat information correctly or else it will not work!
Third Party Applications
For this to work, you will need an executable restart application. I suggest using RastaLulz application. The download link is below:
Download Restart Application: [HERE]
Preview
Instructions
Step 1
Open me.php in the root directory. Find the following green highlighted text below;
Add the following red highlighted code above it;
Code:
//Content
$reboot_app = 'C:\Users\sexonabeach\Desktop\reboot_app.bat';
$restart = @$_POST['restart'];
if (isset($restart))
{
if (!file_exists($reboot_app))
{
header("Location: ?action=reboot&result=failed&why=application_url_invalid");
}
else
{
exec($reboot_app);
header("Location: ?action=reboot&result=success");
}
}
Result;
Next look for the following green highlighted code;
Code:
// Column 3
$tpl->AddGeneric('generic-column3');
Replace it ALL with the following red highlighted code;
Code:
switch (uberCore::getSystemStatus())
{
case (0):
case (2):
$hotelRestart = new Template('comp-restart');
$hotelRestart->SetParam('restart', $restart);
$tpl->AddTemplate($hotelRestart);
break;
default:
$tpl->AddGeneric('generic-column3');
break;
}
Result;
Step 2
Make a file called "comp-restart.tpl" in the "inc/tpl/" directory. Paste all the following red highlighted code into the file;
Code:
<div id="column3" class="column">
<div class="habblet-container ">
<div class="cbb clearfix red">
<h2 class="title">Restart Hotel</h2>
<div id="habboclub-info" class="box-content">
<img src="http://habbogallery.net/img/figures/habbos/Figure%20(97).gif" align="left">
<p>Oops, it appears the hotel is offline!</p>
<div align="center">
<form method="post" action="">
<p><input type="submit" name="restart" value="Restart Hotel"></p>
</form>
</div>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
Result;
Credits
Re: UberCMS - Quality Stability [Add-on]
Re: UberCMS - Quality Stability [Add-on]
Oo, Glad to see your back with all the releases, Thanks for this!
Re: UberCMS - Quality Stability [Add-on]
Thank you for this jacob.
Re: UberCMS - Quality Stability [Add-on]
Nice Jacob keep the good releases up :P
Re: UberCMS - Quality Stability [Add-on]
Nice! You could turn this into a cron job to reboot when its offline too? :P
Re: UberCMS - Quality Stability [Add-on]
Quote:
Originally Posted by
matty13
Nice! You could turn this into a cron job to reboot when its offline too? :P
Like I said in my thread:
Quote:
Originally Posted by
TheJacob
There is another thing that you may add to improve this slightly, although I'll leave you guys to figuring it out.
:thumbup:.
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Epic release dude, Seeing good Things from you all over the show man...
Whats next? A Dancing man on your localhost :P LOL ( Joke that )
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Quote:
Originally Posted by
CJRP
Epic release dude, Seeing good Things from you all over the show man...
Whats next? A Dancing man on your localhost :P LOL ( Joke that )
I don't know about a dancing man, but I am feeling a dancing Habbo :w00t:.
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Doesn't work with IIS7.. Can you fix?
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
beatiful just beatiful...
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Quote:
Originally Posted by
Habbie
Doesn't work with IIS7.. Can you fix?
Show error?
Quote:
Originally Posted by
No0b
beatiful just beatiful...
Cheers.
Re: UberCMS - Quality Stability [Add-on] [Minimize Downtime Guaranteed]
Its basically a mutated edit RastaLulz's restart app. But the users can restart it when the hotel is offline WTFFF But erm nice job ;)