Default is 0. */ public $charset= 0; /** * The SMS message text * String */ public $msgtext= "Hello World"; /** * The originator of your message (11 alphanumeric or 14 numeric values). * Valid Chars are: A-z,0-9 (no Spaces or other chars like $-+!). * String */ public $originator= 'TestAccount'; /** * The full International mobile number of the recipient excluding * the leeding + (e.g. 33xxxxxxxxxx for France, 4478xxxxxx for UK etc) * To send to multiple recipients, separate each number with a comma * (e.g. 44xxxxx,33xxxxxx,20xxxxxx). * Please note that no blanks can be used. * String */ public $phone= 'recipient'; /** * Request Delivery Report. * If set to 1 a unique id for requesting delivery report of this sms * is returned with the OK return value upon sending. * Int [OPTIONAL] -> Default is 0 (No DLR). */ public $showDLR= 0; /** * The SMS message type. * If set to F the sms is sent as Flash. * String [OPTIONAL] -> Default is empty (GSM text message). */ public $msgtype= ''; /** * Adjust Delivery date to UTC time. (acceptable values: …-11…+11). * Int [OPTIONAL] -> Default is 0 (UTC 0). */ public $utc= 0; //--------------------------------- // METHODS //--------------------------------- /** * This method sends out one SMS message or multiple (for multiple recipients). * Parameters: * none. (NOTE: sms object must be correctly initialized in order for this method to work.) * Returns: * OK Successfully Sent * ERROR100 Temporary Internal Server Error. Try again later * ERROR101 Authentication Error (Not valid login Information) * ERROR102 No credits available * ERROR103 MSIDSN (phone parameter) is invalid or prefix is not supported * ERROR104 Tariff Error * ERROR105 You are not allowed to send to that destination/country * ERROR106 Not Valid Route number or you are not allowed to use this route * ERROR107 No proper Authentication (IP restriction is activated) * ERROR108 You have no permission to send messages through HTTP API * ERROR109 Not Valid Originator * ERROR999 Invalid HTTP Request * if showDLR is set to 1 a unique id for the delivery report of this sms is returned with the OK return value. */ function send(){ $fieldcnt=8; $fieldstring = "username=$this->username&password=$this->password&charset=$this->charset&msgtext=$this->msgtext&originator=$this->originator&phone=$this->phone&provider=$this->provider&showDLR=$this->showDLR&msgtype=$this->msgtype"; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$this->send_url); curl_setopt($ch,CURLOPT_POST,$fieldcnt); curl_setopt($ch,CURLOPT_POSTFIELDS,$fieldstring); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); $res = curl_exec($ch); curl_close($ch); return $res; } /** * This method gets the balance of a HTTP API account. * Parameters: * none. (NOTE: sms object must be correctly initialized in order for this method to work.) * Returns: * Account balance in EUROS */ function getBalance(){ $fieldcnt=2; $fieldstring = "username=$this->username&password=$this->password&provider=$this->provider"; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$this->balance_url); curl_setopt($ch,CURLOPT_POST,$fieldcnt); curl_setopt($ch,CURLOPT_POSTFIELDS,$fieldstring); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); $res = curl_exec($ch); curl_close($ch); return $res; } /** * This method returns the Delivery Report (DLR) of SMS message. * Parameters: * phone: String - The recipient's number * dlr_id: String - The SMS message unique id provided to you by method send(). * Returns: * 0 No Status yet received * 1 SMS Delivered * 2 Failed Delivery (Erroneous Number) * 3 Delivery Failed (Message Expired in SMSC) * 4 Pending Delivery * 5 Expired * ERROR100 Temporary Internal Server Error. Try again later * ERROR101 Not valid parameters in request * ERROR102 Error combination of phone & id or invalid id */ function getDLR($phone,$dlr_id){ $fieldcnt=3; $fieldstring = "id=$dlr_id&phone=$phone&utc=$this->utc&provider=$this->provider"; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$this->dlr_url); curl_setopt($ch,CURLOPT_POST,$fieldcnt); curl_setopt($ch,CURLOPT_POSTFIELDS,$fieldstring); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); $res = curl_exec($ch); curl_close($ch); return $res; } }?> Gratis SMSen | SMSjezenden.nl
Goedemiddag , Uw saldo is per vandaag credits Gratis sms versturen
Statistieken

Je hebt smsjes verstuurd via SMSjezenden.nl.

Jouw saldo van smsjezenden.nl

Je saldo is: credits.

Op deze pagina kan je smsjes versturen naar elke telefoon waar dan ook. Per SMS kost het je 100 credits.

is_valid) { echo "reCAPTCHA is false. Please go back and try again" . "(reCAPTCHA zegt: " . $resp->error . ")"; } else { $query = "SELECT * FROM users WHERE id = '" . $memberid . "'"; $result = mysql_query($query) or die(mysql_error()); while ($object = mysql_fetch_object($result)) { $saldo = $object->saldo; $mobiel = $object->mobiel; $voornaam = $object->name; } if (is_numeric($_POST['to'])){ $prijs = "100"; $from = $_POST['afzender']; $to = $_POST['to']; $uc = 49699495; $enter = "\n"; $text2=urlencode($_POST['text']); $text23 = $_POST['text']; if( strlen($to) !== 11 ){ echo "Ontvanger is niet correct. Het nummer moet er zo uitzien: 31612345678. Dus 0612345678 wordt 31612345678. 31 staat voor het landnummer. In dit geval Nederland."; }elseif( $from == "" ){ echo "De afzender is leeg!"; }elseif( $text2 == "" ){ echo "Je bericht is leeg!"; }else{ if ($saldo >= $prijs) { $text = urlencode($_POST['text']); $tcon = file_get_contents("http://api.justsms.nl/sms/?e=johan@vlieg-online.nl&u=6680770cb0206819d6c27effbe6dd7f8&a=" . $from . "&o=" . $to . "&b=" . $text2 . ""); $rest = substr($tcon, 0, 2); // returns "cde" if($rest == "OK"){ mysql_query("UPDATE users SET saldo=saldo-" . $prijs . " WHERE id='" . $_SESSION['memberid'] . "'")or die(mysql_error()); mysql_query("UPDATE users SET sms=sms+1 WHERE id=$memberid") or die(mysql_error()); mysql_query("INSERT INTO verzonden (van,naar,bericht,datum,nummer) VALUES ('" . $memberid . "','" . $_POST[to] . "','" . $_POST[text] . "','" . date("Y-m-d H:i:s") . "','" . $tcon . "')") or die(mysql_error()); mysql_query("INSERT INTO admincheck (van,naar,bericht,datum,nummer) VALUES ('" . $memberid . "','" . $_POST[to] . "','" . $_POST[text] . "','" . date("Y-m-d H:i:s") . "','" . $tcon . "')") or die(mysql_error()); mysql_query("UPDATE sjeck SET sms=sms+1 WHERE mid=$memberid") or die(mysql_error()); echo "

Je SMSje wordt verzonden. Klik hier om de status te zien!
  "; }else{ if( $tcon == 1 ){ $fout = "SMS verzending geweigerd, de admin is hiervan op de hoogte gesteld."; $foutmail = 1; }elseif( $tcon == 2 ){ $fout = "Niet ondersteund netwerk"; $foutmail = 1; }elseif( $tcon == 3 ){ $fout = "Mist ontvanger"; }elseif( $tcon == 4 ){ $fout = "Mist sms text"; }elseif( $tcon == 5 ){ $fout = "Mist afzender"; }elseif( $tcon == 6 ){ $fout = "Ontvanger is niet correct ingevoerd"; }elseif( $tcon == 7 ){ $fout = "Technisch probleem 1, de admin is hiervan op de hoogte gesteld."; $foutmail = 1; }elseif( $tcon == 8 ){ $fout = "Technisch probleem 2, de admin is hiervan op de hoogte gesteld."; $foutmail = 1; } if( $foutmail == 1 ){ //mail is niet verzonden er wordt nu een mailtje verstuurd naar error@smsjezenden.nl $mail_ontv = "error@smsjezenden.nl"; $inhoud_mail = "===================================================\n"; $inhoud_mail .= "Error in het sms script\n"; $inhoud_mail .= "===================================================\n\n"; $inhoud_mail .= "Fout: " . $fout . "\n"; $inhoud_mail .= "Bericht: " . $_POST['text'] . "\n\n"; $inhoud_mail .= "Ontvanger " . $_POST['to'] . " Afzender: " . $_POST['afzender'] . "\n\n"; $inhoud_mail .= "Op SMSjeZenden.nl\n\n"; $inhoud_mail .= "===================================================\n\n"; $headers = "From: Foutverwerking "; $headers = stripslashes($headers); $headers = str_replace("\n", "", $headers); // Verwijder \n $headers = str_replace("\r", "", $headers); // Verwijder \r $headers = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $headers)); // Slashes van quotes mail($mail_ontv, Foutmelding, $inhoud_mail, $headers); } } } } } } } else { if($hoi['saldo'] > 99){ $query = "SELECT * FROM users WHERE id = '" . $memberid . "'"; $result = mysql_query($query) or die(mysql_error()); $results = mysql_fetch_assoc($result); $afzender = $results['mobiel']; ?>

Afzender:
SMSjeZenden

Hier kan je je mobiele nummer wijzigen.

Let op! Momenteel kan er alleen gesmst worden naar Nederland. Er wordt gewerkt aan een oplossing voor het buitenland.

Ontvanger:

Bericht:





'; } } ?>