1 ) { $isSuccess = 1; }; # if ( strlen($MobilePhoneCountryVorwahl) > 1 ) { } else { $phone_error = formatErrorMessage("Mobilfunknummer $MobilePhoneFull ist ungültig!"); IndexPage( $referingUrl, $refPP, $grpPP, $refUID, $land, $phone_error ); LogAccessIndexPage( $referingUrl, $refPP, $grpPP, $refUID, $land, $phone_error ); exit(0); }; # if ( $MobilePhoneStatus == 1 && $PreMobilePhoneStatus == 1 ) { /* START: SQL COMMANDOS Ausfüllen mit werten füllen, standart user */ $UserPIN = generatePassword(); # functions.inc.php - PIN für user generieren $web_up_MD5 = md5($MobilePhoneFull.$UserPIN); $overall_searches = STANDART_VOLUME_OVERALL; $successfull_searches = STANDART_VOLUME_SUCCESS; $TABLE1 = BJPARIS_TABLE; $REMOTE = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $SqlQueryBJTABLE = ""; $SqlQueryBJTABLE = "INSERT INTO `$TABLE1` ( `web_mobilephone`,`web_mobilephone_full`,`web_ref_PP`,`web_grp_PP`,`web_ref_UID`,`web_ref_URL`, `web_lead_istracked`,`web_signup_date`,`web_signup_remote`,`web_servicetype`, `web_password`,`web_up_MD5`, `web_country`,`web_testaccount`,`hc_contingent_volume_success`,`hc_contingent_volume_overall`, `hc_userType`,`hc_abuse`) VALUES ( '$MobilePhoneFull','$MobilePhoneBeauty', '$refPP', '$grpPP', '0', '$refURL', '0', NOW(), '$REMOTE', '1', '$UserPIN', '$web_up_MD5' , '$Country' , '0', '$successfull_searches', '$overall_searches', '1','0' );"; $TABLE3 = BILL_TABLE; $SqlQueryBILL_TABLE = ""; $SqlQueryBILL_TABLE = "INSERT INTO `$TABLE3` ( `bill_mobilephone`) VALUES ( '$MobilePhoneFull' );"; /* END: SQL COMMANDOS Ausfüllen mit werten füllen, standart user */ /* Checke, ob Mobilfunnummer schon in unserer Datenbank besteht */ $SqlQuery = "SELECT `web_mobilephone` FROM `$TABLE1` WHERE `web_mobilephone` = '$MobilePhoneFull' LIMIT 1;"; $MySqlArrayCheck = doSQLQuery($SqlQuery); if ( $MySqlArrayCheck ) { while( $sql_results = mysql_fetch_array($MySqlArrayCheck)) { $PHONE = $sql_results["web_mobilephone"]; }; # while( $sql_results = mysql_fetch_array($MySqlArray)) { if ( strcmp($PHONE, $MobilePhoneFull) == 0 ){ $phone_error = formatErrorMessage("Mobilfunknummer $MobilePhoneFull ist bereits in unserer Datenbank vorhanden!"); IndexPage( $referingUrl, $refPP, $grpPP, $refUID, $land, $phone_error ); LogAccessIndexPage( $referingUrl, $refPP, $grpPP, $refUID, $land, $phone_error ); exit(0); }; # if ( strcmp($PHONE, $MobilePhoneBeauty) == 0 ){ }; # if ( $MySqlArrayCheck ) { if ( $isSuccess == 1 ){ # Handynummer gültig - Handynummer eingabe Input validiert - korrektes Land session_start(); session_name("BITJOEPARIS"); $SessionId = session_id(); $_SESSION['mobilephone'] = $MobilePhoneFull; $_SESSION['mobilephonefull'] = $MobilePhoneBeauty; # es gab keine Fehler bei der Eingabe darum stelle die Daten in die SQL Datenbank ein $MySqlArray1 = doSQLQuery($SqlQueryBJTABLE); $MySqlArray2 = doSQLQuery($SqlQueryBILL_TABLE); # echo "BJ $SqlQueryBJTABLE
"; # echo "BI $SqlQueryBILL_TABLE
"; # echo "CO $SqlQueryCOUPON_TABLE
"; }; # if ( $isSuccess == 1 ){ ScreenStep2( $MobilePhoneFull ); exit(0); ?>