Who Have Script Verification Code for wapsite...?
Please Share with me...
Example: [attachment=1788:image.jpeg]
Please Share with me...
Example: [attachment=1788:image.jpeg]
function registerform($ef) { $ue = $errl = $pe = $ce = ""; switch($ef) { case 1: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your UserID"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 2: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 3: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password again"; $ce = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 4: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is invalid"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 5: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password is invalid"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 6: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Passwords doesn't match"; $ce = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 7: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must be 4 characters or more"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 8: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password must be 4 characters or more"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 9: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID already in use, choose a different one"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 10: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Unknown mysql error try registering later"; break; case 11: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must start with a letter from a-z"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 12: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is reserved for admins of the site"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 13: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please choose an appropriate nickname"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 14: $errl = "<img src=\"../images/point.gif\" alt=\"!\"/> Security code is incorrect"; $ue = "<img src=\"../images/point.gif\" alt=\"!\"/>"; break; } $rform = "[size="1"]$errl[/size] "; $rform .= "$ue UserID: <input name=\"tfuid\" maxlength=\"15\"/> "; $rform .= "$pe Password: <input type=\"password\" name=\"tfpwd\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "$ce Password: <input type=\"password\" name=\"tfcpw\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "Birthday: <input name=\"tfbdy\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "Sex:"; $rform .= "<select name=\"opsex\" value=\"M\">"; $rform .= "<option value=\"M\">Male</option>"; $rform .= "<option value=\"F\">Female</option>"; $rform .= "</select> "; $rform .= "Location: <input name=\"tfloc\" maxlength=\"100\"/> "; $rform .= "<img src=\"images/captcha.php\"/> "; $rform .= "enter security code: <input type=\"text\" name=\"captcha_code\" maxlength=\"5\"/> "; $rform .= "<anchor>Register"; $rform .= "<go href=\"register.php\" method=\"post\">"; $rform .= "<postfield name=\"uid\" value=\"$(tfuid)\"/>"; $rform .= "<postfield name=\"pwd\" value=\"$(tfpwd)\"/>"; $rform .= "<postfield name=\"cpw\" value=\"$(tfcpw)\"/>"; $rform .= "<postfield name=\"bdy\" value=\"$(tfbdy)\"/>"; $rform .= "<postfield name=\"usx\" value=\"$(opsex)\"/>"; $rform .= "<postfield name=\"ulc\" value=\"$(tfloc)\"/>"; $rform .= "<postfield name=\"captcha_code\" value=\"$(captcha_code)\"/>"; $rform .= "</go></anchor>"; return $rform; }
session_start();
if(trim($uid)=="") { echo registerform(1); }else if(trim($pwd)=="") { echo registerform(2); }else if(trim($cpw)=="") { echo registerform(3); }else if(spacesin($uid)||scharin($uid)) { echo registerform(4); }else if(spacesin($pwd)||scharin($pwd)) { echo registerform(5); }else if($pwd!=$cpw) { echo registerform(6); }else if(strlen($uid)<4) { echo registerform(7); }else if(strlen($pwd)<4) { echo registerform(8); }else if(isdigitf($uid)) { echo registerform(11); }else if(checknick($uid)==1) { echo registerform(12); }else if(checknick($uid)==2) { echo registerform(13); } else if(md5($_POST["captcha_code"])!= $_SESSION["captcha_code"]) { echo registerform(14); } else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==1) { echo registerform(9); }else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==2) { echo registerform(10); }else{ mkdir($uid."/", 0700); $brws = explode(" ",$SERVER['HTTP_USER_AGENT']); $ubr = $brws[0]; $f = "$uid/index.php"; $fp = fopen($f, "w"); fwrite ($fp, "<php? echo $uid $bdy $usx $ulc $ubr; ?>"); fclose($fp); echo "Registration completed successfully! "; $tolog = true;
function registerform($ef) { $ue = $errl = $pe = $ce = ""; switch($ef) { case 1: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your UserID"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 2: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 3: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please type your password again"; $ce = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 4: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is invalid"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 5: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password is invalid"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 6: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Passwords doesn't match"; $ce = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 7: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must be 4 characters or more"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 8: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Password must be 4 characters or more"; $pe = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 9: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID already in use, choose a different one"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 10: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Unknown mysql error try registering later"; break; case 11: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID must start with a letter from a-z"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 12: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> UserID is reserved for admins of the site"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 13: $errl = "<img src=\"images/point.gif\" alt=\"!\"/> Please choose an appropriate nickname"; $ue = "<img src=\"images/point.gif\" alt=\"!\"/>"; break; case 14: $errl = "<img src=\"../images/point.gif\" alt=\"!\"/> Security code is incorrect"; $ue = "<img src=\"../images/point.gif\" alt=\"!\"/>"; break; } $rform = "[size="1"]$errl[/size] "; $rform .= "$ue UserID: <input name=\"tfuid\" maxlength=\"15\"/> "; $rform .= "$pe Password: <input type=\"password\" name=\"tfpwd\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "$ce Password: <input type=\"password\" name=\"tfcpw\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "Birthday: <input name=\"tfbdy\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "Sex:"; $rform .= "<select name=\"opsex\" value=\"M\">"; $rform .= "<option value=\"M\">Male</option>"; $rform .= "<option value=\"F\">Female</option>"; $rform .= "</select> "; $rform .= "Location: <input name=\"tfloc\" maxlength=\"100\"/> "; $rform .= "<img src=\"images/captcha.php\"/> "; $rform .= "enter security code: <input type=\"text\" name=\"captcha_code\" maxlength=\"5\"/> "; $rform .= "<anchor>Register"; $rform .= "<go href=\"register.php\" method=\"post\">"; $rform .= "<postfield name=\"uid\" value=\"$(tfuid)\"/>"; $rform .= "<postfield name=\"pwd\" value=\"$(tfpwd)\"/>"; $rform .= "<postfield name=\"cpw\" value=\"$(tfcpw)\"/>"; $rform .= "<postfield name=\"bdy\" value=\"$(tfbdy)\"/>"; $rform .= "<postfield name=\"usx\" value=\"$(opsex)\"/>"; $rform .= "<postfield name=\"ulc\" value=\"$(tfloc)\"/>"; $rform .= "<postfield name=\"captcha_code\" value=\"$(captcha_code)\"/>"; $rform .= "</go></anchor>"; return $rform; }
session_start();
if(trim($uid)=="") { echo registerform(1); }else if(trim($pwd)=="") { echo registerform(2); }else if(trim($cpw)=="") { echo registerform(3); }else if(spacesin($uid)||scharin($uid)) { echo registerform(4); }else if(spacesin($pwd)||scharin($pwd)) { echo registerform(5); }else if($pwd!=$cpw) { echo registerform(6); }else if(strlen($uid)<4) { echo registerform(7); }else if(strlen($pwd)<4) { echo registerform(8); }else if(isdigitf($uid)) { echo registerform(11); }else if(checknick($uid)==1) { echo registerform(12); }else if(checknick($uid)==2) { echo registerform(13); } else if(md5($_POST["captcha_code"])!= $_SESSION["captcha_code"]) { echo registerform(14); } else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==1) { echo registerform(9); }else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==2) { echo registerform(10); }else{ mkdir($uid."/", 0700); $brws = explode(" ",$SERVER['HTTP_USER_AGENT']); $ubr = $brws[0]; $f = "$uid/index.php"; $fp = fopen($f, "w"); fwrite ($fp, "<php? echo $uid $bdy $usx $ulc $ubr; ?>"); fclose($fp); echo "Registration completed successfully! "; $tolog = true;
Comment