Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 26. október 2026

Rozdiely pre dead/mail2sms/sendsms.c medzi verziami 1.3 a 1.4

verzia 1.3, 2001/10/30 18:18:12 verzia 1.4, 2001/11/12 16:08:00
Riadok 10 
Riadok 10 
 // Function sendsms() {{{  // Function sendsms() {{{
 int sendsms(char *str, int show_info)  int sendsms(char *str, int show_info)
 {  {
         //int info=show_info;  
   
         http_init();          http_init();
   
         switch (id) {          switch (id) {
 // #ifdef ENABLE_AZET {{{                  // #ifdef ENABLE_AZET {{{
 #ifdef ENABLE_AZET  #ifdef ENABLE_AZET
                 case AZET:                  case AZET:
                         http_request(HTTP_GET, "/index.phtml?", "sms.azet.sk", NULL);                          http_request(HTTP_GET, "/index.phtml?", "sms.azet.sk", NULL);
         //              http_set_referer("sms2.azet.sk", "/");                          //              http_set_referer("sms2.azet.sk", "/");
                         http_request(HTTP_POST, "/index.phtml", "sms.azet.sk",                          http_request(HTTP_POST, "/index.phtml", "sms.azet.sk",
                                                                         "Content-type: "                                                                          "Content-type: "
                                                                         "application/x-www-form-urlencoded\r\n"                                                                          "application/x-www-form-urlencoded\r\n"
Riadok 28  int sendsms(char *str, int show_info)
Riadok 26  int sendsms(char *str, int show_info)
   
                         break;                          break;
 #endif  #endif
 // }}} #endif ENABLE_AZET                          // }}} #endif ENABLE_AZET
 // #ifdef ENABLE_WHIZDIARY {{{                          // #ifdef ENABLE_WHIZDIARY {{{
 #ifdef ENABLE_WHIZDIARY  #ifdef ENABLE_WHIZDIARY
                 case WHIZDIARY:                  case WHIZDIARY:
                         http_request(HTTP_GET, "/home.asp", "www.whizdiary.com", NULL);                          http_request(HTTP_GET, "/home.asp", "www.whizdiary.com", NULL);
Riadok 44  int sendsms(char *str, int show_info)
Riadok 42  int sendsms(char *str, int show_info)
                                                                         strlen(str), str);                                                                          strlen(str), str);
                         break;                          break;
 #endif  #endif
 // }}} #endif ENABLE_WHIZDIARY                          // }}} #endif ENABLE_WHIZDIARY
 // #ifdef ENABLE_SPISNET {{{                          // #ifdef ENABLE_SPISNET {{{
 #ifdef ENABLE_SPISNET  #ifdef ENABLE_SPISNET
                 case SPISNET:                  case SPISNET:
                         http_request(HTTP_GET, "/top.php3", "sms.spisnet.sk", NULL);                          http_request(HTTP_GET, "/top.php3", "sms.spisnet.sk", NULL);
Riadok 58  int sendsms(char *str, int show_info)
Riadok 56  int sendsms(char *str, int show_info)
                         //      "smsn=421903123123&chars=0&smsm=sorry%2C+test&submit=Odoslat+SMS+spr%E1vu"                          //      "smsn=421903123123&chars=0&smsm=sorry%2C+test&submit=Odoslat+SMS+spr%E1vu"
                         break;                          break;
 #endif  #endif
 // }}} #endif ENABLE_SPISNET                          // }}} #endif ENABLE_SPISNET
 // #ifdef ENABLE_GLOBTELNET {{{                          // #ifdef ENABLE_GLOBTELNET {{{
 #ifdef ENABLE_GLOBTELNET  #ifdef ENABLE_GLOBTELNET
                 case GLOBTELNET:                  case GLOBTELNET:
                         /* Begin of frames *                          /* Begin of frames *
Riadok 83  int sendsms(char *str, int show_info)
Riadok 81  int sendsms(char *str, int show_info)
                                                                         "Content-length: %d\r\n\r\n"                                                                          "Content-length: %d\r\n\r\n"
                                                                         "form_name=login"                                                                          "form_name=login"
                                                                         "&next_page=&wa_na=%s&wa_pa=%s",                                                                          "&next_page=&wa_na=%s&wa_pa=%s",
                                                                         strlen(my_getlogin()) +                                                                          strlen(my_getlogin(0)) +
                                                                         strlen(my_getpass()) + 41,                                                                          strlen(my_getpass(0)) + 41,
                                                                         my_getlogin(), my_getpass());                                                                          my_getlogin(1), my_getpass(1));
                         http_request(HTTP_POST, "/sms/do_sms_send.php3", "www.globtelnet.sk",                          http_request(HTTP_POST, "/sms/do_sms_send.php3", "www.globtelnet.sk",
                                                                         "Content-type: "                                                                          "Content-type: "
                                                                         "application/x-www-form-urlencoded; "                                                                          "application/x-www-form-urlencoded; "
Riadok 96  int sendsms(char *str, int show_info)
Riadok 94  int sendsms(char *str, int show_info)
                                                                         "www.globtelnet.sk", NULL);                                                                          "www.globtelnet.sk", NULL);
                         break;                          break;
 #endif  #endif
 // }}} #endif ENABLE_GLOBTELNET                          // }}} #endif ENABLE_GLOBTELNET
 // #ifdef ENABLE_MTNSMS {{{                          // #ifdef ENABLE_MTNSMS {{{
 #ifdef ENABLE_MTNSMS  #ifdef ENABLE_MTNSMS
                 case MTNSMS:                  case MTNSMS:
                         http_request(HTTP_GET, "/", "www.mtnsms.com", NULL);                          http_request(HTTP_GET, "/", "www.mtnsms.com", NULL);
Riadok 118  int sendsms(char *str, int show_info)
Riadok 116  int sendsms(char *str, int show_info)
                                                                         "application/x-www-form-urlencoded; "                                                                          "application/x-www-form-urlencoded; "
                                                                         "Content-length: %d\r\n\r\n%s",                                                                          "Content-length: %d\r\n\r\n%s",
                                                                         strlen(str), str);                                                                          strlen(str), str);
 // "dummy=&smsToNumbers=421903838302&smsMessage=send+this+message+to+me&smsSig=0&smsSigDyna=rajo&lenSSig=5&lenLSig=5&lenSysSig=11"                          // "dummy=&smsToNumbers=421903838302&smsMessage=send+this+message+to+me&smsSig=0&smsSigDyna=rajo&lenSSig=5&lenLSig=5&lenSysSig=11"
                         //http_request(HTTP_GET, "/sms/outbox.asp", "www4.mtnsms.com", NULL);                          //http_request(HTTP_GET, "/sms/outbox.asp", "www4.mtnsms.com", NULL);
                         //http_request(HTTP_GET, "/logout.asp", "www4.mtnsms.com", NULL);                          //http_request(HTTP_GET, "/logout.asp", "www4.mtnsms.com", NULL);
                         //http_request(HTTP_GET, "/default.asp?fromLogout=true&name=rajo", "www4.mtnsms.com", NULL);                          //http_request(HTTP_GET, "/default.asp?fromLogout=true&name=rajo", "www4.mtnsms.com", NULL);
                         break;                          break;
 #endif  #endif
 // }}} #endif ENABLE_MTNSMS                          // }}} #endif ENABLE_MTNSMS
                 default:                  default:
                         fprintf(stderr, "Somethings go wrong, "                          fprintf(stderr, "Somethings go wrong, "
                                                                         "invalid id in sendsms()!\n");                                                                          "invalid id in sendsms()!\n");
Riadok 132  int sendsms(char *str, int show_info)
Riadok 130  int sendsms(char *str, int show_info)
                         break;                          break;
         } /* end switch (id) */          } /* end switch (id) */
   
         fprintf(stderr, "text to sms [%d chars]:'%s'\n",          if (show_info)
                                                         strlen(str), str);                  fprintf(stderr, "text to sms [%d chars]:'%s'\n",
                                                                   strlen(str), str);
   
           free_requests(requests);
   
         return(0);          return(0);
 } // }}}  } // }}}
 /* Modeline for ViM {{{1  /* Modeline for ViM {{{1

Legend:
Odstranené z verzie1.3  
zmenené riadky
  Pridané vo verzii1.4

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok