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
Software Development
Programming
Programming Q&A
php/html 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="TrueJewix" data-source="post: 357921" data-attributes="member: 20416"><p><?php</p><p> </p><p> if($_SESSION['user']['rank'] >= 1) {</p><p> $key = false;</p><p> $error = false;</p><p> $q = mysql_query("SELECT * FROM users WHERE id = '{$_SESSION['user']['id']}' AND account_locked = '1' LIMIT 1")or die(mysql_error());</p><p> if(mysql_num_rows($q) == 1) {</p><p> echo "This account has been locked. Please contact Joe immediately.";</p><p> exit;</p><p> }</p><p> </p><p> if(isset($_POST['pin'])) {</p><p> $q = mysql_query("SELECT id FROM users WHERE id = '{$_SESSION['user']['id']}' AND housekeeping_pin = '" . md5($_POST['pin']) . "' AND account_locked = '0' LIMIT 1")or die(mysql_error());</p><p> if(mysql_num_rows($q) != 1) {</p><p> if(!isset($_SESSION['client']['attempts']))</p><p> $_SESSION['client']['attempts'] = 0;</p><p> $_SESSION['client']['attempts']++;</p><p> if($_SESSION['client']['attempts'] >= 999999999)</p><p> mysql_query("UPDATE users SET account_locked = '1' WHERE id = '{$_SESSION['user']['id']}' LIMIT 1")or die(mysql_error());</p><p> $error = true;</p><p> }else{</p><p> $key = true;</p><p> }</p><p> }</p><p> </p><p> if(!$key) {</p><p>?></p><p></p><p></p><p><html></p><p><head></p><p> <title>Nebbo Hotel</title></p><p></p><p> <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"></p><p> <link href="animate.css" rel="stylesheet" type="text/css" /></p><p> <script src='<a href="https://www.google.com/recaptcha/api.js'></script>" target="_blank">https://www.google.com/recaptcha/api.js'></script></a></p><p> <script src="<a href="https://code.jquery.com/jquery-2.1.4.js" target="_blank">https://code.jquery.com/jquery-2.1.4.js</a>"></script></p><p></p><p></script></p><p><script src="<a href="https://code.jquery.com/jquery-2.1.4.js" target="_blank">https://code.jquery.com/jquery-2.1.4.js</a>"></script></p><p></p><p></head></p><p><body></p><p></p><p></p><p><!--<div class="redalert"></p><p><div class="redmessage"><b>Keep calm and play on</b>, people are trying to <b>hack</b> us and <b>DDoS</b> us right now. It won't affect anything. Promise Enjoy<img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></b></div></p><p></div>--></p><p><div class="logo"><div class="animated bounceInDown"><img src="<a href="http://nebbo.org/app/tpl/skins/Habbo/images/logo.png" target="_blank">http://nebbo.org/app/tpl/skins/Habbo/images/logo.png</a>"></div></div></p><p></p><p><div class="totalresolvers"></p><p><form action="#" class="cleanForm" method="POST" autocomplete="off"></p><p><div class="column"></p><p><input type="password" name="password" placeholder="" maxlength="12" autocomplete="off" /></p><p></p><p><input type="submit" value="submit"/></p><p></p><p></form></p><p></div> </p><p></p><p></p><p><div class="thold"><div class="tholdtext">Please enter '1234' above to verify you're a human being.</div></div></p><p></div></p><p></p><p></p><p></p><p></p><p></p><p><div class="line"></p><p></div></p><p></p><p><!--<script></p><p>$("#nav").hover(function(){ </p><p> $('.redalert').fadeOut(5);</p><p>});</p><p></script></p><p></p><p><script></p><p>$("#nav").mouseleave(function(){ </p><p> $('.redalert').fadeIn(500);</p><p>});</p><p></script></p><p>--></p><p></body></p><p></html></p><p></p><p></p><p>It keeps giving me '<strong>Parse error</strong>: syntax error, unexpected end of file in <strong>/Applications/XAMPP/xamppfiles/htdocs/test/test.php</strong> on line <strong>85' error.</strong></p></blockquote><p></p>
[QUOTE="TrueJewix, post: 357921, member: 20416"] <?php if($_SESSION['user']['rank'] >= 1) { $key = false; $error = false; $q = mysql_query("SELECT * FROM users WHERE id = '{$_SESSION['user']['id']}' AND account_locked = '1' LIMIT 1")or die(mysql_error()); if(mysql_num_rows($q) == 1) { echo "This account has been locked. Please contact Joe immediately."; exit; } if(isset($_POST['pin'])) { $q = mysql_query("SELECT id FROM users WHERE id = '{$_SESSION['user']['id']}' AND housekeeping_pin = '" . md5($_POST['pin']) . "' AND account_locked = '0' LIMIT 1")or die(mysql_error()); if(mysql_num_rows($q) != 1) { if(!isset($_SESSION['client']['attempts'])) $_SESSION['client']['attempts'] = 0; $_SESSION['client']['attempts']++; if($_SESSION['client']['attempts'] >= 999999999) mysql_query("UPDATE users SET account_locked = '1' WHERE id = '{$_SESSION['user']['id']}' LIMIT 1")or die(mysql_error()); $error = true; }else{ $key = true; } } if(!$key) { ?> <html> <head> <title>Nebbo Hotel</title> <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> <link href="animate.css" rel="stylesheet" type="text/css" /> <script src='[URL]https://www.google.com/recaptcha/api.js'></script>[/URL] <script src="[URL]https://code.jquery.com/jquery-2.1.4.js[/URL]"></script> </script> <script src="[URL]https://code.jquery.com/jquery-2.1.4.js[/URL]"></script> </head> <body> <!--<div class="redalert"> <div class="redmessage"><b>Keep calm and play on</b>, people are trying to <b>hack</b> us and <b>DDoS</b> us right now. It won't affect anything. Promise Enjoy:)</b></div> </div>--> <div class="logo"><div class="animated bounceInDown"><img src="[URL]http://nebbo.org/app/tpl/skins/Habbo/images/logo.png[/URL]"></div></div> <div class="totalresolvers"> <form action="#" class="cleanForm" method="POST" autocomplete="off"> <div class="column"> <input type="password" name="password" placeholder="" maxlength="12" autocomplete="off" /> <input type="submit" value="submit"/> </form> </div> <div class="thold"><div class="tholdtext">Please enter '1234' above to verify you're a human being.</div></div> </div> <div class="line"> </div> <!--<script> $("#nav").hover(function(){ $('.redalert').fadeOut(5); }); </script> <script> $("#nav").mouseleave(function(){ $('.redalert').fadeIn(500); }); </script> --> </body> </html> It keeps giving me '[B]Parse error[/B]: syntax error, unexpected end of file in [B]/Applications/XAMPP/xamppfiles/htdocs/test/test.php[/B] on line [B]85' error.[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
php/html help
Top