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
[HELP]Maintenance Page[HELP]
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="Li1M0ST3Rz" data-source="post: 153927" data-attributes="member: 1271"><p><span style="color: #000000"><span style="font-family: 'arial black'"><span style="font-size: 12px">i need help to code a maintenance.php first i coded a maintenance drop box on admin directory</span></span></span></p><p> </p><p>[PHP]<?php</p><p>if (isset($_POST['Submit'])) {</p><p> $status = explode("\r\n", $_POST['url']);</p><p> // let's create the INSERT query</p><p> $values = array();</p><p> foreach ($status as $status) {</p><p>$link = mysql_connect(DB_SERVER, DB_USER, DB_PASS);</p><p>mysql_select_db(DB_DATABASE, $link);</p><p>$sql = 'INSERT INTO `a1148371_roo`.`maintenance` (`status`) VALUES (\'".$status."\');';</p><p>}</p><p>}</p><p>?></p><p><div id="content"></p><p><div class="box"></p><p> <h1>Maintenance</h1></p><p> <div class="box-content"></p><p><center></p><p><form name="status" action="" method="POST"></p><p><div align="center"></p><p><select name="status"></p><p><option value="0">On</option></p><p><option value="1">Off</option></p><p><input type="submit" value="Now" name="submit"></p><p></select></p><p></div></p><p></form></p><p></center></p><p></div></p><p></div></p><p></div></p><p></div>[/PHP]</p><p> </p><p>and on index.php root directory its a bit private but:</p><p>[PHP]<?php</p><p>if (!defined("_VALID_PHP"))</p><p>die('Direct access to this location is not allowed.');</p><p> </p><p>$news = $core->renderNews();</p><p>$maintenance = "1";</p><p> </p><p>if ($maintenance == "1") {[</p><p>include 'maintenance.php';</p><p>die;</p><p>}</p><p>?>[/PHP]</p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'arial black'">this is incomplete, what i tried to do on admin directory maintenance on and off drop down connect to the database as you can see it look crappy code, then index.php $maintenance connect to database maintenance table.</span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'arial black'">could someone can help me?</span></span></p></blockquote><p></p>
[QUOTE="Li1M0ST3Rz, post: 153927, member: 1271"] [COLOR=#000000][FONT=arial black][SIZE=3]i need help to code a maintenance.php first i coded a maintenance drop box on admin directory[/SIZE][/FONT][/COLOR] [PHP]<?php if (isset($_POST['Submit'])) { $status = explode("\r\n", $_POST['url']); // let's create the INSERT query $values = array(); foreach ($status as $status) { $link = mysql_connect(DB_SERVER, DB_USER, DB_PASS); mysql_select_db(DB_DATABASE, $link); $sql = 'INSERT INTO `a1148371_roo`.`maintenance` (`status`) VALUES (\'".$status."\');'; } } ?> <div id="content"> <div class="box"> <h1>Maintenance</h1> <div class="box-content"> <center> <form name="status" action="" method="POST"> <div align="center"> <select name="status"> <option value="0">On</option> <option value="1">Off</option> <input type="submit" value="Now" name="submit"> </select> </div> </form> </center> </div> </div> </div> </div>[/PHP] and on index.php root directory its a bit private but: [PHP]<?php if (!defined("_VALID_PHP")) die('Direct access to this location is not allowed.'); $news = $core->renderNews(); $maintenance = "1"; if ($maintenance == "1") {[ include 'maintenance.php'; die; } ?>[/PHP] [SIZE=3][FONT=arial black]this is incomplete, what i tried to do on admin directory maintenance on and off drop down connect to the database as you can see it look crappy code, then index.php $maintenance connect to database maintenance table.[/FONT][/SIZE] [SIZE=3][FONT=arial black]could someone can help me?[/FONT][/SIZE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[HELP]Maintenance Page[HELP]
Top