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; }
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; }