Tuesday, October 13, 2009

Heres the php script but i cant see any problems. Can you?

%26lt;?php



session_start();



include(%26quot;vars.php%26quot;);



include(%26quot;headfoot.php%26quot;);



mysql_connect($db_host, $db_user, $db_pwd);



mysql_select_db($db_name);



$my_ip_add = $_SERVER[%26#039;REMOTE_ADDR%26#039;];



if ($_GET[%26#039;ref%26#039;]) {



if ($_SESSION[%26#039;ref%26#039;] != $_GET[%26#039;ref%26#039;]) {



$_SESSION[%26#039;ref%26#039;] = $_GET[%26#039;ref%26#039;];



}



}



if ($_GET[%26#039;show%26#039;] == %26#039;terms%26#039;) {



uheader();



$res = mysql_query(%26quot;select content from html where type=%26#039;terms%26#039;%26quot;);



$terms = mysql_result($res, 0, %26quot;content%26quot;);



echo($terms);



ufooter();



mysql_close;



exit;



} elseif ($_GET[%26#039;show%26#039;] == %26#039;privacy%26#039;) {



uheader();



$res = mysql_query(%26quot;select content from html where type=%26#039;priva%26#039;%26quot;);



$privacy_policy = mysql_result($res, 0, %26quot;content%26quot;);



echo($privacy_policy);



ufooter();



mysql_close;



exit;



} else {



$result = mysql_query (%26quot;SELECT * FROM banned_emails%26quot;);



$bsites = mysql_query (%26quot;SELECT * FROM banned_sites%26quot;);



$bipadds = mysql_query (%26quot;SELECT * FROM banned_ipadds%26quot;);



if (is_string($my_ip_add) %26amp;%26amp; ereg(%26#039;^([0-9]{1,3})\.([0-9]{1,3})\.%26#039; . %26#039;([0-9]{1,3})\.([0-9]{1,3})$%26#039;, $my_ip_add, $sect)) {



if ($sect[1] %26lt;= 255 %26amp;%26amp; $sect[2] %26lt;= 255 %26amp;%26amp; $sect[3] %26lt;= 255 %26amp;%26amp; $sect[4] %26lt;= 255) {



$reip = %26quot;$sect[1].$sect[2].$sect[3].$sect[4]%26quot;;



$reipa = %26quot;$sect[1].$sect[2].$sect[3].*%26quot;;



$reipb = %26quot;$sect[1].$sect[2].*.*%26quot;;



$reipc = %26quot;$sect[1].*.*.*%26quot;;



}



}



for ($i = 0; $i %26lt; mysql_num_rows($bipadds); $i++) {



$theculpid = mysql_result($bipadds, $i, %26quot;id%26quot;);



$intval = mysql_result($bipadds, $i, %26quot;value%26quot;);



if ($reip == $intval || $reipa == $intval || $reipb == $intval || $reipc == $intval) {



header(%26quot;Location: /?gt=invip%26quot;);



mysql_close;



exit;



}



}



$langs = array(%26quot;English%26quot; =%26gt; %26quot;English%26quot;, %26quot;Arabic%26quot; =%26gt; %26quot;Arabic%26quot;, %26quot;Chinese%26quot; =%26gt; %26quot;Chinese%26quot;, %26quot;Czech%26quot; =%26gt; %26quot;Czech%26quot;, %26quot;Danish%26quot; =%26gt; %26quot;Danish%26quot;, %26quot;Dutch%26quot; =%26gt; %26quot;Dutch%26quot;, %26quot;Estonian%26quot; =%26gt; %26quot;Estonian%26quot;, %26quot;Finnish%26quot; =%26gt; %26quot;Finnish%26quot;, %26quot;French%26quot; =%26gt; %26quot;French%26quot;, %26quot;German%26quot; =%26gt; %26quot;German%26quot;, %26quot;Greek%26quot; =%26gt; %26quot;Greek%26quot;, %26quot;Hebrew%26quot; =%26gt; %26quot;Hebrew%26quot;, %26quot;Hungarian%26quot; =%26gt; %26quot;Hungarian%26quot;, %26quot;Icelandic%26quot; =%26gt; %26quot;Icelandic%26quot;, %26quot;Italian%26quot; =%26gt; %26quot;Italian%26quot;, %26quot;Japanese%26quot; =%26gt; %26quot;Japanese%26quot;, %26quot;Korean%26quot; =%26gt; %26quot;Korean%26quot;, %26quot;Latvian%26quot; =%26gt; %26quot;Latvian%26quot;, %26quot;Lithuanian%26quot; =%26gt; %26quot;Lithuanian%26quot;, %26quot;Norwegian%26quot; =%26gt; %26quot;Norwegian%26quot;, %26quot;Polish%26quot; =%26gt; %26quot;Polish%26quot;, %26quot;Portuguese%26quot; =%26gt; %26quot;Portuguese%26quot;, %26quot;Romanian%26quot; =%26gt; %26quot;Romanian%26quot;, %26quot;Russian%26quot; =%26gt; %26quot;Russian%26quot;, %26quot;Spanish%26quot; =%26gt; %26quot;Spanish%26quot;, %26quot;Swedish%26quot; =%26gt; %26quot;Swedish%26quot;, %26quot;Turkish%26quot; =%26gt; %26quot;Turkish%26quot;);



uheader();



echo(%26quot;%26lt;script language=\%26quot;javascript1.2\%26quot; type=\%26quot;text/javascript\%26quot;%26gt;\nfunction TestURL()\n{\nvar URL = document.nu.url.value;\nif(URL == \%26quot;\%26quot; || URL == %26#039;http://%26#039;){\nalert(\%26quot;You must provide the URL before testing!\%26quot;);\ndocument.nu.url.focus();\n... false;\n}\nvar URL = %26#039;urltest.php?url=%26#039;+URL;\nwindow.open(URL... %26#039;_blank%26#039; );\nreturn false;\n}\n%26lt;/script%26gt;\n%26quot;);



echo(%26quot;%26lt;div align=center class=\%26quot;big\%26quot;%26gt;%26lt;font face=$fontface%26gt;%26lt;b%26gt;New member registration%26lt;/b%26gt;%26lt;/font%26gt;%26lt;/div%26gt;\n%26quot;);



if ($_POST[%26#039;form%26#039;] == %26#039;sent%26#039;) {



$emaila = trim($_POST[%26#039;email1%26#039;]);



$pay_to = trim($_POST[%26#039;pay_to%26#039;]);



$payout_address = trim($_POST[%26#039;canpay%26#039;]);



$name = trim($_POST[%26#039;name%26#039;]);



$passwd = trim($_POST[%26#039;passwd%26#039;]);



$sitename = trim($_POST[%26#039;sitename%26#039;]);



$url = trim($_POST[%26#039;url%26#039;]);



if (ereg(%26#039;,%26#039;, $emaila)) {



$recon = explode(%26#039;,%26#039;, $emaila);



$emaila = trim($recon[0]);



}



if (ereg(%26#039;,%26#039;, $payout_address)) {



$reconst = explode(%26#039;,%26#039;, $payout_address);



$payout_address = trim($reconst[0]);



}



$checkpass = %26#039;true%26#039;;



$error = %26#039;%26lt;div align=center%26gt;%26lt;font face=$fontface color=red size=2%26gt;%26lt;b%26gt;Please, correct the following:%26lt;br%26gt;%26#039;;



if (ereg(%26#039;%%26#039;, $name) || ereg(%26#039;%26lt;%26#039;, $name) || ereg(%26#039;%26gt;%26#039;, $name)) {



$error = $error . %26#039;Your name contains inadmissible characters%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} elseif ($name == %26quot;%26quot;) {



$error = $error . %26#039;You must enter your name%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



}



$trimail = trim($emaila);



$res = mysql_query(%26quot;select count(*) from user where email=%26#039;$trimail%26#039;%26quot;);



if (mysql_result($res, 0) != 0) {



$error = $error . %26#039;Your e-mail address is already registered%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} elseif (!ereg(%26#039;@%26#039;, $emaila) || !ereg(%26#039;.%26#039;, $emaila)) {



$error = $error . %26#039;Your e-mail address is invalid%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} elseif ($email1 != $email2) {



$error = $error . %26#039;Your e-mail address doesn\%26#039;t match%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



}



for ($i = 0; $i %26lt; mysql_num_rows($result); $i++) {



$banned = mysql_result($result, $i, %26quot;value%26quot;);



$allow = true;



$temp = explode(%26quot;@%26quot;, $banned);



if ($temp[0] == %26quot;*%26quot;) {



$temp2 = explode(%26quot;@%26quot;, $emaila);



if (trim(strtolower($temp2[1])) == trim(strtolower($temp[1]))) {



$allow = false;



$zban = $temp[1]; }



} else {



if (trim(strtolower($emaila)) == trim(strtolower($banned))) {



$allow = false;



$zban = $banned; }



}



if (!$allow) {



$error = $error . %26quot;This email: %26lt;b%26gt;$zban%26lt;/b%26gt; is a banned email address or email domain%26lt;br%26gt;%26quot;;



$checkpass = %26#039;false%26#039;;



}



}



if ($payout_address == %26quot;%26quot;) {



$payout_address = %26quot;None%26quot;;



}



if ($passwd == %26quot;%26quot;) {



$error = $error . %26#039;You must enter your password%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} elseif (strlen($passwd) %26lt; 6) {



$error = $error . %26#039;Your password must be at least 6 characters long%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} elseif (ereg(%26#039;%%26#039;, $passwd) || ereg(%26#039; %26#039;, $passwd)) {



$error = $error . %26#039;Your password contains inadmissible characters%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} elseif ($passwd != $_POST[%26#039;passb%26#039;]) {



$error = $error . %26#039;Your passwords do not match!%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



}



if ($sitename == %26quot;%26quot;) {



$error = $error . %26#039;You must enter your site name%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} else if (ereg(%26#039;%%26#039;, $sitename) || ereg(%26#039;%26lt;%26#039;, $sitename) || ereg(%26#039;%26gt;%26#039;, $sitename)) {



$error = $error . %26#039;Your site name contains inadmissible characters%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



}



if ($url == %26quot;%26quot;) {



$error = $error . %26#039;You must enter your site URL%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



} elseif (!ereg(%26#039;http://%26#039;, $url) || !ereg(%26#039;.%26#039;, $url)) {



$error = $error . %26#039;Your site URL is invalid%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



}



for ($i = 0; $i %26lt; mysql_num_rows($bsites); $i++) {



$bs = mysql_result($bsites, $i, %26quot;domain%26quot;);



$site = strtolower($url);



$tsite = explode(%26quot;/%26quot;, $site);



$test2 = explode(%26quot;?%26quot;, $site);



$allowst = true;



if ($tsite[2] == $bs) {



$allowst = false;



$xban = $bs;



} elseif ($test2[0] == $bs) {



$allowst = false;



$xban = $bs;



}



if (!$allowst) {



$error = $error . %26quot;This site: %26lt;b%26gt;$xban%26lt;/b%26gt; is a banned affiliate URL or domain%26lt;br%26gt;%26quot;;



$checkpass = %26#039;false%26#039;;



}



}



if ($termscheck != 1) {



$error = $error . %26#039;Your must check and agree to our terms%26lt;br%26gt;%26#039;;



$checkpass = %26#039;false%26#039;;



}



if ($checkpass != %26#039;true%26#039;) {



$error = $error . %26#039;%26lt;/font%26gt;%26lt;/b%26gt;%26lt;/div%26gt;%26#039;;



echo($error);



}



}



if ($checkpass != %26#039;true%26#039;) {



echo(%26quot;%26lt;table border=0 cellpadding=5 cellspacing=0 width=100%%26gt;%26lt;form action=$self_url%26quot; . %26quot;signup.php method=post name=nu%26gt;%26lt;input type=hidden name=form value=sent%26gt;\n%26quot;);



if (isset($ref) %26amp;%26amp; is_numeric($ref)) {



echo(%26quot;%26lt;input type=hidden name=ref value=$ref%26gt;%26quot;);



} elseif ($_SESSION[%26#039;ref%26#039;] %26amp;%26amp; is_numeric($_SESSION[%26#039;ref%26#039;])) {



echo(%26quot;%26lt;input type=hidden name=ref value=%26quot; . $_SESSION[%26#039;ref%26#039;] . %26quot;%26gt;%26quot;);



} else {



$ref = 0;



}



echo(%26quot;%26lt;tr%26gt;%26lt;td width=50% align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Your name:%26lt;/td%26gt;%26lt;td width=50% align=left valign=top%26gt;%26lt;input value=\%26quot;$name\%26quot; type=text name=name size=20 maxlength=100 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Your E-mail address:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;input value=\%26quot;$email1\%26quot; type=text name=email1 size=20 maxlength=100 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Confirm your E-mail address:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;input value=\%26quot;$email2\%26quot; type=text name=email2 size=20 maxlength=100 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Password:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;input type=password name=passwd size=20 maxlength=20 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Confirm Password:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;input type=password name=passb size=20 maxlength=20 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Payout Details:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;select name=pay_to class=webforms%26gt;%26quot;);



while (list($m, $j) = each($payout_merchants)) {



echo(%26quot;%26lt;option%26quot;);



if ($m == $pay_to) {echo(%26quot; selected%26quot;);}



echo(%26quot; value=$m%26gt;$j%26lt;/option%26gt;%26quot;);



}



echo(%26quot;%26lt;/select%26gt;%26lt;input type=text name=canpay size=20 maxlength=150 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Your site name:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;input value=\%26quot;$sitename\%26quot; type=text name=sitename size=20 maxlength=255 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Your site URL:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;input value=\%26quot;%26quot;);



if ($url == %26quot;%26quot;) {



echo(%26quot;http://%26quot;);



}else {



echo(%26quot;$url%26quot;);



}



echo(%26quot;\%26quot; type=text name=url size=20 maxlength=255 class=webforms%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td%26gt;%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;A href=\%26quot;\%26quot; onclick=\%26quot;return TestURL();\%26quot;%26gt;%26lt;b%26gt;%26lt;font face=$fontface size=2%26gt;Click here to test your URL%26lt;/font%26gt;%26lt;/b%26gt;%26lt;/a%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=right valign=top%26gt;%26lt;font face=$fontface size=2%26gt;Your site language:%26lt;/td%26gt;%26lt;td align=left valign=top%26gt;%26lt;select name=lang class=webforms%26gt;%26quot;);



while (list($k, $v) = each($langs)) {



echo(%26quot;%26lt;option%26quot;);



if ($k == $lang) {echo(%26quot; selected%26quot;);}



echo(%26quot; value=$k%26gt;$v%26lt;/option%26gt;%26quot;);



}



echo(%26quot;%26lt;/select%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=center valign=top colspan=2%26gt;%26lt;p%26gt;%26lt;label%26gt;%26lt;font size=\%26quot;2\%26quot; face=\%26quot;$fontface\%26quot;%26gt;You have been referred by member number: %26lt;b%26gt;%26quot;);



if ($ref %26gt; 0) {



echo(%26quot;$ref%26quot;);



} else {



echo(%26quot;None - No member will be assigned%26quot;);



}



echo(%26quot;%26lt;/b%26gt;%26lt;br%26gt;%26lt;input type=\%26quot;radio\%26quot; name=\%26quot;allow_emails\%26quot; value=\%26quot;yes\%26quot;%26quot;);



if ($allow_emails == %26#039;yes%26#039; || $allow_emails == %26quot;%26quot;) {



echo(%26quot; checked%26quot;);



}



echo(%26quot;%26gt; Allow my referrer to contact me via email%26lt;/font%26gt;%26lt;/label%26gt;%26lt;br%26gt;%26lt;font size=\%26quot;2\%26quot; face=\%26quot;$fontface\%26quot;%26gt;%26lt;label%26gt;%26lt;input type=\%26quot;radio\%26quot; name=\%26quot;allow_emails\%26quot; value=\%26quot;no\%26quot;%26quot;);



if ($allow_emails == %26#039;no%26#039;) {



echo(%26quot; checked%26quot;);



}



echo(%26quot;%26gt; Please keep my email private%26lt;/label%26gt;%26lt;/font%26gt;%26lt;br%26gt;%26lt;/p%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;...



echo(%26quot;%26lt;tr%26gt;%26lt;td align=center valign=top colspan=2%26gt;%26lt;input type=checkbox%26quot;);



if ($termscheck == 1) {echo(%26quot; checked%26quot;);}



echo(%26quot; name=termscheck value=1%26gt;%26lt;font face=$fontface size=2%26gt; I agree with the %26lt;a href=$self_url%26quot;.%26quot;signup.php?show=terms target=_blank%26gt;%26lt;b%26gt;%26lt;font face=$fontface size=2%26gt;Terms and Conditions%26lt;/b%26gt;%26lt;/a%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;tr%26gt;%26lt;td align=center valign=top colspan=2%26gt;$signup_special_note%26lt;/td%26gt;%26lt;/tr%26gt;...



echo(%26quot;%26lt;tr%26gt;%26lt;td align=center valign=top colspan=2%26gt;%26lt;input type=submit value=\%26quot;Register!\%26quot; class=\%26quot;formbutton\%26quot;%26gt;%26lt;/td%26gt;%26lt;/tr%26gt;\n%26quot;);



echo(%26quot;%26lt;/form%26gt;%26lt;/table%26gt;%26lt;p align=center%26gt;%26lt;font size=2%26gt;%26lt;b%26gt;%26lt;a href=\%26quot;$self_url%26quot;.%26quot;signup.php?show=priva... target=\%26quot;_blank\%26quot;%26gt;Privacy Policy%26lt;/a%26gt;%26lt;/b%26gt;%26lt;/font%26gt;%26lt;/p%26gt;\n%26quot;);



} else {



srand((double)microtime()*1000000);



$ac = rand(10000, 1000000);



$name = trim($name);



$email = trim($email1);



$sitename = trim($sitename);



$name = addslashes($name);



$sitename = addslashes($sitename);



$res = mysql_query(%26quot;select value from adminprops where field=%26#039;inibon%26#039;%26quot;);



$inibon = mysql_result($res, 0, %26quot;value%26quot;);



$res = mysql_query(%26quot;select value from adminprops where field=%26#039;insbon%26#039;%26quot;);



$insbon = mysql_result($res, 0, %26quot;value%26quot;);



if ($insbon %26gt;= 1) {



$resq = mysql_query(%26quot;select value from adminprops where field=%26#039;sharec%26#039;%26quot;);



$sharec = mysql_result($resq, 0, %26quot;value%26quot;);



$insbonus = $insbon * $sharec;



} else {



$insbonus = 0;



}



if ((!isset($ref) || !is_numeric($ref)) %26amp;%26amp; $allow_rand_refs == %26#039;yes%26#039;) {



$get_rand_ref = mysql_query(%26quot;SELECT id FROM user WHERE acctype%26gt;=2 order by rand() limit 1%26quot;);



if (mysql_num_rows($get_rand_ref) == 0) {



$ref = 0;



} else {



$ref = mysql_result($get_rand_ref, 0);



}



}



$date = date(%26quot;Y-m-d H:i:s%26quot;);



$adate = date(%26quot;Y-m-d%26quot;);



if ($allow_emails == %26quot;%26quot;) {



$allow_emails = %26#039;yes%26#039;;



}



if ($activation_pages == 0) {



$ins_crds = $inibon;



} else {



$ins_crds = 0;



}



$new_ins = %26quot;insert into user (name, email, passwd, pay_to, payout_address, ref, acctype, credits, lifetime_credits, invested, joindate, minmax, lastaccess, allow_contact, status, ip_address, ac) values (%26#039;$name%26#039;, %26#039;$email%26#039;, %26#039;$passwd%26#039;, $pay_to, %26#039;$payout_address%26#039;, $ref, 1, $ins_crds, $ins_crds, $insbonus, %26#039;$date%26#039;, 0, %26#039;$date%26#039;, %26#039;$allow_emails%26#039;, %26#039;Un-verified%26#039;, %26#039;$my_ip_add%26#039;, $ac)%26quot;;



$res = mysql_query($new_ins) or die (mysql_error());



$usrid = mysql_insert_id();



$res = mysql_query(%26quot;insert into site (usrid, name, url, lang, state, credits) values ($usrid, %26#039;$sitename%26#039;, %26#039;$url%26#039;, %26#039;$lang%26#039;, %26#039;Waiting%26#039;, 0)%26quot;);



if ($ref %26gt;= 1) {$doias = mysql_query(%26quot;insert into member_refs values ($usrid, $ref)%26quot;); }



if ($insbonus %26gt; 0) {



if ($insbon %26gt; 1) {



$ss = %26quot;s%26quot;;



}



$res = mysql_query(%26quot;insert into investment_history (usrid, amount, descr, is_from, processor, adate) values ($usrid, $insbonus, %26#039;Member $upgrade_title$ss : $$sharec per $upgrade_title$ss%26#039;, %26#039;Signup Bonus%26#039;, %26#039;$title Admin%26#039;, %26#039;$adate%26#039;)%26quot;);



}



$surpres = mysql_query(%26quot;update adminprops set value=value-$ins_crds where field=%26#039;surplu%26#039;%26quot;);



$surpres = mysql_query(%26quot;update adminprops set value=value-$insbonus where field=%26#039;csurpl%26#039;%26quot;);



$res = mysql_query(%26quot;select value from admin where field=%26#039;email%26#039;%26quot;);



$admail = mysql_result($res, 0, %26quot;value%26quot;);



mail($email, %26quot;Thank you for registering at $title!%26quot;, %26quot;$name, thank you for registration!\n\nYour $title login is: $email\nYour $title password is: $passwd\n\nTo activate your account you have to open the following link:\n$self_url%26quot; . %26quot;activate.php?ac=$ac%26amp;i=$usrid\nClick it or copy-paste it to your browser%26#039;s query string.\n\nYour refferal link is:\nhttp://$siteurl/?ref=$usrid\nYou will earn $ref_earnings credit every time your referant shows a site!\n\n$title Admin\nhttp://$siteurl/\n$admail%26quot;, $email_headers);



echo(%26quot;%26lt;p align=center%26gt;%26lt;font face=$fontface size=4%26gt;%26lt;b%26gt;Thank you for registering!%26lt;/b%26gt;%26lt;/p%26gt;%26quot;);



echo(%26quot;%26lt;p align=center%26gt;%26lt;font size=2 face=$fontface%26gt;Please check your email for your account activation link.%26lt;br%26gt;The activation link for your account was sent to %26lt;b%26gt;$email%26lt;/b%26gt;.%26lt;/p%26gt;%26quot;);



}



ufooter();



}



mysql_close;



exit;



?%26gt;



Heres the php script but i cant see any problems. Can you?





Specific error message at specific line number, please.



Also, post your code on a Web server as a text file. Yahoo truncates long lines and we can%26#039;t see everything. Didn%26#039;t you notice that BEFORE you submitted this question?



Heres the php script but i cant see any problems. Can you?



more details? in what line does it say the error is? what error does it give?

No comments:

Post a Comment

 

Register Domain Copyright 2008 All Rights Reserved Baby Blog Designed by Ipiet | Web Hosting