Portal Home > Knowledgebase > Articles Database > Need some help with my register.php page!


Need some help with my register.php page!




Posted by FullThrottle, 01-12-2010, 05:00 PM
Hey WBH I need somebody or a group of people to help me fix my register page, when you click the register button it pops up and shows "51" on the top left of the page. I checked the scripts and they looked find anybody mind helping? Thank you in advance, Andrew Tsionas.

Posted by pwalters09, 01-12-2010, 05:37 PM
Hi, Please post your register.php script and I will take a look at it for you Thanks

Posted by Dave W, 01-12-2010, 05:40 PM
WTB more information...

Posted by FullThrottle, 01-12-2010, 07:17 PM
session_start(); /********************************************************************************************************************************************** ScriptBux Version 2.50 beta This Script has been created and coded by Gabrola and edited by hassan ahmady. If you find any bugs in the script report at support@thealternatif.info or contact hassan ahmady. Copywrite ScriptBux 2008; Please make donations if you use this sript for commercial use to My paypal account "bisnis-usd@plasa.com" ************************************************************************************************************************************************/ if($_GET['r'] and !$_SESSION['r']) { $_SESSION['r'] = $_GET['r']; } if(($_SESSION['r'] and !$_GET['r']) or (($_SESSION['r'] and $_GET['r']) and $_GET['r'] != $_SESSION['r'])) { $_GET['r'] = $_SESSION['r']; } include "config.php"; global $c; include "data.php"; global $config; ?>

"; echo "

Install directory is exist,

Please Remove or Delete Install Directory

"; echo "

"; } else { echo "

"; echo "

Website is Undder Re-Constructions,

Please Check Back Soon!

"; echo "

Please Contact The Administrator

"; echo "
"; } } else { echo "

"; echo "

Website is Undder Re-Constructions,

Please Check Back Soon!

"; echo "

Please Contact The Administrator

"; echo "
"; } } else { ?>

Register


It seems you are logged in, click here to refresh. Also note you may not have 2 accounts per IP, or both will be deleted

( this has been logged & will be verified soon by the staff )

Or if you are logged in, click here to logout.


Error - Please supply a username."; } if(!$password) { $error = 1; $errormsg .= "

Error - Please supply a password.

"; } if(!$_POST['tos']) { $error = 1; $errormsg .= "

Error - You must agree to the TOS to sign up.

"; } if(strlen($password) < 6) { $error = 1; $errormsg .= "

Error - Your password must be over 6 characters.

"; } if(!$cpassword) { $error = 1; $errormsg .= "

Error - Please supply a confirm password.

"; } if(!$email) { $error = 1; $errormsg .= "

Error - Please supply a email.

"; } if(!$cemail) { $error = 1; $errormsg .= "

Error - Please supply a confirmation email.

"; } if(!$pemail) { $error = 1; $errormsg .= "

Error - Please supply an Alertpay email.

"; } if(!$country) { $error = 1; $errormsg .= "

Error - Please supply a country.

"; } if ($referer_exist<1 and $_POST['referer'] != "") { $error = 1; $errormsg .= "

Error - That referrer does not exist, Please leave it blank if you cannot find a referer.

"; $_SESSION['r'] = false; $_GET['r'] = false; } if ($pemail_exist>0) { $error = 1; $errormsg .= "

Error - That Alertpay address is already in use.

"; } if($password!=$cpassword) { $error = 1; $errormsg .= "

Error - The passwords do not match.

"; } if($email!=$cemail) { $error = 1; $errormsg .= "

Error - The emails do not match.

"; } if($_POST['code']!=$_SESSION['string']){ $error = 1; $errormsg .= "

Error - The captcha was entered incorrectly.

"; $_SESSION['string'] = false; } if($laip=="127.0.0.1") { $error = 1; $errormsg .= "

Error - The IP 127.0.0.1 is disabled to use.

"; } if ($ip_exist>0) { $error = 1; $errormsg .= "

Error - You already have one account

"; } if ($email_exist>0) { $error = 1; $errormsg .= "

Error - That email address is already in use.

"; } if($username_exist>0) { $error = 1; $errormsg .= "

Error - That username is already in use.

"; } if($error == 1) { print $errormsg; } else { // If it has introduced a referer see that there if ($_POST["referer"] != "") { // Sanitizamos la variable $referer = securedata($_SESSION["r"]); $referer=limitatexto($referer,15); $checkref = mysql_query("SELECT username FROM tb_users WHERE username='$referer'"); $referer_exist = mysql_num_rows($checkref); if ($referer_exist>0) { // If everything seems fine proceed with the insertion $sqlz = "SELECT * FROM tb_users WHERE username='$referer'"; $resultz = mysql_query($sqlz); $myrowz = mysql_fetch_array($resultz); $numero=$myrowz["referals"]; $sqlex = "UPDATE tb_users SET referals='$numero'+1 WHERE username='$referer'"; $resultex = mysql_query($sqlex); } } // Si todo parece correcto procedemos con la inserccion $joindate=time(); $query = "INSERT INTO tb_users (username, password, ip, email, pemail, referer, country, joindate, money,visits) VALUES('$username','$password','$laip','$email','$pemail','$referer','$country','$joindate', '0.05', '0')"; mysql_query($query) or die(mysql_error()); echo "You have been registered correctly $username. Now you can login."; ?>
*Username (3 - 15 characters - no special characters):
">

*Password (at least 6 characters):


*Confirm Password:


*Email Address:
">

*Confirm Email Address:
">

*Alertpay E-mail Address For Payments:
">

*Your Country (only Alertpay allowed countries):


Referrer (if any):
">

Terms of Service


> I Accept Terms Of Service

* Security code:

(Click to reload)


 


URL TO SITE: http://click-4-bux.co.cc/register.php Last edited by FullThrottle; 01-12-2010 at 07:18 PM. Reason: added URL!
Posted by pwalters09, 01-12-2010, 07:26 PM
wow scriptbux lol, the most buggy insecure ptc script out, but never mind I dont think the problem lies within your register.php page, the problem is either in config.php, data.php, header2.php or funciones.php Basically something seems to be echo'ing a variable of some sort out before the html has been loaded, and then probably a die(); function to prevent any other script from loading, either a die(); function or there is an error (possibly MySQL?) which has terminated loading, eitherway it definately is not in the register.php script Try using Yourownbux 4 or a paid script, scriptbux is full of security threats and bugs, i know because i have run ptc sites in the past... But if you insist on using scriptbux I would need to see those other files to determine the problem for you... Thanks

Posted by FullThrottle, 01-12-2010, 07:46 PM
Alright I currently have scriptbux & buxscript v6. But scriptbux is all loaded and ready just that page how can I chat with you do you have msn?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Gap in log files (Views: 318)
Planet Payment (Views: 311)