ray Posted February 25, 2005 Report Share Posted February 25, 2005 Vai esksistē funkcionējošs php skripts, ar kuru var sūtīt sms no web lapas, kaut vai uz vienu no operatoriem. Jā jā, tad varbūt kaads varētu to uzrakstīt, vai arī vismaz pateikt, kur to var dabūt. Link to comment Share on other sites More sharing options...
bubu Posted February 25, 2005 Report Share Posted February 25, 2005 Dodu 100 punktus, ka eksistē :) Pie tam, uz abiem operatoriem. Link to comment Share on other sites More sharing options...
Kavacky Posted February 25, 2005 Report Share Posted February 25, 2005 Dodu 100 punktus, ka eksistē :) Pie tam, uz abiem operatoriem.Ļoti izmeļoša atbilde :lol: Njā, eksistē, tikai pašu skriptu neesmu redzējis, tikai lapas, kurās tas ļoti labi funkcionē. Link to comment Share on other sites More sharing options...
rudzis Posted February 25, 2005 Report Share Posted February 25, 2005 Viens vecs mora skripts: <html> <head> <title>Īsziņu sūtīšana</title> <META http-equiv="Content-Type" content="text/html; charset=windows-1257"> <script language='javascript' type='text/javascript'> function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) field.value = field.value.substring(0, maxlimit); else countfield.value = maxlimit - field.value.length; } </script> </head> <body> <? if (ISSET($_POST['send'])){ $sms_numurs = $_POST['sms_numurs']; $sms_teksts = $_POST['sms_teksts']; if ($sms_teksts == '' || sms_numurs == '') {die ("Dodies atpakaļ un aizpildi abus laukus!");} $kjeburi = array("ā", "č", "ē", "ģ", "ī", "ķ", "ļ", "ņ", "š", "ū", "ž"); $normali = array("a", "c", "e", "g", "i", "k", "l", "n", "s", "u", "z"); $sms_teksts = str_replace($kjeburi, $normali, $sms_teksts); $div = substr($sms_numurs,0,2); if ($div == '91' || $div == '92' || $div == '93' || $div == '94' || $div == '61' || $div == '63' || $div == '64' || $div == '65') {$sms_prov = '@smsmail.lmt.lv';} else {$sms_prov = '@sms.tele2.lv';} if ($sms_prov == '@smsmail.lmt.lv') {$kam = "371".$sms_numurs.$sms_prov;} else {$kam = $sms_numurs.$sms_prov;} $no = "from: aa@be.ce"; mail($kam,NULL,$sms_teksts,$no) or die ('īsziņa netika nosūtīta'); echo "Īsziņa veiksmīgi nosūtīta!<meta http-equiv='refresh' content='2;URL='>"; } else { ?> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <form method="post" action=""> <tr> <td width="16%">Numurs:</td> <td width="84%"> <input name="sms_numurs" type="text" size="12" maxlength="7"> </td> </tr> <tr> <td>Teksts:</td> <td> <textarea name=sms_teksts wrap=physical cols=50 rows=4 onKeyDown="textCounter(this.form.sms_teksts,this.form.remLen,125);" onKeyUp="textCounter(this.form.sms_teksts,this.form.remLen,125);"></textarea> <input readonly type=text name=remLen size=3 maxlength=3 value="125"></td> </tr> <tr align="center"> <td colspan="2"><input type="submit" name="send" value="Sūtīt"></td> </tr> </form> </table> <? } ?> </body> </html> Tur vēl varātu būt, ka kaut kas jāpalabo, ja pareizi atceros, bet varbūt viss jau iet tāpat :) Link to comment Share on other sites More sharing options...
Klez Posted February 27, 2005 Report Share Posted February 27, 2005 (edited) 59% ka tas script nestraadaa 100% ka uz LMT neiet :P P.S diez vai kaads savu scriptu dos, kas straadaa gan uz LMT gan tele2 Edited February 27, 2005 by Klez Link to comment Share on other sites More sharing options...
rudzis Posted February 27, 2005 Report Share Posted February 27, 2005 Tas ir tikai prieksh TELEs. Link to comment Share on other sites More sharing options...
Kavacky Posted February 27, 2005 Report Share Posted February 27, 2005 P.S diez vai kaads savu scriptu dos, kas straadaa gan uz LMT gan tele2Tāpēc, ka, atradis veidu, kā to darīt, skopulis vairs negribēs citiem rādīt? Link to comment Share on other sites More sharing options...
rudzis Posted February 27, 2005 Report Share Posted February 27, 2005 Tieši tā. Kirils tač ar ir ticis pie universāla skripta, bet, šaubos vai kādam taisās atdot ;) Link to comment Share on other sites More sharing options...
kirils Posted February 27, 2005 Report Share Posted February 27, 2005 ticis? uzrakstījis. laist kodu tautās nav jēgas. agri vai vēlu atradīsies ūberhaxors, kas izdomās, ka būtu labi aizsūtīt floodu uz 1/2 tūkst. sms, pats tā pirms gadiem 5 darīju. :[ vai arī izsūtīt neautorizētas reklāmas tūkstotiem abonentu (tā gan es nedarīju :D ) a LMT kaut ko kardināli nomainīs un man nāksies pārrakstīt sms.id.lv kodu, bet vecā tautās palaistā versija ar` neies. Link to comment Share on other sites More sharing options...
XpAoS Posted September 30, 2007 Report Share Posted September 30, 2007 Viens vecs mora skripts:<html> <head> <title>Īsziņu sūtīšana</title> <META http-equiv="Content-Type" content="text/html; charset=windows-1257"> <script language='javascript' type='text/javascript'> function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) field.value = field.value.substring(0, maxlimit); else countfield.value = maxlimit - field.value.length; } </script> </head> <body> <? if (ISSET($_POST['send'])){ $sms_numurs = $_POST['sms_numurs']; $sms_teksts = $_POST['sms_teksts']; if ($sms_teksts == '' || sms_numurs == '') {die ("Dodies atpakaļ un aizpildi abus laukus!");} $kjeburi = array("ā", "č", "ē", "ģ", "ī", "ķ", "ļ", "ņ", "š", "ū", "ž"); $normali = array("a", "c", "e", "g", "i", "k", "l", "n", "s", "u", "z"); $sms_teksts = str_replace($kjeburi, $normali, $sms_teksts); $div = substr($sms_numurs,0,2); if ($div == '91' || $div == '92' || $div == '93' || $div == '94' || $div == '61' || $div == '63' || $div == '64' || $div == '65') {$sms_prov = '@smsmail.lmt.lv';} else {$sms_prov = '@sms.tele2.lv';} if ($sms_prov == '@smsmail.lmt.lv') {$kam = "371".$sms_numurs.$sms_prov;} else {$kam = $sms_numurs.$sms_prov;} $no = "from: aa@be.ce"; mail($kam,NULL,$sms_teksts,$no) or die ('īsziņa netika nosūtīta'); echo "Īsziņa veiksmīgi nosūtīta!<meta http-equiv='refresh' content='2;URL='>"; } else { ?> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <form method="post" action=""> <tr> <td width="16%">Numurs:</td> <td width="84%"> <input name="sms_numurs" type="text" size="12" maxlength="7"> </td> </tr> <tr> <td>Teksts:</td> <td> <textarea name=sms_teksts wrap=physical cols=50 rows=4 onKeyDown="textCounter(this.form.sms_teksts,this.form.remLen,125);" onKeyUp="textCounter(this.form.sms_teksts,this.form.remLen,125);"></textarea> <input readonly type=text name=remLen size=3 maxlength=3 value="125"></td> </tr> <tr align="center"> <td colspan="2"><input type="submit" name="send" value="Sūtīt"></td> </tr> </form> </table> <? } ?> </body> </html> Tur vēl varātu būt, ka kaut kas jāpalabo, ja pareizi atceros, bet varbūt viss jau iet tāpat :) Ko darīt ja man rādās: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\appserv\www\sms.php on line 28 iesakiet ko darīt? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 1, 2007 Report Share Posted October 1, 2007 XpAoS --> neeisi nevajadziigas quotes !!!! Panjem vardniicu un iztulko kas tev tiek pateikts... !!! Tur pilniibaa viss ir uzrakstiits.... Link to comment Share on other sites More sharing options...
Paulinjsh Posted October 1, 2007 Report Share Posted October 1, 2007 lmt strādā pie jaunā saita Link to comment Share on other sites More sharing options...
nemec Posted October 1, 2007 Report Share Posted October 1, 2007 nedeeljas laikaa var uzrakstiit sms.id.lv vai aatraak http://blog.eroguru.lv/blog/sms-sutisana-bez-koda/ Link to comment Share on other sites More sharing options...
Labrador Posted October 1, 2007 Report Share Posted October 1, 2007 šī tēma 100 reižy aprunāta pamēģini search!! ;) Link to comment Share on other sites More sharing options...
Recommended Posts