<div dir="ltr">Boa noite galera.<div><br></div><div><br></div><div>Alguém consegue fazer envia de SMS por chan_dongle.</div><div><br></div><div><br></div><div>segue script php com modelo de pagina.</div><div><br></div><div>
pagina smser.php</div><div><br></div><div><div>&lt;?</div><div>/*</div><div> Simple and easy for modification, PHP script for SMS sending through HTTP with you own Sender ID and delivery reports. </div><div> You just have to type your account information on <a href="http://www.2-waysms.com">www.2-waysms.com</a> and upload file on server.</div>
<div> </div><div> Istruction:</div><div> </div><div> // Find 2 parameters in &lt;body&gt; and type your account information on <a href="http://www.2-waysms.com">www.2-waysms.com</a></div><div> </div><div> 1.  $from = &quot;********&quot;; // Change ********, and put your SMS Number in <a href="http://www.2-waysms.com">www.2-waysms.com</a> account</div>
<div> 2.  $token = &quot;********&quot;; // Change ********, and put your token code in <a href="http://www.2-waysms.com">www.2-waysms.com</a> account</div><div> </div><div>*/</div><div>?&gt;</div><div><br></div><div>&lt;html&gt;</div>
<div>&lt;head&gt;</div><div>&lt;meta name=&quot;robots&quot; content=&quot;index&quot;&gt;</div><div>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;</div><div>&lt;title&gt;Sistema de Envio de SMS com Chan_dongle&lt;/title&gt;</div>
<div>&lt;style type=&quot;text/css&quot;&gt;</div><div>body{</div><div><span class="" style="white-space:pre">        </span>font-family:&quot;Lucida Grande&quot;, &quot;Lucida Sans Unicode&quot;, Verdana, Arial, Helvetica, sans-serif; </div>
<div><span class="" style="white-space:pre">        </span>font-size:12px;</div><div>}</div><div>p, h1, form, button{border:0; margin:0; padding:0;}</div><div>.spacer{clear:both; height:1px;}</div><div>/* ----------- My Form ----------- */</div>
<div>.myform{</div><div><span class="" style="white-space:pre">        </span>margin:0 auto;</div><div><span class="" style="white-space:pre">        </span>width:340px;</div><div><span class="" style="white-space:pre">        </span>padding:14px;</div>
<div>}</div><div>/* ----------- stylized ----------- */</div><div><span class="" style="white-space:pre">        </span>#stylized{</div><div><span class="" style="white-space:pre">                </span>border:solid 2px #b7ddf2;</div><div><span class="" style="white-space:pre">                </span>background:#ebf4fb;</div>
<div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span>#stylized h1 {</div><div><span class="" style="white-space:pre">                </span>font-size:14px;</div><div><span class="" style="white-space:pre">                </span>font-weight:bold;</div>
<div><span class="" style="white-space:pre">                </span>margin-bottom:8px;</div><div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span>#stylized p{</div><div><span class="" style="white-space:pre">                </span>font-size:11px;</div>
<div><span class="" style="white-space:pre">                </span>color:#666666;</div><div><span class="" style="white-space:pre">                </span>margin-bottom:20px;</div><div><span class="" style="white-space:pre">                </span>border-bottom:solid 1px #b7ddf2;</div>
<div><span class="" style="white-space:pre">                </span>padding-bottom:10px;</div><div><span class="" style="white-space:pre">        </span></div><div>}</div><div><span class="" style="white-space:pre">        </span>&lt;/style&gt; </div>
<div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span>&lt;script type=&quot;text/javascript&quot;&gt;</div><div><span class="" style="white-space:pre">        </span></div>
<div>//Edit the counter/limiter value as your wish</div><div>var count = &quot;160&quot;;   //Example: var count = &quot;175&quot;;</div><div>function limiter(){</div><div>var tex = document.myform.text.value;</div><div>var len = tex.length;</div>
<div>if(len &gt; count){</div><div>        tex = tex.substring(0,count);</div><div>        document.myform.text.value =tex;</div><div>        return false;</div><div>}</div><div>document.myform.limit.value = count-len;</div>
<div>}</div><div><br></div><div>// +,- delete</div><div>var r={&#39;special&#39;:/[\W]/g}</div><div>function valid(o,w)</div><div>{</div><div>  o.value = o.value.replace(r[w],&#39;&#39;);</div><div>}</div><div><br></div><div>
// phone number checker</div><div>function isNumeric()</div><div>{</div><div>  var elem=document.myform.to.value;</div><div>  var nalt=document.getElementById(&#39;phno1&#39;);</div><div> if(elem!=&quot;&quot;)</div><div>
 {</div><div>    var numericExpression = /^[0-9]+$/;</div><div><span class="" style="white-space:pre">        </span>  if(elem.match(numericExpression))</div><div>    {</div><div>         nalt.innerHTML=&quot;&quot;;</div><div>         return true;</div>
<div>       }</div><div>    </div><div>    else{</div><div><span class="" style="white-space:pre">                </span></div><div>    nalt.innerHTML=&quot;&lt;font size=1 &gt; Numbers Only&lt;/font&gt;&quot;;</div><div><span class="" style="white-space:pre">                </span>  document.myform.to.focus();</div>
<div><span class="" style="white-space:pre">        </span> <span class="" style="white-space:pre">        </span>  document.myform.to.value=&quot;&quot;;</div><div>       return false;</div><div><span class="" style="white-space:pre">        </span>  }</div>
<div>  }</div><div>  else if(elem.length==0)  {</div><div>    nalt.innerHTML=&quot;&lt;font size=1 &gt; Ex. 6599...&lt;/font&gt;&quot;;</div><div>     document.myform.to.focus();;</div><div>   return false;</div><div>    }</div>
<div>}</div><div>&lt;/script&gt; </div><div><span class="" style="white-space:pre">        </span></div><div>&lt;/head&gt;</div><div>&lt;body&gt;</div><div>&lt;?</div><div> </div><div>$from = &quot;********&quot;; // Change ********, and put your SMS Number in <a href="http://www.2-waysms.com">www.2-waysms.com</a> account</div>
<div>$token = &quot;********&quot;; // Change ********, and put your token code in <a href="http://www.2-waysms.com">www.2-waysms.com</a> account</div><div><br></div><div> </div><div>$option = $_REQUEST[&quot;option&quot;];</div>
<div>$text = $_REQUEST[&quot;text&quot;];</div><div>$to = $_REQUEST[&quot;to&quot;];</div><div>$senderid = $_REQUEST[&quot;senderid&quot;];</div><div><br></div><div><br></div><div><span class="" style="white-space:pre">        </span>switch ($option) {</div>
<div><span class="" style="white-space:pre">        </span></div><div><br></div><div><span class="" style="white-space:pre">        </span>case sendsms:</div><div><span class="" style="white-space:pre">                </span>if ($text == &quot;&quot;) { echo </div>
<div><span class="" style="white-space:pre">        </span>&quot;&lt;center&gt;&lt;br&gt;Erro!&lt;br&gt;&lt;b&gt;Digite um texto para mensagem&lt;b&gt;&lt;br&gt;&lt;a href=\&quot;javascript:history.back(-1)\&quot;&gt;&lt;b&gt;Voltar&lt;b&gt;&lt;/a&gt;&lt;br&gt;&lt;/center&gt;&quot;; </div>
<div>die; } else { }</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>if ($to == &quot;&quot;) { echo &quot;&lt;center&gt;&lt;br&gt;Error!&lt;br&gt;&lt;b&gt;Number not entered&lt;b&gt;&lt;br&gt;&lt;a href=\&quot;javascript:history.back(-1)\&quot;&gt;&lt;b&gt;Go Back&lt;b&gt;&lt;/a&gt;&lt;br&gt;&lt;/center&gt;&quot;;</div>
<div> die; } else { }</div><div> </div><div><span class="" style="white-space:pre">                </span>if ($senderid == &quot;&quot;) { echo &quot;&lt;center&gt;&lt;br&gt;Error!&lt;br&gt;&lt;b&gt;From not entered&lt;b&gt;&lt;br&gt;&lt;a href=\&quot;javascript:history.back(-1)\&quot;&gt;&lt;b&gt;Go Back&lt;b&gt;&lt;/a&gt;&lt;br&gt;&lt;/center&gt;&quot;;</div>
<div>die; } else { }</div><div><br></div><div><span class="" style="white-space:pre">                </span>$url = &quot;<a href="http://www.2-waysms.com/my/api/sms.php">http://www.2-waysms.com/my/api/sms.php</a>&quot;;</div><div><br></div>
<div><span class="" style="white-space:pre">                </span>$postfields = array (&quot;from&quot; =&gt; &quot;$from&quot;,</div><div>        &quot;token&quot; =&gt; &quot;$token&quot;,</div><div>        &quot;text&quot; =&gt; &quot;$text&quot;,</div>
<div><span class="" style="white-space:pre">                </span>&quot;to&quot; =&gt; &quot;$to&quot;,</div><div><span class="" style="white-space:pre">                </span>&quot;senderid&quot; =&gt; &quot;$senderid&quot;);</div><div><span class="" style="white-space:pre">                </span></div>
<div><span class="" style="white-space:pre">                </span>if (!$curld = curl_init()) {</div><div><span class="" style="white-space:pre">                </span>echo &quot;Could not initialize cURL session.&quot;;</div><div><span class="" style="white-space:pre">                </span>exit;</div>
<div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_POST, true);</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_POSTFIELDS, $postfields);</div>
<div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_URL, $url);</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);</div><div><span class="" style="white-space:pre">                </span>$output = curl_exec($curld);</div>
<div><span class="" style="white-space:pre">                </span>curl_close ($curld);</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>$out = explode(&#39;|&#39;,$output);</div>
<div><span class="" style="white-space:pre">                </span></div><div>echo &quot;&lt;center&gt;Message Status: Sua mensagem foi enviado com sucesso para $to $out[1]&lt;br&gt;&lt;a href=\&quot;smser.php\&quot;&gt;&lt;b&gt;Enviar nova mensagem?&lt;/b&gt;&lt;/a&gt;&lt;/center&gt;&quot;; </div>
<div><br></div><div><span class="" style="white-space:pre">        </span>break;</div><div><br></div><div><span class="" style="white-space:pre">        </span>default:</div><div><span class="" style="white-space:pre">                </span></div><div>
<span class="" style="white-space:pre">        </span>echo</div><div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span> &quot;&lt;div id=\&quot;stylized\&quot; class=\&quot;myform\&quot;&gt;&quot;</div>
<div><span class="" style="white-space:pre">        </span>   .&quot;&lt;form name=\&quot;myform\&quot; method=post action=\&quot;$PHP_SELF?option=sendsms\&quot;&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;table border=\&quot;0\&quot;&gt;&quot;</div>
<div><span class="" style="white-space:pre">        </span>   .&quot;&lt;tr&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;center&gt;&lt;h1&gt;Envio de SMS com Chan_Dongle&lt;/h1&gt;&lt;/center&gt;&quot;</div>
<div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;Remetente&lt;/td&gt;&quot;</div><div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;&lt;input type=\&quot;text\&quot; name=\&quot;senderid\&quot; onkeyup=\&quot;valid(this,&#39;special&#39;)\&quot; onblur=\&quot;valid(this,&#39;special&#39;)\&quot;&gt;&lt;/td&gt;&quot;</div>
<div><span class="" style="white-space:pre">        </span>   .&quot;&lt;/tr&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;tr&gt;&quot;</div><div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;Destinatario&lt;/td&gt;&quot;</div>
<div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;&lt;input type=\&quot;text\&quot; name=\&quot;to\&quot; id=\&quot;to\&quot; onKeyup=\&quot;isNumeric()\&quot;&gt;&lt;span id=phno1&gt;&lt;/span&gt;&lt;/td&gt;&quot;</div>
<div><span class="" style="white-space:pre">        </span>   .&quot;&lt;/tr&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;tr&gt;&quot;</div><div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;Mensagem&lt;/td&gt;&quot;</div>
<div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;&lt;textarea name=text wrap=physical rows=4 cols=25 onkeyup=limiter()&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;br&gt;&quot;</div><div>     .&quot;&lt;/tr&gt;&quot;</div>
<div><span class="" style="white-space:pre">        </span>   .&quot;&lt;tr&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;td&gt;&lt;/td&gt;&quot;</div><div>      .&quot;&lt;td&gt;Caracter: &lt;script type=\&quot;text/javascript\&quot;&gt;&quot;</div>
<div>       .&quot;document.write(\&quot;&lt;input type=text name=limit size=4 readonly value=\&quot;+count+\&quot;&gt;\&quot;);&quot;</div><div>       .&quot;&lt;/script&gt;&lt;br&gt;&lt;/td&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;/tr&gt;&quot;</div>
<div><span class="" style="white-space:pre">        </span>   .&quot;&lt;tr&gt;&quot;</div><div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&quot;</div><div><span class="" style="white-space:pre">                </span> .&quot;&lt;td&gt;&lt;input type=submit name=submit value=Enviar&gt;&quot;</div>
<div><span class="" style="white-space:pre">                </span> .&quot;&lt;div class=\&quot;spacer\&quot;&gt;&lt;/div&gt;&lt;/td&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;/tr&gt;&quot;</div><div>
<span class="" style="white-space:pre">        </span>   .&quot;&lt;/table&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>   .&quot;&lt;/form&gt;&quot;</div><div><span class="" style="white-space:pre">        </span>.&quot;&lt;/div&gt;&lt;br&gt;&quot;;</div>
<div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span></div><div>?&gt;</div><div>&lt;/center&gt;</div><div>&lt;/body&gt;</div><div>&lt;/html&gt;</div></div><div><br>
</div><div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr"><p><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113);background-color:rgb(245,255,250)">==================================</span><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113)"><br>

<span style="background-color:rgb(245,255,250)"><b>INNOVA INFORMÁTICA
LTDA<br><br></b></span></span><span style="background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt"><font face="Verdana, sans-serif">LEOMAR SOARES DE ALMEIDA<b><br></b></font></span><span style="font-family:Verdana,sans-serif;background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt">Fixo:  (65)
3357-3357<br></span><span style="font-family:Verdana,sans-serif;background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt">Vivo.  (65) 9676-0062<br></span><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113);background-color:rgb(245,255,250)">E-mail: </span><a href="mailto:leomarsa@gmail.com" target="_blank">comercial@innovainformatica.net</a> <br>
<span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">E-mail: <a href="mailto:leomarsa@gmail.com" target="_blank">leomarsa@gmail.com</a><br></font></span></span><span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">Linkedin: </font></span></span><font color="#4a5571" face="Verdana, sans-serif"><span style="font-size:12px"><a href="http://lnkd.in/YMwxrW" target="_blank">http://lnkd.in/YMwxrW</a><br>
</span></font><span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">Endereço: </font></span></span><font color="#4a5571" face="Verdana, sans-serif"><span style="font-size:12px"><a href="http://goo.gl/maps/2YfjW" target="_blank">http://goo.gl/maps/2YfjW</a></span></font></p>
<p><font color="#4a5571" face="Verdana, sans-serif"><br></font></p><p><br></p></div>
</div></div>