Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Put hotel in maintenace through HK?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="DarkXIDE" data-source="post: 280206" data-attributes="member: 7667"><p>Hello!</p><p></p><p>I am currently working on a new fresh HK/ASE but I have ran into a problem.</p><p></p><p>I want to do so you can put your hotel in maintenance through the ASE.</p><p></p><p>My code right now looks like this</p><p>[PHP]if (isset($_POST['maintenance_submit'])) {</p><p> $state = mysql_real_escape_string($_POST['state']);</p><p> if ($state == '1') {</p><p> $_CONFIG['hotel']['in_maint'] = False;</p><p> } elseif ($state == '0') {</p><p> $_CONFIG['hotel']['in_maint'] = True;</p><p> }</p><p>}[/PHP]</p><p></p><p>When checking the value later the $_CONFIG['hotel']['in_maint'] stays true for the next page load but when I reload yet another time it resets to the state in config.php. How can I make it change completely?</p></blockquote><p></p>
[QUOTE="DarkXIDE, post: 280206, member: 7667"] Hello! I am currently working on a new fresh HK/ASE but I have ran into a problem. I want to do so you can put your hotel in maintenance through the ASE. My code right now looks like this [PHP]if (isset($_POST['maintenance_submit'])) { $state = mysql_real_escape_string($_POST['state']); if ($state == '1') { $_CONFIG['hotel']['in_maint'] = False; } elseif ($state == '0') { $_CONFIG['hotel']['in_maint'] = True; } }[/PHP] When checking the value later the $_CONFIG['hotel']['in_maint'] stays true for the next page load but when I reload yet another time it resets to the state in config.php. How can I make it change completely? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Put hotel in maintenace through HK?
Top