Code: Select all
<html>
<head>
<title>Verschicken Sie schnell eine SMS mit SMSKAUFEN.de</title>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><font face="Arial" size="1"><b><br></b><script language="JavaScript">
function aenderung(wert)
{
var maxzeichen = 160;
if (document.Formular.text.value.length > maxzeichen)
{
document.Formular.text.value = document.Formular.text.value.substring(0,maxzeichen);
uebrigezeichen = 0;
}
else
{
uebrigezeichen = maxzeichen - document.Formular.text.value.length;
}
document.Formular.zeichen.value = uebrigezeichen;
}
// Formular-Check - light
function check() {
if (document.Formular.username.value == "") {
alert('SMSkaufen.de Username fehlt ist ider falsch');
document.Formular.username.focus();
return false;
}
if (document.Formular.password.value == "") {
alert("SMSkaufen.de Passwort fehlt ist ider falsch");
document.Formular.password.focus();
return false;
}
if (document.Formular.from.value == "") {
alert('Von wem kommt die SMS - Absender nicht vergessen')
document.Formular.from.focus();
return false;
}
if (document.Formular.to.value == "") {
alert('Wollen Sie die SMS ins Nirvana schicken?')
document.Formular.to.focus();
return false;
}
if (document.Formular.text.value == "") {
alert('Zugegeben, manchmal ist weniger mehr, aber ein Buchstabe Text wäre toll!')
document.Formular.text.focus();
return false;
}
}
</script>
</font></p>
<div align="center">
<p><font face="Arial" size="2"><b> Verschicken Sie schnell eine SMS</b></font></p>
<table width="376" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000000" width="376">
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="white">
<tr>
<td bgcolor="#CCCCCC" width="361">
<form name="Formular" method="POST" action="<?php echo $GLOBALS["REQUEST_URI"]; ?>" onSubmit="return check()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="336">
<table border="0" cellspacing="1" cellpadding="2" width="367">
<tr>
<td width="122" bgcolor="#CCCCCC"><font face="Arial" size="1">Username</font></td>
<td width="234" bgcolor="#CCCCCC"><font face="Arial" size="1"><input name="username" type="text" value="<?php echo $HTTP_COOKIE_VARS[yomuser]; ?>" class="formfeld" size="33" style="background-color:rgb(255,150,45);"></font></td>
</tr>
<tr>
<td width="122" bgcolor="#CCCCCC"><font face="Arial" size="1">Passwort</font></td>
<td width="234" bgcolor="#CCCCCC"><font face="Arial" size="1"><input name="password" type="password" value="<?php echo $HTTP_COOKIE_VARS[yompass]; ?>" class="formfeld" size="33" style="background-color:rgb(255,150,45);"></font></td>
</tr>
<tr>
<td width="122" bgcolor="#CCCCCC"><font face="Arial" size="1">Absender</font></td>
<td width="234" bgcolor="#CCCCCC"><font face="Arial" size="1"><input name="from" type="text" value="" class="formfeld" size="33"></font></td>
</tr>
<tr>
<td width="122" bgcolor="#CCCCCC"><font face="Arial" size="1">Senden an</font></td>
<td width="234" bgcolor="#CCCCCC"><font face="Arial" size="1"><input name="to" type="text" value="01" class="formfeld" size="33"></font></td>
</tr>
<tr>
<td valign="top" width="122" bgcolor="#CCCCCC"><font face="Arial" size="1">SMS-Text</font></td>
<td width="234" bgcolor="#CCCCCC"><font face="Arial" size="1"><textarea rows="6" name="text" cols="25" onKeyUp="aenderung(this.length)" wrap="VIRTUAL" class="sms"></textarea></font></td>
</tr>
<tr>
<td width="122" height="72" bgcolor="#CCCCCC">
<font face="Arial" size="1"> </font></td>
<td width="234" height="72" bgcolor="#CCCCCC">
<font face="Arial" size="1"><input name="zeichen" size="2" value="160" disabled class="zaehler">
verbleibende Zeichen</font></td>
</tr>
<tr>
<td width="122" bgcolor="#CCCCCC">
</td>
<td width="234" bgcolor="#CCCCCC">
<font face="Arial" size="1"><input type="submit" value="SMS senden" name="Button" class="sendebtn"></font>
</td>
</tr>
</table>
</td>
<td width="241" bgcolor="#CCCCCC"><font face="Arial" size="1"> </font></td>
</tr>
</table>
</form>
<font face="Arial" size="1"><?php
if ($HTTP_POST_VARS[Button])
{
if($HTTP_POST_VARS[username] == "" or $HTTP_POST_VARS[password] == "" or $HTTP_POST_VARS[from] == "" or $HTTP_POST_VARS[to] == "" or $HTTP_POST_VARS[text] == "")
{
echo "Bitte <b>alle</b> Felder ausfüllen!";
exit;
}
// Text-Sezierung
$text = urlencode($HTTP_POST_VARS[text]);
$to = urlencode($HTTP_POST_VARS[to]);
$url = "http://gateway.smskaufen.de/" . "?id=" . $HTTP_POST_VARS[username] . "&pw=" . $HTTP_POST_VARS[password] . "&absender=" . $HTTP_POST_VARS[from] . "&empfaenger=" . $to . "&text=" . $text . "&type=4";
$fp = fopen($url, "r");
$reply = fgets($fp, 1024);
#echo "reply:'$reply'";
if ($reply == 100)
{
echo "Die SMS wurde erfolgreich ausgeliefert";
} else {
echo "Leider konnte die SMS nicht versendet werden, es trat ein Fehler auf.<br />Fehlercode: " . $reply;
}
}
?></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<p align="center"><font face="Arial" size="1"><br></font></p>
</body>
</html>
Try to send PM to creator christhatsmeTastengott wrote:Hi!
Where can I download this MOD?
And where can I download the SMSIntregationCUSTOM-BUILD.zip?
The site from "christhatsme" is down!
Code: Select all
<?php
$info = "1";
$test = "0";
$address = "www.txtlocal.com/sendsmspost.php";
$message = "Hello this is a test with an ampersand (&) and a £5 note";
$from = "Jims Autos";
$uname = "youremailaddress";
$pword = "yourpassword";
$selectednums = "4412345545324";
$newSMS = new sms;
$newSMS->smsCurl($address, $uname, $pword, $message, $from, $selectednums, $info, $test); // Sends an SMS using cURL
$newSMS->smsSockets($address, $uname, $pword, $message, $from, $selectednums, $info, $test); // Sends an SMS using sockets
class sms {
// cURL SMS
function smsCurl($address, $uname, $pword, $message, $from, $selectednums, $info, $test=0)
{
// Build url
$data = "uname=" . $uname . "&pword=" . $pword . "&message=" . urlencode($message) . "&from=" . $from . "&selectednums=" . $selectednums . "&info=" . $info . "&test=" . $test;
// Initiate cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://$address");
// curl_setopt($ch, CURLOPT_URL,"https://$address"); //secure connection
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //use this to suppress output
$result = curl_exec ($ch); //This is the result from Txtlocal - store as required
curl_close ($ch);
}
// Socket SMS
function smsSockets($address, $uname, $pword, $message, $from, $selectednums, $info, $test = 0)
{
// Build data array
$data = array ("uname" => $uname, "pword" => $pword, "message" => $message, "from" => $from, "selectednums" => $selectednums, "info" => $info, "test" => $test);
$data = http_build_query($data);
do_post_request("https://www.txtlocal.com/sendsmspost.php", $data);
$params = array('http' => array('method' => 'POST',
'content' => $data
));
if ($optional_headers !== null) {
$params['http']['header'] = $optional_headers;
}
$ctx = stream_context_create($params);
$fp = @fopen($address, 'rb', false, $ctx);
if (!$fp) {
throw new Exception("Problem with $url, $php_errormsg");
}
$response = @stream_get_contents($fp);
if ($response === false) {
throw new Exception("Problem reading data from $url, $php_errormsg");
}
return $response;
}
}
?>
Code: Select all
$number = $_REQUEST["number"];
$status = $_REQUEST["status"];