SHARE
TWEET

Decode for bintang99@waraxe.us

johnburn Apr 1st, 2012 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <META HTTP-EQUIV=refresh CONTENT=30;URL="" >
  2. <?php
  3. include "config.inc.php";
  4. require_once 'include_lib/f-auto.php';
  5. $sqldelay = "select id,recipient,text,create_date,flash_sms,datetime_send,status,gateway_id,id_inbox from smsserver_delay      where status!='1' and datetime_send < '$datetime' order by id desc limit 3";
  6. $resltdelay = mysql_query($sqldelay);
  7. while ($rowdelay = mysql_fetch_array($resltdelay)) {
  8.     $id = stripslashes($rowdelay["id"]);
  9.     $recipient = stripslashes($rowdelay["recipient"]);
  10.     $text = stripslashes($rowdelay["text"]);
  11.     $gateway_id = stripslashes($rowdelay["gateway_id"]);
  12.     Update1(smsserver_delay, status, 1, id, $id);
  13.     $id_smsserver_out = SendSMSg($recipient, $text, $inboxid, $useridx, $gateway_id);
  14.     Update1(smsserver_delay, id_smsserver_out, $id_smsserver_out, id, $id);
  15. }
  16. $tgl_skr = date("d");
  17. $bln_skr = date("m");
  18. $thn_skr = date("Y");
  19. $jam_skr = date("H");
  20. $jam_sms_ultah = TulisNama(jam_sms_ultah, bimbel_config, id_bimbel_config, 1);
  21. $status_sms_ultah = TulisNama(status_sms_ultah, bimbel_config, id_bimbel_config, 1);
  22. if ($jam_skr == nol1($jam_sms_ultah) && $status_sms_ultah) {
  23.     $sqlultah = "select id_kontak, kontak,YEAR(tanggal_lahir) as tahun from kontak                      where                          DAY(tanggal_lahir)='$tgl_skr' and                          MONTH(tanggal_lahir)= '$bln_skr'                      order by id_kontak desc limit 5";
  24.     $resltultah = mysql_query($sqlultah);
  25.     while ($rowultah = mysql_fetch_array($resltultah)) {
  26.         $id_kontak = stripslashes($rowultah["id_kontak"]);
  27.         $tahun = stripslashes($rowultah["tahun"]);
  28.         $kontak = stripslashes($rowultah["kontak"]);
  29.         $cekdilog = TulisNama3(id_log1, log1, tabel, kontak, id, $id_kontak, nilai2, $thn_skr);
  30.         if (!$cekdilog) {
  31.             $recipient = TulisNama2(hp, hp, id, $id_kontak, pemilik, kontak);
  32.             $tahunke = $tahun - $thn_skr;
  33.             $text = TulisNama(template_sms_ultah, bimbel_config, id_bimbel_config, 1);
  34.             $text2 = str_replace("<nama>", $kontak, $text);
  35.             $text3 = str_replace("<tahunke>", $tahunke, $text2);
  36.             $id = SendSMS($recipient, $text3, $inboxid, $useridx);
  37.             in2log1(kontak, $id_kontak, smsserver_out, $id, tahun, $thn_skr, $datetime);
  38.         }
  39.     }
  40. }
  41. $sms_engine = TulisNama(nilai, konf, konf, sms_engine);
  42. if ($sms_engine == "nowsms5") {
  43.     $originator = $_GET["number"];
  44.     $number = $_GET["number"];
  45.     $originator = str_replace("+", "", $originator);
  46.     $text = $_GET["text"];
  47.     $gateway_id = $_GET["modem"];
  48.     $message_date = $datetime;
  49.     $receive_date = $datetime;
  50.     $RECEIPTMESSAGEID = $_GET['RECEIPTMESSAGEID'];
  51.     if ($originator) {
  52.         $id = in2smsserver_in(1, $originator, I, 7, $message_date, $receive_date, $text, $original_ref_no, $original_receive_date, $gateway_id);
  53.     }
  54. }
  55. $sql = "select id,originator,type,text,gateway_id from smsserver_in where process='0' limit 1 ";
  56. $data = mysql_query($sql);
  57. while ($row = mysql_fetch_array($data)) {
  58.     $id = stripslashes($row["id"]);
  59.     $originator = stripslashes($row["originator"]);
  60.     $type = stripslashes($row["type"]);
  61.     $text = stripslashes($row["text"]);
  62.     $gateway_id = stripslashes($row["gateway_id"]);
  63.     Update1(smsserver_in, process, "1", id, $id);
  64.     if ($type == "S") {
  65.         exit;
  66.     }
  67.     $cekgateway_id = TulisNama(id_gateway, gateway, gateway, $gateway_id);
  68.     if (!$cekgateway_id) {
  69.         in2gateway($gateway_id);
  70.     }
  71.     $number = zeroto62($originator);
  72.     upconfig($text, $originator);
  73.     $inboxid = $id;
  74.     $id_kontak = TulisNama2(id, hp, pemilik, kontak, hp, $number);
  75.     $kontak = TulisNama(kontak, kontak, id_kontak, $id_kontak);
  76.     $id_sapaan = TulisNama(id_sapaan, kontak, id_kontak, $id_kontak);
  77.     $sapaan = TulisNama(sapaan, sapaan, id_sapaan, $id_sapaan);
  78.     $priority = 2;
  79.     InTabel1(inbox, id, $id);
  80.     $activautorespon = TulisNama(activautorespon, config, configid, 1);
  81.     $SMSAutoReply = TulisNama(SMSAutoReply, config, configid, 1);
  82.     $organisationname = TulisNama(organisationname, config, configid, 1);
  83.     $softwarename = TulisNama(softwarename, config, configid, 1);
  84.     $id_kontak = TulisNama(id, hp, hp, $number);
  85.     $kontak = TulisNama(kontak, kontak, id_kontak, $id_kontak);
  86.     if ($activautorespon == "true") {
  87.         $keysms = explode(" ", $text);
  88.         $ckeysms = count($keysms);
  89.         $keysms0 = strtolower($keysms[0]);
  90.         $keysms1 = strtolower($keysms[1]);
  91.         $keysms12 = "$keysms0 $keysms1";
  92.         $atext = $keysms = explode("#", $text);
  93.         $catext = count($atext);
  94.         $atext0 = $atext[0];
  95.         $aksiid = TulisNama2(aksiid, aksi, katakunci, $keysms12, status, 1);
  96.         if (!$aksiid) {
  97.             $aksiid = TulisNama2(aksiid, aksi, katakunci, $keysms0, status, 1);
  98.             if (!$aksiid) {
  99.                 $aksiid = TulisNama2(aksiid, aksi, katakunci, $atext0, status, 1);
  100.             }
  101.         }
  102.         $aksi = TulisNama(aksi, aksi, aksiid, $aksiid);
  103.         echo " $aksiid = TulisNama(aksiid,aksi,katakunci,$text); ";
  104.         if ($aksi) {
  105.             Update1(inbox, aksiid, $aksiid, id, $id);
  106.             if ($aksi == "autorespon") {
  107.                 $text = TulisNama(text, aksi, aksiid, $aksiid);
  108.                 SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  109.                 exit;
  110.             }
  111.             if ($aksi == "sms2folder") {
  112.                 $folderid = TulisNama(id, aksi, aksiid, $aksiid);
  113.                 Update1(inbox, folderid, $folderid, id, $id);
  114.                 echo "$folderid = TulisNama(id,aksi,aksiid,$aksiid);                  Update1(inbox,folderid,$folderid,id,$inboxid);";
  115.             }
  116.             if ($aksi == "forward2pb") {
  117.                 $text = "SMS dari $kontak ($number) : $text";
  118.                 $number = TulisNama(id, aksi, aksiid, $aksiid);
  119.                 SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  120.                 exit;
  121.             }
  122.             if ($aksi == "dataumum") {
  123.                 $id_inbox = $inboxid;
  124.                 $id_umum = TulisNama(id, aksi, aksiid, $aksiid);
  125.                 $id_inkolom = in2inkolom($id_inbox, $id_umum);
  126.                 $sqlkolom = "select id_kolom,singkat,kolom from kolom where id_umum='$id_umum' ";
  127.                 $datakolom = mysql_query($sqlkolom);
  128.                 while ($rowkolom = mysql_fetch_array($datakolom)) {
  129.                     $a++;
  130.                     $id_kolom = stripslashes($rowkolom["id_kolom"]);
  131.                     $varkolom = $atext[$a];
  132.                     in2varkolom($id_inkolom, $id_kolom, $varkolom);
  133.                 }
  134.                 $text = TulisNama(sms_balas, umum, id_umum, $id_umum);
  135.                 SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  136.                 exit;
  137.             }
  138.             if ($aksi == "forward2kelompok") {
  139.                 $text = "SMS dari $kontak ($number) : $text";
  140.                 $id_kelompok = TulisNama(id, aksi, aksiid, $aksiid);
  141.                 KirimSMSKelompok($id_kelompok, $text, $inboxid);
  142.                 exit;
  143.             }
  144.             if ($aksi == "sms2hp") {
  145.                 $keysms = explode(" ", $text, 2);
  146.                 $keysms0 = $keysms[0];
  147.                 $id_kelompok = TulisNama(id, aksi, aksiid, $aksiid);
  148.                 $keysms1 = $keysms[1];
  149.                 $arr_keysms1 = explode(" ", $keysms1);
  150.                 $carr_keysms1 = count($arr_keysms1);
  151.                 $kontakbr = "$kontak $number";
  152.                 $kontak = $kontakbr;
  153.                 for ($i = 0;$i < $carr_keysms1;$i++) {
  154.                     $hp = $arr_keysms1[$i];
  155.                     $hp62 = zeroto62($hp);
  156.                     $id_kontak = TulisNama2(id, hp, hp, $hp62, pemilik, kontak);
  157.                     if (!$id_kontak || $hp) {
  158.                         $id_kontak = in2kontak($id_sapaan, $kontak, $alamat, $id_kelurahan, $id_kecamatan, $id_kab_kota, $id_provinsi, $sex, $tanggal_lahir, $id_agama, $email, $yahoo_id, $valid, $tandai);
  159.                         in2kelompok_kontak($id_kelompok, $id_kontak);
  160.                         in2hp($id_kontak, 1, kontak, $hp62);
  161.                     }
  162.                 }
  163.                 $text = TulisNama(text, aksi, katakunci, $keysms0);
  164.                 SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  165.                 exit;
  166.             }
  167.             if ($aksi == "poll") {
  168.                 $id_poll = TulisNama2(id_poll, poll, opsi, $keysms1, aksiid, $aksiid);
  169.                 $status = TulisNama(status, aksi, aksiid, $aksiid);
  170.                 $jawaban = TulisNama(keterangan, poll, id_poll, $id_poll);
  171.                 $pertanyaan = TulisNama(namaksi, aksi, aksiid, $aksiid);
  172.                 $ceksudah = ceksudah($aksiid, $number);
  173.                 include 'db.php';
  174.                 if ($status) {
  175.                     if ($ceksudah) {
  176.                         $text = $sms_jawab_poll_sudah;
  177.                         SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  178.                         exit;
  179.                     } else {
  180.                         if ($id_poll) {
  181.                             inlog_poll($id_poll, $inboxid);
  182.                             Update1(inbox, aksiid, $aksiid, inboxid, $inboxid);
  183.                             $text = $sms_jawab_poll;
  184.                             SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  185.                             exit;
  186.                         } else {
  187.                             $text = $sms_jawab_poll_sudah;
  188.                             SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  189.                             exit;
  190.                         }
  191.                     }
  192.                 } else {
  193.                     $text = $sms_jawab_poll_tutup;
  194.                     SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  195.                     exit;
  196.                 }
  197.             }
  198.         } else {
  199.             $status_sms_auto_reply = TulisNama(status_sms_auto_reply, config, configid, 1);
  200.             if ($status_sms_auto_reply) {
  201.                 $SMSAutoReply1 = str_replace("<nama>", $kontak, $SMSAutoReply);
  202.                 $SMSAutoReply2 = str_replace("<sapaan>", $sapaan, $SMSAutoReply1);
  203.                 $text = $SMSAutoReply2;
  204.                 SendSMSl($number, $text, $inboxid, $useridx, $gateway_id, $status_report, $flash_sms, $priority);
  205.                 exit;
  206.                 exit;
  207.             }
  208.         }
  209.     }
  210. }
  211. include "include_lib/nixsms.php";
  212. $csound = Count1(inbox, sound, 0);
  213. if ($csound > 0) {
  214.     Update1(inbox, sound, 1, sound, 0); ?>
  215.         <object id="objMediaPlayer" width="0" height="0"
  216.  
  217.         classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" standby="Loading file..."
  218.  
  219.         type="application/x-oleobject">
  220.         <param name="FileName" value="ringin.wav" />
  221.         <param name="AutoStart" value="true" />
  222.         <embed type="application/x-mplayer2" src="ringin.wav" width="0" height="0"
  223.  
  224.         autostart="true"></embed>
  225.         </object>
  226. <? } ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top