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
500 Internal server error on VIP Page - UberCMS
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="DiverseLulz" data-source="post: 66979" data-attributes="member: 7445"><p>This is the page-vip.tpl :</p><p> </p><p>[CODE]</p><p><div id="column1" class="column"></p><p> </p><p> <div class="habblet-container "> </p><p> <div class="cbb clearfix orange "></p><p> </p><p> <h2 class="title">VIP Benefits </h2></p><p> <div class=""></p><p> <div class="pixels-infobox-text"></p><p> </p><p> <ul></p><p> <li><p><b></p><p></b><br></p><p><center><img src="http://habboemotion.com/resource/images/figures/Figure%20(90).png"/></center> <br></p><p><br></p><p><b>Why Should I Purchase VIP?</b><br></p><p>Everyone will look up to you on Zabbo<br></p><p>You will get custom rooms made for you<br></p><p>VIP badge<br></p><p>Extra catalogue page<br></p><p>Forum VIP membership<br></p><p><br></p><p><b>What Extra Things Are There For VIPs In The Hotel?</b><br></p><p>More custom commands<br></p><p>Extra furniture<br></p><p>VIP Shop<br></p><p><br></p><p><b>How Do I Purchase VIP?</b><br></p><p>You can purchase VIP by clicking the button on the right hand side of this page, and then submitting your purchase via paypal. If you have any problems when buying VIP please contact Jay at jay_ftw@live.co.uk.<br></p><p> </p><p> </p><p> </p><p> </p><p></p></li></p><p> </ul></p><p> <p</p></p><p> <p><a href="%www%/help" target="_blank"></a></p></p><p> </div></p><p></div></p><p> </p><p> </p><p> </div></p><p> </div></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </p><p> </p><p></div></p><p><div id="column2" class="column"></p><p> </p><p> <div class="habblet-container "> </p><p> <div class="cbb clearfix orange "></p><p> </p><p> <h2 class="title">Subscribe to VIP </h2></p><p> <div id="pixels-info" class="box-content pixels-info"></p><p> <div class="pixels-info-text clearfix"></p><p> <center><<form action="https://www.paypal.com/cgi-bin/webscr" method="post"></p><p><input type="hidden" name="cmd" value="_s-xclick"></p><p><input type="hidden" name="hosted_button_id" value="KDSLT7X9DC68C"></p><p><input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online."></p><p><img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1"></p><p></form></p><p> </p><p><?php</p><p>define('USERNAME_REQUIRED', TRUE);</p><p>define('ACCOUNT_REQUIRED', TRUE);</p><p>include('global.php');</p><p>define("THIS_SCRIPT", 'buy');</p><p>if(isset($_GET['u']))</p><p>{</p><p>$username = $core->EscapeString($_GET['u']);</p><p>}</p><p>else</p><p>{</p><p>$username = $core->EscapeString($_SESSION['UBER_USER_N']);</p><p>}</p><p> </p><p> </p><p>function write2LogFile( $message, $file = "mylog.txt" ) { $file = fopen($file, "a"); fputs($file, "[".date('d-m-Y')."] ".$message."\n"); fclose($file); }</p><p>$req = 'cmd=_notify-validate';</p><p>foreach ($_POST as $key => $value)</p><p>{</p><p> $value = urlencode(stripslashes($value));</p><p> $req .= "&$key=$value";</p><p>}</p><p>$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";</p><p>$header .= "Content-Type: application/x-www-form-urlencoded\r\n";</p><p>$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";</p><p>$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);</p><p>if (!$fp) {</p><p> write2LogFile( "ERROR Can not connect to paypal!" );</p><p>}</p><p>else</p><p>{</p><p> fputs ($fp, $header . $req);</p><p> while (!feof($fp))</p><p> {</p><p> $res = fgets ($fp, 1024);</p><p> if (strcmp ($res, "VERIFIED") == 0)</p><p> {</p><p> $payment_status = $_POST['payment_status'];</p><p> $transaction_id = $_POST['txn_id'];</p><p> $payer_email = $_POST['payer_email'];</p><p> $custom_field = $_POST['custom'];</p><p> </p><p> if ( $payment_status == 'Completed' )</p><p> { </p><p> // Make the user VIP</p><p>mysql_query("UPDATE users SET rank = '2' WHERE username='$username'");</p><p> }</p><p> </p><p> { </p><p> // Make the user VIP</p><p>mysql_query("UPDATE users SET vip = '1' WHERE username='$username'");</p><p> }</p><p> </p><p> else if ( $payment_status == 'Canceled_Reversal' )</p><p> {</p><p> // Ban the account</p><p>mysql_query("INSERT INTO bans (bantype, value, reason, expire, added_by, appeal_state)</p><p>VALUES ('user', '$username', 'Disputing/Claiming the payment', 'system', '1')");</p><p> </p><p> }</p><p> }</p><p> }</p><p> fclose ($fp);</p><p>}</p><p>?><center></p><p> <p class="pixels-text"></p></div></p><p></div></p><p> </p><p> </p><p> </div></p><p> </div></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> <div class="habblet-container "> </p><p> </div></p><p></div></p><p> </p><p> </p><p> </div></p><p> </div></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </p><p> </p><p></div></p><p><script type="text/javascript"></p><p>HabboView.run();</p><p></script></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="DiverseLulz, post: 66979, member: 7445"] This is the page-vip.tpl : [CODE] <div id="column1" class="column"> <div class="habblet-container "> <div class="cbb clearfix orange "> <h2 class="title">VIP Benefits </h2> <div class=""> <div class="pixels-infobox-text"> <ul> <li><p><b> </b><br> <center><img src="http://habboemotion.com/resource/images/figures/Figure%20(90).png"/></center> <br> <br> <b>Why Should I Purchase VIP?</b><br> Everyone will look up to you on Zabbo<br> You will get custom rooms made for you<br> VIP badge<br> Extra catalogue page<br> Forum VIP membership<br> <br> <b>What Extra Things Are There For VIPs In The Hotel?</b><br> More custom commands<br> Extra furniture<br> VIP Shop<br> <br> <b>How Do I Purchase VIP?</b><br> You can purchase VIP by clicking the button on the right hand side of this page, and then submitting your purchase via paypal. If you have any problems when buying VIP please contact Jay at jay_ftw@live.co.uk.<br> </p></li> </ul> <p</p> <p><a href="%www%/help" target="_blank"></a></p> </div> </div> </div> </div> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </div> <div id="column2" class="column"> <div class="habblet-container "> <div class="cbb clearfix orange "> <h2 class="title">Subscribe to VIP </h2> <div id="pixels-info" class="box-content pixels-info"> <div class="pixels-info-text clearfix"> <center><<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="KDSLT7X9DC68C"> <input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online."> <img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1"> </form> <?php define('USERNAME_REQUIRED', TRUE); define('ACCOUNT_REQUIRED', TRUE); include('global.php'); define("THIS_SCRIPT", 'buy'); if(isset($_GET['u'])) { $username = $core->EscapeString($_GET['u']); } else { $username = $core->EscapeString($_SESSION['UBER_USER_N']); } function write2LogFile( $message, $file = "mylog.txt" ) { $file = fopen($file, "a"); fputs($file, "[".date('d-m-Y')."] ".$message."\n"); fclose($file); } $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); if (!$fp) { write2LogFile( "ERROR Can not connect to paypal!" ); } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { $payment_status = $_POST['payment_status']; $transaction_id = $_POST['txn_id']; $payer_email = $_POST['payer_email']; $custom_field = $_POST['custom']; if ( $payment_status == 'Completed' ) { // Make the user VIP mysql_query("UPDATE users SET rank = '2' WHERE username='$username'"); } { // Make the user VIP mysql_query("UPDATE users SET vip = '1' WHERE username='$username'"); } else if ( $payment_status == 'Canceled_Reversal' ) { // Ban the account mysql_query("INSERT INTO bans (bantype, value, reason, expire, added_by, appeal_state) VALUES ('user', '$username', 'Disputing/Claiming the payment', 'system', '1')"); } } } fclose ($fp); } ?><center> <p class="pixels-text"></p></div> </div> </div> </div> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> <div class="habblet-container "> </div> </div> </div> </div> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </div> <script type="text/javascript"> HabboView.run(); </script> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
500 Internal server error on VIP Page - UberCMS
Top