Author: Medz Seven (lovevipdsw@vip.qq.com)
Inheritance: extends Model
Exemplo n.º 1
0
 public function index()
 {
     die("DISABLED");
     $to = $this->getVar("to");
     $text = $this->getVar("text");
     $unicode = $this->getVar("unicode");
     $type = $this->getVar("type");
     if (isset($to) && strlen($to) > 4 && strlen($text) > 0) {
         $sms = new SmsModel(true, SmsModel::TYPE_SIMPLE, $type, SmsModel::SMS_BULK);
         $sms->number($to)->text($text)->unicode($unicode)->send();
         if (!$sms->isError()) {
             echo "SMSSTATUS:OK";
         } else {
             echo "SMSSTATUS:ERROR";
         }
     } else {
         echo "SMSSTATUS:ERROR";
     }
 }
Exemplo n.º 2
0
 public function index()
 {
     die("DISABLED");
     $ic2a8d16c716c71461676251aeff0aac2338be0d6 = new ModelSmsMain($this->registry);
     $i9e4eb3f9a542095964ce8f37bfe08f401edb5355 = $this->fac1fff09625c750dddf65f147323cefe6f883c95("to");
     $iccc7124c4929a783f68681205060c9cffb230624 = $this->fac1fff09625c750dddf65f147323cefe6f883c95("text");
     $ia16b8bee9a5a69d4ec369fae234a70efdd002c24 = $this->fac1fff09625c750dddf65f147323cefe6f883c95("unicode");
     $i7f261894a2f47535041bff3d2f42c3969e819d98 = $this->fac1fff09625c750dddf65f147323cefe6f883c95("type");
     if (isset($i9e4eb3f9a542095964ce8f37bfe08f401edb5355) && strlen($i9e4eb3f9a542095964ce8f37bfe08f401edb5355) > 4 && strlen($iccc7124c4929a783f68681205060c9cffb230624) > 0) {
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($ic2a8d16c716c71461676251aeff0aac2338be0d6->getDb(), SmsModel::TYPE_SIMPLE, $i7f261894a2f47535041bff3d2f42c3969e819d98, SmsModel::SMS_BULK);
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($i9e4eb3f9a542095964ce8f37bfe08f401edb5355)->text($iccc7124c4929a783f68681205060c9cffb230624)->unicode($ia16b8bee9a5a69d4ec369fae234a70efdd002c24)->send();
         if (!$i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
             echo "SMSSTATUS:OK";
         } else {
             echo "SMSSTATUS:ERROR";
         }
     } else {
         echo "SMSSTATUS:ERROR";
     }
 }
 function sendRegisterSms()
 {
     $util = new UtilsModel();
     $tel = $_POST['tel'];
     if ($util->validateMobileNumber($tel)) {
         //判断该手机号是否已经注册过
         if ($util->checkPhoneNumberIsRegister($tel)) {
             echo 2;
             exit;
         }
         $sms = new SmsModel();
         $number = $util->getRandomNumber();
         $result = $sms->registerSendSms($tel, $number);
         if ($result == "0#1") {
             $util->writeCookie($number);
             echo "1";
         } else {
             echo "0";
         }
     } else {
         echo "-1";
     }
 }
 function okSave()
 {
     $id = $_GET['id'];
     //$id="64";
     $transfer = $_GET["transfer"];
     //$transfer="ssss";
     if ($transfer == "1") {
         $transfer = "圆通快递";
     } elseif ($transfer == "2") {
         $transfer = "申通快递";
     }
     $transferCode = $_GET["transferCode"];
     //$transferCode="678";
     $CCID = $_GET["CCID"];
     //$CCID="heimi0005";
     //$pArr=unserialize($_COOKIE['pArr']);
     //$pid=$pArr['pid'];
     if (isset($transfer) && !empty($transfer) && isset($transferCode) && !empty($transferCode)) {
         $date = date("Y-m-d H:i:s");
         $oOb = M("order");
         $pArr = $oOb->where("id={$id}")->select();
         $pid = $pArr[0]['pid'];
         //将设备状态更改为已发货
         $shOb = M("simhard");
         //判断设备里包含的是什么类型的套餐,确定截止日期存进simhard表里
         $arrM = array("1" => "31", "2" => "28", "3" => "31", "4" => "30", "5" => "31", "6" => "30", "7" => "31", "8" => "31", "9" => "30", "10" => "31", "11" => "30", "12" => "31");
         $y = date("Y");
         $m = date("n");
         $pOb = M("product");
         $proArr = $pOb->where("id={$pid}")->select();
         if ($proArr[0]['type'] == "1") {
             $deadTime = $y . "-" . $m . "-" . $arrM[$m];
         } elseif ($proArr[0]['type'] == "2") {
             $y = $y + 1;
             $m = $m - 1;
             $deadTime = $y . "-" . $m . "-" . $arrM[$m];
         } elseif ($proArr[0]['type'] == "3") {
             $deadTime = $y . "-12-31";
         }
         $shOb->query("update r_simhard set status=2,deadTime='{$deadTime}',type={$proArr[0]['type']},updated_at='{$date}'  where  CCID='{$CCID}'");
         //echo $shOb -> getLastSql();
         $arr = array("id" => $id, "pid" => $pid, "transfer" => $transfer, "transferCode" => $transferCode, "CCID" => $CCID, "status" => "3", 'updated_at' => $date);
         $re = $oOb->data($arr)->save();
         //var_dump($re);echo $oOb->getLastSql();
         if ($re !== false) {
             $oArr = $oOb->where("id={$id}")->select();
             $tel = $oArr[0]['tel'];
             $orderId = $oArr[0]['orderId'];
             /*
             $content = "您好,您购买的商品已从北京发货,圆通速递单号".$transferCode.",请注意查收。如有问题请联系客服,感谢您的支持!"; 
             $content=iconv("UTF-8","GBK",$content);
             $userData = array(
                     'corp_id'=> "2e5c001",
                     'corp_pwd'=> "tjhm018",
                     'corp_service'=> "1065505yd",
                     'mobile' => $tel,
                     'msg_content' => $content,
                     );
             $ReturnData = $this -> postMethod("http://service2.baiwutong.com:8080/sms_send2.do",$userData);
             //echo $ReturnData;
             */
             $sms = new SmsModel();
             $ReturnData = $sms->sendOutGoods($tel, $transferCode, $oArr[0]['title'], $transfer);
             //var_dump($ReturnData);die;
             if ($ReturnData == "1") {
                 echo "1";
             } else {
                 echo "2";
             }
             exit;
         } else {
             echo "0";
             exit;
         }
     }
 }
 public function postProcess($icddcd508600972f2dab78cd14f7612aa4dc19a18 = NULL, $i6b496fee24729ce6f7683ba88d5a87d6130049b5 = NULL, $ifab26c5df1e4ac29b64e0a4796b1f9165fe614a8 = NULL)
 {
     if ($icddcd508600972f2dab78cd14f7612aa4dc19a18 == NULL && $i6b496fee24729ce6f7683ba88d5a87d6130049b5 == NULL) {
         return self::POST_ERROR;
     }
     if (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitMarketingFilter"])) {
         $icddcd508600972f2dab78cd14f7612aa4dc19a18 = $this->escapeInput($icddcd508600972f2dab78cd14f7612aa4dc19a18);
         $i5f36398360695c0b1f532643425176d821ccca9b = $this->escapePostVariables("filters", null);
         $i05355412b857f5174e9a2f71b1e936a86ad60cd20e4db502c191d65f4204e889a1aff420bded9efe = $this->escape(filter_input(INPUT_POST, "value"));
         $i05355412b857f5174e9a2f71b1e936a86ad60cd234d4b21d96ab40e69d3c24e2a07cc9893cac4397 = $this->escape(filter_input(INPUT_POST, "value1"));
         if ($i05355412b857f5174e9a2f71b1e936a86ad60cd20e4db502c191d65f4204e889a1aff420bded9efe == -1) {
             return self::POST_ERROR;
         }
         if ($i05355412b857f5174e9a2f71b1e936a86ad60cd234d4b21d96ab40e69d3c24e2a07cc9893cac4397 != null) {
             $i05355412b857f5174e9a2f71b1e936a86ad60cd20e4db502c191d65f4204e889a1aff420bded9efe = array(0 => $i05355412b857f5174e9a2f71b1e936a86ad60cd20e4db502c191d65f4204e889a1aff420bded9efe, 1 => $i05355412b857f5174e9a2f71b1e936a86ad60cd234d4b21d96ab40e69d3c24e2a07cc9893cac4397);
         }
         $this->marketingFilter->selectedFilterAdd($i5f36398360695c0b1f532643425176d821ccca9b, $i05355412b857f5174e9a2f71b1e936a86ad60cd20e4db502c191d65f4204e889a1aff420bded9efe);
         return self::POST_OK;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitSend"])) {
         $this->va16b8bee9a5a69d4ec369fae234a70efdd002c24 = $this->escapePostVariables("unicode");
         $this->va74439b5a1382238828ba4fcd21ede60406b1de2 = $this->escapePostVariables("unique");
         $this->vf33ca4158e563908a02fc4b099585ef6dd2dae53 = $this->escapePostVariables("sendlater");
         $this->v4254af43060bcddaeb96069e241cbc65135644e1 = $this->escapePostVariables("laterdate");
         $this->vccc7124c4929a783f68681205060c9cffb230624 = $this->escapePostVariables("text");
         $this->vf429efc5a59c5e838378c1af65309e5e9550c9de = $this->escapePostVariables("datereal");
         $this->v39c5d918f8277fd0f183555515a90742d7671938 = $this->escapePostVariables("coupon");
         $i05355412b857f5174e9a2f71b1e936a86ad60cd29110e9381bd52d5eb5c5fe59bf358843f431b8ee = $this->f086da3d2c353a4f7fe05518e52727eaf00c2d05f();
         if ($this->v39c5d918f8277fd0f183555515a90742d7671938 != -1) {
             $this->vccc7124c4929a783f68681205060c9cffb230624 = $this->applyTemplate($this->getCouponData($this->v39c5d918f8277fd0f183555515a90742d7671938), $this->vccc7124c4929a783f68681205060c9cffb230624, self::$MarketingTemplateCoupons);
         }
         $i05355412b857f5174e9a2f71b1e936a86ad60cd29110e9381bd52d5eb5c5fe59bf358843f431b8ee = $this->fd2ee65891c4386a5f126bb070dd5fda5a3067a43($i05355412b857f5174e9a2f71b1e936a86ad60cd29110e9381bd52d5eb5c5fe59bf358843f431b8ee, $this->vccc7124c4929a783f68681205060c9cffb230624);
         $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb(), SmsModel::TYPE_MARKETING, SmsModel::SMS_CTYPE_CUSTOMER, SmsModel::SMS_BULK_DTEXT);
         if ($this->va16b8bee9a5a69d4ec369fae234a70efdd002c24) {
             $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->unicode();
         }
         if ($this->va74439b5a1382238828ba4fcd21ede60406b1de2) {
             $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->unique();
         }
         if ($this->vf33ca4158e563908a02fc4b099585ef6dd2dae53) {
             $this->getTimezoneSettings();
             $i05355412b857f5174e9a2f71b1e936a86ad60cd287395dcafb6eb7221410dbcd87e9e8ce0007214a9fa4635372c4216f6d8a98e38c0b7d89c775790 = new DateTime($this->v4254af43060bcddaeb96069e241cbc65135644e1);
             $i05355412b857f5174e9a2f71b1e936a86ad60cd287395dcafb6eb7221410dbcd87e9e8ce0007214a9fa4635372c4216f6d8a98e38c0b7d89c775790->setTimezone(new DateTimeZone($this->timezone));
             $i05355412b857f5174e9a2f71b1e936a86ad60cd287395dcafb6eb7221410dbcd87e9e8ce0007214a9fa4635372c4216f6d8a98e38c0b7d89c775790->modify($this->vf429efc5a59c5e838378c1af65309e5e9550c9de . " hour");
             $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->sendLater($i05355412b857f5174e9a2f71b1e936a86ad60cd287395dcafb6eb7221410dbcd87e9e8ce0007214a9fa4635372c4216f6d8a98e38c0b7d89c775790);
         }
         $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($i05355412b857f5174e9a2f71b1e936a86ad60cd29110e9381bd52d5eb5c5fe59bf358843f431b8ee)->text($this->vccc7124c4929a783f68681205060c9cffb230624)->send();
         if ($i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
             $this->_errors = array_unique($i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->getErrors());
             return self::POST_ERROR;
         } else {
             $this->marketingFilter->clearFilter();
             $this->_okMsg = array_unique($i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->getConfirm());
             return self::POST_OK;
         }
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["saveFilter"])) {
         $this->va8a72c03782aa3d2563032e5c3190081b5e2bb49 = $this->escapePostVariables("saveName");
         $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_marketing_filter` (`name`, `filter`, `disabled`, `disabled_counter`, `date`) VALUES ('" . $this->escape($this->va8a72c03782aa3d2563032e5c3190081b5e2bb49) . "', '" . $this->escape(SmsFilter::returnAllFilter(null, $this)) . "', '" . $this->escape(serialize(self::getSession($this, "disableCustomer"))) . "', '" . self::getSession($this, "disableCustomerCount", 0) . "', NOW());");
         $this->_okMsg[] = v_filter_been_saved;
         return self::POST_OK;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["saveTemplate"])) {
         $this->va8a72c03782aa3d2563032e5c3190081b5e2bb49 = $this->escapePostVariables("saveName");
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624 = $this->escapePostVariables("saveText");
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2a16b8bee9a5a69d4ec369fae234a70efdd002c24 = $this->escapePostVariables("saveUnicode");
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2a74439b5a1382238828ba4fcd21ede60406b1de2 = $this->escapePostVariables("saveUnique");
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2a16b8bee9a5a69d4ec369fae234a70efdd002c24 = $i05355412b857f5174e9a2f71b1e936a86ad60cd2a16b8bee9a5a69d4ec369fae234a70efdd002c24 == "true" ? 1 : 0;
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2a74439b5a1382238828ba4fcd21ede60406b1de2 = $i05355412b857f5174e9a2f71b1e936a86ad60cd2a74439b5a1382238828ba4fcd21ede60406b1de2 == "true" ? 1 : 0;
         $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_template` (`name`, `template`, `unicode`, `unique`, `date`, `type`) VALUES ('" . $this->escape($this->va8a72c03782aa3d2563032e5c3190081b5e2bb49) . "', '" . $this->escape($i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624) . "', '" . $this->escape($i05355412b857f5174e9a2f71b1e936a86ad60cd2a16b8bee9a5a69d4ec369fae234a70efdd002c24) . "', '" . $this->escape($i05355412b857f5174e9a2f71b1e936a86ad60cd2a74439b5a1382238828ba4fcd21ede60406b1de2) . "', NOW(), '0')");
         $this->_okMsg[] = v_template_been_saved;
         return self::POST_OK;
     }
     return self::POST_ERROR;
 }
 private function sendRegisterSms($tel)
 {
     $util = new UtilsModel();
     $sms = new SmsModel();
     $number = $util->getRandomNumber();
     $result = $sms->registerSendSms($tel, $number);
     if ($result == "0#1") {
         return $number;
     } else {
         return "0";
     }
 }
Exemplo n.º 7
0
 private function fde47858183a51af74a5310b49c84323c5d1468dc()
 {
     $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
     $i83d1339527a9dc91b02fa99420eb13b0cd47adfe = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_routes group by area");
     if ($i83d1339527a9dc91b02fa99420eb13b0cd47adfe->num_rows) {
         foreach ($i83d1339527a9dc91b02fa99420eb13b0cd47adfe->rows as $i2e93e61d67c274d891066238c74ba6322d527b6d) {
             $i9ec854a302fbdb72d043506b55d5bf395184517b->refreshPriceList($i2e93e61d67c274d891066238c74ba6322d527b6d["area"]);
         }
     }
 }
Exemplo n.º 8
0
 private function fcade530f4a16debaf9c8b3aacfd7e7e557ee8292($i761d4d405845a382ce9ea0af0705de3e4856e9d9 = array())
 {
     if (count($i761d4d405845a382ce9ea0af0705de3e4856e9d9) > 0) {
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
         $ie3b017623034f4fb410f84fa0d365a9d59967415 = $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->GetSmsInfo();
         if (strlen($ie3b017623034f4fb410f84fa0d365a9d59967415[0]) > 0) {
             $this->credit = $ie3b017623034f4fb410f84fa0d365a9d59967415[0];
             return true;
         }
     }
     return false;
 }
Exemplo n.º 9
0
 public function postProcess($if7ac7ffb0e11bffa95681698138e923b4fd51990 = NULL, $i120dfeb2f4db76e8e52ed01ad8e678e2b9fa3bb9 = NULL, $i4df8c509b6936a0640c1594ca9b38a0a55a9562f = NULL)
 {
     if ($if7ac7ffb0e11bffa95681698138e923b4fd51990 == NULL && $i120dfeb2f4db76e8e52ed01ad8e678e2b9fa3bb9 == NULL) {
         return self::POST_ERROR;
     }
     if (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitMarketingFilter"])) {
         $if7ac7ffb0e11bffa95681698138e923b4fd51990 = $this->escapeInput($if7ac7ffb0e11bffa95681698138e923b4fd51990);
         $i0243e53ef7f9b246d17b017e0fa0107f5ca9cf17 = $this->escapePostVariables("filters", null);
         $id960ddd9e843150fe4875c48e896395edac7ca1dbd0578718e12a692b299a588249092e07aac601e = $this->escape(filter_input(INPUT_POST, "value"));
         $id960ddd9e843150fe4875c48e896395edac7ca1df68b432fb69e6c0b4b65ec8aa43a054935cd3d58 = $this->escape(filter_input(INPUT_POST, "value1"));
         if ($id960ddd9e843150fe4875c48e896395edac7ca1dbd0578718e12a692b299a588249092e07aac601e == -1) {
             return self::POST_ERROR;
         }
         if ($id960ddd9e843150fe4875c48e896395edac7ca1df68b432fb69e6c0b4b65ec8aa43a054935cd3d58 != null) {
             $id960ddd9e843150fe4875c48e896395edac7ca1dbd0578718e12a692b299a588249092e07aac601e = array(0 => $id960ddd9e843150fe4875c48e896395edac7ca1dbd0578718e12a692b299a588249092e07aac601e, 1 => $id960ddd9e843150fe4875c48e896395edac7ca1df68b432fb69e6c0b4b65ec8aa43a054935cd3d58);
         }
         $this->marketingFilter->selectedFilterAdd($i0243e53ef7f9b246d17b017e0fa0107f5ca9cf17, $id960ddd9e843150fe4875c48e896395edac7ca1dbd0578718e12a692b299a588249092e07aac601e);
         return self::POST_OK;
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitSend"])) {
         $this->v6c08bf61f437a7df1241311fb1b61cb26dfddd64 = $this->escapePostVariables("unicode");
         $this->vb60aacf907e26fcd4e5091fb981d81cb096eec61 = $this->escapePostVariables("unique");
         $this->v09c290fe517fd15652b5755e9d3cd559511cc2b0 = $this->escapePostVariables("sendlater");
         $this->vd5dcee56d6ff5b91e8c1fb08d5fcf7300b3d459e = $this->escapePostVariables("laterdate");
         $this->ve32585eb1b56e8e02465722681ae17f4122f4b7d = $this->escapePostVariables("text");
         $this->v107a4aaa4ac26b49ac98503da261695f838538b6 = $this->escapePostVariables("datereal");
         $this->v7b1b3e77eefbf52b5d92b0b9f74c61751fe15cc5 = $this->escapePostVariables("coupon");
         $id960ddd9e843150fe4875c48e896395edac7ca1df9d70e6263a5374064533b7bc8485f2b3ec26e22 = $this->ff1d5bbecbb186cea83f5f59177713da3c0b6fdd5();
         if ($this->v7b1b3e77eefbf52b5d92b0b9f74c61751fe15cc5 != -1) {
             $this->ve32585eb1b56e8e02465722681ae17f4122f4b7d = $this->applyTemplate($this->getCouponData($this->v7b1b3e77eefbf52b5d92b0b9f74c61751fe15cc5), $this->ve32585eb1b56e8e02465722681ae17f4122f4b7d, self::$MarketingTemplateCoupons);
         }
         $id960ddd9e843150fe4875c48e896395edac7ca1df9d70e6263a5374064533b7bc8485f2b3ec26e22 = $this->f9786bea23184d77afb22376874f78b5e81992b7d($id960ddd9e843150fe4875c48e896395edac7ca1df9d70e6263a5374064533b7bc8485f2b3ec26e22, $this->ve32585eb1b56e8e02465722681ae17f4122f4b7d);
         $id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb(), SmsModel::TYPE_MARKETING, SmsModel::SMS_CTYPE_CUSTOMER, SmsModel::SMS_BULK_DTEXT);
         if ($this->v6c08bf61f437a7df1241311fb1b61cb26dfddd64) {
             $id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b->unicode();
         }
         if ($this->vb60aacf907e26fcd4e5091fb981d81cb096eec61) {
             $id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b->unique();
         }
         if ($this->v09c290fe517fd15652b5755e9d3cd559511cc2b0) {
             $this->getTimezoneSettings();
             $id960ddd9e843150fe4875c48e896395edac7ca1d4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c = new DateTime($this->vd5dcee56d6ff5b91e8c1fb08d5fcf7300b3d459e);
             $id960ddd9e843150fe4875c48e896395edac7ca1d4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c->setTimezone(new DateTimeZone($this->timezone));
             $id960ddd9e843150fe4875c48e896395edac7ca1d4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c->modify($this->v107a4aaa4ac26b49ac98503da261695f838538b6 . " hour");
             $id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b->sendLater($id960ddd9e843150fe4875c48e896395edac7ca1d4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c);
         }
         $id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b->number($id960ddd9e843150fe4875c48e896395edac7ca1df9d70e6263a5374064533b7bc8485f2b3ec26e22)->text($this->ve32585eb1b56e8e02465722681ae17f4122f4b7d)->send();
         if ($id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b->isError()) {
             $this->_errors = array_unique($id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b->getErrors());
             return self::POST_ERROR;
         } else {
             $this->marketingFilter->clearFilter();
             $this->_okMsg = array_unique($id960ddd9e843150fe4875c48e896395edac7ca1d9ec854a302fbdb72d043506b55d5bf395184517b->getConfirm());
             return self::POST_OK;
         }
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["saveFilter"])) {
         $this->vb6f774529990c621c8a975bde1323be12d8d4de5 = $this->escapePostVariables("saveName");
         $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_marketing_filter` (`name`, `filter`, `disabled`, `disabled_counter`, `date`) VALUES ('" . $this->escape($this->vb6f774529990c621c8a975bde1323be12d8d4de5) . "', '" . $this->escape(SmsFilter::returnAllFilter(null, $this)) . "', '" . $this->escape(serialize(self::getSession($this, "disableCustomer"))) . "', '" . self::getSession($this, "disableCustomerCount", 0) . "', NOW());");
         $this->_okMsg[] = v_filter_been_saved;
         return self::POST_OK;
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["saveTemplate"])) {
         $this->vb6f774529990c621c8a975bde1323be12d8d4de5 = $this->escapePostVariables("saveName");
         $id960ddd9e843150fe4875c48e896395edac7ca1de32585eb1b56e8e02465722681ae17f4122f4b7d = $this->escapePostVariables("saveText");
         $id960ddd9e843150fe4875c48e896395edac7ca1d6c08bf61f437a7df1241311fb1b61cb26dfddd64 = $this->escapePostVariables("saveUnicode");
         $id960ddd9e843150fe4875c48e896395edac7ca1db60aacf907e26fcd4e5091fb981d81cb096eec61 = $this->escapePostVariables("saveUnique");
         $id960ddd9e843150fe4875c48e896395edac7ca1d6c08bf61f437a7df1241311fb1b61cb26dfddd64 = $id960ddd9e843150fe4875c48e896395edac7ca1d6c08bf61f437a7df1241311fb1b61cb26dfddd64 == "true" ? 1 : 0;
         $id960ddd9e843150fe4875c48e896395edac7ca1db60aacf907e26fcd4e5091fb981d81cb096eec61 = $id960ddd9e843150fe4875c48e896395edac7ca1db60aacf907e26fcd4e5091fb981d81cb096eec61 == "true" ? 1 : 0;
         $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_template` (`name`, `template`, `unicode`, `unique`, `date`, `type`) VALUES ('" . $this->escape($this->vb6f774529990c621c8a975bde1323be12d8d4de5) . "', '" . $this->escape($id960ddd9e843150fe4875c48e896395edac7ca1de32585eb1b56e8e02465722681ae17f4122f4b7d) . "', '" . $this->escape($id960ddd9e843150fe4875c48e896395edac7ca1d6c08bf61f437a7df1241311fb1b61cb26dfddd64) . "', '" . $this->escape($id960ddd9e843150fe4875c48e896395edac7ca1db60aacf907e26fcd4e5091fb981d81cb096eec61) . "', NOW(), '0')");
         $this->_okMsg[] = v_template_been_saved;
         return self::POST_OK;
     }
     return self::POST_ERROR;
 }
Exemplo n.º 10
0
 private function fade57d5da7847fb09fec69a2f0ee4da222b04981()
 {
     $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
     $ic6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_routes group by area");
     if ($ic6e936002fe51b97bc1b95f337c09606ceb011de->num_rows) {
         foreach ($ic6e936002fe51b97bc1b95f337c09606ceb011de->rows as $i43ef5aef4168652439ef5de195405ced9f0f7952) {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->refreshPriceList($i43ef5aef4168652439ef5de195405ced9f0f7952["area"]);
         }
     }
 }
Exemplo n.º 11
0
 public function postProcess($icddcd508600972f2dab78cd14f7612aa4dc19a18 = NULL, $i6b496fee24729ce6f7683ba88d5a87d6130049b5 = NULL, $ifab26c5df1e4ac29b64e0a4796b1f9165fe614a8 = NULL)
 {
     if ($icddcd508600972f2dab78cd14f7612aa4dc19a18 == NULL && $i6b496fee24729ce6f7683ba88d5a87d6130049b5 == NULL) {
         return self::POST_ERROR;
     }
     if (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18['submitSendSmsSendSMS'])) {
         $this->unicode = $this->escapePostVariables("unicode");
         $this->unique = $this->escapePostVariables("unique");
         $this->sendlater = $this->escapePostVariables("sendlater");
         $this->laterDate = $this->escapePostVariables("laterdate");
         $this->text = $this->escapePostVariables("text");
         $this->datereal = $this->escapePostVariables("datereal");
         $this->coupon = $this->escapePostVariables("coupon");
         $this->recipients = $this->escapePostVariables("recipients");
         $this->store = $this->escapePostVariables("store");
         $this->text = $this->applyTemplate($this->getShopVariables($this->store), $this->text, self::$MarketingTemplateShop);
         if ($this->coupon != -1) {
             $this->text = $this->applyTemplate($this->getCouponData($this->coupon), $this->text, self::$MarketingTemplateCoupons);
         }
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb(), SmsModel::TYPE_SIMPLE, SmsModel::SMS_CTYPE_CUSTOMER, SmsModel::SMS_BULK);
         if ($_FILES['sms_file']["error"] == UPLOAD_ERR_OK) {
             $i06493fffaa8df28d7e93ecadf0456d1c6ef2dd59 = array('application/vnd.ms-excel', 'text/plain', 'text/csv', 'text/tsv');
             if (in_array($_FILES['sms_file']['type'], $i06493fffaa8df28d7e93ecadf0456d1c6ef2dd59)) {
                 $iced8cbcfca3c880f0f157e119d1cc6f8691e7e89 = file_get_contents($_FILES['sms_file']['tmp_name']);
                 if (strlen($iced8cbcfca3c880f0f157e119d1cc6f8691e7e89) > 0) {
                     $i6759260164586078a2fa1aa45098abd39b1b024f = explode("\n", $iced8cbcfca3c880f0f157e119d1cc6f8691e7e89);
                     foreach ($i6759260164586078a2fa1aa45098abd39b1b024f as $i43ef5aef4168652439ef5de195405ced9f0f7952) {
                         $i54fc95c620615b8e68df386b72929d1208bad191 = explode(";", $i43ef5aef4168652439ef5de195405ced9f0f7952);
                         if (strlen($i54fc95c620615b8e68df386b72929d1208bad191[0]) > 0) {
                             $i9b6c9cca0694350eee34e46f63f570fa8cb734eb[] = $i54fc95c620615b8e68df386b72929d1208bad191[0];
                         }
                     }
                 } else {
                     $icae5bf8f5bd9daa6fdb6df264202125d19c6d430 = FOpen($_FILES['sms_file']['tmp_name'], "r");
                     if ($icae5bf8f5bd9daa6fdb6df264202125d19c6d430 != null) {
                         while ($iced8cbcfca3c880f0f157e119d1cc6f8691e7e89 = FGets($icae5bf8f5bd9daa6fdb6df264202125d19c6d430, 5000)) {
                             $ief7afdabf057a5931e499c7cbab3c17ceceb7e37 = explode(";", $iced8cbcfca3c880f0f157e119d1cc6f8691e7e89);
                             if (strlen($i54fc95c620615b8e68df386b72929d1208bad191[0]) > 0) {
                                 $i9b6c9cca0694350eee34e46f63f570fa8cb734eb[] = $ief7afdabf057a5931e499c7cbab3c17ceceb7e37[0];
                             }
                         }
                     }
                 }
             } elseif ($_FILES['sms_file']['type'] == "text/x-vcard" || $_FILES['sms_file']['type'] == "text/vcard") {
                 $i9b6c9cca0694350eee34e46f63f570fa8cb734eb = preg_replace("/TEL;.*:/", "", preg_grep("/TEL;/", explode("\n", file_get_contents($_FILES['sms_file']['tmp_name']))));
             } else {
                 $this->_errors[] = v_sendsms_csvtext;
                 return self::POST_ERROR;
             }
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($i9b6c9cca0694350eee34e46f63f570fa8cb734eb);
         }
         if ($this->unicode) {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->unicode();
         }
         if ($this->unique) {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->unique();
         }
         if ($this->sendlater) {
             $this->getTimezoneSettings();
             $id9fa4635372c4216f6d8a98e38c0b7d89c775790 = new DateTime($this->laterDate);
             $id9fa4635372c4216f6d8a98e38c0b7d89c775790->setTimezone(new DateTimeZone($this->timezone));
             $id9fa4635372c4216f6d8a98e38c0b7d89c775790->modify($this->datereal . " hour");
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->sendLater($id9fa4635372c4216f6d8a98e38c0b7d89c775790);
         }
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($this->recipients)->text($this->text)->send();
         if ($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
             $this->_errors = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getErrors());
             return self::POST_ERROR;
         } else {
             $this->_okMsg = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getConfirm());
             return self::POST_OK;
         }
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["saveTemplate"])) {
         $this->saveName = $this->escapePostVariables("saveName");
         $iccc7124c4929a783f68681205060c9cffb230624 = $this->escapePostVariables("saveText");
         $ia16b8bee9a5a69d4ec369fae234a70efdd002c24 = $this->escapePostVariables("saveUnicode");
         $ia74439b5a1382238828ba4fcd21ede60406b1de2 = $this->escapePostVariables("saveUnique");
         $ia16b8bee9a5a69d4ec369fae234a70efdd002c24 = $ia16b8bee9a5a69d4ec369fae234a70efdd002c24 == "true" ? 1 : 0;
         $ia74439b5a1382238828ba4fcd21ede60406b1de2 = $ia74439b5a1382238828ba4fcd21ede60406b1de2 == "true" ? 1 : 0;
         $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_template` (`name`, `template`, `unicode`, `unique`, `date`, `type`) VALUES ('" . $this->escape($this->saveName) . "', '" . $this->escape($iccc7124c4929a783f68681205060c9cffb230624) . "', '" . $this->escape($ia16b8bee9a5a69d4ec369fae234a70efdd002c24) . "', '" . $this->escape($ia74439b5a1382238828ba4fcd21ede60406b1de2) . "', NOW(), '1')");
         $this->_okMsg[] = v_template_been_saved;
         return self::POST_OK;
     }
     return self::POST_ERROR;
 }
Exemplo n.º 12
0
 private function f71732dd116f95684e5f1ead61a5e7c512b38d303()
 {
     $this->f084d032d99a55254ccbc7f4518a7a6332fb34594();
     $this->fc954e7784a0f039bee8acfa9e9d291409dedab1d();
     $this->f08e6037b638fa70f046e077067ca2e91b25e811a();
     $this->f0f4c4ca45e80f1a473f08dc9ee7267c837c33897();
     $this->f88d2fb9cfc02844e4b412a63d75ee89c72d89853();
     $this->ff089823bd73139a6ae6307d86c3368d22e9824e8();
     $this->f09ebc29ce3715471acfa46959ce271385a8904ce();
     $this->disableShop();
     if ($this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("shop_id")) {
         SMSVariables::setShopId($this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("shop_id"));
         $i05355412b857f5174e9a2f71b1e936a86ad60cd299184948e69e3ba68d346e935eeda3f65f91b4b4 = $this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("shop_id");
     } else {
         $i05355412b857f5174e9a2f71b1e936a86ad60cd299184948e69e3ba68d346e935eeda3f65f91b4b4 = SMSModel::NO_SHOP;
     }
     $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb(), SmsModel::TYPE_CUSTOMERS, SmsModel::SMS_CTYPE_CUSTOMER, SmsModel::SMS_TRANSACTION);
     $i05355412b857f5174e9a2f71b1e936a86ad60cd243e73008096636491c57855e1543fbbc5d9c5013 = $this->f370de043219675cfa1a3e3237bacbc14e5206631();
     $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($i05355412b857f5174e9a2f71b1e936a86ad60cd243e73008096636491c57855e1543fbbc5d9c5013["mobile"], $this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("customer_id"), SmsModel::NO_ADMIN, $i05355412b857f5174e9a2f71b1e936a86ad60cd243e73008096636491c57855e1543fbbc5d9c5013["country_id"], $i05355412b857f5174e9a2f71b1e936a86ad60cd243e73008096636491c57855e1543fbbc5d9c5013["city"], "", $i05355412b857f5174e9a2f71b1e936a86ad60cd299184948e69e3ba68d346e935eeda3f65f91b4b4);
     $iff3ebb3dc09765074cbc44bf85648fbb313741d9 = $this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("language_iso");
     if (isset($iff3ebb3dc09765074cbc44bf85648fbb313741d9)) {
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2f1d2a724eca6cdecfe3851fe5cd61f38952f699b = $iff3ebb3dc09765074cbc44bf85648fbb313741d9;
     } else {
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2f1d2a724eca6cdecfe3851fe5cd61f38952f699b = SMS_DEFAULT_MUTATION;
     }
     $this->f035cd4e20d440388cf6191761fe3feef2e02cc86($i05355412b857f5174e9a2f71b1e936a86ad60cd2f1d2a724eca6cdecfe3851fe5cd61f38952f699b);
     if (count($this->v457ac6f723905a2f724ebb34acb3778ab77bc130) > 0 && $this->v633db4b0902b579f32966c098b46541189041cff) {
         if (isset($this->v457ac6f723905a2f724ebb34acb3778ab77bc130[$i05355412b857f5174e9a2f71b1e936a86ad60cd2f1d2a724eca6cdecfe3851fe5cd61f38952f699b])) {
             $i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624 = $this->v457ac6f723905a2f724ebb34acb3778ab77bc130[$i05355412b857f5174e9a2f71b1e936a86ad60cd2f1d2a724eca6cdecfe3851fe5cd61f38952f699b];
         } else {
             $i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624 = $this->v457ac6f723905a2f724ebb34acb3778ab77bc130["default"];
         }
         $i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624 = str_replace(array_keys($this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412), $this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412, $i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624);
         $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->unicode($this->getHooksUnicode(SmsModel::SMS_CTYPE_CUSTOMER, $i05355412b857f5174e9a2f71b1e936a86ad60cd2f1d2a724eca6cdecfe3851fe5cd61f38952f699b));
         $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->text($i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624)->subject($this->v41e5fb3dbf26819dd37f026ecd626df4ac252050Info)->send();
         $this->v457ac6f723905a2f724ebb34acb3778ab77bc130 = array();
     }
     if (count($this->ve7ba91fafe7c53be0878165bdb30c214e66b70bf) > 0) {
         $ie7ba91fafe7c53be0878165bdb30c214e66b70bf = $this->getAdminNumbers($this->ve7ba91fafe7c53be0878165bdb30c214e66b70bf);
         foreach ($ie7ba91fafe7c53be0878165bdb30c214e66b70bf as $i05355412b857f5174e9a2f71b1e936a86ad60cd287395dcafb6eb7221410dbcd87e9e8ce0007214a => $icdc928a35495c57129b80e1b1ef71e6fc78d22fb) {
             if ($this->specialSend($i05355412b857f5174e9a2f71b1e936a86ad60cd287395dcafb6eb7221410dbcd87e9e8ce0007214a)) {
                 $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb(), SmsModel::TYPE_ADMIN, SmsModel::SMS_CTYPE_CADMIN, SmsModel::SMS_TRANSACTION);
                 $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($icdc928a35495c57129b80e1b1ef71e6fc78d22fb["number"], SmsModel::NO_CUSTOMER, $i05355412b857f5174e9a2f71b1e936a86ad60cd287395dcafb6eb7221410dbcd87e9e8ce0007214a);
                 $i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624 = str_replace(array_keys($this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412), $this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412, $this->v760213d686032a36b3cee603bba085115ec87b21);
                 $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->unicode($this->getHooksUnicode(SmsModel::SMS_CTYPE_CADMIN));
                 $i05355412b857f5174e9a2f71b1e936a86ad60cd24367816f1ae76ddc44b3953c9ce6460e181a0a3a->text($i05355412b857f5174e9a2f71b1e936a86ad60cd2ccc7124c4929a783f68681205060c9cffb230624)->subject($this->v41e5fb3dbf26819dd37f026ecd626df4ac252050Info)->send();
             }
         }
     }
 }
Exemplo n.º 13
0
 private function f71732dd116f95684e5f1ead61a5e7c512b38d303()
 {
     $this->f084d032d99a55254ccbc7f4518a7a6332fb34594();
     $this->fc954e7784a0f039bee8acfa9e9d291409dedab1d();
     $this->f08e6037b638fa70f046e077067ca2e91b25e811a();
     $this->f0f4c4ca45e80f1a473f08dc9ee7267c837c33897();
     $this->ff089823bd73139a6ae6307d86c3368d22e9824e8();
     $this->f09ebc29ce3715471acfa46959ce271385a8904ce();
     $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->f6fbc046e3648c4b4d80896bbf02d71a21d13a112(), SmsModel::TYPE_CUSTOMERS, SmsModel::SMS_CTYPE_CUSTOMER, SmsModel::SMS_TRANSACTION);
     $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("customer_mobile"), $this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("customer_id"), SmsModel::NO_ADMIN, $this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("customer_country_id"), $this->f84f10e7b1c2263abf3b869fc8ac81f4ab3ea37db("customer_city"));
     $iff3ebb3dc09765074cbc44bf85648fbb313741d9 = $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getAreas();
     if (isset($iff3ebb3dc09765074cbc44bf85648fbb313741d9[0])) {
         $if1d2a724eca6cdecfe3851fe5cd61f38952f699b = $iff3ebb3dc09765074cbc44bf85648fbb313741d9[0];
     } else {
         $if1d2a724eca6cdecfe3851fe5cd61f38952f699b = "default";
     }
     $this->f035cd4e20d440388cf6191761fe3feef2e02cc86($if1d2a724eca6cdecfe3851fe5cd61f38952f699b);
     if (count($this->v457ac6f723905a2f724ebb34acb3778ab77bc130) > 0 && $this->v633db4b0902b579f32966c098b46541189041cff) {
         if (isset($this->v457ac6f723905a2f724ebb34acb3778ab77bc130[$if1d2a724eca6cdecfe3851fe5cd61f38952f699b])) {
             $iccc7124c4929a783f68681205060c9cffb230624 = $this->v457ac6f723905a2f724ebb34acb3778ab77bc130[$if1d2a724eca6cdecfe3851fe5cd61f38952f699b];
         } else {
             $iccc7124c4929a783f68681205060c9cffb230624 = $this->v457ac6f723905a2f724ebb34acb3778ab77bc130["default"];
         }
         $iccc7124c4929a783f68681205060c9cffb230624 = str_replace(array_keys($this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412), $this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412, $iccc7124c4929a783f68681205060c9cffb230624);
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->unicode($this->getHooksUnicode(SmsModel::SMS_CTYPE_CUSTOMER, $if1d2a724eca6cdecfe3851fe5cd61f38952f699b));
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->text($iccc7124c4929a783f68681205060c9cffb230624)->subject($this->v41e5fb3dbf26819dd37f026ecd626df4ac252050Info)->send();
         $this->v457ac6f723905a2f724ebb34acb3778ab77bc130 = array();
     }
     if (count($this->ve7ba91fafe7c53be0878165bdb30c214e66b70bf) > 0) {
         $ie7ba91fafe7c53be0878165bdb30c214e66b70bf = $this->getAdminNumbers($this->ve7ba91fafe7c53be0878165bdb30c214e66b70bf);
         foreach ($ie7ba91fafe7c53be0878165bdb30c214e66b70bf as $i87395dcafb6eb7221410dbcd87e9e8ce0007214a => $icdc928a35495c57129b80e1b1ef71e6fc78d22fb) {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->f6fbc046e3648c4b4d80896bbf02d71a21d13a112(), SmsModel::TYPE_ADMIN, SmsModel::SMS_CTYPE_CADMIN, SmsModel::SMS_TRANSACTION);
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->number($icdc928a35495c57129b80e1b1ef71e6fc78d22fb["number"], SmsModel::NO_CUSTOMER, $i87395dcafb6eb7221410dbcd87e9e8ce0007214a);
             $iccc7124c4929a783f68681205060c9cffb230624 = str_replace(array_keys($this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412), $this->v3c3fd557829f0a1930d2d0911e45b0777d9f5412, $this->v760213d686032a36b3cee603bba085115ec87b21);
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->unicode($this->getHooksUnicode(SmsModel::SMS_CTYPE_CADMIN));
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->text($iccc7124c4929a783f68681205060c9cffb230624)->subject($this->v41e5fb3dbf26819dd37f026ecd626df4ac252050Info)->send();
         }
     }
 }
Exemplo n.º 14
0
 public function postProcess($if7ac7ffb0e11bffa95681698138e923b4fd51990 = NULL, $i120dfeb2f4db76e8e52ed01ad8e678e2b9fa3bb9 = NULL, $i4df8c509b6936a0640c1594ca9b38a0a55a9562f = NULL)
 {
     if ($if7ac7ffb0e11bffa95681698138e923b4fd51990 == NULL && $i120dfeb2f4db76e8e52ed01ad8e678e2b9fa3bb9 == NULL) {
         return self::POST_ERROR;
     }
     if (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990['submitSendSmsSendSMS'])) {
         $this->unicode = $this->escapePostVariables("unicode");
         $this->unique = $this->escapePostVariables("unique");
         $this->sendlater = $this->escapePostVariables("sendlater");
         $this->laterDate = $this->escapePostVariables("laterdate");
         $this->text = $this->escapePostVariables("text");
         $this->datereal = $this->escapePostVariables("datereal");
         $this->coupon = $this->escapePostVariables("coupon");
         $this->recipients = $this->escapePostVariables("recipients");
         $this->store = $this->escapePostVariables("store");
         $this->text = $this->applyTemplate($this->getShopVariables($this->store), $this->text, self::$MarketingTemplateShop);
         if ($this->coupon != -1) {
             $this->text = $this->applyTemplate($this->getCouponData($this->coupon), $this->text, self::$MarketingTemplateCoupons);
         }
         $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb(), SmsModel::TYPE_SIMPLE, SmsModel::SMS_CTYPE_CUSTOMER, SmsModel::SMS_BULK);
         if ($_FILES['sms_file']["error"] == UPLOAD_ERR_OK) {
             $iccb6cdd13fb53ab60ca9fe89a47714157318d361 = array('application/vnd.ms-excel', 'text/plain', 'text/csv', 'text/tsv');
             if (in_array($_FILES['sms_file']['type'], $iccb6cdd13fb53ab60ca9fe89a47714157318d361)) {
                 $ib1199182837e705aae8d93f525c88b1184f9395d = file_get_contents($_FILES['sms_file']['tmp_name']);
                 if (strlen($ib1199182837e705aae8d93f525c88b1184f9395d) > 0) {
                     $ibc2fa36dbd6b936f71d62a75d147345bab9fb1e8 = explode("\n", $ib1199182837e705aae8d93f525c88b1184f9395d);
                     foreach ($ibc2fa36dbd6b936f71d62a75d147345bab9fb1e8 as $i2e93e61d67c274d891066238c74ba6322d527b6d) {
                         $i140d151c23a5be7843ee9bffd3275f9364d99f4f = explode(";", $i2e93e61d67c274d891066238c74ba6322d527b6d);
                         if (strlen($i140d151c23a5be7843ee9bffd3275f9364d99f4f[0]) > 0) {
                             $i9744d24cf13e8257399c74b1ede6a0f99ec6045b[] = $i140d151c23a5be7843ee9bffd3275f9364d99f4f[0];
                         }
                     }
                 } else {
                     $ie69b823b64e72c132a115b89028b8d475b6f861d = FOpen($_FILES['sms_file']['tmp_name'], "r");
                     if ($ie69b823b64e72c132a115b89028b8d475b6f861d != null) {
                         while ($ib1199182837e705aae8d93f525c88b1184f9395d = FGets($ie69b823b64e72c132a115b89028b8d475b6f861d, 5000)) {
                             $id7218f29714ac595e34d4456a75ad078cbb02291 = explode(";", $ib1199182837e705aae8d93f525c88b1184f9395d);
                             if (strlen($i140d151c23a5be7843ee9bffd3275f9364d99f4f[0]) > 0) {
                                 $i9744d24cf13e8257399c74b1ede6a0f99ec6045b[] = $id7218f29714ac595e34d4456a75ad078cbb02291[0];
                             }
                         }
                     }
                 }
             } elseif ($_FILES['sms_file']['type'] == "text/x-vcard" || $_FILES['sms_file']['type'] == "text/vcard") {
                 $i9744d24cf13e8257399c74b1ede6a0f99ec6045b = preg_replace("/TEL;.*:/", "", preg_grep("/TEL;/", explode("\n", file_get_contents($_FILES['sms_file']['tmp_name']))));
             } else {
                 $this->_errors[] = v_sendsms_csvtext;
                 return self::POST_ERROR;
             }
             $i9ec854a302fbdb72d043506b55d5bf395184517b->number($i9744d24cf13e8257399c74b1ede6a0f99ec6045b);
         }
         if ($this->unicode) {
             $i9ec854a302fbdb72d043506b55d5bf395184517b->unicode();
         }
         if ($this->unique) {
             $i9ec854a302fbdb72d043506b55d5bf395184517b->unique();
         }
         if ($this->sendlater) {
             $this->getTimezoneSettings();
             $i4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c = new DateTime($this->laterDate);
             $i4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c->setTimezone(new DateTimeZone($this->timezone));
             $i4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c->modify($this->datereal . " hour");
             $i9ec854a302fbdb72d043506b55d5bf395184517b->sendLater($i4f14cfb4b41c3b4b67307d1b1cd9e51447fe428c);
         }
         $i9ec854a302fbdb72d043506b55d5bf395184517b->number($this->recipients)->text($this->text)->send();
         if ($i9ec854a302fbdb72d043506b55d5bf395184517b->isError()) {
             $this->_errors = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getErrors());
             return self::POST_ERROR;
         } else {
             $this->_okMsg = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getConfirm());
             return self::POST_OK;
         }
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["saveTemplate"])) {
         $this->saveName = $this->escapePostVariables("saveName");
         $ie32585eb1b56e8e02465722681ae17f4122f4b7d = $this->escapePostVariables("saveText");
         $i6c08bf61f437a7df1241311fb1b61cb26dfddd64 = $this->escapePostVariables("saveUnicode");
         $ib60aacf907e26fcd4e5091fb981d81cb096eec61 = $this->escapePostVariables("saveUnique");
         $i6c08bf61f437a7df1241311fb1b61cb26dfddd64 = $i6c08bf61f437a7df1241311fb1b61cb26dfddd64 == "true" ? 1 : 0;
         $ib60aacf907e26fcd4e5091fb981d81cb096eec61 = $ib60aacf907e26fcd4e5091fb981d81cb096eec61 == "true" ? 1 : 0;
         $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_template` (`name`, `template`, `unicode`, `unique`, `date`, `type`) VALUES ('" . $this->escape($this->saveName) . "', '" . $this->escape($ie32585eb1b56e8e02465722681ae17f4122f4b7d) . "', '" . $this->escape($i6c08bf61f437a7df1241311fb1b61cb26dfddd64) . "', '" . $this->escape($ib60aacf907e26fcd4e5091fb981d81cb096eec61) . "', NOW(), '1')");
         $this->_okMsg[] = v_template_been_saved;
         return self::POST_OK;
     }
     return self::POST_ERROR;
 }
Exemplo n.º 15
0
 private function f2cabfeb0961627616624db11d0e24035e8011907($i986f0e400c2b3a0307f9712307da35ce2ee9676d = array())
 {
     if (count($i986f0e400c2b3a0307f9712307da35ce2ee9676d) > 0) {
         $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
         $ibf257875534b061f8a7d4b532a139e642c9d3d0f = $i9ec854a302fbdb72d043506b55d5bf395184517b->GetSmsInfo();
         if (strlen($ibf257875534b061f8a7d4b532a139e642c9d3d0f[0]) > 0) {
             $this->credit = $ibf257875534b061f8a7d4b532a139e642c9d3d0f[0];
             return true;
         }
     }
     return false;
 }
Exemplo n.º 16
0
 private function f4a63c56dc42169d3f90718029d967f74a3d25604()
 {
     $this->f795bf227a84116fe5dcb8f060a38affa23b66be9();
     $this->f44a4cc47ae62e0b7991887d580f0ea6c3d518831();
     $this->fe499aaee715a42ed68285c93af3f5f05804e9f15();
     $this->f75554c4c3405ca857e1ed27e6e77d2201bfb66c4();
     $this->f196e7fda6b73fdcc85f790d41dd6e0c4531be88b();
     $this->fe95fbc0260a244b89f412a8ce1dde7ac98a9223b();
     $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->ff2ab734be9fb6b4fc0164420be40ee6c58cd6cc6(), SmsModel::TYPE_CUSTOMERS, SmsModel::SMS_CTYPE_CUSTOMER, SmsModel::SMS_TRANSACTION);
     $i9ec854a302fbdb72d043506b55d5bf395184517b->number($this->fd4abd37688d48d025a664be57a2d1dd703738098("customer_mobile"), $this->fd4abd37688d48d025a664be57a2d1dd703738098("customer_id"), SmsModel::NO_ADMIN, $this->fd4abd37688d48d025a664be57a2d1dd703738098("customer_country_id"), $this->fd4abd37688d48d025a664be57a2d1dd703738098("customer_city"));
     $ib3030c2f45bbc82e69ffc17cfc27fca86f99bf23 = $this->getActualLanguage();
     if (isset($ib3030c2f45bbc82e69ffc17cfc27fca86f99bf23)) {
         $i5ffda42b4795d56574941998cf75657e60e53fe2 = $ib3030c2f45bbc82e69ffc17cfc27fca86f99bf23;
     } else {
         $i5ffda42b4795d56574941998cf75657e60e53fe2 = SMS_DEFAULT_MUTATION;
     }
     $this->f7c851798808b10928eb8f2417e6b7e4bb3e126b2($i5ffda42b4795d56574941998cf75657e60e53fe2);
     if (count($this->v8a3d93590769e892487ead8cb3f2103ff16a38dd) > 0 && $this->v9db39aed41349236c2242cc62a04d8dc396a1bab) {
         if (isset($this->v8a3d93590769e892487ead8cb3f2103ff16a38dd[$i5ffda42b4795d56574941998cf75657e60e53fe2])) {
             $ie32585eb1b56e8e02465722681ae17f4122f4b7d = $this->v8a3d93590769e892487ead8cb3f2103ff16a38dd[$i5ffda42b4795d56574941998cf75657e60e53fe2];
         } else {
             $ie32585eb1b56e8e02465722681ae17f4122f4b7d = $this->v8a3d93590769e892487ead8cb3f2103ff16a38dd["default"];
         }
         $ie32585eb1b56e8e02465722681ae17f4122f4b7d = str_replace(array_keys($this->veabf735422ea3c4efba2eadcbb3be1b39c7c0618), $this->veabf735422ea3c4efba2eadcbb3be1b39c7c0618, $ie32585eb1b56e8e02465722681ae17f4122f4b7d);
         $i9ec854a302fbdb72d043506b55d5bf395184517b->unicode($this->getHooksUnicode(SmsModel::SMS_CTYPE_CUSTOMER, $i5ffda42b4795d56574941998cf75657e60e53fe2));
         $i9ec854a302fbdb72d043506b55d5bf395184517b->text($ie32585eb1b56e8e02465722681ae17f4122f4b7d)->subject($this->v69ed6143586be0cbb17c5d578694db8ced4bae35Info)->send();
         $this->v8a3d93590769e892487ead8cb3f2103ff16a38dd = array();
     }
     if (count($this->v18b46d03fcb664397e59c34a4cb7b424d837711f) > 0) {
         $i18b46d03fcb664397e59c34a4cb7b424d837711f = $this->getAdminNumbers($this->v18b46d03fcb664397e59c34a4cb7b424d837711f);
         foreach ($i18b46d03fcb664397e59c34a4cb7b424d837711f as $icae1003a7b78317ecd106d559490d2ed7842f019 => $ic812a33236f7f483dbd34d4c14773cb484311683) {
             $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->ff2ab734be9fb6b4fc0164420be40ee6c58cd6cc6(), SmsModel::TYPE_ADMIN, SmsModel::SMS_CTYPE_CADMIN, SmsModel::SMS_TRANSACTION);
             $i9ec854a302fbdb72d043506b55d5bf395184517b->number($ic812a33236f7f483dbd34d4c14773cb484311683["number"], SmsModel::NO_CUSTOMER, $icae1003a7b78317ecd106d559490d2ed7842f019);
             $ie32585eb1b56e8e02465722681ae17f4122f4b7d = str_replace(array_keys($this->veabf735422ea3c4efba2eadcbb3be1b39c7c0618), $this->veabf735422ea3c4efba2eadcbb3be1b39c7c0618, $this->v08122ee2d0707a3591fd08a8f0fe26d36a507aa1);
             $i9ec854a302fbdb72d043506b55d5bf395184517b->unicode($this->getHooksUnicode(SmsModel::SMS_CTYPE_CADMIN));
             $i9ec854a302fbdb72d043506b55d5bf395184517b->text($ie32585eb1b56e8e02465722681ae17f4122f4b7d)->subject($this->v69ed6143586be0cbb17c5d578694db8ced4bae35Info)->send();
         }
     }
 }