Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- (c) ETICSOFT E-commerce Solutions (0 242) 241 59 85
- ########################################################################
- ##### THIS SUB-SOFTWARE (MODULE) IS NOT OPEN SOURCE. #####
- ##### DISTRIBUTION AND SOURCE CODE RIGHTS RESERVED. #####
- ##### BU EKLENTİ YAZILIMI (MODÜL) AÇIK KAYNAKLI DEĞİLDİR. #####
- ##### DAGITIM VE KODLARDA DEGISIKLIK HAKKI SAKLIDIR. #####
- #########################################################################
- (c) ETICSOFT E-ticaret Teknolojileri 2004 - 2012
- Türk bankaları için Sanal pos olarak ödeme alir.
- prestashopsanalpos.com (Prestashop Sanal Pos Projesi)
- Daha Fazla bilgi almak içi prestashopsanalpos.com veya bilgi@eticsoft.com
- (0 242) 241 59 85
- (c) ETICSOFT E-commerce Solutions 2004 - 2012
- Allows payment via Turkish Banks
- prestashopsanalpos.com Prestashop Development
- For more info and support prestashopsanalpos.com
- +90.242 241 59 85
- #########################################################################
- */
- ${"GLOBALS"}["gqbqsjdgan"] = "sonk_ip";
- ${"GLOBALS"}["vcdsxvlfpfd"] = "data";
- ${"GLOBALS"}["bnkigao"] = "isl";
- ${"GLOBALS"}["mdcusegt"] = "islem";
- ${"GLOBALS"}["lgcrcmf"] = "config";
- ${"GLOBALS"}["eahowrqgsh"] = "parity";
- ${"GLOBALS"}["sdukpolukp"] = "c_mail";
- ${"GLOBALS"}["rtxfhrl"] = "c_ip";
- ${"GLOBALS"}["xcwxvekrvlr"] = "total";
- ${"GLOBALS"}["boprpkbymwv"] = "gad";
- ${"GLOBALS"}["crvidjfqfzu"] = "current";
- ${"GLOBALS"}["bekmwywli"] = "sonuc";
- ${"GLOBALS"}["lrpywqupg"] = "Encrypted_Byte";
- ${"GLOBALS"}["qjlypdsf"] = "pno";
- ${"GLOBALS"}["mtyyqccyszp"] = "qt";
- ${"GLOBALS"}["qdooxkdwh"] = "ia";
- ${"GLOBALS"}["gjtkovbrue"] = "query2";
- ${"GLOBALS"}["mansilqt"] = "Len_Str_Message";
- ${"GLOBALS"}["twkopwpg"] = "ts_sayisi";
- ${"GLOBALS"}["byfshmropfzr"] = "c_gos";
- ${"GLOBALS"}["uhuypa"] = "mid";
- ${"GLOBALS"}["ccedbgbet"] = "state";
- ${"GLOBALS"}["yxhlwsg"] = "cardexpDate_mo";
- ${"GLOBALS"}["brboynvsctj"] = "db";
- ${"GLOBALS"}["zkqeolnkqvn"] = "Str_Message";
- ${"GLOBALS"}["chhtgovpfmfi"] = "tot_p";
- ${"GLOBALS"}["djobchc"] = "currencies_used";
- ${"GLOBALS"}["pskgxlekeu"] = "banka";
- ${"GLOBALS"}["wvkxmxryyvgd"] = "return";
- ${"GLOBALS"}["nitqgwprpd"] = "Key_To_Use";
- ${"GLOBALS"}["efgvsttu"] = "cardName";
- ${"GLOBALS"}["rymxguydevx"] = "cardlength";
- ${"GLOBALS"}["dvjiopo"] = "result";
- ${"GLOBALS"}["roamfgvkmq"] = "bankaid";
- ${"GLOBALS"}["wrqhkhicu"] = "sn_errmsg";
- ${"GLOBALS"}["apwzfgvcqaq"] = "tutar";
- ${"GLOBALS"}["yermkls"] = "v";
- ${"GLOBALS"}["xpqdipbrucb"] = "id_order";
- ${"GLOBALS"}["ukksemxxl"] = "i";
- ${"GLOBALS"}["tqvpjlysozr"] = "errNumber";
- ${"GLOBALS"}["fncbdzq"] = "act";
- ${"GLOBALS"}["kpvjfaujsvs"] = "currencies";
- ${"GLOBALS"}["vddilylf"] = "data_string";
- ${"GLOBALS"}["xbpfxupmf"] = "authorized_currencies";
- ${"GLOBALS"}["xmocvxtsvt"] = "d";
- ${"GLOBALS"}["bsnrjvqjrvq"] = "sum";
- ${"GLOBALS"}["dgvmijnnh"] = "ii";
- ${"GLOBALS"}["isdydmhzffl"] = "modNoFunction";
- ${"GLOBALS"}["lcvbefre"] = "sanalpos_do_id";
- ${"GLOBALS"}["wqbshrxaxdby"] = "kme";
- ${"GLOBALS"}["bmlahzsnc"] = "c_tsh";
- ${"GLOBALS"}["xwothkvtd"] = "valid";
- ${"GLOBALS"}["srmmmmptjdt"] = "query";
- ${"GLOBALS"}["rgelcy"] = "bankai";
- ${"GLOBALS"}["upqsfjo"] = "Str_Encrypted_Message";
- ${"GLOBALS"}["srakcijbiw"] = "banka_sayisi";
- ${"GLOBALS"}["jilrjqgyhyy"] = "key";
- ${"GLOBALS"}["bskvvmlhvvdq"] = "sn_skt";
- ${"GLOBALS"}["camjvhvop"] = "order";
- ${"GLOBALS"}["hgrgbv"] = "kur";
- ${"GLOBALS"}["lycpafi"] = "errBanka";
- ${"GLOBALS"}["qusddlbccx"] = "staksit";
- ${"GLOBALS"}["wbseetvwxk"] = "cardnumber";
- ${"GLOBALS"}["cjghlun"] = "query3";
- ${"GLOBALS"}["bkrubmraovy"] = "url";
- ${"GLOBALS"}["vyrvfwccaljb"] = "Position";
- ${"GLOBALS"}["wujjlwturry"] = "t";
- ${"GLOBALS"}["smnrzvqlive"] = "cardCVC";
- ${"GLOBALS"}["hfvfkzfp"] = "toplam_cek";
- ${"GLOBALS"}["rikrbnsdetkv"] = "cardString";
- ${"GLOBALS"}["frndgvpf"] = "kmp";
- ${"GLOBALS"}["puovuqwtl"] = "q";
- ${"GLOBALS"}["allemj"] = "errName";
- ${"GLOBALS"}["ghwhvsyltgsn"] = "inf";
- ${"GLOBALS"}["vgfmjxuspcf"] = "taksit";
- ${"GLOBALS"}["guvhvg"] = "kmo";
- ${"GLOBALS"}["agoudtolkuv"] = "handle";
- ${"GLOBALS"}["jrjjvgavcn"] = "modUpdated";
- ${"GLOBALS"}["qxolfobo"] = "digit";
- ${"GLOBALS"}["ycnftwxfxtr"] = "errExpDate";
- ${"GLOBALS"}["kicgrwkrsh"] = "ban";
- ${"GLOBALS"}["gjzdjbcq"] = "currency";
- ${"GLOBALS"}["hvbzdti"] = "params";
- ${"GLOBALS"}["kgjubt"] = "cardexpDate_yr";
- ${"GLOBALS"}["obwnjnn"] = "cardNumber";
- ${"GLOBALS"}["espekkic"] = "tss";
- ${"GLOBALS"}["oeiqcif"] = "tid";
- ${"GLOBALS"}["djkncjf"] = "r";
- ${"GLOBALS"}["oungdpzjijup"] = "ch";
- ${"GLOBALS"}["viptwwjiqvq"] = "taksit_dizi";
- ${"GLOBALS"}["hritkqqomj"] = "errCVC";
- ${"GLOBALS"}["bybrlceky"] = "kma";
- ${"GLOBALS"}["euuzbvhugfj"] = "idb";
- ${"GLOBALS"}["iaaiyuxrdw"] = "query4";
- class SanalPos extends PaymentModule
- {
- private $_html = '';
- private $_postErrors = array();
- public $currencies, $bf, $path;
- public $requireCVC;
- function __construct()
- {
- $this->name = "sanalpos";
- $this->displayName = "Sanal Pos";
- if (_PS_VERSION_ < "1.4.0.0")
- $this->tab = "Payment";
- else
- $this->tab = "payments_gateways";
- $this->version = 4.70;
- $this->idOrderState = Configuration::get("SANAL_POS_IOS");
- $ieborhjp = "config";
- $this->curVersionFileURL = "http://www.iyonhost.com/app/sanalpos/check.php";
- $this->bf = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_);
- if (!Configuration::get("SANAL_POS_CUR"))
- $this->_makeCurrencies();
- ${${"GLOBALS"}["lgcrcmf"]} = Configuration::get("SANAL_POS_CUR");
- $this->currencies = isset(${${"GLOBALS"}["lgcrcmf"]}["SANAL_POS_CUR"]) ? ${$ieborhjp}["SANAL_POS_CUR"] : null;
- $this->requireCVC = Configuration::get("SANAL_POS_CVC_REQ");
- parent::__construct();
- $this->page = basename(__FILE__, ".php");
- $this->displayName = "Sanal Pos";
- $this->description = "Turk Bankalari Icin Kredi Karti Odemesi Alir";
- $this->path = $this->_path;
- $this->banks = array(
- "wrd" => array(
- "kod" => "wrd",
- "ad" => "Yapikredi Bankasi",
- "renk" => "650571"
- ),
- "axs" => array(
- "kod" => "axs",
- "ad" => "Akbank",
- "renk" => "F8910E"
- ),
- "cfi" => array(
- "kod" => "cfi",
- "ad" => "Finansbank",
- "renk" => "191991"
- ),
- "adv" => array(
- "kod" => "adv",
- "ad" => "HSBC",
- "renk" => "F04B04"
- ),
- "max" => array(
- "kod" => "max",
- "ad" => "Is Bankasi",
- "renk" => "E10C5C"
- ),
- "bas" => array(
- "kod" => "bas",
- "ad" => "Bank Asya",
- "renk" => "F8910E"
- ),
- "bns" => array(
- "kod" => "bns",
- "ad" => "Garanti Bankasi",
- "renk" => "5DA527"
- ),
- "hlk" => array(
- "kod" => "hlk",
- "ad" => "Halkbank",
- "renk" => "015596"
- ),
- "vak" => array(
- "kod" => "vak",
- "ad" => "Vakifbank",
- "renk" => "FDFD47"
- ),
- "ana" => array(
- "kod" => "ana",
- "ad" => "Anadolubank",
- "renk" => "000000"
- ),
- "dnz" => array(
- "kod" => "dnz",
- "ad" => "DenizBank",
- "renk" => "0D4E8F"
- ),
- "teb" => array(
- "kod" => "teb",
- "ad" => "T.E.B",
- "renk" => "00824E"
- ),
- "cti" => array(
- "kod" => "cti",
- "ad" => "CityBank",
- "renk" => "00824E"
- ),
- "kvt" => array(
- "kod" => "kvt",
- "ad" => "Kuveyt Turk",
- "renk" => "00824E"
- ),
- "for" => array(
- "kod" => "for",
- "ad" => "Fortis Bank",
- "renk" => "E01319"
- )
- );
- }
- function install()
- {
- if (parent::install()) {
- if (!$this->registerHook("payment") OR !$this->registerHook("payment") OR !$this->registerHook("paymentReturn") OR !$this->registerHook("invoice") OR !$this->registerHook("productTabContent") OR !$this->registerHook("productTab") OR !$this->registerHook("productActions") OR !$this->registerHook("productfooter")) {
- $this->_errors[] = "Error while hook";
- return false;
- }
- $iewwyyhkke = "query1";
- $this->_makeCurrencies();
- $this->_makeOrderState();
- Configuration::updateValue("SANAL_POS_DBK", "axs");
- Configuration::updateValue("SANAL_POS_IP", $_SERVER["SERVER_ADDR"]);
- Configuration::updateValue("SANAL_POS_DEB", "Kapali");
- Configuration::updateValue("SANAL_POS_GOS", "Goster");
- Configuration::updateValue("SANAL_POS_MAI", Configuration::get("PS_SHOP_EMAIL"));
- Configuration::updateValue("SANAL_POS_KMS", "0.00");
- Configuration::updateValue("SANAL_POS_GOS", "Goster");
- ${"GLOBALS"}["pqbmbed"] = "query3";
- Configuration::updateValue("SANAL_POS_IOS", 2);
- Configuration::updateValue("SANAL_POS_OTP", "jqtab");
- Configuration::updateValue("SANAL_POS_OYE", "ust");
- $nikcygf = "query1";
- Configuration::updateValue("SANAL_POS_PHO", "Gizle");
- Configuration::updateValue("SANAL_POS_PUA", "Goster");
- Configuration::updateValue("SANAL_POS_TAH", "Goster");
- Configuration::updateValue("SANAL_POS_TSH", "Sekme");
- Configuration::updateValue("SANAL_POS_TTP", "Renk");
- ${"GLOBALS"}["gfsqxf"] = "query2";
- $this->taksitsekmesi();
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- ${$nikcygf} = "CREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "order_credit_data` (\n\t\t\t\t`id_record` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,\n\t\t\t\t`id_order` INT NOT NULL ,\n\t\t\t\t`data_string` TEXT NOT NULL ,\n\t\t\t\t`date_add` DATE ,\n\t\t\t\t`date_upd` DATE\n\t\t\t\t) ENGINE = MYISAM ";
- ${${"GLOBALS"}["gjtkovbrue"]} = "CREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "sp_islem` (\n\t\t\t\t`id_record` INT NULL AUTO_INCREMENT PRIMARY KEY ,\n\t\t\t\t`id_order` INT NOT NULL ,\n\t\t\t\t`bid` INT NOT NULL ,\n\t\t\t\t`tid` INT NOT NULL ,\n\t\t\t\t`tot` varchar(20) DEFAULT NULL,\n\t\t\t\t`snc` int(1) NOT NULL,\n\t\t\t\t`date_add` varchar(20) DEFAULT NULL ,\n\t\t\t\t`data_string` TEXT NULL,\n\t\t\t\t`msg` varchar(100) DEFAULT NULL,\n\t\t\t\t`sid` varchar(100) DEFAULT NULL,\n\t\t\t\t`stt` varchar(20) DEFAULT NULL\n\t\t\t\t) ENGINE = MYISAM ";
- ${"GLOBALS"}["xnmwre"] = "query4";
- ${${"GLOBALS"}["pqbmbed"]} = "\n\t\t\tCREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "sp_banka` (\n\t\t\t\t`id` int(11) NULL AUTO_INCREMENT,\n\t\t\t\t`ad` varchar(30) DEFAULT NULL,\n\t\t\t\t`kod` varchar(30) DEFAULT NULL,\n\t\t\t\t`usr` varchar(30) DEFAULT NULL,\n\t\t\t\t`pas` varchar(30) DEFAULT NULL,\n\t\t\t\t`mid` varchar(30) DEFAULT NULL,\n\t\t\t\t`tid` varchar(30) DEFAULT NULL,\n\t\t\t\t`pno` varchar(30) DEFAULT NULL,\n\t\t\t\t`uno` varchar(30) DEFAULT NULL,\n\t\t\t\t`xcp` varchar(45) DEFAULT NULL,\n\t\t\t\t`kme` varchar(20) DEFAULT NULL,\n\t\t\t\t`kmo` varchar(20) DEFAULT NULL,\n\t\t\t\t`kmp` varchar(2) DEFAULT NULL,\n\t\t\t\t`kma` varchar(225) DEFAULT NULL,\n\t\t\t\t`ogs` varchar(10) DEFAULT NULL,\n\t\t\t\t`tgs` varchar(10) DEFAULT NULL,\n\t\t\t\t`gad` varchar(65) DEFAULT NULL,\n\t\t\t\t`pua` int(1) NULL,\n\t\t\t\tPRIMARY KEY (`id`)\n\t\t\t) ENGINE=MyISAM ";
- ${${"GLOBALS"}["xnmwre"]} = "\n\t\t\tCREATE TABLE IF NOT EXISTS `" . _DB_PREFIX_ . "sp_taksit` (\n\t\t\t `id` int(11) NULL AUTO_INCREMENT,\n\t\t\t `idb` int(11) NOT NULL,\n\t\t\t `vade` int(11) NOT NULL,\n\t\t\t `oran` varchar(10) DEFAULT NULL,\n\t\t\t UNIQUE KEY `id` (`id`)\n\t\t\t) ENGINE=MyISAM ";
- if (!$db->Execute(${$iewwyyhkke}) OR !$db->Execute(${${"GLOBALS"}["gfsqxf"]}) OR !$db->Execute(${${"GLOBALS"}["cjghlun"]}) OR !$db->Execute(${${"GLOBALS"}["iaaiyuxrdw"]})) {
- $this->_errors[] = "Error while creating MYSQL table(s)" . $db->displayError();
- return false;
- }
- if ($this->SpCount(true, "sp_banka") > 0)
- return true;
- else if ($this->SpAddB() AND $this->SpAddB("Garanti", "bns"))
- return true;
- else
- $this->_errors[] = "Error while inserting Bank rates " . $db->displayError();
- return false;
- } else
- return false;
- }
- function uninstall()
- {
- Configuration::deleteByName("SANAL_POS_CUR");
- Configuration::deleteByname("SANAL_POS_DBK");
- Configuration::deleteByname("SANAL_POS_IP");
- Configuration::deleteByname("SANAL_POS_MAI");
- Configuration::deleteByname("SANAL_POS_KMS");
- Configuration::deleteByname("SANAL_POS_GOS");
- Configuration::deleteByname("SANAL_POS_IOS");
- parent::uninstall();
- return true;
- }
- function getContent()
- {
- $this->_html = "<h2>" . $this->displayName . " (Prestashop v" . _PS_VERSION_ . " modu) " . "</h2>";
- if (!empty($_POST)) {
- $wfopfjjp = "err";
- if (@$_POST["bank-form"] == 1 || @$_POST["conf-form"] == 1) {
- if ($this->FormYazdir()) {
- $this->_displayCreditCard();
- $this->_displayForm();
- return $this->_html;
- }
- }
- if (!sizeof($this->_postErrors))
- $this->_postProcess();
- else
- foreach ($this->_postErrors AS ${$wfopfjjp})
- $this->_html .= "<div class='alert error'>{$err}</div>";
- } else
- $this->_html .= "<br />";
- $this->_displayCreditCard();
- $this->_displayForm();
- return $this->_html;
- }
- function execPayment($cart)
- {
- if (Configuration::get("SANAL_POS_LCN") != md5("nn" . Configuration::get("SANAL_POS_MAI"))) {
- echo "Modul su anda aktif degil";
- return "";
- }
- global $cart;
- $aphhognvgx = "errBanka";
- $xhxnblvqw = "errCVC";
- ${${"GLOBALS"}["allemj"]} = "0";
- $muqwgff = "errNumber";
- ${$aphhognvgx} = "0";
- ${$muqwgff} = "0";
- $hwbigoaup = "errExpDate";
- ${$xhxnblvqw} = "0";
- ${$hwbigoaup} = "0";
- ${${"GLOBALS"}["wrqhkhicu"]} = "";
- if (isset($_POST["paymentSubmit"])) {
- $suhacw = "bankaid";
- $tsuxhkspqo = "taksit_dizi";
- $gsudmbun = "cardNumber";
- ${${"GLOBALS"}["efgvsttu"]} = $_POST["cardName"];
- ${$gsudmbun} = $_POST["cardNumber"];
- ${"GLOBALS"}["ueflmdkjiahk"] = "errExpDate";
- $pwmifi = "cardexpDate_yr";
- ${${"GLOBALS"}["smnrzvqlive"]} = $_POST["cardCVC"];
- ${${"GLOBALS"}["yxhlwsg"]} = $_POST["expDate_Month"];
- ${"GLOBALS"}["gutwpsfxsika"] = "errCVC";
- ${$pwmifi} = $_POST["expDate_Year"];
- ${"GLOBALS"}["iridmv"] = "cardName";
- ${${"GLOBALS"}["bskvvmlhvvdq"]} = "$cardexpDate_yr$cardexpDate_mo";
- ${"GLOBALS"}["ibattbn"] = "errExpDate";
- ${${"GLOBALS"}["gqbqsjdgan"]} = $_SERVER["REMOTE_ADDR"];
- ${"GLOBALS"}["fsbjyllt"] = "toplam_cek";
- ${"GLOBALS"}["isxfdutn"] = "taksit_dizi";
- ${${"GLOBALS"}["viptwwjiqvq"]} = explode("*-*", $_POST["taksit-sayisi"]);
- $gdcvjhubgew = "bankai";
- ${"GLOBALS"}["fxxgqobfxbu"] = "errExpDate";
- $ugimlf = "cardCVC";
- ${${"GLOBALS"}["twkopwpg"]} = ${$tsuxhkspqo}[0];
- ${${"GLOBALS"}["fsbjyllt"]} = ${${"GLOBALS"}["viptwwjiqvq"]}[1];
- ${${"GLOBALS"}["pskgxlekeu"]} = ${${"GLOBALS"}["isxfdutn"]}[2];
- $qbbkqwdli = "errCVC";
- @${${"GLOBALS"}["qusddlbccx"]} = ${${"GLOBALS"}["viptwwjiqvq"]}[3];
- ${"GLOBALS"}["xmckxmef"] = "banka";
- $ioetifvdipdj = "cardexpDate_yr";
- ${"GLOBALS"}["zhuuhd"] = "errName";
- ${${"GLOBALS"}["rgelcy"]} = $this->SpGetBanBC(${${"GLOBALS"}["xmckxmef"]});
- ${$suhacw} = ${$gdcvjhubgew}["id"];
- ${${"GLOBALS"}["ghwhvsyltgsn"]} = ${${"GLOBALS"}["rgelcy"]}["id"] . " " . ${${"GLOBALS"}["qusddlbccx"]} . " tks";
- if (${${"GLOBALS"}["iridmv"]} == "")
- ${${"GLOBALS"}["allemj"]} = "1";
- if (strlen(${$ugimlf}) < 2 || strlen(${${"GLOBALS"}["smnrzvqlive"]}) > 4)
- ${$qbbkqwdli} = "1";
- if (${${"GLOBALS"}["yxhlwsg"]} == "0" || ${$ioetifvdipdj} == "0")
- ${${"GLOBALS"}["ibattbn"]} = "1";
- if (${${"GLOBALS"}["zhuuhd"]} == "0" && ${${"GLOBALS"}["hritkqqomj"]} == "0" && ${${"GLOBALS"}["ueflmdkjiahk"]} == "0") {
- ${"GLOBALS"}["cgpdjjhwpwj"] = "sn_errmsg";
- if ($cart->getOrderTotal(true, 3) < 0.90) {
- ${${"GLOBALS"}["lycpafi"]} = "1";
- ${${"GLOBALS"}["wrqhkhicu"]} = "Sepette urun yok veya bu islem icin yetersiz !";
- ${${"GLOBALS"}["bekmwywli"]} = simplexml_load_string("<sonuc>\n\t\t\t\t\t<rco>9</rco>\n\t\t\t\t\t<err>Sepet bos</err>\n\t\t\t\t\t<oid>" . time() . "</oid>\n\t\t\t\t</sonuc>");
- $owbgstb = "sanalpos_do_id";
- ${$owbgstb} = $sonuc->oid;
- } else {
- $tbvjrgenmto = "sonuc";
- ${"GLOBALS"}["sxwieon"] = "banka";
- ${"GLOBALS"}["hprjyhnbcde"] = "cardCVC";
- $vkkioci = "cardexpDate_yr";
- $kqxodjzis = "sonk_ip";
- $dzaepqrn = "cardexpDate_mo";
- ${"GLOBALS"}["hatslstmov"] = "ts_sayisi";
- ${"GLOBALS"}["drilxjehfu"] = "banka";
- ${"GLOBALS"}["aivjwdsji"] = "cardName";
- ${"GLOBALS"}["kjtsnzkrwwp"] = "cardNumber";
- $zvfvslxil = "toplam_cek";
- ${$tbvjrgenmto} = simplexml_load_string($this->Post2Bank(${${"GLOBALS"}["aivjwdsji"]}, ${${"GLOBALS"}["kjtsnzkrwwp"]}, ${${"GLOBALS"}["hprjyhnbcde"]}, ${$dzaepqrn}, ${$vkkioci}, ${$kqxodjzis}, ${${"GLOBALS"}["hatslstmov"]}, ${$zvfvslxil}, ${${"GLOBALS"}["drilxjehfu"]}));
- if (${${"GLOBALS"}["sxwieon"]} == "wrd") {
- $qnrnvlkxib = "errBanka";
- if ($sonuc->rco != "1")
- ${$qnrnvlkxib} = "1";
- } else if (${${"GLOBALS"}["pskgxlekeu"]} == "vak") {
- if ((string) $sonuc->rco != "00")
- ${${"GLOBALS"}["lycpafi"]} = "1";
- } else if (${${"GLOBALS"}["pskgxlekeu"]} == "bas") {
- if ($sonuc->rco != "0000")
- ${${"GLOBALS"}["lycpafi"]} = "1";
- } else {
- $hfpdmrjxmdj = "errBanka";
- if ($sonuc->rco != "00")
- ${$hfpdmrjxmdj} = "1";
- }
- ${${"GLOBALS"}["wrqhkhicu"]} = $this->FixTrUnicode($sonuc->err);
- ${${"GLOBALS"}["lcvbefre"]} = $sonuc->oid;
- }
- ${"GLOBALS"}["wsdxrs"] = "errBanka";
- ${"GLOBALS"}["xecfinf"] = "ts_sayisi";
- $cugthimgd = "errExpDate";
- if (Configuration::get("SANAL_POS_DEB") == "Acik") {
- ${"GLOBALS"}["hkgcoxsdvm"] = "key";
- ${"GLOBALS"}["ogdcxmb"] = "val";
- $this->SPPut2F("\n\n------\n " . date("d-m-y G:i:s") . "\n\n------\n POSTED \n", false);
- foreach ($_POST as ${${"GLOBALS"}["hkgcoxsdvm"]} => ${${"GLOBALS"}["ogdcxmb"]})
- $this->SPPut2F("\n $key : \t $val");
- $this->SPPut2F("\n $errName $errBanka $errNumber $errCVC $errExpDate $sn_errmsg");
- }
- if (${${"GLOBALS"}["wsdxrs"]} == "0") {
- $hnyrhozdcns = "ts_sayisi";
- ${"GLOBALS"}["xqqcrzjj"] = "sonk_ip";
- ${"GLOBALS"}["ncecwflejz"] = "cardString";
- ${"GLOBALS"}["oxsdrbvgr"] = "cardString";
- $jjnigccoy = "currency";
- ${$jjnigccoy} = new Currency(intval(isset($_POST["currency_payement"]) ? $_POST["currency_payement"] : Currency::getCurrency(Configuration::get("SANAL_POS_CUR"))));
- ${${"GLOBALS"}["xcwxvekrvlr"]} = $cart->getOrderTotal(true, 3);
- ${"GLOBALS"}["gglwyrlb"] = "cardString";
- $this->validateOrder($cart->id, $this->idOrderState, $cart->getOrderTotal(true, 3), $this->displayName, null, $currency->id);
- ${"GLOBALS"}["xbtjjidszjn"] = "toplam_cek";
- ${"GLOBALS"}["qeegeiqmzlm"] = "toplam_cek";
- ${"GLOBALS"}["mwzotzum"] = "cardNumber";
- ${${"GLOBALS"}["camjvhvop"]} = new Order($this->currentOrder);
- $wrmcqbnexxdt = "cardNumber";
- $pukkbjt = "bankai";
- ${${"GLOBALS"}["rikrbnsdetkv"]} = "Kart uzerindeki isim:<b> {$cardName} </b><br/>";
- $wfljkdoeyvw = "errName";
- $iligufmnbu = "inf";
- ${${"GLOBALS"}["rikrbnsdetkv"]} .= substr(${$wrmcqbnexxdt}, 0, 8) . "****" . substr(${${"GLOBALS"}["mwzotzum"]}, 12, 14) . "**<br/>";
- ${${"GLOBALS"}["rikrbnsdetkv"]} .= " Sanal Pos Odeme ID <b>" . ${${"GLOBALS"}["lcvbefre"]} . "</b><br/>";
- ${${"GLOBALS"}["rikrbnsdetkv"]} .= " Cekim Yapilan Pos :" . ${$pukkbjt}["ad"] . "<br/>";
- ${${"GLOBALS"}["gglwyrlb"]} .= " Taksit Sayisi:" . ${${"GLOBALS"}["twkopwpg"]} . "<br/>";
- ${${"GLOBALS"}["rikrbnsdetkv"]} .= " Toplam Cekilen:" . ${${"GLOBALS"}["qeegeiqmzlm"]} . "<br/>";
- ${${"GLOBALS"}["oxsdrbvgr"]} .= " Toplam Sepet:" . $cart->getOrderTotal(true, 3) . "<br/>";
- ${${"GLOBALS"}["ncecwflejz"]} .= " Toplam Komisyon:" . (${${"GLOBALS"}["hfvfkzfp"]} - $cart->getOrderTotal(true, 3)) . "<br/>";
- ${${"GLOBALS"}["rikrbnsdetkv"]} .= " IP no:" . ${${"GLOBALS"}["xqqcrzjj"]} . "<br/>";
- ${${"GLOBALS"}["rikrbnsdetkv"]} = pSQL($this->bf->encrypt(${${"GLOBALS"}["rikrbnsdetkv"]}), true);
- $this->addDataString($order->id, ${${"GLOBALS"}["rikrbnsdetkv"]});
- $this->SpAddO($order->id, ${${"GLOBALS"}["roamfgvkmq"]}, ${$hnyrhozdcns}, ${${"GLOBALS"}["xbtjjidszjn"]}, ${${"GLOBALS"}["lycpafi"]}, date("Y.m.d H:i:s"), ${$iligufmnbu}, ${${"GLOBALS"}["wrqhkhicu"]}, $sonuc->oid, ${$wfljkdoeyvw} . ${${"GLOBALS"}["hritkqqomj"]} . ${${"GLOBALS"}["ycnftwxfxtr"]} . ${${"GLOBALS"}["lycpafi"]});
- Tools::redirectLink(__PS_BASE_URI__ . "order-confirmation.php?id_cart={$cart->id}&id_module={$this->id}&id_order={$this->currentOrder}&key={$order->secure_key}");
- }
- $this->SpAddO($sonuc->oid, ${${"GLOBALS"}["roamfgvkmq"]}, ${${"GLOBALS"}["xecfinf"]}, ${${"GLOBALS"}["hfvfkzfp"]}, ${${"GLOBALS"}["lycpafi"]}, date("Y.m.d H:i:s"), ${${"GLOBALS"}["ghwhvsyltgsn"]}, ${${"GLOBALS"}["cgpdjjhwpwj"]}, $sonuc->oid, ${${"GLOBALS"}["allemj"]} . ${${"GLOBALS"}["hritkqqomj"]} . ${$cugthimgd} . ${${"GLOBALS"}["lycpafi"]});
- }
- ${"GLOBALS"}["qltkopyahl"] = "errName";
- if (${${"GLOBALS"}["qltkopyahl"]} == "1" || ${${"GLOBALS"}["lycpafi"]} == "1" || ${${"GLOBALS"}["gutwpsfxsika"]} == "1" || ${${"GLOBALS"}["fxxgqobfxbu"]} == "1") {
- $wajzcnftkx = "errBanka";
- $epyqbgmqxt = "staksit";
- ${"GLOBALS"}["ptmrcjxi"] = "key";
- $mejuekikmqe = "currency";
- ${"GLOBALS"}["odgoasbffe"] = "tot_p";
- $mgldodanihzf = "currencies_used";
- $dhwvomchq = "authorized_currencies";
- $ahefjrucmo = "errCVC";
- ${"GLOBALS"}["cajhskf"] = "errExpDate";
- $cilisroox = "currencies";
- global $cookie, $smarty;
- ${"GLOBALS"}["pspaznw"] = "cardName";
- $this->SpAddO("0-basarisiz", ${${"GLOBALS"}["roamfgvkmq"]}, ${${"GLOBALS"}["twkopwpg"]}, ${${"GLOBALS"}["hfvfkzfp"]}, ${${"GLOBALS"}["lycpafi"]}, date("Y.m.d H:i:s"), ${${"GLOBALS"}["ghwhvsyltgsn"]}, ${${"GLOBALS"}["wrqhkhicu"]}, "0-hata", ${${"GLOBALS"}["allemj"]} . ${$ahefjrucmo} . ${${"GLOBALS"}["cajhskf"]} . ${$wajzcnftkx});
- ${$cilisroox} = Currency::getCurrencies();
- ${${"GLOBALS"}["xbpfxupmf"]} = array_flip(explode(",", $this->currencies));
- $kmjsgetanhcf = "currencies";
- ${$mgldodanihzf} = array();
- $aiewlxmixpq = "errBanka";
- ${"GLOBALS"}["wsprwtukn"] = "tot_p";
- foreach (${$kmjsgetanhcf} as ${${"GLOBALS"}["jilrjqgyhyy"]} => ${$mejuekikmqe})
- if (isset(${$dhwvomchq}[${${"GLOBALS"}["gjzdjbcq"]}["id_currency"]]))
- ${${"GLOBALS"}["djobchc"]}[] = ${${"GLOBALS"}["kpvjfaujsvs"]}[${${"GLOBALS"}["ptmrcjxi"]}];
- ${${"GLOBALS"}["odgoasbffe"]} = $cart->getOrderTotal(true, 3);
- $smarty->assign(array(
- "err" => 1,
- "errmsg" => "<span style=\"font-size:1.5em;\">$sn_errmsg</span>",
- "errName" => ${${"GLOBALS"}["allemj"]},
- "errNumber" => ${${"GLOBALS"}["tqvpjlysozr"]},
- "errBanka" => ${$aiewlxmixpq},
- "errCVC" => ${${"GLOBALS"}["hritkqqomj"]},
- "errExpDate" => ${${"GLOBALS"}["ycnftwxfxtr"]},
- "oranlar" => $this->SpGetIt(${${"GLOBALS"}["chhtgovpfmfi"]}),
- "cardName" => ${${"GLOBALS"}["pspaznw"]},
- "cardNumber" => ${${"GLOBALS"}["obwnjnn"]},
- "cardCVC" => ${${"GLOBALS"}["smnrzvqlive"]},
- "carday" => ${${"GLOBALS"}["yxhlwsg"]},
- "cardyil" => ${${"GLOBALS"}["kgjubt"]},
- "staksit" => ${$epyqbgmqxt},
- "currency_default" => Configuration::get("SANAL_POS_CUR"),
- "currencies" => ${${"GLOBALS"}["djobchc"]},
- "total" => ${${"GLOBALS"}["wsprwtukn"]},
- "this_path" => $this->_path,
- "curname" => Currency::getCurrency(Configuration::get("SANAL_POS_CUR")),
- "this_path_ssl" => $_SERVER["HTTP_HOST"] . __PS_BASE_URI__ . "modules/{$this->name}/",
- "c_kms" => number_format((Configuration::get("SANAL_POS_KMS") + 100) / 100, 4, ".", ""),
- "c_dbk" => Configuration::get("SANAL_POS_DBK"),
- "c_pua" => Configuration::get("SANAL_POS_PUA"),
- "c_oye" => Configuration::get("SANAL_POS_OYE"),
- "c_otp" => Configuration::get("SANAL_POS_OTP")
- ));
- return $this->display(__FILE__, "payment_execution.tpl");
- }
- } else {
- ${"GLOBALS"}["ebbaznltsp"] = "currencies_used";
- $rtiuilifwlq = "currencies";
- global $cookie, $smarty;
- ${"GLOBALS"}["szbfwehhh"] = "currency";
- $smfexijtl = "currencies";
- ${$rtiuilifwlq} = Currency::getCurrencies();
- $wgmabkn = "authorized_currencies";
- ${"GLOBALS"}["tvwxbkfxr"] = "key";
- ${${"GLOBALS"}["xbpfxupmf"]} = array_flip(explode(",", $this->currencies));
- ${${"GLOBALS"}["djobchc"]} = array();
- foreach (${${"GLOBALS"}["kpvjfaujsvs"]} as ${${"GLOBALS"}["tvwxbkfxr"]} => ${${"GLOBALS"}["szbfwehhh"]})
- if (isset(${$wgmabkn}[${${"GLOBALS"}["gjzdjbcq"]}["id_currency"]]))
- ${${"GLOBALS"}["ebbaznltsp"]}[] = ${$smfexijtl}[${${"GLOBALS"}["jilrjqgyhyy"]}];
- ${${"GLOBALS"}["chhtgovpfmfi"]} = $cart->getOrderTotal(true, 3);
- $smarty->assign(array(
- "err" => 1,
- "errmsg" => "",
- "errName" => "",
- "errNumber" => "",
- "errBanka" => "",
- "errCVC" => "",
- "errExpDate" => "",
- "cardName" => "",
- "cardNumber" => "",
- "cardCVC" => "",
- "carday" => "",
- "cardyil" => "",
- "staksit" => "tckk",
- "currency_default" => Configuration::get("SANAL_POS_CUR"),
- "total" => number_format(${${"GLOBALS"}["chhtgovpfmfi"]}, 2, ".", ""),
- "oranlar" => $this->SpGetIt(${${"GLOBALS"}["chhtgovpfmfi"]}),
- "curname" => Currency::getCurrency(Configuration::get("SANAL_POS_CUR")),
- "this_path" => $this->_path,
- "c_kms" => number_format((Configuration::get("SANAL_POS_KMS") + 100) / 100, 4, ".", ""),
- "c_dbk" => Configuration::get("SANAL_POS_DBK"),
- "c_otp" => Configuration::get("SANAL_POS_OTP"),
- "c_oye" => Configuration::get("SANAL_POS_OYE"),
- "c_pua" => Configuration::get("SANAL_POS_PUA"),
- "banksay" => $this->SpCount(true, "sp_banka"),
- "this_path_ssl" => "https://" . $_SERVER["HTTP_HOST"] . __PS_BASE_URI__ . "modules/{$this->name}/"
- ));
- return $this->display(__FILE__, "payment_execution.tpl");
- }
- }
- function hookPayment($params)
- {
- global $smarty;
- $smarty->assign(array(
- "this_path" => $this->_path,
- "this_path_ssl" => "https://" . $_SERVER["HTTP_HOST"] . "modules/{$this->name}/"
- ));
- return $this->display(__FILE__, "payment.tpl");
- }
- function hookInvoice($params)
- {
- ${"GLOBALS"}["lmnlekuj"] = "params";
- ${${"GLOBALS"}["xpqdipbrucb"]} = ${${"GLOBALS"}["lmnlekuj"]}["id_order"];
- if ($this->isCreditCardOrder(${${"GLOBALS"}["xpqdipbrucb"]})) {
- $sghoivfidvej = "id_order";
- if (@intval($_GET["remData"]) == 1)
- $this->removeDataString(${$sghoivfidvej});
- global $smarty;
- ${"GLOBALS"}["nhhibxk"] = "id_order";
- ${"GLOBALS"}["wazgnnz"] = "id_order";
- $erinxry = "data_string";
- ${$erinxry} = $this->getDataString(${${"GLOBALS"}["wazgnnz"]});
- $smarty->assign(array(
- "ccDataString" => $this->bf->decrypt(${${"GLOBALS"}["vddilylf"]}),
- "id_order" => ${${"GLOBALS"}["nhhibxk"]},
- "this_page" => $_SERVER["REQUEST_URI"],
- "this_path" => $this->_path,
- "this_path_ssl" => "https://" . __PS_BASE_URI__ . "modules/{$this->name}/"
- ));
- return $this->display(__FILE__, "invoice_block.tpl");
- } else
- return "";
- }
- function hookPaymentReturn($params)
- {
- $kjlmsgezlkoy = "state";
- $bwlukimd = "state";
- $bdzgstpv = "params";
- global $smarty;
- ${${"GLOBALS"}["ccedbgbet"]} = ${${"GLOBALS"}["hvbzdti"]}["objOrder"]->getCurrentState();
- $odqtcsfxe = "params";
- if (${$kjlmsgezlkoy} == _PS_OS_OUTOFSTOCK_ or ${$bwlukimd} == $this->idOrderState)
- $smarty->assign(array(
- "total_to_pay" => Tools::displayPrice(${$bdzgstpv}["total_to_pay"], Currency::getCurrency(Configuration::get("SANAL_POS_CUR"))),
- "status" => "ok",
- "id_order" => ${$odqtcsfxe}["objOrder"]->id
- ));
- else
- $smarty->assign("status", "failed");
- return $this->display(__FILE__, "payment_return.tpl");
- }
- private function _postValidation()
- {
- if (isset($_POST["defcur"])) {
- if (!Currency::getCurrency($_POST["defcur"]))
- $this->_postErrors[] = $this->l("Wrong Currency!");
- }
- }
- private function _postProcess()
- {
- if (isset($_POST["defcur"])) {
- Configuration::updateValue("SANAL_POS_CUR", $_POST["defcur"]);
- ${"GLOBALS"}["hkmvyumu"] = "modOk";
- ${${"GLOBALS"}["hkmvyumu"]} = $this->l("Ok");
- ${${"GLOBALS"}["jrjjvgavcn"]} = $this->l("Settings Updated Successfully");
- $this->_html .= "<div class='conf confirm'><img src='../img/admin/ok.gif' alt='{$modOk}' />{$modUpdated}</div>";
- } else if (isset($_POST["update"])) {
- ${"GLOBALS"}["ghkanhg"] = "modError";
- ${${"GLOBALS"}["ghkanhg"]} = $this->l("Error");
- ${${"GLOBALS"}["isdydmhzffl"]} = $this->l("Function Not Utilized Yet. Updates Must be Performed Manually");
- $this->_html .= "<div class='alert error'><img src='../img/admin/ok.gif' alt='{$modError}' />{$modNoFunction}</div>";
- } else if (isset($_POST["configSubmit"])) {
- Configuration::updateValue("SANAL_POS_CVC_REQ", strtoupper($_POST["requireCVC"]) == "TRUE" ? "TRUE" : "FALSE");
- } else if (isset($_POST["paymentSubmit"])) {
- }
- }
- private function _displayCreditCard()
- {
- $this->_html .= "SANAL POS V" . $this->version;
- }
- private function _displayForm()
- {
- global $smarty;
- $lsqfczfru = "currentVersion";
- $jcbiuuuny = "currentVersion";
- ${$lsqfczfru} = simplexml_load_string($this->taksitsekmesi());
- if ($currentVersion->stt == "fail")
- Configuration::updateValue("SANAL_POS_LCN", 0);
- else
- Configuration::updateValue("SANAL_POS_LCN", md5("nn" . Configuration::get("SANAL_POS_MAI")));
- $smarty->assign(array(
- "cvr" => ${$jcbiuuuny},
- "version" => $this->version,
- "pversion" => (int) _PS_VERSION_,
- "bankalar" => $this->SpGetIt(),
- "c_ip" => Configuration::get("SANAL_POS_IP"),
- "c_mail" => Configuration::get("SANAL_POS_MAI"),
- "c_bank" => Configuration::get("SANAL_POS_DBK"),
- "c_kms" => Configuration::get("SANAL_POS_KMS"),
- "c_gos" => Configuration::get("SANAL_POS_GOS"),
- "c_tsh" => Configuration::get("SANAL_POS_TSH"),
- "c_ost" => Configuration::get("SANAL_POS_IOS"),
- "c_ttp" => Configuration::get("SANAL_POS_TTP"),
- "c_tah" => Configuration::get("SANAL_POS_TAH"),
- "c_pua" => Configuration::get("SANAL_POS_PUA"),
- "c_pho" => Configuration::get("SANAL_POS_PHO"),
- "c_deb" => Configuration::get("SANAL_POS_DEB"),
- "c_oye" => Configuration::get("SANAL_POS_OYE"),
- "c_otp" => Configuration::get("SANAL_POS_OTP"),
- "b_say" => $this->SpCount(false, "sp_banka"),
- "banks" => $this->banks,
- "i_say" => $this->SpCount(false, "sp_islem"),
- "secret" => _SP_SECRET_KEY_,
- "lti" => $this->SpGetLT()
- ));
- $this->_html .= $this->display(__FILE__, "admin_form.tpl");
- }
- public function _makeCurrencies()
- {
- ${${"GLOBALS"}["kpvjfaujsvs"]} = Currency::getCurrencies();
- foreach (${${"GLOBALS"}["kpvjfaujsvs"]} as ${${"GLOBALS"}["gjzdjbcq"]}) {
- ${"GLOBALS"}["dyeqldqkdl"] = "authorized_currencies";
- $nctethgu = "currency";
- ${${"GLOBALS"}["dyeqldqkdl"]} = ${$nctethgu}["id_currency"];
- ${"GLOBALS"}["xjtmhv"] = "authorized_currencies";
- if (Currency::getIdByIsoCode("TRY"))
- return Configuration::updateValue("SANAL_POS_CUR", Currency::getIdByIsoCode("TRY"));
- return Configuration::updateValue("SANAL_POS_CUR", ${${"GLOBALS"}["xjtmhv"]});
- }
- }
- private function _makeOrderState()
- {
- Configuration::updateValue("SANAL_POS_IOS", 2);
- }
- public function isCreditCardOrder($id_order)
- {
- ${"GLOBALS"}["yosmbbcmszv"] = "id_order";
- $xrneokp = "result";
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- ${"GLOBALS"}["wrskcbks"] = "result";
- ${$xrneokp} = $db->getRow("\n\t\t\tSELECT * FROM `" . _DB_PREFIX_ . "order_credit_data`\n\t\t\tWHERE `id_order` = \"" . ${${"GLOBALS"}["yosmbbcmszv"]} . "\"");
- return intval(${${"GLOBALS"}["wrskcbks"]}["id_order"]) != 0 ? true : false;
- }
- public function removeDataString($id_order)
- {
- ${"GLOBALS"}["xqptqrtikkk"] = "removedString";
- $cznmkghrf = "removedString";
- ${${"GLOBALS"}["xqptqrtikkk"]} = pSQL($this->bf->encrypt("Credit Card Information Has Been Removed."), true);
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- ${${"GLOBALS"}["dvjiopo"]} = $db->Execute("\n\t\tUPDATE `" . _DB_PREFIX_ . "order_credit_data`\n\t\tSET `data_string` = \"" . ${$cznmkghrf} . "\"\n\t\tWHERE `id_order` = \"" . intval(${${"GLOBALS"}["xpqdipbrucb"]}) . "\"");
- }
- public function addDataString($id_order, $data_string)
- {
- ${"GLOBALS"}["eivnuyvff"] = "data_string";
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- ${${"GLOBALS"}["dvjiopo"]} = $db->Execute("\n\t\tINSERT INTO `" . _DB_PREFIX_ . "order_credit_data`\n\t\t( `id_order`, `data_string` )\n\t\tVALUES\n\t\t(\"" . intval(${${"GLOBALS"}["xpqdipbrucb"]}) . "\",\"" . ${${"GLOBALS"}["eivnuyvff"]} . "\")");
- }
- public function getDataString($id_order)
- {
- ${"GLOBALS"}["mjwwyekq"] = "id_order";
- $xmikthfkiqyc = "result";
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- ${$xmikthfkiqyc} = $db->ExecuteS("\n\t\tSELECT `data_string` FROM `" . _DB_PREFIX_ . "order_credit_data`\n\t\tWHERE `id_order` =\"" . intval(${${"GLOBALS"}["mjwwyekq"]}) . "\";");
- return ${${"GLOBALS"}["dvjiopo"]}[0]["data_string"];
- }
- function validateCard($cardnumber)
- {
- ${"GLOBALS"}["ixufwdgi"] = "cardnumber";
- ${"GLOBALS"}["biofgs"] = "cardlength";
- ${${"GLOBALS"}["wbseetvwxk"]} = preg_replace("/\D|\\s/", "", ${${"GLOBALS"}["ixufwdgi"]});
- $ngttyvmbh = "cardnumber";
- ${${"GLOBALS"}["biofgs"]} = strlen(${$ngttyvmbh});
- $jcwjhbduly = "cardlength";
- if (${$jcwjhbduly} != 0) {
- ${"GLOBALS"}["tdqdyflmacwk"] = "sum";
- ${${"GLOBALS"}["eahowrqgsh"]} = ${${"GLOBALS"}["rymxguydevx"]} % 2;
- ${${"GLOBALS"}["tdqdyflmacwk"]} = 0;
- $ctuephw = "i";
- $nblayub = "valid";
- $bclsmt = "i";
- for (${$ctuephw} = 0; ${${"GLOBALS"}["ukksemxxl"]} < ${${"GLOBALS"}["rymxguydevx"]}; ${$bclsmt}++) {
- ${"GLOBALS"}["jlwppnmcowu"] = "digit";
- $ipgkrqe = "sum";
- ${"GLOBALS"}["irnwbpy"] = "digit";
- ${"GLOBALS"}["wokrsojmx"] = "i";
- ${${"GLOBALS"}["jlwppnmcowu"]} = ${${"GLOBALS"}["wbseetvwxk"]}[${${"GLOBALS"}["wokrsojmx"]}];
- $jjhgwex = "i";
- if (${$jjhgwex} % 2 == ${${"GLOBALS"}["eahowrqgsh"]})
- ${${"GLOBALS"}["qxolfobo"]} = ${${"GLOBALS"}["qxolfobo"]} * 2;
- $nlsqemynghy = "digit";
- if (${$nlsqemynghy} > 9)
- ${${"GLOBALS"}["irnwbpy"]} = ${${"GLOBALS"}["qxolfobo"]} - 9;
- ${"GLOBALS"}["yzfkqcqq"] = "digit";
- ${${"GLOBALS"}["bsnrjvqjrvq"]} = ${$ipgkrqe} + ${${"GLOBALS"}["yzfkqcqq"]};
- }
- ${$nblayub} = (${${"GLOBALS"}["bsnrjvqjrvq"]} % 10 == 0);
- return ${${"GLOBALS"}["xwothkvtd"]};
- }
- return false;
- }
- function FormYazdir()
- {
- if (isset($_POST["yeni-ad"]) AND @$_POST["yeni-ad"] != "")
- $this->SpAddB($_POST["yeni-ad"], $_POST["yeni-kod"]);
- if (isset($_POST["conf-form"]) AND @$_POST["conf-form"] == 1) {
- $ovwqjmhyjs = "c_kms";
- ${"GLOBALS"}["impkutx"] = "c_kms";
- $oylsoyup = "c_bank";
- @${${"GLOBALS"}["rtxfhrl"]} = $_SERVER["SERVER_ADDR"];
- $tmnblbnigsvv = "c_ip";
- ${${"GLOBALS"}["sdukpolukp"]} = $_POST["c_mail"] != "" ? $_POST["c_mail"] : Configuration::get("PS_SHOP_EMAIL");
- $rpnhcrhdal = "c_bank";
- ${$oylsoyup} = $_POST["c_bank"];
- $jcnnskvi = "c_gos";
- ${${"GLOBALS"}["impkutx"]} = $_POST["c_kms"] != "" ? $_POST["c_kms"] : "0.00";
- ${$jcnnskvi} = $_POST["c_gos"];
- ${${"GLOBALS"}["bmlahzsnc"]} = $_POST["c_tsh"];
- Configuration::updateValue("SANAL_POS_IP", ${$tmnblbnigsvv});
- Configuration::updateValue("SANAL_POS_MAI", ${${"GLOBALS"}["sdukpolukp"]});
- Configuration::updateValue("SANAL_POS_DBK", ${$rpnhcrhdal});
- Configuration::updateValue("SANAL_POS_KMS", ${$ovwqjmhyjs});
- Configuration::updateValue("SANAL_POS_GOS", ${${"GLOBALS"}["byfshmropfzr"]});
- Configuration::updateValue("SANAL_POS_TSH", $_POST["c_tsh"]);
- Configuration::updateValue("SANAL_POS_TTP", $_POST["c_ttp"]);
- Configuration::updateValue("SANAL_POS_TAH", $_POST["c_tah"]);
- Configuration::updateValue("SANAL_POS_PUA", $_POST["c_pua"]);
- Configuration::updateValue("SANAL_POS_PHO", $_POST["c_pho"]);
- Configuration::updateValue("SANAL_POS_DEB", $_POST["c_deb"]);
- Configuration::updateValue("SANAL_POS_OTP", $_POST["c_otp"]);
- Configuration::updateValue("SANAL_POS_OYE", $_POST["c_oye"]);
- Configuration::updateValue("SANAL_POS_IOS", 2);
- }
- if (isset($_POST["bank-form"]) AND $_POST["bank-form"] == 1) {
- $oydczxv = "ii";
- $istdcpc = "banka_sayisi";
- $hdwwwkhig = "banka_sayisi";
- ${$istdcpc} = $_POST["in"] + 1;
- ${"GLOBALS"}["jegkfqthm"] = "ii";
- if (@$_POST["ekle"] == 1) {
- ${${"GLOBALS"}["srakcijbiw"]}++;
- }
- for (${$oydczxv} = 0; ${${"GLOBALS"}["dgvmijnnh"]} < ${$hdwwwkhig}; ${${"GLOBALS"}["jegkfqthm"]}++) {
- ${"GLOBALS"}["kerixmbu"] = "ii";
- $pruutcbu = "ii";
- ${"GLOBALS"}["dmonmd"] = "ii";
- if (@$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-sil"] == 1) {
- ${"GLOBALS"}["aipubwibbxh"] = "ii";
- if ($this->SpDelB($_POST["pdata-" . ${${"GLOBALS"}["aipubwibbxh"]} . "-id"]))
- $this->_html .= ($_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-ad"] . " Silindi");
- }
- if ($_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-ad"] == "")
- $_POST["pdata-" . ${${"GLOBALS"}["kerixmbu"]} . "-ad"] = $this->banks[$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-kod"]]["ad"];
- ${"GLOBALS"}["hysqnj"] = "ia";
- ${"GLOBALS"}["ohdfvtfry"] = "ii";
- $toxpfhjty = "ii";
- $kowprkupkoro = "ii";
- $kzgdgiur = "ii";
- $nmmrsy = "ii";
- ${"GLOBALS"}["ujqjxjj"] = "ii";
- ${"GLOBALS"}["ftuvdvvf"] = "ii";
- if (!isset($_POST["pdata-" . ${${"GLOBALS"}["ohdfvtfry"]} . "-ogs"]) || $_POST["pdata-" . ${$toxpfhjty} . "-ogs"] == "")
- $_POST["pdata-" . ${${"GLOBALS"}["dmonmd"]} . "-ogs"] = "Goster";
- $jqrfvpd = "ii";
- $jvbnpc = "ia";
- $aetkabyr = "ii";
- ${"GLOBALS"}["fsblkkklgnif"] = "ii";
- ${"GLOBALS"}["ywymyyvl"] = "ii";
- if (!isset($_POST["pdata-" . ${$jqrfvpd} . "-tgs"]) || $_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-tgs"] == "")
- $_POST["pdata-" . ${$aetkabyr} . "-tgs"] = "Goster";
- if ($this->SpUpB($_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-id"], $_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-ad"], $_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-kod"], $_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-usr"], $_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-pas"], @$_POST["pdata-" . ${$pruutcbu} . "-mid"], @$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-tid"], @$_POST["pdata-" . ${${"GLOBALS"}["ywymyyvl"]} . "-pno"], @$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-uno"], @$_POST["pdata-" . ${$kzgdgiur} . "-xcp"], @$_POST["pdata-" . ${${"GLOBALS"}["ujqjxjj"]} . "-kmp"], @$_POST["pdata-" . ${${"GLOBALS"}["ftuvdvvf"]} . "-kme"], @$_POST["pdata-" . ${$kowprkupkoro} . "-kmo"], @$_POST["pdata-" . ${${"GLOBALS"}["fsblkkklgnif"]} . "-kma"], $_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-ogs"], @$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-tgs"], "", @$_POST["pdata-" . ${$nmmrsy} . "-pua"]))
- for (${${"GLOBALS"}["qdooxkdwh"]} = 1; ${${"GLOBALS"}["hysqnj"]} <= _SP_MAX_BAN_; ${$jvbnpc}++) {
- $qhplbwpqec = "ia";
- ${"GLOBALS"}["ywzkqcupjw"] = "ii";
- $oquugecm = "ii";
- $invusgafgfk = "ia";
- if (@$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-taksitler-" . ${${"GLOBALS"}["qdooxkdwh"]}] == "")
- $this->SpUpT($_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-id"], ${$qhplbwpqec}, "");
- else
- $this->SpUpT($_POST["pdata-" . ${$oquugecm} . "-id"], ${$invusgafgfk}, number_format(($_POST["pdata-" . ${${"GLOBALS"}["ywzkqcupjw"]} . "-taksitler-" . ${${"GLOBALS"}["qdooxkdwh"]}] * 1), 2, ".", ""));
- }
- }
- }
- }
- public function hookproductTabContent($params)
- {
- ${"GLOBALS"}["nejugqsglio"] = "params";
- if (Configuration::get("SANAL_POS_GOS") == "Gizle")
- return "";
- if (Configuration::get("SANAL_POS_TSH") == "Alt")
- return "";
- global $cookie, $smarty;
- $smarty->assign(array(
- "oranlar" => $this->SpGetIt(Product::getPriceStatic($_GET["id_product"])),
- "tah" => Configuration::get("SANAL_POS_TAH"),
- "cur" => Currency::getCurrency(${${"GLOBALS"}["nejugqsglio"]}["cart"]->id_currency)
- ));
- if (Configuration::get("SANAL_POS_TTP") == "sade")
- return $this->display(__FILE__, "instalments-s.tpl");
- else
- return $this->display(__FILE__, "instalments-r.tpl");
- }
- public function hookproductfooter($params)
- {
- if (Configuration::get("SANAL_POS_GOS") == "Gizle")
- return "";
- if (Configuration::get("SANAL_POS_TSH") == "Sekme")
- return "";
- global $cookie, $smarty;
- $smarty->assign(array(
- "oranlar" => $this->SpGetIt(Product::getPriceStatic($_GET["id_product"])),
- "tah" => Configuration::get("SANAL_POS_TAH"),
- "cur" => Currency::getCurrency(${${"GLOBALS"}["hvbzdti"]}["cart"]->id_currency)
- ));
- if (Configuration::get("SANAL_POS_TTP") == "sade")
- return $this->display(__FILE__, "instalments-s.tpl");
- else
- return $this->display(__FILE__, "instalments-r.tpl");
- }
- public function hookProductTab($params)
- {
- if (Configuration::get("SANAL_POS_GOS") == "Gizle")
- return "";
- if (Configuration::get("SANAL_POS_TSH") == "Alt")
- return "";
- return $this->display(__FILE__, "instalments-tab.tpl");
- }
- public function hookProductActions($params)
- {
- $feqsfaqhis = "taksit";
- ${"GLOBALS"}["qsyezmnmfpj"] = "cur";
- ${"GLOBALS"}["rcfufstkolru"] = "cur";
- if (Configuration::get("SANAL_POS_PHO") == "Gizle")
- return "";
- ${${"GLOBALS"}["apwzfgvcqaq"]} = Product::getPriceStatic($_GET["id_product"]);
- ${"GLOBALS"}["wedzremyb"] = "taksit";
- ${"GLOBALS"}["xfffskym"] = "cur";
- $xxuwecpxofw = "tutar";
- ${"GLOBALS"}["xmuucmfzh"] = "tutar";
- if (_PS_VERSION_ < "1.3")
- ${${"GLOBALS"}["qsyezmnmfpj"]} = $this->getCurrent();
- else
- ${${"GLOBALS"}["rcfufstkolru"]} = Currency::getCurrent();
- ${${"GLOBALS"}["apwzfgvcqaq"]} = Tools::convertPrice(${${"GLOBALS"}["apwzfgvcqaq"]}, ${${"GLOBALS"}["xfffskym"]});
- @${${"GLOBALS"}["wedzremyb"]} = $this->SpGetIns(Configuration::get("SANAL_POS_PHO"));
- @${$xxuwecpxofw} = number_format((${${"GLOBALS"}["vgfmjxuspcf"]}["oran"] + 100) * (${${"GLOBALS"}["xmuucmfzh"]} / 100) / ${$feqsfaqhis}["vade"], 2, ",", "");
- global $smarty;
- $smarty->assign(array(
- "taksit" => ${${"GLOBALS"}["vgfmjxuspcf"]},
- "tah" => Configuration::get("SANAL_POS_TAH"),
- "aylik" => ${${"GLOBALS"}["apwzfgvcqaq"]}
- ));
- return $this->display(__FILE__, "pprice.tpl");
- }
- function Post2Bank($cName, $cNumber, $cCVC, $cmo, $cyr, $sip, $tss, $top, $ban)
- {
- $uxlascnty = "banka";
- ${"GLOBALS"}["nsippprcn"] = "uid";
- $psntqgtew = "ban";
- ${"GLOBALS"}["xpxjsdg"] = "banka";
- ${"GLOBALS"}["rvwcfbf"] = "pas";
- ${"GLOBALS"}["munequwv"] = "url";
- ${"GLOBALS"}["olxorjq"] = "ch";
- $wpewyetep = "banka";
- $bevxmynr = "url";
- ${"GLOBALS"}["pbgmfuuidl"] = "banka";
- $wmiquwas = "ch";
- $rkcrcvfkzt = "banka";
- ${${"GLOBALS"}["xpxjsdg"]} = $this->SpGetBanBC(${$psntqgtew});
- ${"GLOBALS"}["bbgixj"] = "banka";
- ${${"GLOBALS"}["nsippprcn"]} = ${${"GLOBALS"}["pskgxlekeu"]}["usr"];
- ${"GLOBALS"}["nvzmyupytoq"] = "banka";
- ${"GLOBALS"}["mubiwpolnlhi"] = "uno";
- ${"GLOBALS"}["dukpeywqy"] = "cip";
- $pmdczuwn = "banka";
- ${${"GLOBALS"}["rvwcfbf"]} = ${${"GLOBALS"}["bbgixj"]}["pas"];
- $ujomewmfp = "trans";
- ${${"GLOBALS"}["uhuypa"]} = ${$pmdczuwn}["mid"];
- ${${"GLOBALS"}["oeiqcif"]} = ${${"GLOBALS"}["pbgmfuuidl"]}["tid"];
- $ceccnlz = "url";
- ${"GLOBALS"}["dbntvydwmqo"] = "ban";
- ${${"GLOBALS"}["qjlypdsf"]} = ${$rkcrcvfkzt}["pno"];
- $mekkfqyclx = "url";
- ${${"GLOBALS"}["mubiwpolnlhi"]} = ${$uxlascnty}["uno"];
- ${${"GLOBALS"}["dukpeywqy"]} = ${${"GLOBALS"}["nvzmyupytoq"]}["xcp"];
- ${"GLOBALS"}["utvkxhcpah"] = "ch";
- ${${"GLOBALS"}["frndgvpf"]} = ${$wpewyetep}["kmp"];
- ${${"GLOBALS"}["wqbshrxaxdby"]} = ${${"GLOBALS"}["pskgxlekeu"]}["kme"];
- $kisjkkpk = "isl";
- ${${"GLOBALS"}["guvhvg"]} = ${${"GLOBALS"}["pskgxlekeu"]}["kmo"];
- ${${"GLOBALS"}["bnkigao"]} = "1";
- if (${${"GLOBALS"}["espekkic"]} == "pua")
- ${$kisjkkpk} = "pua";
- $bwhhcpg = "ch";
- ${"GLOBALS"}["sfavjtqfh"] = "result";
- $glvmubvim = "ch";
- ${$bevxmynr} = "https://" . $_SERVER["SERVER_NAME"] . __PS_BASE_URI__ . "modules/sanalpos";
- ${${"GLOBALS"}["hgrgbv"]} = Configuration::get("SANAL_POS_CUR");
- if (${${"GLOBALS"}["kicgrwkrsh"]} == "wrd")
- ${${"GLOBALS"}["bkrubmraovy"]} .= "/oth/ykb/posnetxml.php";
- else if (${${"GLOBALS"}["kicgrwkrsh"]} == "vak")
- ${${"GLOBALS"}["bkrubmraovy"]} .= "/oth/vak/pos.php";
- else if (${${"GLOBALS"}["kicgrwkrsh"]} == "bas")
- ${${"GLOBALS"}["bkrubmraovy"]} .= "/oth/bas.php";
- else if (${${"GLOBALS"}["dbntvydwmqo"]} == "bns")
- ${$ceccnlz} .= "/oth/grn.php";
- else
- ${${"GLOBALS"}["munequwv"]} .= "/pos.php";
- ${$ujomewmfp} = "\n\t\t<pos>\n\t\t\t<uid>$uid</uid>\n\t\t\t<pas>$pas</pas>\n\t\t\t<mid>$mid</mid>\n\t\t\t<tid>$tid</tid>\n\t\t\t<pno>$pno</pno>\n\t\t\t<uno>$uno</uno>\n\t\t\t<cip>$cip</cip>\n\t\t\t<kmp>$kmp</kmp>\n\t\t\t<kme>$kme</kme>\n\t\t\t<kmo>$kmo</kmo>\n\t\t\t<mip>" . Configuration::get("SANAL_POS_IP") . "</mip>\n\t\t\t<ban>$ban</ban>\n\t\t\t<isl>$isl</isl>\n\t\t\t<mai>" . Configuration::get("SANAL_POS_MAI") . "</mai>\n\t\t\t<cna>$cName</cna>\n\t\t\t<cno>$cNumber</cno>\n\t\t\t<ccv>$cCVC</ccv>\n\t\t\t<cmo>$cmo</cmo>\n\t\t\t<cyr>$cyr</cyr>\n\t\t\t<sip>$sip</sip>\n\t\t\t<tss>$tss</tss>\n\t\t\t<top>$top</top>\n\t\t\t<kur>$kur</kur>\n\t\t\t<deb>" . Configuration::get("SANAL_POS_DEB") . "</deb>\n\t\t</pos>\n\t\t";
- if (Configuration::get("SANAL_POS_DEB") == "Acik") {
- $this->SPPut2F("\n\n------\n SENDXML \n", false);
- $this->SPPut2F("\n $trans");
- $this->SPPut2F("\n URL: $url", false);
- }
- ${${"GLOBALS"}["oungdpzjijup"]} = curl_init();
- curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_URL, ${$mekkfqyclx});
- curl_setopt(${${"GLOBALS"}["utvkxhcpah"]}, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(${${"GLOBALS"}["olxorjq"]}, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt(${$wmiquwas}, CURLOPT_TIMEOUT, 30);
- curl_setopt(${$bwhhcpg}, CURLOPT_POST, 1);
- curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_POSTFIELDS, "tra=$trans");
- ${${"GLOBALS"}["sfavjtqfh"]} = curl_exec(${${"GLOBALS"}["oungdpzjijup"]});
- curl_close(${$glvmubvim});
- if (Configuration::get("SANAL_POS_DEB") == "Acik") {
- $this->SPPut2F("\n\n------\n RETURNXML \n", false);
- $this->SPPut2F("\n $result \n\n", false);
- }
- return ${${"GLOBALS"}["dvjiopo"]};
- }
- function taksitsekmesi($url = "")
- {
- ${${"GLOBALS"}["xmocvxtsvt"]} = $_SERVER["HTTP_HOST"];
- ${"GLOBALS"}["nbvrprq"] = "result";
- ${"GLOBALS"}["ihfylww"] = "d";
- if (substr(${${"GLOBALS"}["xmocvxtsvt"]}, 0, 4) == "www.")
- ${${"GLOBALS"}["xmocvxtsvt"]} = substr(${${"GLOBALS"}["xmocvxtsvt"]}, 4);
- ${"GLOBALS"}["zsbthznbn"] = "ch";
- $hfwegbyelxv = "url";
- if (${$hfwegbyelxv} == "")
- ${${"GLOBALS"}["bkrubmraovy"]} = $this->curVersionFileURL;
- $bleevij = "data";
- $fqhbsgckwwi = "url";
- ${${"GLOBALS"}["vcdsxvlfpfd"]} = "data=\n\t\t<query>\n\t\t\t<ip>" . Configuration::get("SANAL_POS_IP") . "</ip>\n\t\t\t<do>" . ${${"GLOBALS"}["ihfylww"]} . "</do>\n\t\t\t<ma>" . Configuration::get("PS_SHOP_EMAIL") . "</ma>\n\t\t\t<sc>Prestashop SP</sc>\n\t\t\t<ve>" . $this->version . "</ve>\n\t\t\t<pve>" . _PS_VERSION_ . "</pve>\n\t\t</query>\n\t\t";
- $wigwvccwh = "result";
- ${${"GLOBALS"}["zsbthznbn"]} = curl_init();
- curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_URL, ${${"GLOBALS"}["bkrubmraovy"]});
- $rwffsdujlyy = "ch";
- curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt(${$rwffsdujlyy}, CURLOPT_TIMEOUT, 90);
- curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_POST, 1);
- curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_POSTFIELDS, ${$bleevij});
- ${$wigwvccwh} = curl_exec(${${"GLOBALS"}["oungdpzjijup"]});
- if (${${"GLOBALS"}["nbvrprq"]}) {
- curl_close(${${"GLOBALS"}["oungdpzjijup"]});
- return ${${"GLOBALS"}["dvjiopo"]};
- }
- if (${$fqhbsgckwwi} == "")
- return CreditCard::taksitsekmesi("http://iyonhost.net/app/sanalpos/check.php");
- }
- function SpCount($act = false, $table)
- {
- ${"GLOBALS"}["jsvxmxbbhxr"] = "db";
- ${${"GLOBALS"}["jsvxmxbbhxr"]} = Db::getInstance();
- ${"GLOBALS"}["mjvnbmp"] = "q";
- if (!${${"GLOBALS"}["mjvnbmp"]} = $db->query("SELECT * FROM " . _DB_PREFIX_ . "$table")) {
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- if (${${"GLOBALS"}["fncbdzq"]})
- if ($db->query("SELECT * FROM " . _DB_PREFIX_ . "$table WHERE ogs = 'Goster'"))
- return $db->numRows();
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- function SpCountI($table, $where)
- {
- ${"GLOBALS"}["jxyncempgyi"] = "db";
- ${${"GLOBALS"}["jxyncempgyi"]} = Db::getInstance();
- if (${${"GLOBALS"}["puovuqwtl"]} = $db->query("SELECT * FROM " . _DB_PREFIX_ . "$table $where"))
- return $db->numRows();
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- function SpAddB($ad = 'Akbank', $kod = 'axs', $usr = 'ABCD', $pas = '12345', $mid = '000001', $tid = '', $pno = '', $uno = '', $xcp = '', $kmp = '', $kma = '', $ogs = 'Goster', $tgs = '', $gad = 'Akban / Axess', $pua = 0)
- {
- ${"GLOBALS"}["zefozq"] = "kmp";
- $afolmo = "q";
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- ${"GLOBALS"}["fvbneogb"] = "kma";
- ${"GLOBALS"}["yfzxrdbtl"] = "kma";
- ${${"GLOBALS"}["zefozq"]} = mysql_real_escape_string(${${"GLOBALS"}["frndgvpf"]});
- ${${"GLOBALS"}["fvbneogb"]} = mysql_real_escape_string(${${"GLOBALS"}["yfzxrdbtl"]});
- ${"GLOBALS"}["befvcrbyr"] = "gad";
- ${${"GLOBALS"}["boprpkbymwv"]} = mysql_real_escape_string(${${"GLOBALS"}["befvcrbyr"]});
- ${${"GLOBALS"}["puovuqwtl"]} = "INSERT INTO " . _DB_PREFIX_ . "sp_banka (\n\t\tad,\n\t\tkod,\n\t\tusr,\n\t\tpas,\n\t\tmid,\n\t\ttid,\n\t\tpno,\n\t\tuno,\n\t\txcp,\n\t\tkmp,\n\t\tkma,\n\t\togs,\n\t\ttgs,\n\t\tgad,\n\t\tpua\n\t\t) \n\t\tVALUES (\n\t\t'$ad',\n\t\t'$kod',\n\t\t'$usr',\n\t\t'$pas',\n\t\t'$mid',\n\t\t'$tid',\n\t\t'$pno',\n\t\t'$uno',\n\t\t'$xcp',\n\t\t'$kmp',\n\t\t'$kma',\n\t\t'$ogs',\n\t\t'$tgs',\n\t\t'$gad',\n\t\t'$pua'\n\t\t)";
- if ($db->query(${$afolmo})) {
- $zkfisdoulnq = "i";
- $pqzlzy = "v";
- ${"GLOBALS"}["nyhuld"] = "i";
- ${${"GLOBALS"}["euuzbvhugfj"]} = $db->Insert_ID();
- ${$pqzlzy} = "1.00";
- for (${${"GLOBALS"}["nyhuld"]} = 1; ${${"GLOBALS"}["ukksemxxl"]} < _SP_MAX_BAN_; ${$zkfisdoulnq}++) {
- if (${${"GLOBALS"}["ukksemxxl"]} > 12)
- ${${"GLOBALS"}["yermkls"]} = "";
- $db->query("INSERT INTO " . _DB_PREFIX_ . "sp_taksit (idb, oran, vade) VALUES ('$idb','$v','$i')");
- }
- return true;
- }
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- function SpAddO($id_order, $bid, $tid, $tot, $snc, $date_add = '', $data_string = '', $msg = '', $sid = '', $stt = '')
- {
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- $jvosluy = "q";
- ${${"GLOBALS"}["puovuqwtl"]} = "INSERT INTO `" . _DB_PREFIX_ . "sp_islem` \n\t\t( `id_order` , `bid` , `tid` , `tot` , `snc` , `date_add` , `data_string` , `msg` , `sid` , `stt` )\tVALUES (\n\t\t '$id_order', '$bid', '$tid', '$tot', '$snc', '$date_add', '$data_string', '$msg', '$sid', '$stt');";
- if ($db->query(${$jvosluy}))
- return true;
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- function SpUpB($id, $ad, $kod, $usr, $pas, $mid = '', $tid = '', $pno = '', $uno = '', $xcp = '', $kmp = '', $kme = '', $kmo = '', $kma = '', $ogs = '', $tgs = '', $gad = '', $pua = 0)
- {
- ${"GLOBALS"}["mllgdmhave"] = "kmp";
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- ${${"GLOBALS"}["frndgvpf"]} = mysql_real_escape_string(${${"GLOBALS"}["mllgdmhave"]});
- $mwzmobjuf = "q";
- ${"GLOBALS"}["jsljhuexf"] = "gad";
- ${"GLOBALS"}["yyyduchc"] = "kma";
- $xjeyqy = "q";
- ${${"GLOBALS"}["yyyduchc"]} = mysql_real_escape_string(${${"GLOBALS"}["bybrlceky"]});
- ${${"GLOBALS"}["boprpkbymwv"]} = mysql_real_escape_string(${${"GLOBALS"}["jsljhuexf"]});
- ${$mwzmobjuf} = "UPDATE " . _DB_PREFIX_ . "sp_banka SET \n\t\tad\t\t= '$ad',\n\t\tkod\t\t= '$kod',\n\t\tusr\t\t= '$usr',\n\t\tpas\t\t= '$pas',\n\t\tmid\t\t= '$mid',\n\t\ttid\t\t= '$tid',\n\t\tpno\t\t= '$pno',\n\t\tuno\t\t= '$uno',\n\t\txcp\t\t= '$xcp',\n\t\tkmp\t\t= '$kmp',\n\t\tkme\t\t= '$kme',\n\t\tkmo\t\t= '$kmo',\n\t\tkmp\t\t= '$kmp',\n\t\tkma\t\t= '$kma',\n\t\togs\t\t= '$ogs',\n\t\ttgs\t\t= '$tgs',\n\t\tgad \t= '$gad',\n\t\tpua \t= '$pua'\n\t\tWHERE id = '$id' LIMIT 1";
- if ($db->query(${$xjeyqy}))
- return true;
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- function SpUpT($idb, $vade, $oran = '')
- {
- $jhuspdp = "db";
- $ltywnijktb = "q";
- ${$jhuspdp} = Db::getInstance();
- ${$ltywnijktb} = "UPDATE " . _DB_PREFIX_ . "sp_taksit SET \n\t\toran\t= '$oran'\n\t\tWHERE idb = '$idb' AND vade = '$vade' LIMIT 1";
- if ($db->query(${${"GLOBALS"}["puovuqwtl"]}))
- return true;
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- function SpDelB($id)
- {
- ${"GLOBALS"}["fnyrmycor"] = "query";
- ${"GLOBALS"}["hoqlvkcre"] = "query";
- $xvwdswdzlcd = "db";
- ${$xvwdswdzlcd} = Db::getInstance();
- ${${"GLOBALS"}["srmmmmptjdt"]} = "DELETE FROM " . _DB_PREFIX_ . "sp_banka WHERE id = '$id' LIMIT 1";
- if (!$db->query(${${"GLOBALS"}["hoqlvkcre"]})) {
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- ${${"GLOBALS"}["srmmmmptjdt"]} = "DELETE FROM " . _DB_PREFIX_ . "sp_taksit WHERE idb = '$id'";
- if ($db->query(${${"GLOBALS"}["fnyrmycor"]}))
- return true;
- $this->_errors[] = $db->getMsgError();
- return false;
- }
- function SpGetIt($total = 1, $cur = "", $mod = 1)
- {
- $hgpuwviob = "db";
- $slxrgtuge = "q";
- ${$hgpuwviob} = Db::getInstance();
- ${${"GLOBALS"}["djkncjf"]} = array();
- ${$slxrgtuge} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_banka");
- if (!${${"GLOBALS"}["puovuqwtl"]} OR count(${${"GLOBALS"}["puovuqwtl"]}) < 1)
- return false;
- foreach (${${"GLOBALS"}["puovuqwtl"]} as ${${"GLOBALS"}["pskgxlekeu"]}) {
- ${"GLOBALS"}["lvydvpzu"] = "banka";
- ${"GLOBALS"}["xqytognbcmy"] = "r";
- ${"GLOBALS"}["jlijlozq"] = "qt";
- $wfduetnbt = "taksit";
- ${${"GLOBALS"}["jlijlozq"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_taksit WHERE idb = '" . ${${"GLOBALS"}["pskgxlekeu"]}["id"] . "' ORDER BY vade");
- foreach (${${"GLOBALS"}["mtyyqccyszp"]} as ${$wfduetnbt}) {
- ${"GLOBALS"}["jutoyfjg"] = "mod";
- if (${${"GLOBALS"}["jutoyfjg"]} = 2) {
- ${"GLOBALS"}["ylkmwhsql"] = "total";
- $rvpntdy = "taksit";
- ${"GLOBALS"}["hpslsbr"] = "taksit";
- $unasuhtngpg = "taksit";
- ${${"GLOBALS"}["vgfmjxuspcf"]}["vtop"] = number_format(((float) ${${"GLOBALS"}["vgfmjxuspcf"]}["oran"] + 100) * (${${"GLOBALS"}["ylkmwhsql"]} / 100), 2, ".", "");
- ${$unasuhtngpg}["aylk"] = number_format((${${"GLOBALS"}["hpslsbr"]}["vtop"] / ${$rvpntdy}["vade"]), 2, ".", "");
- }
- ${"GLOBALS"}["gdrrjzknlm"] = "banka";
- ${"GLOBALS"}["itqojp"] = "taksit";
- ${${"GLOBALS"}["gdrrjzknlm"]}["taksitler"][] = ${${"GLOBALS"}["itqojp"]};
- }
- ${${"GLOBALS"}["xqytognbcmy"]}[] = ${${"GLOBALS"}["lvydvpzu"]};
- }
- return ${${"GLOBALS"}["djkncjf"]};
- }
- function SpGetIns($id)
- {
- ${"GLOBALS"}["fhfkwslh"] = "db";
- ${${"GLOBALS"}["fhfkwslh"]} = Db::getInstance();
- ${${"GLOBALS"}["puovuqwtl"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_taksit WHERE id = '$id' LIMIT 0,1");
- ${${"GLOBALS"}["puovuqwtl"]}["banka"] = $this->SpGetBan(${${"GLOBALS"}["vgfmjxuspcf"]}["idb"]);
- ${"GLOBALS"}["brljxpi"] = "taksit";
- return ${${"GLOBALS"}["brljxpi"]};
- }
- function SpGetStatB($bid)
- {
- $vutvmul = "db";
- ${"GLOBALS"}["ivjppq"] = "islem";
- ${$vutvmul} = Db::getInstance();
- ${${"GLOBALS"}["puovuqwtl"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_islem WHERE bid='$bid'");
- foreach (${${"GLOBALS"}["puovuqwtl"]} as ${${"GLOBALS"}["ivjppq"]}) {
- ${"GLOBALS"}["kxptfaahguuk"] = "banka";
- ${${"GLOBALS"}["kxptfaahguuk"]}[""] = $this->SpGetBan(${${"GLOBALS"}["vgfmjxuspcf"]}["idb"]);
- }
- return ${${"GLOBALS"}["vgfmjxuspcf"]};
- }
- function SpGetLT()
- {
- $wxotlm = "db";
- ${$wxotlm} = Db::getInstance();
- ${${"GLOBALS"}["dvjiopo"]} = array();
- $dbteoo = "result";
- ${${"GLOBALS"}["puovuqwtl"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_islem ORDER BY date_add DESC ");
- foreach (${${"GLOBALS"}["puovuqwtl"]} as ${${"GLOBALS"}["mdcusegt"]})
- ${$dbteoo}[] = ${${"GLOBALS"}["mdcusegt"]};
- return ${${"GLOBALS"}["dvjiopo"]};
- }
- function SpGetBan($id)
- {
- ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
- $bxdtudqyyx = "return";
- ${${"GLOBALS"}["wvkxmxryyvgd"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_banka WHERE id = '$id' LIMIT 0,1");
- return ${$bxdtudqyyx}[0];
- }
- function SpGetBanBC($kod)
- {
- ${"GLOBALS"}["vujugqpthw"] = "db";
- ${${"GLOBALS"}["vujugqpthw"]} = Db::getInstance();
- ${${"GLOBALS"}["wvkxmxryyvgd"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_banka WHERE kod = '$kod' LIMIT 0,1");
- return ${${"GLOBALS"}["wvkxmxryyvgd"]}[0];
- }
- function SPPut2F($t, $e = true)
- {
- ${${"GLOBALS"}["agoudtolkuv"]} = fopen(_PS_MODULE_DIR_ . "sanalpos/oth/deb.php", "a");
- $yvwcdkzpn = "t";
- $jmijemg = "t";
- $gfgksljjcnuu = "e";
- if (${$gfgksljjcnuu} == true)
- ${$jmijemg} = base64_encode(${${"GLOBALS"}["wujjlwturry"]});
- $mmtyoeuskmt = "handle";
- if (fwrite(${$mmtyoeuskmt}, ${$yvwcdkzpn})) {
- return true;
- }
- return false;
- }
- function FixTrUnicode($q)
- {
- $mstqdpubmtt = "q";
- ${"GLOBALS"}["uofsevkfkti"] = "q";
- $vhjwgwcg = "q";
- ${"GLOBALS"}["wdfiya"] = "q";
- ${${"GLOBALS"}["puovuqwtl"]} = str_replace("A�", "I", ${$mstqdpubmtt});
- ${${"GLOBALS"}["uofsevkfkti"]} = str_replace("A�", "c", ${${"GLOBALS"}["wdfiya"]});
- ${$vhjwgwcg} = str_replace("A", "s", ${${"GLOBALS"}["puovuqwtl"]});
- return ${${"GLOBALS"}["puovuqwtl"]};
- }
- function EncDec($Str_Message)
- {
- $foqmfxtxduz = "Str_Encrypted_Message";
- ${"GLOBALS"}["cezekcrustmi"] = "Len_Str_Message";
- ${"GLOBALS"}["nqwkutpr"] = "Position";
- ${${"GLOBALS"}["cezekcrustmi"]} = STRLEN(${${"GLOBALS"}["zkqeolnkqvn"]});
- ${${"GLOBALS"}["upqsfjo"]} = "";
- for (${${"GLOBALS"}["vyrvfwccaljb"]} = 0; ${${"GLOBALS"}["nqwkutpr"]} < ${${"GLOBALS"}["mansilqt"]}; ${${"GLOBALS"}["vyrvfwccaljb"]}++) {
- ${"GLOBALS"}["xgbobswe"] = "Encrypted_Byte";
- $txyauis = "Key_To_Use";
- ${"GLOBALS"}["cgexdn"] = "Key_To_Use";
- $ieqjow = "Byte_To_Be_Encrypted";
- $ihuxlvf = "Str_Message";
- ${"GLOBALS"}["ibqhhmvkvkx"] = "Xored_Byte";
- ${$txyauis} = ((${${"GLOBALS"}["mansilqt"]} + ${${"GLOBALS"}["vyrvfwccaljb"]}) + 1);
- $kqdlzbcmct = "Key_To_Use";
- ${"GLOBALS"}["fdukjdto"] = "Ascii_Num_Byte_To_Encrypt";
- $omdapglix = "Ascii_Num_Byte_To_Encrypt";
- ${"GLOBALS"}["rilwlvey"] = "Byte_To_Be_Encrypted";
- ${$kqdlzbcmct} = (255 + ${${"GLOBALS"}["nitqgwprpd"]}) % 255;
- ${$ieqjow} = SUBSTR(${$ihuxlvf}, ${${"GLOBALS"}["vyrvfwccaljb"]}, 1);
- ${$omdapglix} = ORD(${${"GLOBALS"}["rilwlvey"]});
- ${"GLOBALS"}["shoiehvju"] = "Xored_Byte";
- ${${"GLOBALS"}["shoiehvju"]} = ${${"GLOBALS"}["fdukjdto"]} ^ ${${"GLOBALS"}["cgexdn"]};
- ${${"GLOBALS"}["lrpywqupg"]} = CHR(${${"GLOBALS"}["ibqhhmvkvkx"]});
- ${${"GLOBALS"}["upqsfjo"]} .= ${${"GLOBALS"}["xgbobswe"]};
- }
- return ${$foqmfxtxduz};
- }
- static public function getCurrent()
- {
- global $cookie;
- if (!@${${"GLOBALS"}["crvidjfqfzu"]}) {
- ${"GLOBALS"}["ixtczttjrxn"] = "current";
- if (isset($cookie->id_currency) AND $cookie->id_currency)
- ${${"GLOBALS"}["crvidjfqfzu"]} = new Currency(intval($cookie->id_currency));
- else
- ${${"GLOBALS"}["ixtczttjrxn"]} = new Currency(intval(Configuration::get("PS_CURRENCY_DEFAULT")));
- }
- return ${${"GLOBALS"}["crvidjfqfzu"]};
- }
- }
- include(_PS_MODULE_DIR_ . "/sanalpos/conf.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement