Uldeens Posted September 13, 2003 Report Share Posted September 13, 2003 <HTML> <Head> <tiTLE> SMS </TiTLE> </Head> <Body> <form action="send.php" method= "post" > <input type= "number" name= "numurs" Value= "Tel.nr"> <input type="text" name"zina" Value="texts"> <input type = "submit" Name = "Submit" Value= "Sutit" ></FoRm></body> </HTML> Un skripts..... <html> <head><title>sendingsms</title></head> <body> <? function send_sms($addr,$op,$zina){ }$addr= "371".$numurs."@sms.tele2.Lv"; send_sms($addr,"Tele2",$zina); ?> </body> </html> Nesuuta..... Visaadas graamatas saskatiijos un izgriezu mini variantu domaaju ka ies..bet kaa vienmeer. :( Kaada ideja??? Link to comment Share on other sites More sharing options...
jannis Posted September 13, 2003 Report Share Posted September 13, 2003 (edited) ------------------------ Edited August 15, 2004 by jannis Link to comment Share on other sites More sharing options...
Little_Hacker Posted September 13, 2003 Report Share Posted September 13, 2003 Var redzeet ka esi kaut ko griezies, kaut ko par maz un mayb kaut ko par daudz. Nesaredzhiisim dziivi :) Visam pamataa ir fukcija mail (). Tad nu tas viss vareetu izskatiities shaadi :) forma <form action="sutit.php" method="post"> <input type="text" name="numurs" value="Ievadi numuru" size="10" maxlength="7"> <textarea cols="10" rows="3" name="teksts">Ievadi tekstsu</textarea> <input type="submit" value="sendot" > </form> sutit.php <?php if (empty($numurs) || empty($teksts)) { echo 'aizpildi visus laucinjus' ; } elseif (strlen($numurs) < 7) { echo 'manupraat numurs pa iisu'; } else { $kam = $numurs.'@sms.tele2.lv' ; $nokaa = "From: lh@sms.lv"; mail($kam,'',$teksts,$nokaa) or die (' fakkk.. neiznaca nosuutiit '); echo 'sms aizvaaleeta (maybe)' ; } ?> nu i viss.. protams var arii taisiit taa lai vareetu suutiit uz abiem operatoriem, tad jaadara ~ taa.. no numura nonjemam pirmos divus ciparus ar funkciju substr() ~ shitaa $pirmie2 = substr($numurs,0,2); un tad tos ciparus saliidzinam if ($pirmie2=='63' || $pirmie2=='92') { $operators = "smsmail.lmt.lv"} elseif (....... ) {..........} ..... u.t.t. taatad mes buusim ieguvushu operatora mail geitveju ieksh mainiiigaa $operators.. tad atliek tik apvienot numuru un operatoru $kam = $numurs.'@'.$operators; un tad tik suutam :D Link to comment Share on other sites More sharing options...
cuuu Posted September 14, 2003 Report Share Posted September 14, 2003 nu Little_Hacker variants Uldeenam arii diezin vai ies, jo uz eclub.lv ir register_globals = off, taapeec vienkaarshi $addr, $zina, jaalieto $_POST['addr'], $_POST['zina'], vai arii $HTTP_POST_VARS['addr'], $HTTP_POST_VARS['zina'] vecaakam PHP (uz eclub ir 1. variants) http://paste.php.lv/353 Link to comment Share on other sites More sharing options...
Uldeens Posted September 14, 2003 Author Report Share Posted September 14, 2003 Neiet arii tavs variants cuuu :lol: Ja godiigi man nav gajis neviens no jusu piemeriem.... Man uz localhost ir php ar register globals on uz uldis.eclub ir globals off nekas neiet ne tur ne tur.. Bet nekas. Tapat forsi un paldies. Saprotu ka jus raxtat ar domu ka jazin noteiktas lietas,Kautvai tas ka eclub.lv jaraxta <?php echo $_REQUEST['mails']; ?> ----------------------------Starpcitu vieniigais kas man gaaj PALDIES KAKLZ!!!! un veel LITLE HAKER Superlapa gandriiz aizgaaja PALDIES ariii LH. Link to comment Share on other sites More sharing options...
Little_Hacker Posted September 14, 2003 Report Share Posted September 14, 2003 zin kas pa shetli.. tu uzinstaleej to easyphp viss tjip rulzz, beet tev ir jaanoraada smtp serveris! Aizej uz c:windowsphp.ini tad tajaa failaa meklee SMTP un noraadi smtp serveri! Ja tev i maajas dsl tad droshi vien mail.apollo.lv ! Link to comment Share on other sites More sharing options...
cuuu Posted September 16, 2003 Report Share Posted September 16, 2003 emm, uldeen, jaa manaa kodaa bij probleema, divas aizveroshaas iekavas par daudz 3. un 5. rindinjaa, tas tachu bija aciimredzami ;) un bez tam no eclub.lv tu ar nekaadiem speekiem mailu neaizsuutiisi, jo tur safe-mode deelj mail() ir atsleegts ... Link to comment Share on other sites More sharing options...
Roze Posted September 17, 2003 Report Share Posted September 17, 2003 un bez tam no eclub.lv tu ar nekaadiem speekiem mailu neaizsuutiisi, jo tur safe-mode deelj mail() ir atsleegts ... Kapeec ne? Maila izsutiishana jau neaprobezhojas ar mail() komandu vien.. Maz piemeerinsh <code><font color="#000000"> <font color="#0000CC"><? $smtp_server </font><font color="#006600">= </font><font color="#CC0000">"mail.someserver.lv"</font><font color="#006600">; </font><font color="#FF9900">// attieciigi vislabaak izmantot to provaidera mailserveri uz kur serveris staav jebshu ja tas ir unix/linux tad var pameegjinaat arii localhost </font><font color="#0000CC">$port </font><font color="#006600">= </font><font color="#0000CC">25</font><font color="#006600">; </font><font color="#0000CC">$mydomain </font><font color="#006600">= </font><font color="#CC0000">"mandomeens.lv"</font><font color="#006600">; </font><font color="#0000CC">$sender </font><font color="#006600">= </font><font color="#CC0000">"sutiitaajs@domeen.lv"</font><font color="#006600">; </font><font color="#0000CC">$recipient </font><font color="#006600">= </font><font color="#CC0000">"sanjemeejs@cits.lv"</font><font color="#006600">; </font><font color="#0000CC">$subject </font><font color="#006600">= </font><font color="#CC0000">"test"</font><font color="#006600">; </font><font color="#0000CC">$content </font><font color="#006600">= </font><font color="#CC0000">"test"</font><font color="#006600">; </font><font color="#0000CC">$handle </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/fsockopen]fsockopen[/url]</font><font color="#006600">(</font><font color="#0000CC">$smtp_server</font><font color="#006600">,</font><font color="#0000CC">$port</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"HELO $mydomain</font><font color="#006600"></font><font color="#CC0000">r</font><font color="#006600"></font><font color="#CC0000">n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"MAIL FROM:<$sender></font><font color="#006600"></font><font color="#CC0000">r</font><font color="#006600"></font><font color="#CC0000">n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"RCPT TO:<$recipient></font><font color="#006600"></font><font color="#CC0000">r</font><font color="#006600"></font><font color="#CC0000">n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"DATArn"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"To: $recipient</font><font color="#006600"></font><font color="#CC0000">n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"Subject: $subject</font><font color="#006600"></font><font color="#CC0000">n</font><font color="#006600"></font><font color="#CC0000">n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"$content</font><font color="#006600"></font><font color="#CC0000">r</font><font color="#006600"></font><font color="#CC0000">n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">".rn"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$handle</font><font color="#006600">, </font><font color="#CC0000">"QUITrn"</font><font color="#006600">); </font><font color="#0000CC">?> </font> </font> </code> Kaa arii ja ir veelme palasiit http://lv.php.net/fsockopen Link to comment Share on other sites More sharing options...
Little_Hacker Posted September 17, 2003 Report Share Posted September 17, 2003 khmm :) shitaadu lietinju nezinaaju... thnx Roze :) Link to comment Share on other sites More sharing options...
Venom Posted September 18, 2003 Report Share Posted September 18, 2003 Roze, vai gadījuma neatceries, kādu EHLO vajadzēja sūtīt mailserverim, lai pārbaudītu, vai tāds lietotājs existē (atpakaļ sūtīja kaut kādu 225 vai 257 - USER EXIST)? Link to comment Share on other sites More sharing options...
Roze Posted September 18, 2003 Report Share Posted September 18, 2003 Manupraat 250 un komanda ir RCPT TO lai paarbaudiitu vai attieciigais mailserveris taadu mailu akceptee.. fputs ($handle, "RCPT TO:useris<maila@adrese.lv>\n"); $result= fgets ($handle, 2000); $st= substr($result,0,3); if ($st==250){ // valid } else { // invalid } vai arii if (ereg ("^250", $result)) { // valid } Link to comment Share on other sites More sharing options...
Venom Posted September 18, 2003 Report Share Posted September 18, 2003 mazās meitenītes balss no pazīstāmās Coke reklāmas: Thank you! Link to comment Share on other sites More sharing options...
Uldeens Posted September 18, 2003 Author Report Share Posted September 18, 2003 Eu Eu Eu Venom Roze attopieties manaa TOPICAA savu jautaajumu apspriesana...... Taa nu gan krastaa neies,,:))))) :) vismaz namu nickneim paluugsu ieraxtiit naakamreiz :P vot taa luuk. Vel randinus saaks runaat .... ah biki nopietnaak..luudzu..:))) Link to comment Share on other sites More sharing options...
fassko Posted September 19, 2003 Report Share Posted September 19, 2003 shitas gan ir spams Uldeen bik mieriigaak ! Link to comment Share on other sites More sharing options...
Uldeens Posted September 19, 2003 Author Report Share Posted September 19, 2003 fassko domaa es zinu kas ir spams:))) Un ja kautkas nav taa tak vienmeer ir iespeeja uzlikt to banu(VAI KAA VINS TUR SAUCAAS) uz manu ip. Ok soryy par to ko nesapratu ko netaa izdariiju:))) Link to comment Share on other sites More sharing options...
Recommended Posts