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";
     }
 }
 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;
 }
Exemplo n.º 4
0
 public function postProcess($if7ac7ffb0e11bffa95681698138e923b4fd51990 = NULL, $i120dfeb2f4db76e8e52ed01ad8e678e2b9fa3bb9 = NULL)
 {
     if ($if7ac7ffb0e11bffa95681698138e923b4fd51990 == NULL && $i120dfeb2f4db76e8e52ed01ad8e678e2b9fa3bb9 == NULL) {
         return self::POST_ERROR;
     }
     if (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAddCustomer"]) || isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAddCustomer_x"])) {
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2 = self::TYPE_CUSTOMER;
         $this->vb17553f86a6e6460083956094e21682b0eb19a5b = self::ACTION_ADD;
         $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
         $this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3 = $i9ec854a302fbdb72d043506b55d5bf395184517b->getCountryPriceList($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078);
         if ($i9ec854a302fbdb72d043506b55d5bf395184517b->isError()) {
             $this->_errors = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getErrors());
             return self::POST_ERROR;
         }
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAddAdmin"]) || isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAddAdmin_x"])) {
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2 = self::TYPE_ADMIN;
         $this->vb17553f86a6e6460083956094e21682b0eb19a5b = self::ACTION_ADD;
         $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
         $this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3 = $i9ec854a302fbdb72d043506b55d5bf395184517b->getCountryPriceList($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078);
         if ($i9ec854a302fbdb72d043506b55d5bf395184517b->isError()) {
             $this->_errors = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getErrors());
             return self::POST_ERROR;
         }
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990['submitDeleteRouteCustomer_x']) || isset($if7ac7ffb0e11bffa95681698138e923b4fd51990['submitDeleteRouteAdmin_x'])) {
         if (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990['submitDeleteRouteCustomer_x'])) {
             $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2 = self::TYPE_CUSTOMER;
         } else {
             $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2 = self::TYPE_ADMIN;
         }
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . " and type='" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "'");
         $this->displayConfirmation(SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078] . v_smswizard_deleted);
         return self::POST_OK;
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAddRoute"])) {
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2 = $this->escapePostVariables("type");
         $this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3 = $this->escapePostVariables("info");
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = explode(";", $this->escapePostVariables("isms"));
         $this->vb17553f86a6e6460083956094e21682b0eb19a5b = $this->escapePostVariables("action");
         if (!(count($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1) > 1)) {
             $this->f171e2f2d4c80ae2a7a9ef62ff20c62d8d369c76b($this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3);
             $this->_errors[] = v_smswizard_choosesender;
             return self::POST_ERROR;
         }
         if ($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE] == self::SENDER_SYSTEM || $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE] == self::SENDER_SIMHOSTING) {
             $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area='" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . "' AND type='" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "'");
             $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . "','" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::ISMS]) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE]) . "','','" . $this->escape($this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3) . "','" . $this->escape(SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078]) . "')");
             $this->displayConfirmation(SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078] . v_smswizard_countrysaved);
             $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = null;
             $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = null;
             $this->vb17553f86a6e6460083956094e21682b0eb19a5b = null;
             return self::POST_OK;
         } elseif ($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE] == self::SENDER_MYNUMBER) {
             $this->vb17553f86a6e6460083956094e21682b0eb19a5b = self::ACTION_MYNUMBER;
             return self::POST_ERROR;
         } elseif ($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE] == self::SENDER_TEXT) {
             $this->vb17553f86a6e6460083956094e21682b0eb19a5b = self::ACTION_TEXT;
             return self::POST_ERROR;
         }
         return self::POST_ERROR;
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990['submitAddTextSenderID'])) {
         $this->v92bd58c9bda4434c266c65c6149b3ab633704145 = $this->escapePostVariables("textsenderID");
         $this->vc44128f76c174dfb5d9410aa4dce452c62ef2c82 = $this->escapePostVariables("newtextsenderID");
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2 = $this->escapePostVariables("type");
         $this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3 = $this->escapePostVariables("info");
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = explode(";", $this->escapePostVariables("isms"));
         $this->vb17553f86a6e6460083956094e21682b0eb19a5b = $this->escapePostVariables("action");
         if ($this->v92bd58c9bda4434c266c65c6149b3ab633704145 != -1) {
             $i92bd58c9bda4434c266c65c6149b3ab633704145 = $this->v92bd58c9bda4434c266c65c6149b3ab633704145;
         } else {
             $i92bd58c9bda4434c266c65c6149b3ab633704145 = $this->vc44128f76c174dfb5d9410aa4dce452c62ef2c82;
         }
         if (!strlen($i92bd58c9bda4434c266c65c6149b3ab633704145) > 0) {
             $this->_errors[] = v_smswizard_filltextsid;
             return self::POST_ERROR;
         }
         if (strlen($i92bd58c9bda4434c266c65c6149b3ab633704145) > 11 || strlen($i92bd58c9bda4434c266c65c6149b3ab633704145) < 3) {
             $this->_errors[] = v_smswizard_filltextsid2;
             return self::POST_ERROR;
         }
         if (preg_match('/[^A-Za-z._]/', $this->vc44128f76c174dfb5d9410aa4dce452c62ef2c82) && $this->vc44128f76c174dfb5d9410aa4dce452c62ef2c82 == -1) {
             $this->_errors[] = v_smswizard_chars . "a-z A-Z _ .";
             return self::POST_ERROR;
         }
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area='" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . "' AND type='" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "'");
         $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . "','" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::ISMS]) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE]) . "','" . $this->escape($i92bd58c9bda4434c266c65c6149b3ab633704145) . "','" . $this->escape($this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3) . "','" . $this->escape(SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078]) . "')");
         $this->displayConfirmation(v_smswizard_textsidfor . SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078] . v_smswizard_wassaved);
         $this->Execute("REPLACE INTO " . DB_PREFIX . "sp_textsenderIDs VALUES ('" . $this->escape($i92bd58c9bda4434c266c65c6149b3ab633704145) . "')");
         $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = null;
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = null;
         $this->vb17553f86a6e6460083956094e21682b0eb19a5b = null;
         return self::POST_OK;
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990['submitAddOwnNumberSenderID'])) {
         $this->va917c2d49152f506b70362a47d4a4b689d3e7541 = $this->escapePostVariables("ownsenderID");
         $this->v24931bf8d8dd5bf8b970fbea0e59a47ff06bffa1 = $this->escapePostVariables("newownsenderID");
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2 = $this->escapePostVariables("type");
         $this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3 = $this->escapePostVariables("info");
         $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country");
         $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = explode(";", $this->escapePostVariables("isms"));
         $this->vb17553f86a6e6460083956094e21682b0eb19a5b = $this->escapePostVariables("action");
         $this->va673093194bc7ce7672ed2857425609839b3119d = $this->escapePostVariables("validateCode");
         $this->v19b8b7cad3f484c5fd3981e8d383972bf5b46508 = $this->escapePostVariables("sendedCode");
         if ($this->va917c2d49152f506b70362a47d4a4b689d3e7541 != -1) {
             $ia917c2d49152f506b70362a47d4a4b689d3e7541 = $this->va917c2d49152f506b70362a47d4a4b689d3e7541;
         } else {
             $ia917c2d49152f506b70362a47d4a4b689d3e7541 = $this->v24931bf8d8dd5bf8b970fbea0e59a47ff06bffa1;
         }
         if (!strlen($ia917c2d49152f506b70362a47d4a4b689d3e7541) > 0) {
             $this->_errors[] = v_smswizard_fillsid;
             return self::POST_ERROR;
         }
         if (!PhoneNumber::isPhoneNumber($ia917c2d49152f506b70362a47d4a4b689d3e7541) && $this->va917c2d49152f506b70362a47d4a4b689d3e7541 == -1) {
             $this->_errors[] = v_smswizard_mustbenumber;
             return self::POST_ERROR;
         }
         if ($this->v19b8b7cad3f484c5fd3981e8d383972bf5b46508 && !preg_match("/^([0-9])*\$/", $this->va673093194bc7ce7672ed2857425609839b3119d, $i692db588ebe47958986d369fc4502d8d939dac97)) {
             $this->_errors[] = v_smswizard_confirmcode;
             return self::POST_ERROR;
         } elseif ($this->v19b8b7cad3f484c5fd3981e8d383972bf5b46508 && $this->v92bd58c9bda4434c266c65c6149b3ab633704145 == -1) {
             $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
             $i9ec854a302fbdb72d043506b55d5bf395184517b->validatePhoneNumberCode($this->va673093194bc7ce7672ed2857425609839b3119d, $ia917c2d49152f506b70362a47d4a4b689d3e7541);
             if ($i9ec854a302fbdb72d043506b55d5bf395184517b->isError()) {
                 $this->_errors = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getErrors());
                 return self::POST_ERROR;
             } else {
                 $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . " AND type='" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "'");
                 $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . "','" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::ISMS]) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE]) . "','" . $this->escape($ia917c2d49152f506b70362a47d4a4b689d3e7541) . "','" . $this->escape($this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3) . "','" . $this->escape(SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078]) . "')");
                 $this->_okMsg[] = v_smswizard_ownsidfor . SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078] . v_smswizard_wassaved;
                 $this->Execute("INSERT IGNORE INTO " . DB_PREFIX . "sp_ownnumbersenderIDs VALUES ('" . $this->escape($ia917c2d49152f506b70362a47d4a4b689d3e7541) . "')");
                 $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = null;
                 $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = null;
                 $this->vb17553f86a6e6460083956094e21682b0eb19a5b = null;
                 return self::POST_OK;
             }
         } elseif ($this->v92bd58c9bda4434c266c65c6149b3ab633704145 == -1) {
             $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
             $i921eb50fde995340f17a81b1aa051fbfa11d94d4 = $i9ec854a302fbdb72d043506b55d5bf395184517b->validatePhoneNumber($ia917c2d49152f506b70362a47d4a4b689d3e7541, $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078, $this->v82b103019f8b63abe35e23c8982897d7b3b13cd2);
             if ($i9ec854a302fbdb72d043506b55d5bf395184517b->isError()) {
                 if ($i921eb50fde995340f17a81b1aa051fbfa11d94d4) {
                     $this->v19b8b7cad3f484c5fd3981e8d383972bf5b46508 = true;
                 }
                 $this->_okMsg = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getConfirm());
                 $this->_errors = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getErrors());
                 return self::POST_ERROR;
             } else {
                 $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . " AND type='" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "'");
                 $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . "','" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::ISMS]) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE]) . "','" . $this->escape($ia917c2d49152f506b70362a47d4a4b689d3e7541) . "','" . $this->escape($this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3) . "','" . $this->escape(SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078]) . "')");
                 $this->_okMsg[] = v_smswizard_ownsidfor . SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078] . v_smswizard_wassaved;
                 $this->Execute("INSERT IGNORE INTO " . DB_PREFIX . "sp_ownnumbersenderIDs VALUES ('" . $this->escape($ia917c2d49152f506b70362a47d4a4b689d3e7541) . "')");
                 $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = null;
                 $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = null;
                 $this->vb17553f86a6e6460083956094e21682b0eb19a5b = null;
                 return self::POST_OK;
             }
         } else {
             $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . " AND type='" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "'");
             $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078) . "','" . $this->escape($this->v82b103019f8b63abe35e23c8982897d7b3b13cd2) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::ISMS]) . "','" . $this->escape($this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1[self::SENDERTYPE]) . "','" . $this->escape($ia917c2d49152f506b70362a47d4a4b689d3e7541) . "','" . $this->escape($this->vb2bdeb39d0b431e06e364d808d2f32fddee67ca3) . "','" . $this->escape(SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078]) . "')");
             $this->displayConfirmation(v_smswizard_ownsidfor . SmsVariables::$countries[$this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078] . v_smswizard_wassaved);
             $this->vf261e0e1babe742f7019d4d5742b8f9a0dc76be1 = null;
             $this->v5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = null;
             $this->vb17553f86a6e6460083956094e21682b0eb19a5b = null;
             return self::POST_OK;
         }
     }
     return self::POST_ERROR;
 }
Exemplo n.º 5
0
 public function postProcess($icddcd508600972f2dab78cd14f7612aa4dc19a18 = NULL, $i6b496fee24729ce6f7683ba88d5a87d6130049b5 = NULL, $ifab26c5df1e4ac29b64e0a4796b1f9165fe614a8 = NULL)
 {
     $demo = false;
     if (($demo || defined("SMS_DEMO")) && $icddcd508600972f2dab78cd14f7612aa4dc19a18 != NULL) {
         $this->_errors[] = "Disabled in demo.";
         return self::POST_OK;
     }
     if ($ifab26c5df1e4ac29b64e0a4796b1f9165fe614a8 == NULL) {
         return self::POST_ERROR;
     }
     if (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddAdmin"])) {
         $i6b378f203f89073d2d6f4239eef67bf1db322d03 = $this->escapePostVariables("adminnew");
         $i43e73008096636491c57855e1543fbbc5d9c5013 = $this->escapePostVariables("numbernew");
         if (!strlen($i6b378f203f89073d2d6f4239eef67bf1db322d03)) {
             $this->_errors[] = v_adminsmsprofile_invalidname;
             return self::POST_ERROR;
         } elseif (!PhoneNumber::isPhoneNumber($i43e73008096636491c57855e1543fbbc5d9c5013) || $i43e73008096636491c57855e1543fbbc5d9c5013 == null) {
             $this->_errors[] = v_adminsmsprofile_invalidnumber;
             return self::POST_ERROR;
         } else {
             $this->Execute("INSERT INTO " . DB_PREFIX . "sp_admins VALUES (null,'" . $this->escape($i6b378f203f89073d2d6f4239eef67bf1db322d03) . "','" . $this->escape($i43e73008096636491c57855e1543fbbc5d9c5013) . "')");
             $this->displayConfirmation(v_adminsmsprofile_admincreated);
             return self::POST_OK;
         }
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddSmsAccount"])) {
         $ic9eb57c0cb4cf9ea36739fa49adc53923c76243d = $this->escapePostVariables("agree");
         $i10c2cab33828d32845523672265b4101741e17a0 = $this->escapePostVariables("email");
         $i340192567d0c13293e7b72e4d7926ab4475be729 = $this->escapePostVariables("companyname");
         $i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac = $this->escapePostVariables("addressstreet");
         $ia434af08201717f3f656c2e722fa792fe7e63b9f = $this->escapePostVariables("addresscity");
         $i9b4a10858d8a76b1778120e31b66f6e699f65aea = $this->escapePostVariables("addresszip");
         $iab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country0");
         $ia8ffb918a6696fe37f0bbabaf1e1a952607e959d = $this->escapePostVariables("companyid");
         $i3b1c6281aaacad7a20754ff1ce66c0005b0140ca = $this->escapePostVariables("companyvat");
         $i82e7a3b1bd589a54f63d67ca1a06a3d62552719f = $this->escapePostVariables("refererid");
         $i141fd6cf8d25a2156fcef65b7d29affd9b26822b = $this->escapePostVariables("kosoba");
         $i7e23db037952160bf723279bac0aa2285a3ceb6c = $this->escapePostVariables("kprijmeni");
         $i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac = html_entity_decode($i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac, ENT_QUOTES, 'UTF-8');
         $i340192567d0c13293e7b72e4d7926ab4475be729 = html_entity_decode($i340192567d0c13293e7b72e4d7926ab4475be729, ENT_QUOTES, 'UTF-8');
         $ia434af08201717f3f656c2e722fa792fe7e63b9f = html_entity_decode($ia434af08201717f3f656c2e722fa792fe7e63b9f, ENT_QUOTES, 'UTF-8');
         $i141fd6cf8d25a2156fcef65b7d29affd9b26822b = html_entity_decode($i141fd6cf8d25a2156fcef65b7d29affd9b26822b, ENT_QUOTES, 'UTF-8');
         $i7e23db037952160bf723279bac0aa2285a3ceb6c = html_entity_decode($i7e23db037952160bf723279bac0aa2285a3ceb6c, ENT_QUOTES, 'UTF-8');
         if (defined("v_refererID")) {
             $i82e7a3b1bd589a54f63d67ca1a06a3d62552719f = v_refererID;
         }
         if ($icddcd508600972f2dab78cd14f7612aa4dc19a18["type_acc"] == "Person") {
             $i340192567d0c13293e7b72e4d7926ab4475be729 = "";
             $ia8ffb918a6696fe37f0bbabaf1e1a952607e959d = "";
             $i3b1c6281aaacad7a20754ff1ce66c0005b0140ca = "";
         }
         if ($icddcd508600972f2dab78cd14f7612aa4dc19a18["type_acc"] == "Bussiness" && strlen($i340192567d0c13293e7b72e4d7926ab4475be729) < 3) {
             $this->_errors[] = v_registration_company_name;
             return self::POST_ERROR;
         }
         if ($ic9eb57c0cb4cf9ea36739fa49adc53923c76243d != 1) {
             $this->_errors[] = v_adminsmsprofile_agreetext;
             return self::POST_ERROR;
         }
         if (!self::isEmail($i10c2cab33828d32845523672265b4101741e17a0) || !trim($i10c2cab33828d32845523672265b4101741e17a0)) {
             $this->_errors[] = v_adminsmsprofile_invalidemail2;
             return self::POST_ERROR;
         } else {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->registerSmsAccount($i10c2cab33828d32845523672265b4101741e17a0, $i340192567d0c13293e7b72e4d7926ab4475be729, $i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac, $ia434af08201717f3f656c2e722fa792fe7e63b9f, $i9b4a10858d8a76b1778120e31b66f6e699f65aea, $iab6a314decb74f5c532ecb082cfeb1655b9e98bb, $ia8ffb918a6696fe37f0bbabaf1e1a952607e959d, $i3b1c6281aaacad7a20754ff1ce66c0005b0140ca, $i82e7a3b1bd589a54f63d67ca1a06a3d62552719f, $i141fd6cf8d25a2156fcef65b7d29affd9b26822b, $i7e23db037952160bf723279bac0aa2285a3ceb6c);
             $i15f0440429ef770fbaf8bd58ae6bab5bcc2e123c = new UserProfile($this->getDb());
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->editOtherSettings(urlencode(DELIVERY_URL), 0, "", "1", 0, 0, 0, $i15f0440429ef770fbaf8bd58ae6bab5bcc2e123c->getUsername(), $i15f0440429ef770fbaf8bd58ae6bab5bcc2e123c->getPassword());
             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["submitLogin"])) {
         $i05cffcc28d5370a291200c83ba5e24a107e83193 = $this->escapePostVariables("username");
         $ie949fe683eb9735ceada53820bfe2c9007ae8bd6 = $this->escapePostVariables("password");
         if (!strlen($i05cffcc28d5370a291200c83ba5e24a107e83193) > 0 || !strlen($ie949fe683eb9735ceada53820bfe2c9007ae8bd6) > 0) {
             $this->_errors[] = v_adminsmsprofile_filluser;
             return self::POST_ERROR;
         } else {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->loginAccount($i05cffcc28d5370a291200c83ba5e24a107e83193, $ie949fe683eb9735ceada53820bfe2c9007ae8bd6);
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->editOtherSettings(urlencode(DELIVERY_URL), 0, "", "1", 0, 0, 0, $i05cffcc28d5370a291200c83ba5e24a107e83193, $ie949fe683eb9735ceada53820bfe2c9007ae8bd6);
             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["submitEditAdmin_x"]) || isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitEditAdmin"])) {
         $this->edit_id = $this->escapePostVariables("ID");
         $this->edit_admins = true;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAdminSettings1"])) {
         $this->deleteDb = $this->escapePostVariables("deletedb");
         $this->simulate = $this->escapePostVariables("simulate");
         $this->deliveryemail = $this->escapePostVariables("deliveryemail");
         $this->pocetkredit = $this->escapePostVariables("pocetkredit");
         $this->URLreports = $this->escapePostVariables("URLreports");
         $this->pref_billing = $this->escapePostVariables("pref_billing");
         if (strlen($this->deliveryemail) > 0 && !self::isEmail($this->deliveryemail)) {
             $this->_errors[] = v_adminsmsprofile_invalidemail;
             return self::POST_ERROR;
         }
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
         if ($this->URLreports == 1) {
             $i5ca425460f7dbd64a82fa844eed01062be6a63d4 = urlencode(DELIVERY_URL);
         } else {
             $i5ca425460f7dbd64a82fa844eed01062be6a63d4 = "";
         }
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->editOtherSettings($i5ca425460f7dbd64a82fa844eed01062be6a63d4, $this->pocetkredit, $this->deliveryemail, $this->URLreports, $this->deleteDb, $this->simulate, $this->pref_billing);
         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["submitEditAdmin2"])) {
         $i87395dcafb6eb7221410dbcd87e9e8ce0007214a = $this->escapePostVariables("edit");
         $i6b378f203f89073d2d6f4239eef67bf1db322d03 = $this->escapePostVariables("adminnew");
         $i6b378f203f89073d2d6f4239eef67bf1db322d03 = html_entity_decode($i6b378f203f89073d2d6f4239eef67bf1db322d03, ENT_QUOTES, 'UTF-8');
         $i43e73008096636491c57855e1543fbbc5d9c5013 = $this->escapePostVariables("numbernew");
         if (!$i6b378f203f89073d2d6f4239eef67bf1db322d03) {
             $this->_errors[] = v_adminsmsprofile_invalidname;
             $this->edit_admins = true;
             $this->edit_id = $i87395dcafb6eb7221410dbcd87e9e8ce0007214a;
             return self::POST_ERROR;
         } elseif (!PhoneNumber::isPhoneNumber($i43e73008096636491c57855e1543fbbc5d9c5013) || !$i43e73008096636491c57855e1543fbbc5d9c5013) {
             $this->_errors[] = v_adminsmsprofile_invalidnumber;
             $this->edit_admins = true;
             $this->edit_id = $i87395dcafb6eb7221410dbcd87e9e8ce0007214a;
             return self::POST_ERROR;
         } else {
             $this->Execute("UPDATE " . DB_PREFIX . "sp_admins SET name='" . $this->escape($i6b378f203f89073d2d6f4239eef67bf1db322d03) . "', number='" . $this->escape($i43e73008096636491c57855e1543fbbc5d9c5013) . "' WHERE ID=" . $this->escape($i87395dcafb6eb7221410dbcd87e9e8ce0007214a));
             $this->displayConfirmation(v_adminsmsprofile_adminchanged);
             $this->edit_admins = false;
             $this->edit_id = 0;
             return self::POST_OK;
         }
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitDeleteAdmin_x"]) || isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitDeleteAdmin"])) {
         $i87395dcafb6eb7221410dbcd87e9e8ce0007214a = $this->escapePostVariables("ID");
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_admins WHERE ID='" . $this->escape($i87395dcafb6eb7221410dbcd87e9e8ce0007214a) . "'");
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_hooks_admins_multi WHERE adminIDs LIKE '" . $this->escape($i87395dcafb6eb7221410dbcd87e9e8ce0007214a) . "'");
         $ic6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_hooks_admins_multi WHERE adminIDs like '" . $this->escape($i87395dcafb6eb7221410dbcd87e9e8ce0007214a) . ";%' OR adminIDs LIKE '%;" . $this->escape($i87395dcafb6eb7221410dbcd87e9e8ce0007214a) . ";%' OR adminIDs LIKE '%;" . $this->escape($i87395dcafb6eb7221410dbcd87e9e8ce0007214a) . "'");
         if ($ic6e936002fe51b97bc1b95f337c09606ceb011de->num_rows) {
             foreach ($ic6e936002fe51b97bc1b95f337c09606ceb011de->rows as $i43ef5aef4168652439ef5de195405ced9f0f7952) {
                 $ie7ba91fafe7c53be0878165bdb30c214e66b70bf = explode(";", $i43ef5aef4168652439ef5de195405ced9f0f7952['adminIDs']);
                 array_splice($ie7ba91fafe7c53be0878165bdb30c214e66b70bf, array_search($i87395dcafb6eb7221410dbcd87e9e8ce0007214a, $ie7ba91fafe7c53be0878165bdb30c214e66b70bf), 1);
                 $this->Execute("UPDATE " . DB_PREFIX . "sp_hooks_admins_multi SET adminIDs='" . implode(";", $ie7ba91fafe7c53be0878165bdb30c214e66b70bf) . "' WHERE name='" . $this->escape($i43ef5aef4168652439ef5de195405ced9f0f7952['name']) . "' AND status='" . $this->escape($i43ef5aef4168652439ef5de195405ced9f0f7952['status']) . "'");
             }
         }
         $this->displayConfirmation(v_adminsmsprofile_admindeleted);
         return self::POST_OK;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["EditSmsAccount"])) {
         $i10c2cab33828d32845523672265b4101741e17a0 = $this->escapePostVariables("email");
         $i340192567d0c13293e7b72e4d7926ab4475be729 = $this->escapePostVariables("companyname");
         $i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac = $this->escapePostVariables("addressstreet");
         $ia434af08201717f3f656c2e722fa792fe7e63b9f = $this->escapePostVariables("addresscity");
         $i9b4a10858d8a76b1778120e31b66f6e699f65aea = $this->escapePostVariables("addresszip");
         $iab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country0");
         $ia8ffb918a6696fe37f0bbabaf1e1a952607e959d = $this->escapePostVariables("companyid");
         $i3b1c6281aaacad7a20754ff1ce66c0005b0140ca = $this->escapePostVariables("companyvat");
         $i141fd6cf8d25a2156fcef65b7d29affd9b26822b = $this->escapePostVariables("kosoba");
         $i7e23db037952160bf723279bac0aa2285a3ceb6c = $this->escapePostVariables("kprijmeni");
         $i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac = html_entity_decode($i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac, ENT_QUOTES, 'UTF-8');
         $i340192567d0c13293e7b72e4d7926ab4475be729 = html_entity_decode($i340192567d0c13293e7b72e4d7926ab4475be729, ENT_QUOTES, 'UTF-8');
         $ia434af08201717f3f656c2e722fa792fe7e63b9f = html_entity_decode($ia434af08201717f3f656c2e722fa792fe7e63b9f, ENT_QUOTES, 'UTF-8');
         $i141fd6cf8d25a2156fcef65b7d29affd9b26822b = html_entity_decode($i141fd6cf8d25a2156fcef65b7d29affd9b26822b, ENT_QUOTES, 'UTF-8');
         $i7e23db037952160bf723279bac0aa2285a3ceb6c = html_entity_decode($i7e23db037952160bf723279bac0aa2285a3ceb6c, ENT_QUOTES, 'UTF-8');
         if ($icddcd508600972f2dab78cd14f7612aa4dc19a18["type_acc"] == "Person") {
             $i340192567d0c13293e7b72e4d7926ab4475be729 = "";
             $ia8ffb918a6696fe37f0bbabaf1e1a952607e959d = "";
             $i3b1c6281aaacad7a20754ff1ce66c0005b0140ca = "";
         }
         if ($icddcd508600972f2dab78cd14f7612aa4dc19a18["type_acc"] == "Bussiness" && strlen($i340192567d0c13293e7b72e4d7926ab4475be729) < 3) {
             $this->_errors[] = v_registration_company_name;
             return self::POST_ERROR;
         }
         if (!self::isEmail($i10c2cab33828d32845523672265b4101741e17a0)) {
             $this->_errors[] = v_adminsmsprofile_invalidemail2;
             return self::POST_ERROR;
         } else {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->editAccount($i10c2cab33828d32845523672265b4101741e17a0, $i340192567d0c13293e7b72e4d7926ab4475be729, $i3ec11992ba35cc28370d20bb83e1e2b71f7a8dac, $ia434af08201717f3f656c2e722fa792fe7e63b9f, $i9b4a10858d8a76b1778120e31b66f6e699f65aea, $iab6a314decb74f5c532ecb082cfeb1655b9e98bb, $ia8ffb918a6696fe37f0bbabaf1e1a952607e959d, $i3b1c6281aaacad7a20754ff1ce66c0005b0140ca, $i141fd6cf8d25a2156fcef65b7d29affd9b26822b, $i7e23db037952160bf723279bac0aa2285a3ceb6c);
             if ($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
                 $this->_errors = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getErrors());
                 return self::POST_ERROR;
             } else {
                 $this->_okMsg = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getConfirm());
                 return self::POST_OK;
             }
         }
     }
     return self::POST_ERROR;
 }
Exemplo n.º 6
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.º 7
0
 public function postProcess($icddcd508600972f2dab78cd14f7612aa4dc19a18 = NULL, $i6b496fee24729ce6f7683ba88d5a87d6130049b5 = NULL)
 {
     if ($icddcd508600972f2dab78cd14f7612aa4dc19a18 == NULL && $i6b496fee24729ce6f7683ba88d5a87d6130049b5 == NULL) {
         return self::POST_ERROR;
     }
     if (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddCustomer"]) || isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddCustomer_x"])) {
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = self::TYPE_CUSTOMER;
         $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = self::ACTION_ADD;
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
         $this->vfb4fc7683b8a345aa04bae018e72487978470e18 = $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getCountryPriceList($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb);
         if ($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
             $this->_errors = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getErrors());
             return self::POST_ERROR;
         }
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddAdmin"]) || isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddAdmin_x"])) {
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = self::TYPE_ADMIN;
         $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = self::ACTION_ADD;
         $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
         $this->vfb4fc7683b8a345aa04bae018e72487978470e18 = $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getCountryPriceList($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb);
         if ($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
             $this->_errors = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getErrors());
             return self::POST_ERROR;
         }
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["addTextSender"])) {
         $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = $this->escapePostVariables("type");
         $this->vff3ebb3dc09765074cbc44bf85648fbb313741d9 = $this->escapePostVariables("area");
         $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = self::ACTION_ADD_TEXT_SENDER;
         $ic6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_routes_alternative WHERE area = '" . $this->escape($this->vff3ebb3dc09765074cbc44bf85648fbb313741d9) . "' AND type = '" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "' ORDER BY shop_id");
         if ($ic6e936002fe51b97bc1b95f337c09606ceb011de->num_rows) {
             foreach ($ic6e936002fe51b97bc1b95f337c09606ceb011de->rows as $i43ef5aef4168652439ef5de195405ced9f0f7952) {
                 $this->v22eb281d4163efee5d460d03c21bc400976e30d6[$i43ef5aef4168652439ef5de195405ced9f0f7952["shop_id"]] = $i43ef5aef4168652439ef5de195405ced9f0f7952["textsender"];
             }
         }
         $ic6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT senderID FROM " . DB_PREFIX . "sp_routes WHERE area = '" . $this->escape($this->vff3ebb3dc09765074cbc44bf85648fbb313741d9) . "' AND type = '" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "' ");
         if ($ic6e936002fe51b97bc1b95f337c09606ceb011de->num_rows) {
             $this->v7710d8c13dc8f5fb4a05e45a055744e25fdf5fae = $ic6e936002fe51b97bc1b95f337c09606ceb011de->row["senderID"];
         }
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18['submitAddSenderSave'])) {
         $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = $this->escapePostVariables("type");
         $this->vff3ebb3dc09765074cbc44bf85648fbb313741d9 = $this->escapePostVariables("area");
         $ic6e936002fe51b97bc1b95f337c09606ceb011de = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_routes_alternative WHERE area = '" . $this->escape($this->vff3ebb3dc09765074cbc44bf85648fbb313741d9) . "' AND type = '" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "' ORDER BY shop_id");
         if ($ic6e936002fe51b97bc1b95f337c09606ceb011de->num_rows) {
             foreach ($ic6e936002fe51b97bc1b95f337c09606ceb011de->rows as $i43ef5aef4168652439ef5de195405ced9f0f7952) {
                 $this->v22eb281d4163efee5d460d03c21bc400976e30d6[$i43ef5aef4168652439ef5de195405ced9f0f7952["shop_id"]] = $i43ef5aef4168652439ef5de195405ced9f0f7952["textsender"];
             }
         }
         unset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddSenderSave"]);
         unset($icddcd508600972f2dab78cd14f7612aa4dc19a18["area"]);
         unset($icddcd508600972f2dab78cd14f7612aa4dc19a18["type"]);
         foreach ($icddcd508600972f2dab78cd14f7612aa4dc19a18 as $i7baa31be52215025da340cfec29600d8d2b327c4 => $i155692153d303819c686ffc9239bf6b5e4dac9af) {
             if (strlen(trim($i155692153d303819c686ffc9239bf6b5e4dac9af) > 0)) {
                 if (strlen($i155692153d303819c686ffc9239bf6b5e4dac9af) > 11 || strlen($i155692153d303819c686ffc9239bf6b5e4dac9af) < 3) {
                     $this->_errors[] = v_smswizard_filltextsid2;
                     return self::POST_ERROR;
                 }
             }
         }
         foreach ($icddcd508600972f2dab78cd14f7612aa4dc19a18 as $i7baa31be52215025da340cfec29600d8d2b327c4 => $i155692153d303819c686ffc9239bf6b5e4dac9af) {
             if (isset($this->v22eb281d4163efee5d460d03c21bc400976e30d6[$i7baa31be52215025da340cfec29600d8d2b327c4]) && strlen(trim($i155692153d303819c686ffc9239bf6b5e4dac9af)) == 0) {
                 $this->Execute("DELETE FROM `" . DB_PREFIX . "sp_routes_alternative` WHERE `area`='" . $this->escape($this->vff3ebb3dc09765074cbc44bf85648fbb313741d9) . "' AND `shop_id`='" . $this->escape($i7baa31be52215025da340cfec29600d8d2b327c4) . "' AND `type`='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "'");
             } elseif (isset($this->v22eb281d4163efee5d460d03c21bc400976e30d6[$i7baa31be52215025da340cfec29600d8d2b327c4])) {
                 $this->Execute("UPDATE `" . DB_PREFIX . "sp_routes_alternative` SET `textsender`='" . $this->escape($i155692153d303819c686ffc9239bf6b5e4dac9af) . "' WHERE (`area`='" . $this->escape($this->vff3ebb3dc09765074cbc44bf85648fbb313741d9) . "' AND `shop_id`='" . $this->escape($i7baa31be52215025da340cfec29600d8d2b327c4) . "' AND `type`='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "')");
             } else {
                 $this->Execute("INSERT INTO `" . DB_PREFIX . "sp_routes_alternative` (`area`, `shop_id`, `type`, `textsender`) VALUES ('" . $this->escape($this->vff3ebb3dc09765074cbc44bf85648fbb313741d9) . "', '" . $this->escape($i7baa31be52215025da340cfec29600d8d2b327c4) . "', '" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "', '" . $this->escape($i155692153d303819c686ffc9239bf6b5e4dac9af) . "')");
             }
         }
         return self::POST_OK;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18['submitDeleteRouteCustomer_x']) || isset($icddcd508600972f2dab78cd14f7612aa4dc19a18['submitDeleteRouteAdmin_x'])) {
         if (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18['submitDeleteRouteCustomer_x'])) {
             $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = self::TYPE_CUSTOMER;
         } else {
             $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = self::TYPE_ADMIN;
         }
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . " and type='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "'");
         $this->displayConfirmation(SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb] . v_smswizard_deleted);
         return self::POST_OK;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18["submitAddRoute"])) {
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = $this->escapePostVariables("type");
         $this->vfb4fc7683b8a345aa04bae018e72487978470e18 = $this->escapePostVariables("info");
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = explode(";", $this->escapePostVariables("isms"));
         $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = $this->escapePostVariables("action");
         if (!(count($this->v13eb3507bfa321384575c03ba80ea011ee4d3321) > 1)) {
             $this->f135ed8c089695afb151f86c39e694d5f2b3fb445($this->vfb4fc7683b8a345aa04bae018e72487978470e18);
             $this->_errors[] = v_smswizard_choosesender;
             return self::POST_ERROR;
         }
         if ($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE] == self::SENDER_SYSTEM || $this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE] == self::SENDER_SIMHOSTING) {
             $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area='" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . "' AND type='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "'");
             $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . "','" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::ISMS]) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE]) . "','','" . $this->escape($this->vfb4fc7683b8a345aa04bae018e72487978470e18) . "','" . $this->escape(SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb]) . "')");
             $this->displayConfirmation(SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb] . v_smswizard_countrysaved);
             $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = null;
             $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = null;
             $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = null;
             return self::POST_OK;
         } elseif ($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE] == self::SENDER_MYNUMBER) {
             $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = self::ACTION_MYNUMBER;
             return self::POST_ERROR;
         } elseif ($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE] == self::SENDER_TEXT) {
             $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = self::ACTION_TEXT;
             return self::POST_ERROR;
         }
         return self::POST_ERROR;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18['submitAddTextSenderID'])) {
         $this->v7710d8c13dc8f5fb4a05e45a055744e25fdf5fae = $this->escapePostVariables("textsenderID");
         $this->v4c8c306b4e96e300f3e870c435893b7e9c33c5f5 = $this->escapePostVariables("newtextsenderID");
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = $this->escapePostVariables("type");
         $this->vfb4fc7683b8a345aa04bae018e72487978470e18 = $this->escapePostVariables("info");
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = explode(";", $this->escapePostVariables("isms"));
         $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = $this->escapePostVariables("action");
         if ($this->v7710d8c13dc8f5fb4a05e45a055744e25fdf5fae != -1) {
             $i7710d8c13dc8f5fb4a05e45a055744e25fdf5fae = $this->v7710d8c13dc8f5fb4a05e45a055744e25fdf5fae;
         } else {
             $i7710d8c13dc8f5fb4a05e45a055744e25fdf5fae = $this->v4c8c306b4e96e300f3e870c435893b7e9c33c5f5;
         }
         if (!strlen($i7710d8c13dc8f5fb4a05e45a055744e25fdf5fae) > 0) {
             $this->_errors[] = v_smswizard_filltextsid;
             return self::POST_ERROR;
         }
         if (strlen($i7710d8c13dc8f5fb4a05e45a055744e25fdf5fae) > 11 || strlen($i7710d8c13dc8f5fb4a05e45a055744e25fdf5fae) < 3) {
             $this->_errors[] = v_smswizard_filltextsid2;
             return self::POST_ERROR;
         }
         if (preg_match('/[^A-Za-z._]/', $this->v4c8c306b4e96e300f3e870c435893b7e9c33c5f5) && $this->v4c8c306b4e96e300f3e870c435893b7e9c33c5f5 == -1) {
             $this->_errors[] = v_smswizard_chars . "a-z A-Z _ .";
             return self::POST_ERROR;
         }
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area='" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . "' AND type='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "'");
         $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . "','" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::ISMS]) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE]) . "','" . $this->escape($i7710d8c13dc8f5fb4a05e45a055744e25fdf5fae) . "','" . $this->escape($this->vfb4fc7683b8a345aa04bae018e72487978470e18) . "','" . $this->escape(SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb]) . "')");
         $this->displayConfirmation(v_smswizard_textsidfor . SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb] . v_smswizard_wassaved);
         $this->Execute("REPLACE INTO " . DB_PREFIX . "sp_textsenderIDs VALUES ('" . $this->escape($i7710d8c13dc8f5fb4a05e45a055744e25fdf5fae) . "')");
         $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = null;
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = null;
         $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = null;
         return self::POST_OK;
     } elseif (isset($icddcd508600972f2dab78cd14f7612aa4dc19a18['submitAddOwnNumberSenderID'])) {
         $this->v27c847d6bec864e327cd4686358e7c1e1de59e9d = $this->escapePostVariables("ownsenderID");
         $this->va8ae96136aabf34f35206c26b90f1af9088e8044 = $this->escapePostVariables("newownsenderID");
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v7f261894a2f47535041bff3d2f42c3969e819d98 = $this->escapePostVariables("type");
         $this->vfb4fc7683b8a345aa04bae018e72487978470e18 = $this->escapePostVariables("info");
         $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = $this->escapePostVariables("country");
         $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = explode(";", $this->escapePostVariables("isms"));
         $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = $this->escapePostVariables("action");
         $this->v31f6359ed56e16253e2214540e9a74aa67a79f38 = $this->escapePostVariables("validateCode");
         $this->ve5aa63528fa84652be7d86b274757e6ca3554317 = $this->escapePostVariables("sendedCode");
         if ($this->v27c847d6bec864e327cd4686358e7c1e1de59e9d != -1) {
             $i27c847d6bec864e327cd4686358e7c1e1de59e9d = $this->v27c847d6bec864e327cd4686358e7c1e1de59e9d;
         } else {
             $i27c847d6bec864e327cd4686358e7c1e1de59e9d = $this->va8ae96136aabf34f35206c26b90f1af9088e8044;
         }
         if (!strlen($i27c847d6bec864e327cd4686358e7c1e1de59e9d) > 0) {
             $this->_errors[] = v_smswizard_fillsid;
             return self::POST_ERROR;
         }
         if (!PhoneNumber::isPhoneNumber($i27c847d6bec864e327cd4686358e7c1e1de59e9d) && $this->v27c847d6bec864e327cd4686358e7c1e1de59e9d == -1) {
             $this->_errors[] = v_smswizard_mustbenumber;
             return self::POST_ERROR;
         }
         if ($this->ve5aa63528fa84652be7d86b274757e6ca3554317 && !preg_match("/^([0-9])*\$/", $this->v31f6359ed56e16253e2214540e9a74aa67a79f38, $i978a1b814f9d68d5a56042c5dc05da065d996dd4)) {
             $this->_errors[] = v_smswizard_confirmcode;
             return self::POST_ERROR;
         } elseif ($this->ve5aa63528fa84652be7d86b274757e6ca3554317 && $this->v7710d8c13dc8f5fb4a05e45a055744e25fdf5fae == -1) {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->validatePhoneNumberCode($this->v31f6359ed56e16253e2214540e9a74aa67a79f38, $i27c847d6bec864e327cd4686358e7c1e1de59e9d);
             if ($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
                 $this->_errors = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getErrors());
                 return self::POST_ERROR;
             } else {
                 $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . " AND type='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "'");
                 $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . "','" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::ISMS]) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE]) . "','" . $this->escape($i27c847d6bec864e327cd4686358e7c1e1de59e9d) . "','" . $this->escape($this->vfb4fc7683b8a345aa04bae018e72487978470e18) . "','" . $this->escape(SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb]) . "')");
                 $this->_okMsg[] = v_smswizard_ownsidfor . SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb] . v_smswizard_wassaved;
                 $this->Execute("INSERT IGNORE INTO " . DB_PREFIX . "sp_ownnumbersenderIDs VALUES ('" . $this->escape($i27c847d6bec864e327cd4686358e7c1e1de59e9d) . "')");
                 $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = null;
                 $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = null;
                 $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = null;
                 return self::POST_OK;
             }
         } elseif ($this->v7710d8c13dc8f5fb4a05e45a055744e25fdf5fae == -1) {
             $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a = new SmsModel($this->getDb());
             $iec6a92397a1c72d4ecd169de1876bec3be0b98f3 = $i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->validatePhoneNumber($i27c847d6bec864e327cd4686358e7c1e1de59e9d, $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb, $this->v7f261894a2f47535041bff3d2f42c3969e819d98);
             if ($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->isError()) {
                 if ($iec6a92397a1c72d4ecd169de1876bec3be0b98f3) {
                     $this->ve5aa63528fa84652be7d86b274757e6ca3554317 = true;
                 }
                 $this->_okMsg = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getConfirm());
                 $this->_errors = array_unique($i4367816f1ae76ddc44b3953c9ce6460e181a0a3a->getErrors());
                 return self::POST_ERROR;
             } else {
                 $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . " AND type='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "'");
                 $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . "','" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::ISMS]) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE]) . "','" . $this->escape($i27c847d6bec864e327cd4686358e7c1e1de59e9d) . "','" . $this->escape($this->vfb4fc7683b8a345aa04bae018e72487978470e18) . "','" . $this->escape(SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb]) . "')");
                 $this->_okMsg[] = v_smswizard_ownsidfor . SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb] . v_smswizard_wassaved;
                 $this->Execute("INSERT IGNORE INTO " . DB_PREFIX . "sp_ownnumbersenderIDs VALUES ('" . $this->escape($i27c847d6bec864e327cd4686358e7c1e1de59e9d) . "')");
                 $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = null;
                 $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = null;
                 $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = null;
                 return self::POST_OK;
             }
         } else {
             $this->Execute("DELETE FROM " . DB_PREFIX . "sp_routes WHERE area=" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . " AND type='" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "'");
             $this->Execute("INSERT INTO " . DB_PREFIX . "sp_routes VALUES ('" . $this->escape($this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb) . "','" . $this->escape($this->v7f261894a2f47535041bff3d2f42c3969e819d98) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::ISMS]) . "','" . $this->escape($this->v13eb3507bfa321384575c03ba80ea011ee4d3321[self::SENDERTYPE]) . "','" . $this->escape($i27c847d6bec864e327cd4686358e7c1e1de59e9d) . "','" . $this->escape($this->vfb4fc7683b8a345aa04bae018e72487978470e18) . "','" . $this->escape(SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb]) . "')");
             $this->displayConfirmation(v_smswizard_ownsidfor . SmsVariables::$countries[$this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb] . v_smswizard_wassaved);
             $this->v13eb3507bfa321384575c03ba80ea011ee4d3321 = null;
             $this->vab6a314decb74f5c532ecb082cfeb1655b9e98bb = null;
             $this->v10362d0b58d010e644ea05e4195fc6f67d72e348 = null;
             return self::POST_OK;
         }
     }
     return self::POST_ERROR;
 }
Exemplo n.º 8
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.º 9
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.º 10
0
 public function postProcess($if7ac7ffb0e11bffa95681698138e923b4fd51990 = NULL, $i120dfeb2f4db76e8e52ed01ad8e678e2b9fa3bb9 = NULL, $i4df8c509b6936a0640c1594ca9b38a0a55a9562f = NULL)
 {
     $demo = false;
     if (($demo || defined("SMS_DEMO")) && $if7ac7ffb0e11bffa95681698138e923b4fd51990 != NULL) {
         $this->_errors[] = "Disabled in demo.";
         return self::POST_OK;
     }
     if ($i4df8c509b6936a0640c1594ca9b38a0a55a9562f == NULL) {
         return self::POST_ERROR;
     }
     if (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAddAdmin"])) {
         $i32f990de0fa2e05c03d31bf5021f8ede63166d03 = $this->escapePostVariables("adminnew");
         $i6de5513d7bf66573dedf3f2f853ce5457a8f957f = $this->escapePostVariables("numbernew");
         if (!strlen($i32f990de0fa2e05c03d31bf5021f8ede63166d03)) {
             $this->_errors[] = v_adminsmsprofile_invalidname;
             return self::POST_ERROR;
         } elseif (!PhoneNumber::isPhoneNumber($i6de5513d7bf66573dedf3f2f853ce5457a8f957f) || $i6de5513d7bf66573dedf3f2f853ce5457a8f957f == null) {
             $this->_errors[] = v_adminsmsprofile_invalidnumber;
             return self::POST_ERROR;
         } else {
             $this->Execute("INSERT INTO " . DB_PREFIX . "sp_admins VALUES (null,'" . $this->escape($i32f990de0fa2e05c03d31bf5021f8ede63166d03) . "','" . $this->escape($i6de5513d7bf66573dedf3f2f853ce5457a8f957f) . "')");
             $this->displayConfirmation(v_adminsmsprofile_admincreated);
             return self::POST_OK;
         }
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAddSmsAccount"])) {
         $i48c34094f4edd0277b41e94dc4f0f33be5a00577 = $this->escapePostVariables("agree");
         $i139fa9617e9d70e3d55f87d6ad4113c40da3102d = $this->escapePostVariables("email");
         $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc = $this->escapePostVariables("companyname");
         $i94a47481735fcb1d4d39399453984453fa0ec578 = $this->escapePostVariables("addressstreet");
         $i2950dcb306aa6a84739ae117f72d37fbfc177af7 = $this->escapePostVariables("addresscity");
         $if807cf403609c75a25d2c8b19d9a8e1b0f3146e4 = $this->escapePostVariables("addresszip");
         $i5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country0");
         $ibcec5f7d7295ee797901b9c5fe2758f8a074ba4b = $this->escapePostVariables("companyid");
         $i067d9e62ac114d017597fbfc5a16bdfd07fb847b = $this->escapePostVariables("companyvat");
         $i909875e864574ac324b2cc5a0493b8e53c5f2ed4 = $this->escapePostVariables("refererid");
         $icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7 = $this->escapePostVariables("kosoba");
         $i228783d167ecdf2325f0dabfe191e58f5099bde8 = $this->escapePostVariables("kprijmeni");
         $i94a47481735fcb1d4d39399453984453fa0ec578 = html_entity_decode($i94a47481735fcb1d4d39399453984453fa0ec578, ENT_QUOTES, 'UTF-8');
         $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc = html_entity_decode($ie9599f6e53cc27b46699f94805a73f5eccf9f0dc, ENT_QUOTES, 'UTF-8');
         $i2950dcb306aa6a84739ae117f72d37fbfc177af7 = html_entity_decode($i2950dcb306aa6a84739ae117f72d37fbfc177af7, ENT_QUOTES, 'UTF-8');
         $icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7 = html_entity_decode($icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7, ENT_QUOTES, 'UTF-8');
         $i228783d167ecdf2325f0dabfe191e58f5099bde8 = html_entity_decode($i228783d167ecdf2325f0dabfe191e58f5099bde8, ENT_QUOTES, 'UTF-8');
         if (defined("v_refererID")) {
             $i909875e864574ac324b2cc5a0493b8e53c5f2ed4 = v_refererID;
         }
         if ($if7ac7ffb0e11bffa95681698138e923b4fd51990["type_acc"] == "Person") {
             $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc = "";
             $ibcec5f7d7295ee797901b9c5fe2758f8a074ba4b = "";
             $i067d9e62ac114d017597fbfc5a16bdfd07fb847b = "";
         }
         if ($if7ac7ffb0e11bffa95681698138e923b4fd51990["type_acc"] == "Bussiness" && strlen($ie9599f6e53cc27b46699f94805a73f5eccf9f0dc) < 3) {
             $this->_errors[] = v_registration_company_name;
             return self::POST_ERROR;
         }
         if ($i48c34094f4edd0277b41e94dc4f0f33be5a00577 != 1) {
             $this->_errors[] = v_adminsmsprofile_agreetext;
             return self::POST_ERROR;
         }
         if (!self::isEmail($i139fa9617e9d70e3d55f87d6ad4113c40da3102d) || !trim($i139fa9617e9d70e3d55f87d6ad4113c40da3102d)) {
             $this->_errors[] = v_adminsmsprofile_invalidemail2;
             return self::POST_ERROR;
         } else {
             $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
             $i9ec854a302fbdb72d043506b55d5bf395184517b->registerSmsAccount($i139fa9617e9d70e3d55f87d6ad4113c40da3102d, $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc, $i94a47481735fcb1d4d39399453984453fa0ec578, $i2950dcb306aa6a84739ae117f72d37fbfc177af7, $if807cf403609c75a25d2c8b19d9a8e1b0f3146e4, $i5a4616ba4ac4a7f21e69ba2afe5e994ae9927078, $ibcec5f7d7295ee797901b9c5fe2758f8a074ba4b, $i067d9e62ac114d017597fbfc5a16bdfd07fb847b, $i909875e864574ac324b2cc5a0493b8e53c5f2ed4, $icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7, $i228783d167ecdf2325f0dabfe191e58f5099bde8);
             $i8095598e75aa0d17622b51f9b7beb10357fca949 = new UserProfile($this->getDb());
             $i9ec854a302fbdb72d043506b55d5bf395184517b->editOtherSettings(urlencode(DELIVERY_URL), 0, "", "1", 0, 0, 0, $i8095598e75aa0d17622b51f9b7beb10357fca949->getUsername(), $i8095598e75aa0d17622b51f9b7beb10357fca949->getPassword());
             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["submitLogin"])) {
         $i98414cde3d36661d1db1db7d00d0775fb8bc70f4 = $this->escapePostVariables("username");
         $i3ff2121cdd24d8a29bd493b1737bdc8f0536f2ee = $this->escapePostVariables("password");
         if (!strlen($i98414cde3d36661d1db1db7d00d0775fb8bc70f4) > 0 || !strlen($i3ff2121cdd24d8a29bd493b1737bdc8f0536f2ee) > 0) {
             $this->_errors[] = v_adminsmsprofile_filluser;
             return self::POST_ERROR;
         } else {
             $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
             $i9ec854a302fbdb72d043506b55d5bf395184517b->loginAccount($i98414cde3d36661d1db1db7d00d0775fb8bc70f4, $i3ff2121cdd24d8a29bd493b1737bdc8f0536f2ee);
             $i9ec854a302fbdb72d043506b55d5bf395184517b->editOtherSettings(urlencode(DELIVERY_URL), 0, "", "1", 0, 0, 0, $i98414cde3d36661d1db1db7d00d0775fb8bc70f4, $i3ff2121cdd24d8a29bd493b1737bdc8f0536f2ee);
             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["submitEditAdmin_x"]) || isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitEditAdmin"])) {
         $this->edit_id = $this->escapePostVariables("ID");
         $this->edit_admins = true;
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitAdminSettings1"])) {
         $this->deleteDb = $this->escapePostVariables("deletedb");
         $this->simulate = $this->escapePostVariables("simulate");
         $this->deliveryemail = $this->escapePostVariables("deliveryemail");
         $this->pocetkredit = $this->escapePostVariables("pocetkredit");
         $this->URLreports = $this->escapePostVariables("URLreports");
         $this->pref_billing = $this->escapePostVariables("pref_billing");
         if (strlen($this->deliveryemail) > 0 && !self::isEmail($this->deliveryemail)) {
             $this->_errors[] = v_adminsmsprofile_invalidemail;
             return self::POST_ERROR;
         }
         $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
         if ($this->URLreports == 1) {
             $icae1003a7b78317ecd106d559490d2ed7842f01917d5d79435864186bbd31ed71a5dfa74d68c67d = urlencode(DELIVERY_URL);
         } else {
             $icae1003a7b78317ecd106d559490d2ed7842f01917d5d79435864186bbd31ed71a5dfa74d68c67d = "";
         }
         $i9ec854a302fbdb72d043506b55d5bf395184517b->editOtherSettings($icae1003a7b78317ecd106d559490d2ed7842f01917d5d79435864186bbd31ed71a5dfa74d68c67d, $this->pocetkredit, $this->deliveryemail, $this->URLreports, $this->deleteDb, $this->simulate, $this->pref_billing);
         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["submitEditAdmin2"])) {
         $icae1003a7b78317ecd106d559490d2ed7842f019 = $this->escapePostVariables("edit");
         $i32f990de0fa2e05c03d31bf5021f8ede63166d03 = $this->escapePostVariables("adminnew");
         $i32f990de0fa2e05c03d31bf5021f8ede63166d03 = html_entity_decode($i32f990de0fa2e05c03d31bf5021f8ede63166d03, ENT_QUOTES, 'UTF-8');
         $i6de5513d7bf66573dedf3f2f853ce5457a8f957f = $this->escapePostVariables("numbernew");
         if (!$i32f990de0fa2e05c03d31bf5021f8ede63166d03) {
             $this->_errors[] = v_adminsmsprofile_invalidname;
             $this->edit_admins = true;
             $this->edit_id = $icae1003a7b78317ecd106d559490d2ed7842f019;
             return self::POST_ERROR;
         } elseif (!PhoneNumber::isPhoneNumber($i6de5513d7bf66573dedf3f2f853ce5457a8f957f) || !$i6de5513d7bf66573dedf3f2f853ce5457a8f957f) {
             $this->_errors[] = v_adminsmsprofile_invalidnumber;
             $this->edit_admins = true;
             $this->edit_id = $icae1003a7b78317ecd106d559490d2ed7842f019;
             return self::POST_ERROR;
         } else {
             $this->Execute("UPDATE " . DB_PREFIX . "sp_admins SET name='" . $this->escape($i32f990de0fa2e05c03d31bf5021f8ede63166d03) . "', number='" . $this->escape($i6de5513d7bf66573dedf3f2f853ce5457a8f957f) . "' WHERE ID=" . $this->escape($icae1003a7b78317ecd106d559490d2ed7842f019));
             $this->displayConfirmation(v_adminsmsprofile_adminchanged);
             $this->edit_admins = false;
             $this->edit_id = 0;
             return self::POST_OK;
         }
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitDeleteAdmin_x"]) || isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["submitDeleteAdmin"])) {
         $icae1003a7b78317ecd106d559490d2ed7842f019 = $this->escapePostVariables("ID");
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_admins WHERE ID='" . $this->escape($icae1003a7b78317ecd106d559490d2ed7842f019) . "'");
         $this->Execute("DELETE FROM " . DB_PREFIX . "sp_hooks_admins_multi WHERE adminIDs LIKE '" . $this->escape($icae1003a7b78317ecd106d559490d2ed7842f019) . "'");
         $i83d1339527a9dc91b02fa99420eb13b0cd47adfe = $this->Execute("SELECT * FROM " . DB_PREFIX . "sp_hooks_admins_multi WHERE adminIDs like '" . $this->escape($icae1003a7b78317ecd106d559490d2ed7842f019) . ";%' OR adminIDs LIKE '%;" . $this->escape($icae1003a7b78317ecd106d559490d2ed7842f019) . ";%' OR adminIDs LIKE '%;" . $this->escape($icae1003a7b78317ecd106d559490d2ed7842f019) . "'");
         if ($i83d1339527a9dc91b02fa99420eb13b0cd47adfe->num_rows) {
             foreach ($i83d1339527a9dc91b02fa99420eb13b0cd47adfe->rows as $i2e93e61d67c274d891066238c74ba6322d527b6d) {
                 $i18b46d03fcb664397e59c34a4cb7b424d837711f = explode(";", $i2e93e61d67c274d891066238c74ba6322d527b6d['adminIDs']);
                 array_splice($i18b46d03fcb664397e59c34a4cb7b424d837711f, array_search($icae1003a7b78317ecd106d559490d2ed7842f019, $i18b46d03fcb664397e59c34a4cb7b424d837711f), 1);
                 $this->Execute("UPDATE " . DB_PREFIX . "sp_hooks_admins_multi SET adminIDs='" . implode(";", $i18b46d03fcb664397e59c34a4cb7b424d837711f) . "' WHERE name='" . $this->escape($i2e93e61d67c274d891066238c74ba6322d527b6d['name']) . "' AND status='" . $this->escape($i2e93e61d67c274d891066238c74ba6322d527b6d['status']) . "'");
             }
         }
         $this->displayConfirmation(v_adminsmsprofile_admindeleted);
         return self::POST_OK;
     } elseif (isset($if7ac7ffb0e11bffa95681698138e923b4fd51990["EditSmsAccount"])) {
         $i139fa9617e9d70e3d55f87d6ad4113c40da3102d = $this->escapePostVariables("email");
         $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc = $this->escapePostVariables("companyname");
         $i94a47481735fcb1d4d39399453984453fa0ec578 = $this->escapePostVariables("addressstreet");
         $i2950dcb306aa6a84739ae117f72d37fbfc177af7 = $this->escapePostVariables("addresscity");
         $if807cf403609c75a25d2c8b19d9a8e1b0f3146e4 = $this->escapePostVariables("addresszip");
         $i5a4616ba4ac4a7f21e69ba2afe5e994ae9927078 = $this->escapePostVariables("country0");
         $ibcec5f7d7295ee797901b9c5fe2758f8a074ba4b = $this->escapePostVariables("companyid");
         $i067d9e62ac114d017597fbfc5a16bdfd07fb847b = $this->escapePostVariables("companyvat");
         $icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7 = $this->escapePostVariables("kosoba");
         $i228783d167ecdf2325f0dabfe191e58f5099bde8 = $this->escapePostVariables("kprijmeni");
         $i94a47481735fcb1d4d39399453984453fa0ec578 = html_entity_decode($i94a47481735fcb1d4d39399453984453fa0ec578, ENT_QUOTES, 'UTF-8');
         $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc = html_entity_decode($ie9599f6e53cc27b46699f94805a73f5eccf9f0dc, ENT_QUOTES, 'UTF-8');
         $i2950dcb306aa6a84739ae117f72d37fbfc177af7 = html_entity_decode($i2950dcb306aa6a84739ae117f72d37fbfc177af7, ENT_QUOTES, 'UTF-8');
         $icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7 = html_entity_decode($icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7, ENT_QUOTES, 'UTF-8');
         $i228783d167ecdf2325f0dabfe191e58f5099bde8 = html_entity_decode($i228783d167ecdf2325f0dabfe191e58f5099bde8, ENT_QUOTES, 'UTF-8');
         if ($if7ac7ffb0e11bffa95681698138e923b4fd51990["type_acc"] == "Person") {
             $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc = "";
             $ibcec5f7d7295ee797901b9c5fe2758f8a074ba4b = "";
             $i067d9e62ac114d017597fbfc5a16bdfd07fb847b = "";
         }
         if ($if7ac7ffb0e11bffa95681698138e923b4fd51990["type_acc"] == "Bussiness" && strlen($ie9599f6e53cc27b46699f94805a73f5eccf9f0dc) < 3) {
             $this->_errors[] = v_registration_company_name;
             return self::POST_ERROR;
         }
         if (!self::isEmail($i139fa9617e9d70e3d55f87d6ad4113c40da3102d)) {
             $this->_errors[] = v_adminsmsprofile_invalidemail2;
             return self::POST_ERROR;
         } else {
             $i9ec854a302fbdb72d043506b55d5bf395184517b = new SmsModel($this->getDb());
             $i9ec854a302fbdb72d043506b55d5bf395184517b->editAccount($i139fa9617e9d70e3d55f87d6ad4113c40da3102d, $ie9599f6e53cc27b46699f94805a73f5eccf9f0dc, $i94a47481735fcb1d4d39399453984453fa0ec578, $i2950dcb306aa6a84739ae117f72d37fbfc177af7, $if807cf403609c75a25d2c8b19d9a8e1b0f3146e4, $i5a4616ba4ac4a7f21e69ba2afe5e994ae9927078, $ibcec5f7d7295ee797901b9c5fe2758f8a074ba4b, $i067d9e62ac114d017597fbfc5a16bdfd07fb847b, $icae1003a7b78317ecd106d559490d2ed7842f019913b8360e9b2834ed2fc65e1fbcb2fdd72ce7e7, $i228783d167ecdf2325f0dabfe191e58f5099bde8);
             if ($i9ec854a302fbdb72d043506b55d5bf395184517b->isError()) {
                 $this->_errors = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getErrors());
                 return self::POST_ERROR;
             } else {
                 $this->_okMsg = array_unique($i9ec854a302fbdb72d043506b55d5bf395184517b->getConfirm());
                 return self::POST_OK;
             }
         }
     }
     return self::POST_ERROR;
 }