500 Internal server error on VIP Page - UberCMS

DiverseLulz

Learning C# :D
Sep 26, 2011
90
9
I'm using the UberCMS VIP Page posted by ItzJay on Rz, But when I go to /vip.php it shows
Any ideas on how to fix this?
Thanks in advance.
 

DiverseLulz

Learning C# :D
Sep 26, 2011
90
9
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 [email protected].<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>
 

Users who are viewing this thread

Top