"")) { header("Location:"."gen_confirm.php?errmsg=".urlencode('ĺґǂ졣Ӄ맃룺'.$_SESSION["b2b_username"])); die(); } $config=mysql_fetch_array(mysql_query("select * from b2b_config")); if($config["sb_signup_verification"]=="no") { header("Location:"."addmember.php"); die(); } $errcnt=0; if(count($_POST)<>0) //IF SOME FORM WAS POSTED DO VALIDATION { if(!get_magic_quotes_gpc()) { $email=str_replace("$","\$",addslashes($_REQUEST["email"])); } else { $email=str_replace("$","\$",$_REQUEST["email"]); } if ( !isset( $_REQUEST["email"] ) || (strlen(trim($_REQUEST["email"] )) == 0) ) { $errs[$errcnt]="ᘐ댮дӊϤ啧硣"; $errcnt++; } elseif(preg_match ("/[;<>&]/", $_REQUEST["email"])) { $errs[$errcnt]="ӊϤ啧粻Ĝ༺쌘ʢז绠(e.g. & ; < >)"; $errcnt++; } else { $mem_query=mysql_query ("select * from b2b_members where sb_email='$email'"); if ($mem=mysql_fetch_array($mem_query)) { $errs[$errcnt]="բ趓ʏ䒑Ј˓Aˡ㢻 $errcnt++; } } if($errcnt==0) { $config=mysql_fetch_array(mysql_query("select * from b2b_config ")); mysql_query ("delete from b2b_signups where sb_email='$email'"); mysql_query ("delete from b2b_tmp_email where sb_email='$email'"); $rnum = mt_rand(1,1000000000); $insert_str="Insert into `b2b_signups` ( sb_email ,sb_rnum,sb_onstamp) VALUES ( '$email','$rnum','" . date("YmdHis",time()) . "')"; mysql_query($insert_str); if(mysql_affected_rows()>0) { //==================send confirmation mail================ $sb_null_char=$config["sb_null_char"]; $signup_url=$config["sb_site_root"]."/addmember.php?rnum=$rnum&email=".$_REQUEST["email"]; $sql = "SELECT * FROM b2b_mails where sb_mailid=22" ; $rs_query=mysql_query($sql); if ( $rs=mysql_fetch_array($rs_query) ) { $from =$rs["sb_fromid"]; $to = $_REQUEST["email"]; $subject =$rs["sb_subject"]; $header="From:" . $from . "\r\n" ."Reply-To:". $from ; $body=str_replace("%email%", $_REQUEST["email"],str_replace("%password%",$sb_null_char,str_replace("%lname%", $sb_null_char,str_replace("%fname%", $sb_null_char,str_replace("%username%", $sb_null_char, $rs["sb_mail"]) )))); $body=str_replace("%signup_url%",$signup_url,str_replace("%login_url%",$sb_null_char,$body)); if(isset($rs["sb_html_format"])&&($rs["sb_html_format"]=="yes")) { $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html; charset=iso-8859-1\r\n"; // $body=str_replace("\n","%br%",$body); } //echo "--from:-$from----to:-$to---sub:-$subject----head:-$header----"; //echo "
$body
"; //die(); if( $rs["sb_status"]=='yes') mail($to,$subject,$body,$header); } //======================================================== header("Location:"."gen_confirm.php?errmsg=".urlencode("ǫ쬲邝儓ʏ䣬Ԛ碸脺儓ʼӐһ趁体㬇뵣뷄Ǹ德퓍곉ע⡡㐻лᣢ)); die(); }// if inserted else { header("Location:"."gen_confirm.php?err=signup&errmsg=".urlencode("ᧇ裬㶏ց˒됩䭎㣬⻄܍곉ע⡲햨ᣢ)); die(); } }// if no errors }// if form posted function main () { global $errs, $errcnt; $showform=""; if (count($_POST)>0) { if ( $errcnt<>0 ) { ?>
 ӉӚςPԭҲ㬄굄Ҫdz⻄ܱ덪㉡㼯strong>
 1
"No") { ?>
 ע⡱
Email ID *
Your older verification code will be disabled once you request for newer verification code.