$strFirstName_get = $row["first_name"]; $strLastName_get = $row["last_name"]; $strPhone_get = $row["cellphone"]; $intBalanceCrypto_receive = $row["balance_btc"]; //amsterdam takes 3 additional data fields $strLabel = "{$strFirstName_get} {$strLastName_get}"; $strLabel2 = $intUserID_send; $strLabel3 = $strEmail_get; } //send bitcoin if (SEND_THROUGH_WHICH_SYSTEM == "blockchain.info") { $strSendReturn = funct_Billing_SendBTC($strWalletHash, $intBTCamt, $strNote, $intMiningFee, $strWalletFrom); //web api } if (SEND_THROUGH_WHICH_SYSTEM == "amsterdam") { $strSendReturn = funct_Billing_SendBTC_CoinCafe($strWalletHash, $intBTCamt, $strNote, $intMiningFee, $strWalletFrom, $strLabel, $strLabel2, $strLabel3); //web api } //parse return array $strSendArry = explode("|", $strSendReturn); $strSendMsg = $strSendArry[0]; // message $strSendErr = $strSendArry[1]; // error $strSendHash = $strSendArry[2]; // txid - IT ONLY RETURNS A HASH IF SUCCESSFUL //update que record $query = "UPDATE " . TBL_TRANSACTIONS_QUE . " SET status_id=1 , transaction_txid='{$strSendHash}' , transaction_address='{$strWalletHash}' WHERE id=" . $intQueID; //echo "SQL STMNT = " . $query . "<br>"; $strERRORUserMessage = "Database update que record Error. Admin has been informed " . $strError_send; $strERRORMessageAdmin = "{$strError_send} \n SQL statement failed - {$query} ";
include __ROOT__ . PATH_ADMIN . "checklogin.php"; $strDo = trim($_GET['do']); //echo "strDo= " . $strDo; //$intDebugFlag = true ; switch ($strDo) { case "movefundsamsterdam2hot": $intToAmount = abs(funct_ScrubVars($_POST["amount"])); if (!$intToAmount) { echo "no amount"; die; } //call function to move funds $strToAddress = BLOCKCHAIN_SENDFROMADDRESS; //blockchain.info hot wallet. $strNote = "amst2hot"; $strResponse = funct_Billing_SendBTC_CoinCafe($strToAddress, $intToAmount, $strNote, $intMiningFee, $strFrom); $strSendArry = explode("|", $strResponse); $strSendMsg = $strSendArry[0]; // message $strSendErr = $strSendArry[1]; // error $strSendHash = $strSendArry[2]; echo $strResponse; break; //!CASE $strDo "verifykyc" //!CASE $strDo "verifykyc" case "verifykyc": $user_id = funct_ScrubVars($_GET["id"]); //this "id" here is passed in the URL (querystring) $query3 = "UPDATE " . TBL_USERS . " SET kyc=1 WHERE id=" . $user_id; //echo "SQL STMNT = " .$query3. " <br>";