Advertisement
Guest User

@esdizayn => hex file => decoded

a guest
Mar 29th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 71.90 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. (c) ETICSOFT E-commerce Solutions (0 242) 241 59 85
  5. ########################################################################
  6.  
  7. #####       THIS SUB-SOFTWARE (MODULE) IS NOT OPEN SOURCE.          #####
  8. #####       DISTRIBUTION AND SOURCE CODE RIGHTS RESERVED.           #####
  9.  
  10.  
  11. #####       BU EKLENTİ YAZILIMI (MODÜL) AÇIK KAYNAKLI DEĞİLDİR.       #####
  12. #####       DAGITIM VE KODLARDA DEGISIKLIK HAKKI SAKLIDIR.          #####
  13. #########################################################################
  14.  
  15. (c) ETICSOFT  E-ticaret Teknolojileri 2004 - 2012
  16. Türk bankaları için Sanal pos olarak ödeme alir.
  17. prestashopsanalpos.com (Prestashop Sanal Pos Projesi)
  18. Daha Fazla bilgi almak içi     prestashopsanalpos.com veya bilgi@eticsoft.com
  19. (0 242) 241 59 85
  20.  
  21. (c) ETICSOFT E-commerce Solutions 2004 - 2012
  22. Allows payment via Turkish Banks
  23. prestashopsanalpos.com Prestashop Development
  24. For more info and support prestashopsanalpos.com
  25. +90.242 241 59 85
  26.  
  27. #########################################################################
  28. */
  29.  
  30. ${"GLOBALS"}["gqbqsjdgan"]   = "sonk_ip";
  31. ${"GLOBALS"}["vcdsxvlfpfd"]  = "data";
  32. ${"GLOBALS"}["bnkigao"]      = "isl";
  33. ${"GLOBALS"}["mdcusegt"]     = "islem";
  34. ${"GLOBALS"}["lgcrcmf"]      = "config";
  35. ${"GLOBALS"}["eahowrqgsh"]   = "parity";
  36. ${"GLOBALS"}["sdukpolukp"]   = "c_mail";
  37. ${"GLOBALS"}["rtxfhrl"]      = "c_ip";
  38. ${"GLOBALS"}["xcwxvekrvlr"]  = "total";
  39. ${"GLOBALS"}["boprpkbymwv"]  = "gad";
  40. ${"GLOBALS"}["crvidjfqfzu"]  = "current";
  41. ${"GLOBALS"}["bekmwywli"]    = "sonuc";
  42. ${"GLOBALS"}["lrpywqupg"]    = "Encrypted_Byte";
  43. ${"GLOBALS"}["qjlypdsf"]     = "pno";
  44. ${"GLOBALS"}["mtyyqccyszp"]  = "qt";
  45. ${"GLOBALS"}["qdooxkdwh"]    = "ia";
  46. ${"GLOBALS"}["gjtkovbrue"]   = "query2";
  47. ${"GLOBALS"}["mansilqt"]     = "Len_Str_Message";
  48. ${"GLOBALS"}["twkopwpg"]     = "ts_sayisi";
  49. ${"GLOBALS"}["byfshmropfzr"] = "c_gos";
  50. ${"GLOBALS"}["uhuypa"]       = "mid";
  51. ${"GLOBALS"}["ccedbgbet"]    = "state";
  52. ${"GLOBALS"}["yxhlwsg"]      = "cardexpDate_mo";
  53. ${"GLOBALS"}["brboynvsctj"]  = "db";
  54. ${"GLOBALS"}["zkqeolnkqvn"]  = "Str_Message";
  55. ${"GLOBALS"}["chhtgovpfmfi"] = "tot_p";
  56. ${"GLOBALS"}["djobchc"]      = "currencies_used";
  57. ${"GLOBALS"}["pskgxlekeu"]   = "banka";
  58. ${"GLOBALS"}["wvkxmxryyvgd"] = "return";
  59. ${"GLOBALS"}["nitqgwprpd"]   = "Key_To_Use";
  60. ${"GLOBALS"}["efgvsttu"]     = "cardName";
  61. ${"GLOBALS"}["rymxguydevx"]  = "cardlength";
  62. ${"GLOBALS"}["dvjiopo"]      = "result";
  63. ${"GLOBALS"}["roamfgvkmq"]   = "bankaid";
  64. ${"GLOBALS"}["wrqhkhicu"]    = "sn_errmsg";
  65. ${"GLOBALS"}["apwzfgvcqaq"]  = "tutar";
  66. ${"GLOBALS"}["yermkls"]      = "v";
  67. ${"GLOBALS"}["xpqdipbrucb"]  = "id_order";
  68. ${"GLOBALS"}["ukksemxxl"]    = "i";
  69. ${"GLOBALS"}["tqvpjlysozr"]  = "errNumber";
  70. ${"GLOBALS"}["fncbdzq"]      = "act";
  71. ${"GLOBALS"}["kpvjfaujsvs"]  = "currencies";
  72. ${"GLOBALS"}["vddilylf"]     = "data_string";
  73. ${"GLOBALS"}["xbpfxupmf"]    = "authorized_currencies";
  74. ${"GLOBALS"}["xmocvxtsvt"]   = "d";
  75. ${"GLOBALS"}["bsnrjvqjrvq"]  = "sum";
  76. ${"GLOBALS"}["dgvmijnnh"]    = "ii";
  77. ${"GLOBALS"}["isdydmhzffl"]  = "modNoFunction";
  78. ${"GLOBALS"}["lcvbefre"]     = "sanalpos_do_id";
  79. ${"GLOBALS"}["wqbshrxaxdby"] = "kme";
  80. ${"GLOBALS"}["bmlahzsnc"]    = "c_tsh";
  81. ${"GLOBALS"}["xwothkvtd"]    = "valid";
  82. ${"GLOBALS"}["srmmmmptjdt"]  = "query";
  83. ${"GLOBALS"}["rgelcy"]       = "bankai";
  84. ${"GLOBALS"}["upqsfjo"]      = "Str_Encrypted_Message";
  85. ${"GLOBALS"}["srakcijbiw"]   = "banka_sayisi";
  86. ${"GLOBALS"}["jilrjqgyhyy"]  = "key";
  87. ${"GLOBALS"}["bskvvmlhvvdq"] = "sn_skt";
  88. ${"GLOBALS"}["camjvhvop"]    = "order";
  89. ${"GLOBALS"}["hgrgbv"]       = "kur";
  90. ${"GLOBALS"}["lycpafi"]      = "errBanka";
  91. ${"GLOBALS"}["qusddlbccx"]   = "staksit";
  92. ${"GLOBALS"}["wbseetvwxk"]   = "cardnumber";
  93. ${"GLOBALS"}["cjghlun"]      = "query3";
  94. ${"GLOBALS"}["bkrubmraovy"]  = "url";
  95. ${"GLOBALS"}["vyrvfwccaljb"] = "Position";
  96. ${"GLOBALS"}["wujjlwturry"]  = "t";
  97. ${"GLOBALS"}["smnrzvqlive"]  = "cardCVC";
  98. ${"GLOBALS"}["hfvfkzfp"]     = "toplam_cek";
  99. ${"GLOBALS"}["rikrbnsdetkv"] = "cardString";
  100. ${"GLOBALS"}["frndgvpf"]     = "kmp";
  101. ${"GLOBALS"}["puovuqwtl"]    = "q";
  102. ${"GLOBALS"}["allemj"]       = "errName";
  103. ${"GLOBALS"}["ghwhvsyltgsn"] = "inf";
  104. ${"GLOBALS"}["vgfmjxuspcf"]  = "taksit";
  105. ${"GLOBALS"}["guvhvg"]       = "kmo";
  106. ${"GLOBALS"}["agoudtolkuv"]  = "handle";
  107. ${"GLOBALS"}["jrjjvgavcn"]   = "modUpdated";
  108. ${"GLOBALS"}["qxolfobo"]     = "digit";
  109. ${"GLOBALS"}["ycnftwxfxtr"]  = "errExpDate";
  110. ${"GLOBALS"}["kicgrwkrsh"]   = "ban";
  111. ${"GLOBALS"}["gjzdjbcq"]     = "currency";
  112. ${"GLOBALS"}["hvbzdti"]      = "params";
  113. ${"GLOBALS"}["kgjubt"]       = "cardexpDate_yr";
  114. ${"GLOBALS"}["obwnjnn"]      = "cardNumber";
  115. ${"GLOBALS"}["espekkic"]     = "tss";
  116. ${"GLOBALS"}["oeiqcif"]      = "tid";
  117. ${"GLOBALS"}["djkncjf"]      = "r";
  118. ${"GLOBALS"}["oungdpzjijup"] = "ch";
  119. ${"GLOBALS"}["viptwwjiqvq"]  = "taksit_dizi";
  120. ${"GLOBALS"}["hritkqqomj"]   = "errCVC";
  121. ${"GLOBALS"}["bybrlceky"]    = "kma";
  122. ${"GLOBALS"}["euuzbvhugfj"]  = "idb";
  123. ${"GLOBALS"}["iaaiyuxrdw"]   = "query4";
  124. class SanalPos extends PaymentModule
  125. {
  126.     private $_html = '';
  127.     private $_postErrors = array();
  128.     public $currencies, $bf, $path;
  129.     public $requireCVC;
  130.     function __construct()
  131.     {
  132.         $this->name        = "sanalpos";
  133.         $this->displayName = "Sanal Pos";
  134.         if (_PS_VERSION_ < "1.4.0.0")
  135.             $this->tab = "Payment";
  136.         else
  137.             $this->tab = "payments_gateways";
  138.         $this->version           = 4.70;
  139.         $this->idOrderState      = Configuration::get("SANAL_POS_IOS");
  140.         $ieborhjp                = "config";
  141.         $this->curVersionFileURL = "http://www.iyonhost.com/app/sanalpos/check.php";
  142.         $this->bf                = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_);
  143.         if (!Configuration::get("SANAL_POS_CUR"))
  144.             $this->_makeCurrencies();
  145.         ${${"GLOBALS"}["lgcrcmf"]} = Configuration::get("SANAL_POS_CUR");
  146.         $this->currencies          = isset(${${"GLOBALS"}["lgcrcmf"]}["SANAL_POS_CUR"]) ? ${$ieborhjp}["SANAL_POS_CUR"] : null;
  147.         $this->requireCVC          = Configuration::get("SANAL_POS_CVC_REQ");
  148.         parent::__construct();
  149.         $this->page        = basename(__FILE__, ".php");
  150.         $this->displayName = "Sanal Pos";
  151.         $this->description = "Turk Bankalari Icin Kredi Karti Odemesi Alir";
  152.         $this->path        = $this->_path;
  153.         $this->banks       = array(
  154.             "wrd" => array(
  155.                 "kod" => "wrd",
  156.                 "ad" => "Yapikredi Bankasi",
  157.                 "renk" => "650571"
  158.             ),
  159.             "axs" => array(
  160.                 "kod" => "axs",
  161.                 "ad" => "Akbank",
  162.                 "renk" => "F8910E"
  163.             ),
  164.             "cfi" => array(
  165.                 "kod" => "cfi",
  166.                 "ad" => "Finansbank",
  167.                 "renk" => "191991"
  168.             ),
  169.             "adv" => array(
  170.                 "kod" => "adv",
  171.                 "ad" => "HSBC",
  172.                 "renk" => "F04B04"
  173.             ),
  174.             "max" => array(
  175.                 "kod" => "max",
  176.                 "ad" => "Is Bankasi",
  177.                 "renk" => "E10C5C"
  178.             ),
  179.             "bas" => array(
  180.                 "kod" => "bas",
  181.                 "ad" => "Bank Asya",
  182.                 "renk" => "F8910E"
  183.             ),
  184.             "bns" => array(
  185.                 "kod" => "bns",
  186.                 "ad" => "Garanti Bankasi",
  187.                 "renk" => "5DA527"
  188.             ),
  189.             "hlk" => array(
  190.                 "kod" => "hlk",
  191.                 "ad" => "Halkbank",
  192.                 "renk" => "015596"
  193.             ),
  194.             "vak" => array(
  195.                 "kod" => "vak",
  196.                 "ad" => "Vakifbank",
  197.                 "renk" => "FDFD47"
  198.             ),
  199.             "ana" => array(
  200.                 "kod" => "ana",
  201.                 "ad" => "Anadolubank",
  202.                 "renk" => "000000"
  203.             ),
  204.             "dnz" => array(
  205.                 "kod" => "dnz",
  206.                 "ad" => "DenizBank",
  207.                 "renk" => "0D4E8F"
  208.             ),
  209.             "teb" => array(
  210.                 "kod" => "teb",
  211.                 "ad" => "T.E.B",
  212.                 "renk" => "00824E"
  213.             ),
  214.             "cti" => array(
  215.                 "kod" => "cti",
  216.                 "ad" => "CityBank",
  217.                 "renk" => "00824E"
  218.             ),
  219.             "kvt" => array(
  220.                 "kod" => "kvt",
  221.                 "ad" => "Kuveyt Turk",
  222.                 "renk" => "00824E"
  223.             ),
  224.             "for" => array(
  225.                 "kod" => "for",
  226.                 "ad" => "Fortis Bank",
  227.                 "renk" => "E01319"
  228.             )
  229.         );
  230.     }
  231.     function install()
  232.     {
  233.         if (parent::install()) {
  234.             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")) {
  235.                 $this->_errors[] = "Error while hook";
  236.                 return false;
  237.             }
  238.             $iewwyyhkke = "query1";
  239.             $this->_makeCurrencies();
  240.             $this->_makeOrderState();
  241.             Configuration::updateValue("SANAL_POS_DBK", "axs");
  242.             Configuration::updateValue("SANAL_POS_IP", $_SERVER["SERVER_ADDR"]);
  243.             Configuration::updateValue("SANAL_POS_DEB", "Kapali");
  244.             Configuration::updateValue("SANAL_POS_GOS", "Goster");
  245.             Configuration::updateValue("SANAL_POS_MAI", Configuration::get("PS_SHOP_EMAIL"));
  246.             Configuration::updateValue("SANAL_POS_KMS", "0.00");
  247.             Configuration::updateValue("SANAL_POS_GOS", "Goster");
  248.             ${"GLOBALS"}["pqbmbed"] = "query3";
  249.             Configuration::updateValue("SANAL_POS_IOS", 2);
  250.             Configuration::updateValue("SANAL_POS_OTP", "jqtab");
  251.             Configuration::updateValue("SANAL_POS_OYE", "ust");
  252.             $nikcygf = "query1";
  253.             Configuration::updateValue("SANAL_POS_PHO", "Gizle");
  254.             Configuration::updateValue("SANAL_POS_PUA", "Goster");
  255.             Configuration::updateValue("SANAL_POS_TAH", "Goster");
  256.             Configuration::updateValue("SANAL_POS_TSH", "Sekme");
  257.             Configuration::updateValue("SANAL_POS_TTP", "Renk");
  258.             ${"GLOBALS"}["gfsqxf"] = "query2";
  259.             $this->taksitsekmesi();
  260.             ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  261.             ${$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 ";
  262.             ${${"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 ";
  263.             ${"GLOBALS"}["xnmwre"]         = "query4";
  264.             ${${"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 ";
  265.             ${${"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 ";
  266.             if (!$db->Execute(${$iewwyyhkke}) OR !$db->Execute(${${"GLOBALS"}["gfsqxf"]}) OR !$db->Execute(${${"GLOBALS"}["cjghlun"]}) OR !$db->Execute(${${"GLOBALS"}["iaaiyuxrdw"]})) {
  267.                 $this->_errors[] = "Error while creating MYSQL table(s)" . $db->displayError();
  268.                 return false;
  269.             }
  270.             if ($this->SpCount(true, "sp_banka") > 0)
  271.                 return true;
  272.             else if ($this->SpAddB() AND $this->SpAddB("Garanti", "bns"))
  273.                 return true;
  274.             else
  275.                 $this->_errors[] = "Error while inserting Bank rates " . $db->displayError();
  276.             return false;
  277.         } else
  278.             return false;
  279.     }
  280.     function uninstall()
  281.     {
  282.         Configuration::deleteByName("SANAL_POS_CUR");
  283.         Configuration::deleteByname("SANAL_POS_DBK");
  284.         Configuration::deleteByname("SANAL_POS_IP");
  285.         Configuration::deleteByname("SANAL_POS_MAI");
  286.         Configuration::deleteByname("SANAL_POS_KMS");
  287.         Configuration::deleteByname("SANAL_POS_GOS");
  288.         Configuration::deleteByname("SANAL_POS_IOS");
  289.         parent::uninstall();
  290.         return true;
  291.     }
  292.     function getContent()
  293.     {
  294.         $this->_html = "<h2>" . $this->displayName . " (Prestashop v" . _PS_VERSION_ . " modu) " . "</h2>";
  295.         if (!empty($_POST)) {
  296.             $wfopfjjp = "err";
  297.             if (@$_POST["bank-form"] == 1 || @$_POST["conf-form"] == 1) {
  298.                 if ($this->FormYazdir()) {
  299.                     $this->_displayCreditCard();
  300.                     $this->_displayForm();
  301.                     return $this->_html;
  302.                 }
  303.             }
  304.             if (!sizeof($this->_postErrors))
  305.                 $this->_postProcess();
  306.             else
  307.                 foreach ($this->_postErrors AS ${$wfopfjjp})
  308.                     $this->_html .= "<div class='alert error'>{$err}</div>";
  309.         } else
  310.             $this->_html .= "<br />";
  311.         $this->_displayCreditCard();
  312.         $this->_displayForm();
  313.         return $this->_html;
  314.     }
  315.     function execPayment($cart)
  316.     {
  317.         if (Configuration::get("SANAL_POS_LCN") != md5("nn" . Configuration::get("SANAL_POS_MAI"))) {
  318.             echo "Modul su anda aktif degil";
  319.             return "";
  320.         }
  321.         global $cart;
  322.         $aphhognvgx                  = "errBanka";
  323.         $xhxnblvqw                   = "errCVC";
  324.         ${${"GLOBALS"}["allemj"]}    = "0";
  325.         $muqwgff                     = "errNumber";
  326.         ${$aphhognvgx}               = "0";
  327.         ${$muqwgff}                  = "0";
  328.         $hwbigoaup                   = "errExpDate";
  329.         ${$xhxnblvqw}                = "0";
  330.         ${$hwbigoaup}                = "0";
  331.         ${${"GLOBALS"}["wrqhkhicu"]} = "";
  332.         if (isset($_POST["paymentSubmit"])) {
  333.             $suhacw                         = "bankaid";
  334.             $tsuxhkspqo                     = "taksit_dizi";
  335.             $gsudmbun                       = "cardNumber";
  336.             ${${"GLOBALS"}["efgvsttu"]}     = $_POST["cardName"];
  337.             ${$gsudmbun}                    = $_POST["cardNumber"];
  338.             ${"GLOBALS"}["ueflmdkjiahk"]    = "errExpDate";
  339.             $pwmifi                         = "cardexpDate_yr";
  340.             ${${"GLOBALS"}["smnrzvqlive"]}  = $_POST["cardCVC"];
  341.             ${${"GLOBALS"}["yxhlwsg"]}      = $_POST["expDate_Month"];
  342.             ${"GLOBALS"}["gutwpsfxsika"]    = "errCVC";
  343.             ${$pwmifi}                      = $_POST["expDate_Year"];
  344.             ${"GLOBALS"}["iridmv"]          = "cardName";
  345.             ${${"GLOBALS"}["bskvvmlhvvdq"]} = "$cardexpDate_yr$cardexpDate_mo";
  346.             ${"GLOBALS"}["ibattbn"]         = "errExpDate";
  347.             ${${"GLOBALS"}["gqbqsjdgan"]}   = $_SERVER["REMOTE_ADDR"];
  348.             ${"GLOBALS"}["fsbjyllt"]        = "toplam_cek";
  349.             ${"GLOBALS"}["isxfdutn"]        = "taksit_dizi";
  350.             ${${"GLOBALS"}["viptwwjiqvq"]}  = explode("*-*", $_POST["taksit-sayisi"]);
  351.             $gdcvjhubgew                    = "bankai";
  352.             ${"GLOBALS"}["fxxgqobfxbu"]     = "errExpDate";
  353.             $ugimlf                         = "cardCVC";
  354.             ${${"GLOBALS"}["twkopwpg"]}     = ${$tsuxhkspqo}[0];
  355.             ${${"GLOBALS"}["fsbjyllt"]}     = ${${"GLOBALS"}["viptwwjiqvq"]}[1];
  356.             ${${"GLOBALS"}["pskgxlekeu"]}   = ${${"GLOBALS"}["isxfdutn"]}[2];
  357.             $qbbkqwdli                      = "errCVC";
  358.             @${${"GLOBALS"}["qusddlbccx"]} = ${${"GLOBALS"}["viptwwjiqvq"]}[3];
  359.             ${"GLOBALS"}["xmckxmef"]        = "banka";
  360.             $ioetifvdipdj                   = "cardexpDate_yr";
  361.             ${"GLOBALS"}["zhuuhd"]          = "errName";
  362.             ${${"GLOBALS"}["rgelcy"]}       = $this->SpGetBanBC(${${"GLOBALS"}["xmckxmef"]});
  363.             ${$suhacw}                      = ${$gdcvjhubgew}["id"];
  364.             ${${"GLOBALS"}["ghwhvsyltgsn"]} = ${${"GLOBALS"}["rgelcy"]}["id"] . " " . ${${"GLOBALS"}["qusddlbccx"]} . " tks";
  365.             if (${${"GLOBALS"}["iridmv"]} == "")
  366.                 ${${"GLOBALS"}["allemj"]} = "1";
  367.             if (strlen(${$ugimlf}) < 2 || strlen(${${"GLOBALS"}["smnrzvqlive"]}) > 4)
  368.                 ${$qbbkqwdli} = "1";
  369.             if (${${"GLOBALS"}["yxhlwsg"]} == "0" || ${$ioetifvdipdj} == "0")
  370.                 ${${"GLOBALS"}["ibattbn"]} = "1";
  371.             if (${${"GLOBALS"}["zhuuhd"]} == "0" && ${${"GLOBALS"}["hritkqqomj"]} == "0" && ${${"GLOBALS"}["ueflmdkjiahk"]} == "0") {
  372.                 ${"GLOBALS"}["cgpdjjhwpwj"] = "sn_errmsg";
  373.                 if ($cart->getOrderTotal(true, 3) < 0.90) {
  374.                     ${${"GLOBALS"}["lycpafi"]}   = "1";
  375.                     ${${"GLOBALS"}["wrqhkhicu"]} = "Sepette urun yok veya bu islem icin yetersiz !";
  376.                     ${${"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>");
  377.                     $owbgstb                     = "sanalpos_do_id";
  378.                     ${$owbgstb}                  = $sonuc->oid;
  379.                 } else {
  380.                     $tbvjrgenmto                = "sonuc";
  381.                     ${"GLOBALS"}["sxwieon"]     = "banka";
  382.                     ${"GLOBALS"}["hprjyhnbcde"] = "cardCVC";
  383.                     $vkkioci                    = "cardexpDate_yr";
  384.                     $kqxodjzis                  = "sonk_ip";
  385.                     $dzaepqrn                   = "cardexpDate_mo";
  386.                     ${"GLOBALS"}["hatslstmov"]  = "ts_sayisi";
  387.                     ${"GLOBALS"}["drilxjehfu"]  = "banka";
  388.                     ${"GLOBALS"}["aivjwdsji"]   = "cardName";
  389.                     ${"GLOBALS"}["kjtsnzkrwwp"] = "cardNumber";
  390.                     $zvfvslxil                  = "toplam_cek";
  391.                     ${$tbvjrgenmto}             = simplexml_load_string($this->Post2Bank(${${"GLOBALS"}["aivjwdsji"]}, ${${"GLOBALS"}["kjtsnzkrwwp"]}, ${${"GLOBALS"}["hprjyhnbcde"]}, ${$dzaepqrn}, ${$vkkioci}, ${$kqxodjzis}, ${${"GLOBALS"}["hatslstmov"]}, ${$zvfvslxil}, ${${"GLOBALS"}["drilxjehfu"]}));
  392.                     if (${${"GLOBALS"}["sxwieon"]} == "wrd") {
  393.                         $qnrnvlkxib = "errBanka";
  394.                         if ($sonuc->rco != "1")
  395.                             ${$qnrnvlkxib} = "1";
  396.                     } else if (${${"GLOBALS"}["pskgxlekeu"]} == "vak") {
  397.                         if ((string) $sonuc->rco != "00")
  398.                             ${${"GLOBALS"}["lycpafi"]} = "1";
  399.                     } else if (${${"GLOBALS"}["pskgxlekeu"]} == "bas") {
  400.                         if ($sonuc->rco != "0000")
  401.                             ${${"GLOBALS"}["lycpafi"]} = "1";
  402.                     } else {
  403.                         $hfpdmrjxmdj = "errBanka";
  404.                         if ($sonuc->rco != "00")
  405.                             ${$hfpdmrjxmdj} = "1";
  406.                     }
  407.                     ${${"GLOBALS"}["wrqhkhicu"]} = $this->FixTrUnicode($sonuc->err);
  408.                     ${${"GLOBALS"}["lcvbefre"]}  = $sonuc->oid;
  409.                 }
  410.                 ${"GLOBALS"}["wsdxrs"]  = "errBanka";
  411.                 ${"GLOBALS"}["xecfinf"] = "ts_sayisi";
  412.                 $cugthimgd              = "errExpDate";
  413.                 if (Configuration::get("SANAL_POS_DEB") == "Acik") {
  414.                     ${"GLOBALS"}["hkgcoxsdvm"] = "key";
  415.                     ${"GLOBALS"}["ogdcxmb"]    = "val";
  416.                     $this->SPPut2F("\n\n------\n " . date("d-m-y G:i:s") . "\n\n------\n POSTED \n", false);
  417.                     foreach ($_POST as ${${"GLOBALS"}["hkgcoxsdvm"]} => ${${"GLOBALS"}["ogdcxmb"]})
  418.                         $this->SPPut2F("\n $key : \t $val");
  419.                     $this->SPPut2F("\n $errName $errBanka $errNumber $errCVC $errExpDate $sn_errmsg");
  420.                 }
  421.                 if (${${"GLOBALS"}["wsdxrs"]} == "0") {
  422.                     $hnyrhozdcns                   = "ts_sayisi";
  423.                     ${"GLOBALS"}["xqqcrzjj"]       = "sonk_ip";
  424.                     ${"GLOBALS"}["ncecwflejz"]     = "cardString";
  425.                     ${"GLOBALS"}["oxsdrbvgr"]      = "cardString";
  426.                     $jjnigccoy                     = "currency";
  427.                     ${$jjnigccoy}                  = new Currency(intval(isset($_POST["currency_payement"]) ? $_POST["currency_payement"] : Currency::getCurrency(Configuration::get("SANAL_POS_CUR"))));
  428.                     ${${"GLOBALS"}["xcwxvekrvlr"]} = $cart->getOrderTotal(true, 3);
  429.                     ${"GLOBALS"}["gglwyrlb"]       = "cardString";
  430.                     $this->validateOrder($cart->id, $this->idOrderState, $cart->getOrderTotal(true, 3), $this->displayName, null, $currency->id);
  431.                     ${"GLOBALS"}["xbtjjidszjn"]     = "toplam_cek";
  432.                     ${"GLOBALS"}["qeegeiqmzlm"]     = "toplam_cek";
  433.                     ${"GLOBALS"}["mwzotzum"]        = "cardNumber";
  434.                     ${${"GLOBALS"}["camjvhvop"]}    = new Order($this->currentOrder);
  435.                     $wrmcqbnexxdt                   = "cardNumber";
  436.                     $pukkbjt                        = "bankai";
  437.                     ${${"GLOBALS"}["rikrbnsdetkv"]} = "Kart uzerindeki isim:<b> {$cardName} </b><br/>";
  438.                     $wfljkdoeyvw                    = "errName";
  439.                     $iligufmnbu                     = "inf";
  440.                     ${${"GLOBALS"}["rikrbnsdetkv"]} .= substr(${$wrmcqbnexxdt}, 0, 8) . "****" . substr(${${"GLOBALS"}["mwzotzum"]}, 12, 14) . "**<br/>";
  441.                     ${${"GLOBALS"}["rikrbnsdetkv"]} .= " Sanal Pos Odeme ID <b>" . ${${"GLOBALS"}["lcvbefre"]} . "</b><br/>";
  442.                     ${${"GLOBALS"}["rikrbnsdetkv"]} .= " Cekim Yapilan Pos :" . ${$pukkbjt}["ad"] . "<br/>";
  443.                     ${${"GLOBALS"}["gglwyrlb"]} .= " Taksit Sayisi:" . ${${"GLOBALS"}["twkopwpg"]} . "<br/>";
  444.                     ${${"GLOBALS"}["rikrbnsdetkv"]} .= " Toplam Cekilen:" . ${${"GLOBALS"}["qeegeiqmzlm"]} . "<br/>";
  445.                     ${${"GLOBALS"}["oxsdrbvgr"]} .= " Toplam Sepet:" . $cart->getOrderTotal(true, 3) . "<br/>";
  446.                     ${${"GLOBALS"}["ncecwflejz"]} .= " Toplam Komisyon:" . (${${"GLOBALS"}["hfvfkzfp"]} - $cart->getOrderTotal(true, 3)) . "<br/>";
  447.                     ${${"GLOBALS"}["rikrbnsdetkv"]} .= " IP no:" . ${${"GLOBALS"}["xqqcrzjj"]} . "<br/>";
  448.                     ${${"GLOBALS"}["rikrbnsdetkv"]} = pSQL($this->bf->encrypt(${${"GLOBALS"}["rikrbnsdetkv"]}), true);
  449.                     $this->addDataString($order->id, ${${"GLOBALS"}["rikrbnsdetkv"]});
  450.                     $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"]});
  451.                     Tools::redirectLink(__PS_BASE_URI__ . "order-confirmation.php?id_cart={$cart->id}&id_module={$this->id}&id_order={$this->currentOrder}&key={$order->secure_key}");
  452.                 }
  453.                 $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"]});
  454.             }
  455.             ${"GLOBALS"}["qltkopyahl"] = "errName";
  456.             if (${${"GLOBALS"}["qltkopyahl"]} == "1" || ${${"GLOBALS"}["lycpafi"]} == "1" || ${${"GLOBALS"}["gutwpsfxsika"]} == "1" || ${${"GLOBALS"}["fxxgqobfxbu"]} == "1") {
  457.                 $wajzcnftkx                = "errBanka";
  458.                 $epyqbgmqxt                = "staksit";
  459.                 ${"GLOBALS"}["ptmrcjxi"]   = "key";
  460.                 $mejuekikmqe               = "currency";
  461.                 ${"GLOBALS"}["odgoasbffe"] = "tot_p";
  462.                 $mgldodanihzf              = "currencies_used";
  463.                 $dhwvomchq                 = "authorized_currencies";
  464.                 $ahefjrucmo                = "errCVC";
  465.                 ${"GLOBALS"}["cajhskf"]    = "errExpDate";
  466.                 $cilisroox                 = "currencies";
  467.                 global $cookie, $smarty;
  468.                 ${"GLOBALS"}["pspaznw"] = "cardName";
  469.                 $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});
  470.                 ${$cilisroox}                = Currency::getCurrencies();
  471.                 ${${"GLOBALS"}["xbpfxupmf"]} = array_flip(explode(",", $this->currencies));
  472.                 $kmjsgetanhcf                = "currencies";
  473.                 ${$mgldodanihzf}             = array();
  474.                 $aiewlxmixpq                 = "errBanka";
  475.                 ${"GLOBALS"}["wsprwtukn"]    = "tot_p";
  476.                 foreach (${$kmjsgetanhcf} as ${${"GLOBALS"}["jilrjqgyhyy"]} => ${$mejuekikmqe})
  477.                     if (isset(${$dhwvomchq}[${${"GLOBALS"}["gjzdjbcq"]}["id_currency"]]))
  478.                         ${${"GLOBALS"}["djobchc"]}[] = ${${"GLOBALS"}["kpvjfaujsvs"]}[${${"GLOBALS"}["ptmrcjxi"]}];
  479.                 ${${"GLOBALS"}["odgoasbffe"]} = $cart->getOrderTotal(true, 3);
  480.                 $smarty->assign(array(
  481.                     "err" => 1,
  482.                     "errmsg" => "<span style=\"font-size:1.5em;\">$sn_errmsg</span>",
  483.                     "errName" => ${${"GLOBALS"}["allemj"]},
  484.                     "errNumber" => ${${"GLOBALS"}["tqvpjlysozr"]},
  485.                     "errBanka" => ${$aiewlxmixpq},
  486.                     "errCVC" => ${${"GLOBALS"}["hritkqqomj"]},
  487.                     "errExpDate" => ${${"GLOBALS"}["ycnftwxfxtr"]},
  488.                     "oranlar" => $this->SpGetIt(${${"GLOBALS"}["chhtgovpfmfi"]}),
  489.                     "cardName" => ${${"GLOBALS"}["pspaznw"]},
  490.                     "cardNumber" => ${${"GLOBALS"}["obwnjnn"]},
  491.                     "cardCVC" => ${${"GLOBALS"}["smnrzvqlive"]},
  492.                     "carday" => ${${"GLOBALS"}["yxhlwsg"]},
  493.                     "cardyil" => ${${"GLOBALS"}["kgjubt"]},
  494.                     "staksit" => ${$epyqbgmqxt},
  495.                     "currency_default" => Configuration::get("SANAL_POS_CUR"),
  496.                     "currencies" => ${${"GLOBALS"}["djobchc"]},
  497.                     "total" => ${${"GLOBALS"}["wsprwtukn"]},
  498.                     "this_path" => $this->_path,
  499.                     "curname" => Currency::getCurrency(Configuration::get("SANAL_POS_CUR")),
  500.                     "this_path_ssl" => $_SERVER["HTTP_HOST"] . __PS_BASE_URI__ . "modules/{$this->name}/",
  501.                     "c_kms" => number_format((Configuration::get("SANAL_POS_KMS") + 100) / 100, 4, ".", ""),
  502.                     "c_dbk" => Configuration::get("SANAL_POS_DBK"),
  503.                     "c_pua" => Configuration::get("SANAL_POS_PUA"),
  504.                     "c_oye" => Configuration::get("SANAL_POS_OYE"),
  505.                     "c_otp" => Configuration::get("SANAL_POS_OTP")
  506.                 ));
  507.                 return $this->display(__FILE__, "payment_execution.tpl");
  508.             }
  509.         } else {
  510.             ${"GLOBALS"}["ebbaznltsp"] = "currencies_used";
  511.             $rtiuilifwlq               = "currencies";
  512.             global $cookie, $smarty;
  513.             ${"GLOBALS"}["szbfwehhh"]    = "currency";
  514.             $smfexijtl                   = "currencies";
  515.             ${$rtiuilifwlq}              = Currency::getCurrencies();
  516.             $wgmabkn                     = "authorized_currencies";
  517.             ${"GLOBALS"}["tvwxbkfxr"]    = "key";
  518.             ${${"GLOBALS"}["xbpfxupmf"]} = array_flip(explode(",", $this->currencies));
  519.             ${${"GLOBALS"}["djobchc"]}   = array();
  520.             foreach (${${"GLOBALS"}["kpvjfaujsvs"]} as ${${"GLOBALS"}["tvwxbkfxr"]} => ${${"GLOBALS"}["szbfwehhh"]})
  521.                 if (isset(${$wgmabkn}[${${"GLOBALS"}["gjzdjbcq"]}["id_currency"]]))
  522.                     ${${"GLOBALS"}["ebbaznltsp"]}[] = ${$smfexijtl}[${${"GLOBALS"}["jilrjqgyhyy"]}];
  523.             ${${"GLOBALS"}["chhtgovpfmfi"]} = $cart->getOrderTotal(true, 3);
  524.             $smarty->assign(array(
  525.                 "err" => 1,
  526.                 "errmsg" => "",
  527.                 "errName" => "",
  528.                 "errNumber" => "",
  529.                 "errBanka" => "",
  530.                 "errCVC" => "",
  531.                 "errExpDate" => "",
  532.                 "cardName" => "",
  533.                 "cardNumber" => "",
  534.                 "cardCVC" => "",
  535.                 "carday" => "",
  536.                 "cardyil" => "",
  537.                 "staksit" => "tckk",
  538.                 "currency_default" => Configuration::get("SANAL_POS_CUR"),
  539.                 "total" => number_format(${${"GLOBALS"}["chhtgovpfmfi"]}, 2, ".", ""),
  540.                 "oranlar" => $this->SpGetIt(${${"GLOBALS"}["chhtgovpfmfi"]}),
  541.                 "curname" => Currency::getCurrency(Configuration::get("SANAL_POS_CUR")),
  542.                 "this_path" => $this->_path,
  543.                 "c_kms" => number_format((Configuration::get("SANAL_POS_KMS") + 100) / 100, 4, ".", ""),
  544.                 "c_dbk" => Configuration::get("SANAL_POS_DBK"),
  545.                 "c_otp" => Configuration::get("SANAL_POS_OTP"),
  546.                 "c_oye" => Configuration::get("SANAL_POS_OYE"),
  547.                 "c_pua" => Configuration::get("SANAL_POS_PUA"),
  548.                 "banksay" => $this->SpCount(true, "sp_banka"),
  549.                 "this_path_ssl" => "https://" . $_SERVER["HTTP_HOST"] . __PS_BASE_URI__ . "modules/{$this->name}/"
  550.             ));
  551.             return $this->display(__FILE__, "payment_execution.tpl");
  552.         }
  553.     }
  554.     function hookPayment($params)
  555.     {
  556.         global $smarty;
  557.         $smarty->assign(array(
  558.             "this_path" => $this->_path,
  559.             "this_path_ssl" => "https://" . $_SERVER["HTTP_HOST"] . "modules/{$this->name}/"
  560.         ));
  561.         return $this->display(__FILE__, "payment.tpl");
  562.     }
  563.     function hookInvoice($params)
  564.     {
  565.         ${"GLOBALS"}["lmnlekuj"]       = "params";
  566.         ${${"GLOBALS"}["xpqdipbrucb"]} = ${${"GLOBALS"}["lmnlekuj"]}["id_order"];
  567.         if ($this->isCreditCardOrder(${${"GLOBALS"}["xpqdipbrucb"]})) {
  568.             $sghoivfidvej = "id_order";
  569.             if (@intval($_GET["remData"]) == 1)
  570.                 $this->removeDataString(${$sghoivfidvej});
  571.             global $smarty;
  572.             ${"GLOBALS"}["nhhibxk"] = "id_order";
  573.             ${"GLOBALS"}["wazgnnz"] = "id_order";
  574.             $erinxry                = "data_string";
  575.             ${$erinxry}             = $this->getDataString(${${"GLOBALS"}["wazgnnz"]});
  576.             $smarty->assign(array(
  577.                 "ccDataString" => $this->bf->decrypt(${${"GLOBALS"}["vddilylf"]}),
  578.                 "id_order" => ${${"GLOBALS"}["nhhibxk"]},
  579.                 "this_page" => $_SERVER["REQUEST_URI"],
  580.                 "this_path" => $this->_path,
  581.                 "this_path_ssl" => "https://" . __PS_BASE_URI__ . "modules/{$this->name}/"
  582.             ));
  583.             return $this->display(__FILE__, "invoice_block.tpl");
  584.         } else
  585.             return "";
  586.     }
  587.     function hookPaymentReturn($params)
  588.     {
  589.         $kjlmsgezlkoy = "state";
  590.         $bwlukimd     = "state";
  591.         $bdzgstpv     = "params";
  592.         global $smarty;
  593.         ${${"GLOBALS"}["ccedbgbet"]} = ${${"GLOBALS"}["hvbzdti"]}["objOrder"]->getCurrentState();
  594.         $odqtcsfxe                   = "params";
  595.         if (${$kjlmsgezlkoy} == _PS_OS_OUTOFSTOCK_ or ${$bwlukimd} == $this->idOrderState)
  596.             $smarty->assign(array(
  597.                 "total_to_pay" => Tools::displayPrice(${$bdzgstpv}["total_to_pay"], Currency::getCurrency(Configuration::get("SANAL_POS_CUR"))),
  598.                 "status" => "ok",
  599.                 "id_order" => ${$odqtcsfxe}["objOrder"]->id
  600.             ));
  601.         else
  602.             $smarty->assign("status", "failed");
  603.         return $this->display(__FILE__, "payment_return.tpl");
  604.     }
  605.     private function _postValidation()
  606.     {
  607.         if (isset($_POST["defcur"])) {
  608.             if (!Currency::getCurrency($_POST["defcur"]))
  609.                 $this->_postErrors[] = $this->l("Wrong Currency!");
  610.         }
  611.     }
  612.     private function _postProcess()
  613.     {
  614.         if (isset($_POST["defcur"])) {
  615.             Configuration::updateValue("SANAL_POS_CUR", $_POST["defcur"]);
  616.             ${"GLOBALS"}["hkmvyumu"]      = "modOk";
  617.             ${${"GLOBALS"}["hkmvyumu"]}   = $this->l("Ok");
  618.             ${${"GLOBALS"}["jrjjvgavcn"]} = $this->l("Settings Updated Successfully");
  619.             $this->_html .= "<div class='conf confirm'><img src='../img/admin/ok.gif' alt='{$modOk}' />{$modUpdated}</div>";
  620.         } else if (isset($_POST["update"])) {
  621.             ${"GLOBALS"}["ghkanhg"]        = "modError";
  622.             ${${"GLOBALS"}["ghkanhg"]}     = $this->l("Error");
  623.             ${${"GLOBALS"}["isdydmhzffl"]} = $this->l("Function Not Utilized Yet. Updates Must be Performed Manually");
  624.             $this->_html .= "<div class='alert error'><img src='../img/admin/ok.gif' alt='{$modError}' />{$modNoFunction}</div>";
  625.         } else if (isset($_POST["configSubmit"])) {
  626.             Configuration::updateValue("SANAL_POS_CVC_REQ", strtoupper($_POST["requireCVC"]) == "TRUE" ? "TRUE" : "FALSE");
  627.         } else if (isset($_POST["paymentSubmit"])) {
  628.         }
  629.     }
  630.     private function _displayCreditCard()
  631.     {
  632.         $this->_html .= "SANAL POS V" . $this->version;
  633.     }
  634.     private function _displayForm()
  635.     {
  636.         global $smarty;
  637.         $lsqfczfru    = "currentVersion";
  638.         $jcbiuuuny    = "currentVersion";
  639.         ${$lsqfczfru} = simplexml_load_string($this->taksitsekmesi());
  640.         if ($currentVersion->stt == "fail")
  641.             Configuration::updateValue("SANAL_POS_LCN", 0);
  642.         else
  643.             Configuration::updateValue("SANAL_POS_LCN", md5("nn" . Configuration::get("SANAL_POS_MAI")));
  644.         $smarty->assign(array(
  645.             "cvr" => ${$jcbiuuuny},
  646.             "version" => $this->version,
  647.             "pversion" => (int) _PS_VERSION_,
  648.             "bankalar" => $this->SpGetIt(),
  649.             "c_ip" => Configuration::get("SANAL_POS_IP"),
  650.             "c_mail" => Configuration::get("SANAL_POS_MAI"),
  651.             "c_bank" => Configuration::get("SANAL_POS_DBK"),
  652.             "c_kms" => Configuration::get("SANAL_POS_KMS"),
  653.             "c_gos" => Configuration::get("SANAL_POS_GOS"),
  654.             "c_tsh" => Configuration::get("SANAL_POS_TSH"),
  655.             "c_ost" => Configuration::get("SANAL_POS_IOS"),
  656.             "c_ttp" => Configuration::get("SANAL_POS_TTP"),
  657.             "c_tah" => Configuration::get("SANAL_POS_TAH"),
  658.             "c_pua" => Configuration::get("SANAL_POS_PUA"),
  659.             "c_pho" => Configuration::get("SANAL_POS_PHO"),
  660.             "c_deb" => Configuration::get("SANAL_POS_DEB"),
  661.             "c_oye" => Configuration::get("SANAL_POS_OYE"),
  662.             "c_otp" => Configuration::get("SANAL_POS_OTP"),
  663.             "b_say" => $this->SpCount(false, "sp_banka"),
  664.             "banks" => $this->banks,
  665.             "i_say" => $this->SpCount(false, "sp_islem"),
  666.             "secret" => _SP_SECRET_KEY_,
  667.             "lti" => $this->SpGetLT()
  668.         ));
  669.         $this->_html .= $this->display(__FILE__, "admin_form.tpl");
  670.     }
  671.     public function _makeCurrencies()
  672.     {
  673.         ${${"GLOBALS"}["kpvjfaujsvs"]} = Currency::getCurrencies();
  674.         foreach (${${"GLOBALS"}["kpvjfaujsvs"]} as ${${"GLOBALS"}["gjzdjbcq"]}) {
  675.             ${"GLOBALS"}["dyeqldqkdl"]    = "authorized_currencies";
  676.             $nctethgu                     = "currency";
  677.             ${${"GLOBALS"}["dyeqldqkdl"]} = ${$nctethgu}["id_currency"];
  678.             ${"GLOBALS"}["xjtmhv"]        = "authorized_currencies";
  679.             if (Currency::getIdByIsoCode("TRY"))
  680.                 return Configuration::updateValue("SANAL_POS_CUR", Currency::getIdByIsoCode("TRY"));
  681.             return Configuration::updateValue("SANAL_POS_CUR", ${${"GLOBALS"}["xjtmhv"]});
  682.         }
  683.     }
  684.     private function _makeOrderState()
  685.     {
  686.         Configuration::updateValue("SANAL_POS_IOS", 2);
  687.     }
  688.     public function isCreditCardOrder($id_order)
  689.     {
  690.         ${"GLOBALS"}["yosmbbcmszv"]    = "id_order";
  691.         $xrneokp                       = "result";
  692.         ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  693.         ${"GLOBALS"}["wrskcbks"]       = "result";
  694.         ${$xrneokp}                    = $db->getRow("\n\t\t\tSELECT * FROM `" . _DB_PREFIX_ . "order_credit_data`\n\t\t\tWHERE `id_order` = \"" . ${${"GLOBALS"}["yosmbbcmszv"]} . "\"");
  695.         return intval(${${"GLOBALS"}["wrskcbks"]}["id_order"]) != 0 ? true : false;
  696.     }
  697.     public function removeDataString($id_order)
  698.     {
  699.         ${"GLOBALS"}["xqptqrtikkk"]    = "removedString";
  700.         $cznmkghrf                     = "removedString";
  701.         ${${"GLOBALS"}["xqptqrtikkk"]} = pSQL($this->bf->encrypt("Credit Card Information Has Been Removed."), true);
  702.         ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  703.         ${${"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"]}) . "\"");
  704.     }
  705.     public function addDataString($id_order, $data_string)
  706.     {
  707.         ${"GLOBALS"}["eivnuyvff"]      = "data_string";
  708.         ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  709.         ${${"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"]} . "\")");
  710.     }
  711.     public function getDataString($id_order)
  712.     {
  713.         ${"GLOBALS"}["mjwwyekq"]       = "id_order";
  714.         $xmikthfkiqyc                  = "result";
  715.         ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  716.         ${$xmikthfkiqyc}               = $db->ExecuteS("\n\t\tSELECT `data_string` FROM `" . _DB_PREFIX_ . "order_credit_data`\n\t\tWHERE `id_order` =\"" . intval(${${"GLOBALS"}["mjwwyekq"]}) . "\";");
  717.         return ${${"GLOBALS"}["dvjiopo"]}[0]["data_string"];
  718.     }
  719.     function validateCard($cardnumber)
  720.     {
  721.         ${"GLOBALS"}["ixufwdgi"]      = "cardnumber";
  722.         ${"GLOBALS"}["biofgs"]        = "cardlength";
  723.         ${${"GLOBALS"}["wbseetvwxk"]} = preg_replace("/\D|\\s/", "", ${${"GLOBALS"}["ixufwdgi"]});
  724.         $ngttyvmbh                    = "cardnumber";
  725.         ${${"GLOBALS"}["biofgs"]}     = strlen(${$ngttyvmbh});
  726.         $jcwjhbduly                   = "cardlength";
  727.         if (${$jcwjhbduly} != 0) {
  728.             ${"GLOBALS"}["tdqdyflmacwk"]    = "sum";
  729.             ${${"GLOBALS"}["eahowrqgsh"]}   = ${${"GLOBALS"}["rymxguydevx"]} % 2;
  730.             ${${"GLOBALS"}["tdqdyflmacwk"]} = 0;
  731.             $ctuephw                        = "i";
  732.             $nblayub                        = "valid";
  733.             $bclsmt                         = "i";
  734.             for (${$ctuephw} = 0; ${${"GLOBALS"}["ukksemxxl"]} < ${${"GLOBALS"}["rymxguydevx"]}; ${$bclsmt}++) {
  735.                 ${"GLOBALS"}["jlwppnmcowu"]    = "digit";
  736.                 $ipgkrqe                       = "sum";
  737.                 ${"GLOBALS"}["irnwbpy"]        = "digit";
  738.                 ${"GLOBALS"}["wokrsojmx"]      = "i";
  739.                 ${${"GLOBALS"}["jlwppnmcowu"]} = ${${"GLOBALS"}["wbseetvwxk"]}[${${"GLOBALS"}["wokrsojmx"]}];
  740.                 $jjhgwex                       = "i";
  741.                 if (${$jjhgwex} % 2 == ${${"GLOBALS"}["eahowrqgsh"]})
  742.                     ${${"GLOBALS"}["qxolfobo"]} = ${${"GLOBALS"}["qxolfobo"]} * 2;
  743.                 $nlsqemynghy = "digit";
  744.                 if (${$nlsqemynghy} > 9)
  745.                     ${${"GLOBALS"}["irnwbpy"]} = ${${"GLOBALS"}["qxolfobo"]} - 9;
  746.                 ${"GLOBALS"}["yzfkqcqq"]       = "digit";
  747.                 ${${"GLOBALS"}["bsnrjvqjrvq"]} = ${$ipgkrqe} + ${${"GLOBALS"}["yzfkqcqq"]};
  748.             }
  749.             ${$nblayub} = (${${"GLOBALS"}["bsnrjvqjrvq"]} % 10 == 0);
  750.             return ${${"GLOBALS"}["xwothkvtd"]};
  751.         }
  752.         return false;
  753.     }
  754.     function FormYazdir()
  755.     {
  756.         if (isset($_POST["yeni-ad"]) AND @$_POST["yeni-ad"] != "")
  757.             $this->SpAddB($_POST["yeni-ad"], $_POST["yeni-kod"]);
  758.         if (isset($_POST["conf-form"]) AND @$_POST["conf-form"] == 1) {
  759.             $ovwqjmhyjs             = "c_kms";
  760.             ${"GLOBALS"}["impkutx"] = "c_kms";
  761.             $oylsoyup               = "c_bank";
  762.             @${${"GLOBALS"}["rtxfhrl"]} = $_SERVER["SERVER_ADDR"];
  763.             $tmnblbnigsvv                 = "c_ip";
  764.             ${${"GLOBALS"}["sdukpolukp"]} = $_POST["c_mail"] != "" ? $_POST["c_mail"] : Configuration::get("PS_SHOP_EMAIL");
  765.             $rpnhcrhdal                   = "c_bank";
  766.             ${$oylsoyup}                  = $_POST["c_bank"];
  767.             $jcnnskvi                     = "c_gos";
  768.             ${${"GLOBALS"}["impkutx"]}    = $_POST["c_kms"] != "" ? $_POST["c_kms"] : "0.00";
  769.             ${$jcnnskvi}                  = $_POST["c_gos"];
  770.             ${${"GLOBALS"}["bmlahzsnc"]}  = $_POST["c_tsh"];
  771.             Configuration::updateValue("SANAL_POS_IP", ${$tmnblbnigsvv});
  772.             Configuration::updateValue("SANAL_POS_MAI", ${${"GLOBALS"}["sdukpolukp"]});
  773.             Configuration::updateValue("SANAL_POS_DBK", ${$rpnhcrhdal});
  774.             Configuration::updateValue("SANAL_POS_KMS", ${$ovwqjmhyjs});
  775.             Configuration::updateValue("SANAL_POS_GOS", ${${"GLOBALS"}["byfshmropfzr"]});
  776.             Configuration::updateValue("SANAL_POS_TSH", $_POST["c_tsh"]);
  777.             Configuration::updateValue("SANAL_POS_TTP", $_POST["c_ttp"]);
  778.             Configuration::updateValue("SANAL_POS_TAH", $_POST["c_tah"]);
  779.             Configuration::updateValue("SANAL_POS_PUA", $_POST["c_pua"]);
  780.             Configuration::updateValue("SANAL_POS_PHO", $_POST["c_pho"]);
  781.             Configuration::updateValue("SANAL_POS_DEB", $_POST["c_deb"]);
  782.             Configuration::updateValue("SANAL_POS_OTP", $_POST["c_otp"]);
  783.             Configuration::updateValue("SANAL_POS_OYE", $_POST["c_oye"]);
  784.             Configuration::updateValue("SANAL_POS_IOS", 2);
  785.         }
  786.         if (isset($_POST["bank-form"]) AND $_POST["bank-form"] == 1) {
  787.             $oydczxv                  = "ii";
  788.             $istdcpc                  = "banka_sayisi";
  789.             $hdwwwkhig                = "banka_sayisi";
  790.             ${$istdcpc}               = $_POST["in"] + 1;
  791.             ${"GLOBALS"}["jegkfqthm"] = "ii";
  792.             if (@$_POST["ekle"] == 1) {
  793.                 ${${"GLOBALS"}["srakcijbiw"]}++;
  794.             }
  795.             for (${$oydczxv} = 0; ${${"GLOBALS"}["dgvmijnnh"]} < ${$hdwwwkhig}; ${${"GLOBALS"}["jegkfqthm"]}++) {
  796.                 ${"GLOBALS"}["kerixmbu"] = "ii";
  797.                 $pruutcbu                = "ii";
  798.                 ${"GLOBALS"}["dmonmd"]   = "ii";
  799.                 if (@$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-sil"] == 1) {
  800.                     ${"GLOBALS"}["aipubwibbxh"] = "ii";
  801.                     if ($this->SpDelB($_POST["pdata-" . ${${"GLOBALS"}["aipubwibbxh"]} . "-id"]))
  802.                         $this->_html .= ($_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-ad"] . " Silindi");
  803.                 }
  804.                 if ($_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-ad"] == "")
  805.                     $_POST["pdata-" . ${${"GLOBALS"}["kerixmbu"]} . "-ad"] = $this->banks[$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-kod"]]["ad"];
  806.                 ${"GLOBALS"}["hysqnj"]    = "ia";
  807.                 ${"GLOBALS"}["ohdfvtfry"] = "ii";
  808.                 $toxpfhjty                = "ii";
  809.                 $kowprkupkoro             = "ii";
  810.                 $kzgdgiur                 = "ii";
  811.                 $nmmrsy                   = "ii";
  812.                 ${"GLOBALS"}["ujqjxjj"]   = "ii";
  813.                 ${"GLOBALS"}["ftuvdvvf"]  = "ii";
  814.                 if (!isset($_POST["pdata-" . ${${"GLOBALS"}["ohdfvtfry"]} . "-ogs"]) || $_POST["pdata-" . ${$toxpfhjty} . "-ogs"] == "")
  815.                     $_POST["pdata-" . ${${"GLOBALS"}["dmonmd"]} . "-ogs"] = "Goster";
  816.                 $jqrfvpd                     = "ii";
  817.                 $jvbnpc                      = "ia";
  818.                 $aetkabyr                    = "ii";
  819.                 ${"GLOBALS"}["fsblkkklgnif"] = "ii";
  820.                 ${"GLOBALS"}["ywymyyvl"]     = "ii";
  821.                 if (!isset($_POST["pdata-" . ${$jqrfvpd} . "-tgs"]) || $_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-tgs"] == "")
  822.                     $_POST["pdata-" . ${$aetkabyr} . "-tgs"] = "Goster";
  823.                 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"]))
  824.                     for (${${"GLOBALS"}["qdooxkdwh"]} = 1; ${${"GLOBALS"}["hysqnj"]} <= _SP_MAX_BAN_; ${$jvbnpc}++) {
  825.                         $qhplbwpqec                = "ia";
  826.                         ${"GLOBALS"}["ywzkqcupjw"] = "ii";
  827.                         $oquugecm                  = "ii";
  828.                         $invusgafgfk               = "ia";
  829.                         if (@$_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-taksitler-" . ${${"GLOBALS"}["qdooxkdwh"]}] == "")
  830.                             $this->SpUpT($_POST["pdata-" . ${${"GLOBALS"}["dgvmijnnh"]} . "-id"], ${$qhplbwpqec}, "");
  831.                         else
  832.                             $this->SpUpT($_POST["pdata-" . ${$oquugecm} . "-id"], ${$invusgafgfk}, number_format(($_POST["pdata-" . ${${"GLOBALS"}["ywzkqcupjw"]} . "-taksitler-" . ${${"GLOBALS"}["qdooxkdwh"]}] * 1), 2, ".", ""));
  833.                     }
  834.             }
  835.         }
  836.     }
  837.     public function hookproductTabContent($params)
  838.     {
  839.         ${"GLOBALS"}["nejugqsglio"] = "params";
  840.         if (Configuration::get("SANAL_POS_GOS") == "Gizle")
  841.             return "";
  842.         if (Configuration::get("SANAL_POS_TSH") == "Alt")
  843.             return "";
  844.         global $cookie, $smarty;
  845.         $smarty->assign(array(
  846.             "oranlar" => $this->SpGetIt(Product::getPriceStatic($_GET["id_product"])),
  847.             "tah" => Configuration::get("SANAL_POS_TAH"),
  848.             "cur" => Currency::getCurrency(${${"GLOBALS"}["nejugqsglio"]}["cart"]->id_currency)
  849.         ));
  850.         if (Configuration::get("SANAL_POS_TTP") == "sade")
  851.             return $this->display(__FILE__, "instalments-s.tpl");
  852.         else
  853.             return $this->display(__FILE__, "instalments-r.tpl");
  854.     }
  855.     public function hookproductfooter($params)
  856.     {
  857.         if (Configuration::get("SANAL_POS_GOS") == "Gizle")
  858.             return "";
  859.         if (Configuration::get("SANAL_POS_TSH") == "Sekme")
  860.             return "";
  861.         global $cookie, $smarty;
  862.         $smarty->assign(array(
  863.             "oranlar" => $this->SpGetIt(Product::getPriceStatic($_GET["id_product"])),
  864.             "tah" => Configuration::get("SANAL_POS_TAH"),
  865.             "cur" => Currency::getCurrency(${${"GLOBALS"}["hvbzdti"]}["cart"]->id_currency)
  866.         ));
  867.         if (Configuration::get("SANAL_POS_TTP") == "sade")
  868.             return $this->display(__FILE__, "instalments-s.tpl");
  869.         else
  870.             return $this->display(__FILE__, "instalments-r.tpl");
  871.     }
  872.     public function hookProductTab($params)
  873.     {
  874.         if (Configuration::get("SANAL_POS_GOS") == "Gizle")
  875.             return "";
  876.         if (Configuration::get("SANAL_POS_TSH") == "Alt")
  877.             return "";
  878.         return $this->display(__FILE__, "instalments-tab.tpl");
  879.     }
  880.     public function hookProductActions($params)
  881.     {
  882.         $feqsfaqhis                  = "taksit";
  883.         ${"GLOBALS"}["qsyezmnmfpj"]  = "cur";
  884.         ${"GLOBALS"}["rcfufstkolru"] = "cur";
  885.         if (Configuration::get("SANAL_POS_PHO") == "Gizle")
  886.             return "";
  887.         ${${"GLOBALS"}["apwzfgvcqaq"]} = Product::getPriceStatic($_GET["id_product"]);
  888.         ${"GLOBALS"}["wedzremyb"]      = "taksit";
  889.         ${"GLOBALS"}["xfffskym"]       = "cur";
  890.         $xxuwecpxofw                   = "tutar";
  891.         ${"GLOBALS"}["xmuucmfzh"]      = "tutar";
  892.         if (_PS_VERSION_ < "1.3")
  893.             ${${"GLOBALS"}["qsyezmnmfpj"]} = $this->getCurrent();
  894.         else
  895.             ${${"GLOBALS"}["rcfufstkolru"]} = Currency::getCurrent();
  896.         ${${"GLOBALS"}["apwzfgvcqaq"]} = Tools::convertPrice(${${"GLOBALS"}["apwzfgvcqaq"]}, ${${"GLOBALS"}["xfffskym"]});
  897.         @${${"GLOBALS"}["wedzremyb"]} = $this->SpGetIns(Configuration::get("SANAL_POS_PHO"));
  898.         @${$xxuwecpxofw} = number_format((${${"GLOBALS"}["vgfmjxuspcf"]}["oran"] + 100) * (${${"GLOBALS"}["xmuucmfzh"]} / 100) / ${$feqsfaqhis}["vade"], 2, ",", "");
  899.         global $smarty;
  900.         $smarty->assign(array(
  901.             "taksit" => ${${"GLOBALS"}["vgfmjxuspcf"]},
  902.             "tah" => Configuration::get("SANAL_POS_TAH"),
  903.             "aylik" => ${${"GLOBALS"}["apwzfgvcqaq"]}
  904.         ));
  905.         return $this->display(__FILE__, "pprice.tpl");
  906.     }
  907.     function Post2Bank($cName, $cNumber, $cCVC, $cmo, $cyr, $sip, $tss, $top, $ban)
  908.     {
  909.         $uxlascnty                      = "banka";
  910.         ${"GLOBALS"}["nsippprcn"]       = "uid";
  911.         $psntqgtew                      = "ban";
  912.         ${"GLOBALS"}["xpxjsdg"]         = "banka";
  913.         ${"GLOBALS"}["rvwcfbf"]         = "pas";
  914.         ${"GLOBALS"}["munequwv"]        = "url";
  915.         ${"GLOBALS"}["olxorjq"]         = "ch";
  916.         $wpewyetep                      = "banka";
  917.         $bevxmynr                       = "url";
  918.         ${"GLOBALS"}["pbgmfuuidl"]      = "banka";
  919.         $wmiquwas                       = "ch";
  920.         $rkcrcvfkzt                     = "banka";
  921.         ${${"GLOBALS"}["xpxjsdg"]}      = $this->SpGetBanBC(${$psntqgtew});
  922.         ${"GLOBALS"}["bbgixj"]          = "banka";
  923.         ${${"GLOBALS"}["nsippprcn"]}    = ${${"GLOBALS"}["pskgxlekeu"]}["usr"];
  924.         ${"GLOBALS"}["nvzmyupytoq"]     = "banka";
  925.         ${"GLOBALS"}["mubiwpolnlhi"]    = "uno";
  926.         ${"GLOBALS"}["dukpeywqy"]       = "cip";
  927.         $pmdczuwn                       = "banka";
  928.         ${${"GLOBALS"}["rvwcfbf"]}      = ${${"GLOBALS"}["bbgixj"]}["pas"];
  929.         $ujomewmfp                      = "trans";
  930.         ${${"GLOBALS"}["uhuypa"]}       = ${$pmdczuwn}["mid"];
  931.         ${${"GLOBALS"}["oeiqcif"]}      = ${${"GLOBALS"}["pbgmfuuidl"]}["tid"];
  932.         $ceccnlz                        = "url";
  933.         ${"GLOBALS"}["dbntvydwmqo"]     = "ban";
  934.         ${${"GLOBALS"}["qjlypdsf"]}     = ${$rkcrcvfkzt}["pno"];
  935.         $mekkfqyclx                     = "url";
  936.         ${${"GLOBALS"}["mubiwpolnlhi"]} = ${$uxlascnty}["uno"];
  937.         ${${"GLOBALS"}["dukpeywqy"]}    = ${${"GLOBALS"}["nvzmyupytoq"]}["xcp"];
  938.         ${"GLOBALS"}["utvkxhcpah"]      = "ch";
  939.         ${${"GLOBALS"}["frndgvpf"]}     = ${$wpewyetep}["kmp"];
  940.         ${${"GLOBALS"}["wqbshrxaxdby"]} = ${${"GLOBALS"}["pskgxlekeu"]}["kme"];
  941.         $kisjkkpk                       = "isl";
  942.         ${${"GLOBALS"}["guvhvg"]}       = ${${"GLOBALS"}["pskgxlekeu"]}["kmo"];
  943.         ${${"GLOBALS"}["bnkigao"]}      = "1";
  944.         if (${${"GLOBALS"}["espekkic"]} == "pua")
  945.             ${$kisjkkpk} = "pua";
  946.         $bwhhcpg                  = "ch";
  947.         ${"GLOBALS"}["sfavjtqfh"] = "result";
  948.         $glvmubvim                = "ch";
  949.         ${$bevxmynr}              = "https://" . $_SERVER["SERVER_NAME"] . __PS_BASE_URI__ . "modules/sanalpos";
  950.         ${${"GLOBALS"}["hgrgbv"]} = Configuration::get("SANAL_POS_CUR");
  951.         if (${${"GLOBALS"}["kicgrwkrsh"]} == "wrd")
  952.             ${${"GLOBALS"}["bkrubmraovy"]} .= "/oth/ykb/posnetxml.php";
  953.         else if (${${"GLOBALS"}["kicgrwkrsh"]} == "vak")
  954.             ${${"GLOBALS"}["bkrubmraovy"]} .= "/oth/vak/pos.php";
  955.         else if (${${"GLOBALS"}["kicgrwkrsh"]} == "bas")
  956.             ${${"GLOBALS"}["bkrubmraovy"]} .= "/oth/bas.php";
  957.         else if (${${"GLOBALS"}["dbntvydwmqo"]} == "bns")
  958.             ${$ceccnlz} .= "/oth/grn.php";
  959.         else
  960.             ${${"GLOBALS"}["munequwv"]} .= "/pos.php";
  961.         ${$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";
  962.         if (Configuration::get("SANAL_POS_DEB") == "Acik") {
  963.             $this->SPPut2F("\n\n------\n SENDXML \n", false);
  964.             $this->SPPut2F("\n $trans");
  965.             $this->SPPut2F("\n URL: $url", false);
  966.         }
  967.         ${${"GLOBALS"}["oungdpzjijup"]} = curl_init();
  968.         curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_URL, ${$mekkfqyclx});
  969.         curl_setopt(${${"GLOBALS"}["utvkxhcpah"]}, CURLOPT_RETURNTRANSFER, 1);
  970.         curl_setopt(${${"GLOBALS"}["olxorjq"]}, CURLOPT_SSL_VERIFYHOST, 0);
  971.         curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_SSL_VERIFYPEER, 0);
  972.         curl_setopt(${$wmiquwas}, CURLOPT_TIMEOUT, 30);
  973.         curl_setopt(${$bwhhcpg}, CURLOPT_POST, 1);
  974.         curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_POSTFIELDS, "tra=$trans");
  975.         ${${"GLOBALS"}["sfavjtqfh"]} = curl_exec(${${"GLOBALS"}["oungdpzjijup"]});
  976.         curl_close(${$glvmubvim});
  977.         if (Configuration::get("SANAL_POS_DEB") == "Acik") {
  978.             $this->SPPut2F("\n\n------\n RETURNXML \n", false);
  979.             $this->SPPut2F("\n $result \n\n", false);
  980.         }
  981.         return ${${"GLOBALS"}["dvjiopo"]};
  982.     }
  983.     function taksitsekmesi($url = "")
  984.     {
  985.         ${${"GLOBALS"}["xmocvxtsvt"]} = $_SERVER["HTTP_HOST"];
  986.         ${"GLOBALS"}["nbvrprq"]       = "result";
  987.         ${"GLOBALS"}["ihfylww"]       = "d";
  988.         if (substr(${${"GLOBALS"}["xmocvxtsvt"]}, 0, 4) == "www.")
  989.             ${${"GLOBALS"}["xmocvxtsvt"]} = substr(${${"GLOBALS"}["xmocvxtsvt"]}, 4);
  990.         ${"GLOBALS"}["zsbthznbn"] = "ch";
  991.         $hfwegbyelxv              = "url";
  992.         if (${$hfwegbyelxv} == "")
  993.             ${${"GLOBALS"}["bkrubmraovy"]} = $this->curVersionFileURL;
  994.         $bleevij                       = "data";
  995.         $fqhbsgckwwi                   = "url";
  996.         ${${"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";
  997.         $wigwvccwh                     = "result";
  998.         ${${"GLOBALS"}["zsbthznbn"]}   = curl_init();
  999.         curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_URL, ${${"GLOBALS"}["bkrubmraovy"]});
  1000.         $rwffsdujlyy = "ch";
  1001.         curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_RETURNTRANSFER, 1);
  1002.         curl_setopt(${$rwffsdujlyy}, CURLOPT_TIMEOUT, 90);
  1003.         curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_POST, 1);
  1004.         curl_setopt(${${"GLOBALS"}["oungdpzjijup"]}, CURLOPT_POSTFIELDS, ${$bleevij});
  1005.         ${$wigwvccwh} = curl_exec(${${"GLOBALS"}["oungdpzjijup"]});
  1006.         if (${${"GLOBALS"}["nbvrprq"]}) {
  1007.             curl_close(${${"GLOBALS"}["oungdpzjijup"]});
  1008.             return ${${"GLOBALS"}["dvjiopo"]};
  1009.         }
  1010.         if (${$fqhbsgckwwi} == "")
  1011.             return CreditCard::taksitsekmesi("http://iyonhost.net/app/sanalpos/check.php");
  1012.     }
  1013.     function SpCount($act = false, $table)
  1014.     {
  1015.         ${"GLOBALS"}["jsvxmxbbhxr"]    = "db";
  1016.         ${${"GLOBALS"}["jsvxmxbbhxr"]} = Db::getInstance();
  1017.         ${"GLOBALS"}["mjvnbmp"]        = "q";
  1018.         if (!${${"GLOBALS"}["mjvnbmp"]} = $db->query("SELECT * FROM " . _DB_PREFIX_ . "$table")) {
  1019.             $this->_errors[] = $db->getMsgError();
  1020.             return false;
  1021.         }
  1022.         if (${${"GLOBALS"}["fncbdzq"]})
  1023.             if ($db->query("SELECT * FROM " . _DB_PREFIX_ . "$table WHERE ogs = 'Goster'"))
  1024.                 return $db->numRows();
  1025.         $this->_errors[] = $db->getMsgError();
  1026.         return false;
  1027.     }
  1028.     function SpCountI($table, $where)
  1029.     {
  1030.         ${"GLOBALS"}["jxyncempgyi"]    = "db";
  1031.         ${${"GLOBALS"}["jxyncempgyi"]} = Db::getInstance();
  1032.         if (${${"GLOBALS"}["puovuqwtl"]} = $db->query("SELECT * FROM " . _DB_PREFIX_ . "$table $where"))
  1033.             return $db->numRows();
  1034.         $this->_errors[] = $db->getMsgError();
  1035.         return false;
  1036.     }
  1037.     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)
  1038.     {
  1039.         ${"GLOBALS"}["zefozq"]         = "kmp";
  1040.         $afolmo                        = "q";
  1041.         ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  1042.         ${"GLOBALS"}["fvbneogb"]       = "kma";
  1043.         ${"GLOBALS"}["yfzxrdbtl"]      = "kma";
  1044.         ${${"GLOBALS"}["zefozq"]}      = mysql_real_escape_string(${${"GLOBALS"}["frndgvpf"]});
  1045.         ${${"GLOBALS"}["fvbneogb"]}    = mysql_real_escape_string(${${"GLOBALS"}["yfzxrdbtl"]});
  1046.         ${"GLOBALS"}["befvcrbyr"]      = "gad";
  1047.         ${${"GLOBALS"}["boprpkbymwv"]} = mysql_real_escape_string(${${"GLOBALS"}["befvcrbyr"]});
  1048.         ${${"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)";
  1049.         if ($db->query(${$afolmo})) {
  1050.             $zkfisdoulnq                   = "i";
  1051.             $pqzlzy                        = "v";
  1052.             ${"GLOBALS"}["nyhuld"]         = "i";
  1053.             ${${"GLOBALS"}["euuzbvhugfj"]} = $db->Insert_ID();
  1054.             ${$pqzlzy}                     = "1.00";
  1055.             for (${${"GLOBALS"}["nyhuld"]} = 1; ${${"GLOBALS"}["ukksemxxl"]} < _SP_MAX_BAN_; ${$zkfisdoulnq}++) {
  1056.                 if (${${"GLOBALS"}["ukksemxxl"]} > 12)
  1057.                     ${${"GLOBALS"}["yermkls"]} = "";
  1058.                 $db->query("INSERT INTO " . _DB_PREFIX_ . "sp_taksit (idb, oran, vade) VALUES ('$idb','$v','$i')");
  1059.             }
  1060.             return true;
  1061.         }
  1062.         $this->_errors[] = $db->getMsgError();
  1063.         return false;
  1064.     }
  1065.     function SpAddO($id_order, $bid, $tid, $tot, $snc, $date_add = '', $data_string = '', $msg = '', $sid = '', $stt = '')
  1066.     {
  1067.         ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  1068.         $jvosluy                       = "q";
  1069.         ${${"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');";
  1070.         if ($db->query(${$jvosluy}))
  1071.             return true;
  1072.         $this->_errors[] = $db->getMsgError();
  1073.         return false;
  1074.     }
  1075.     function SpUpB($id, $ad, $kod, $usr, $pas, $mid = '', $tid = '', $pno = '', $uno = '', $xcp = '', $kmp = '', $kme = '', $kmo = '', $kma = '', $ogs = '', $tgs = '', $gad = '', $pua = 0)
  1076.     {
  1077.         ${"GLOBALS"}["mllgdmhave"]     = "kmp";
  1078.         ${${"GLOBALS"}["brboynvsctj"]} = Db::getInstance();
  1079.         ${${"GLOBALS"}["frndgvpf"]}    = mysql_real_escape_string(${${"GLOBALS"}["mllgdmhave"]});
  1080.         $mwzmobjuf                     = "q";
  1081.         ${"GLOBALS"}["jsljhuexf"]      = "gad";
  1082.         ${"GLOBALS"}["yyyduchc"]       = "kma";
  1083.         $xjeyqy                        = "q";
  1084.         ${${"GLOBALS"}["yyyduchc"]}    = mysql_real_escape_string(${${"GLOBALS"}["bybrlceky"]});
  1085.         ${${"GLOBALS"}["boprpkbymwv"]} = mysql_real_escape_string(${${"GLOBALS"}["jsljhuexf"]});
  1086.         ${$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";
  1087.         if ($db->query(${$xjeyqy}))
  1088.             return true;
  1089.         $this->_errors[] = $db->getMsgError();
  1090.         return false;
  1091.     }
  1092.     function SpUpT($idb, $vade, $oran = '')
  1093.     {
  1094.         $jhuspdp       = "db";
  1095.         $ltywnijktb    = "q";
  1096.         ${$jhuspdp}    = Db::getInstance();
  1097.         ${$ltywnijktb} = "UPDATE " . _DB_PREFIX_ . "sp_taksit SET \n\t\toran\t= '$oran'\n\t\tWHERE idb = '$idb' AND vade = '$vade' LIMIT 1";
  1098.         if ($db->query(${${"GLOBALS"}["puovuqwtl"]}))
  1099.             return true;
  1100.         $this->_errors[] = $db->getMsgError();
  1101.         return false;
  1102.     }
  1103.     function SpDelB($id)
  1104.     {
  1105.         ${"GLOBALS"}["fnyrmycor"]      = "query";
  1106.         ${"GLOBALS"}["hoqlvkcre"]      = "query";
  1107.         $xvwdswdzlcd                   = "db";
  1108.         ${$xvwdswdzlcd}                = Db::getInstance();
  1109.         ${${"GLOBALS"}["srmmmmptjdt"]} = "DELETE FROM " . _DB_PREFIX_ . "sp_banka WHERE id = '$id' LIMIT 1";
  1110.         if (!$db->query(${${"GLOBALS"}["hoqlvkcre"]})) {
  1111.             $this->_errors[] = $db->getMsgError();
  1112.             return false;
  1113.         }
  1114.         ${${"GLOBALS"}["srmmmmptjdt"]} = "DELETE FROM " . _DB_PREFIX_ . "sp_taksit WHERE idb = '$id'";
  1115.         if ($db->query(${${"GLOBALS"}["fnyrmycor"]}))
  1116.             return true;
  1117.         $this->_errors[] = $db->getMsgError();
  1118.         return false;
  1119.     }
  1120.     function SpGetIt($total = 1, $cur = "", $mod = 1)
  1121.     {
  1122.         $hgpuwviob                 = "db";
  1123.         $slxrgtuge                 = "q";
  1124.         ${$hgpuwviob}              = Db::getInstance();
  1125.         ${${"GLOBALS"}["djkncjf"]} = array();
  1126.         ${$slxrgtuge}              = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_banka");
  1127.         if (!${${"GLOBALS"}["puovuqwtl"]} OR count(${${"GLOBALS"}["puovuqwtl"]}) < 1)
  1128.             return false;
  1129.         foreach (${${"GLOBALS"}["puovuqwtl"]} as ${${"GLOBALS"}["pskgxlekeu"]}) {
  1130.             ${"GLOBALS"}["lvydvpzu"]    = "banka";
  1131.             ${"GLOBALS"}["xqytognbcmy"] = "r";
  1132.             ${"GLOBALS"}["jlijlozq"]    = "qt";
  1133.             $wfduetnbt                  = "taksit";
  1134.             ${${"GLOBALS"}["jlijlozq"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_taksit WHERE idb = '" . ${${"GLOBALS"}["pskgxlekeu"]}["id"] . "' ORDER BY vade");
  1135.             foreach (${${"GLOBALS"}["mtyyqccyszp"]} as ${$wfduetnbt}) {
  1136.                 ${"GLOBALS"}["jutoyfjg"] = "mod";
  1137.                 if (${${"GLOBALS"}["jutoyfjg"]} = 2) {
  1138.                     ${"GLOBALS"}["ylkmwhsql"]              = "total";
  1139.                     $rvpntdy                               = "taksit";
  1140.                     ${"GLOBALS"}["hpslsbr"]                = "taksit";
  1141.                     $unasuhtngpg                           = "taksit";
  1142.                     ${${"GLOBALS"}["vgfmjxuspcf"]}["vtop"] = number_format(((float) ${${"GLOBALS"}["vgfmjxuspcf"]}["oran"] + 100) * (${${"GLOBALS"}["ylkmwhsql"]} / 100), 2, ".", "");
  1143.                     ${$unasuhtngpg}["aylk"]                = number_format((${${"GLOBALS"}["hpslsbr"]}["vtop"] / ${$rvpntdy}["vade"]), 2, ".", "");
  1144.                 }
  1145.                 ${"GLOBALS"}["gdrrjzknlm"]                   = "banka";
  1146.                 ${"GLOBALS"}["itqojp"]                       = "taksit";
  1147.                 ${${"GLOBALS"}["gdrrjzknlm"]}["taksitler"][] = ${${"GLOBALS"}["itqojp"]};
  1148.             }
  1149.             ${${"GLOBALS"}["xqytognbcmy"]}[] = ${${"GLOBALS"}["lvydvpzu"]};
  1150.         }
  1151.         return ${${"GLOBALS"}["djkncjf"]};
  1152.     }
  1153.     function SpGetIns($id)
  1154.     {
  1155.         ${"GLOBALS"}["fhfkwslh"]              = "db";
  1156.         ${${"GLOBALS"}["fhfkwslh"]}           = Db::getInstance();
  1157.         ${${"GLOBALS"}["puovuqwtl"]}          = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_taksit WHERE id = '$id' LIMIT 0,1");
  1158.         ${${"GLOBALS"}["puovuqwtl"]}["banka"] = $this->SpGetBan(${${"GLOBALS"}["vgfmjxuspcf"]}["idb"]);
  1159.         ${"GLOBALS"}["brljxpi"]               = "taksit";
  1160.         return ${${"GLOBALS"}["brljxpi"]};
  1161.     }
  1162.     function SpGetStatB($bid)
  1163.     {
  1164.         $vutvmul                     = "db";
  1165.         ${"GLOBALS"}["ivjppq"]       = "islem";
  1166.         ${$vutvmul}                  = Db::getInstance();
  1167.         ${${"GLOBALS"}["puovuqwtl"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_islem WHERE bid='$bid'");
  1168.         foreach (${${"GLOBALS"}["puovuqwtl"]} as ${${"GLOBALS"}["ivjppq"]}) {
  1169.             ${"GLOBALS"}["kxptfaahguuk"]        = "banka";
  1170.             ${${"GLOBALS"}["kxptfaahguuk"]}[""] = $this->SpGetBan(${${"GLOBALS"}["vgfmjxuspcf"]}["idb"]);
  1171.         }
  1172.         return ${${"GLOBALS"}["vgfmjxuspcf"]};
  1173.     }
  1174.     function SpGetLT()
  1175.     {
  1176.         $wxotlm                      = "db";
  1177.         ${$wxotlm}                   = Db::getInstance();
  1178.         ${${"GLOBALS"}["dvjiopo"]}   = array();
  1179.         $dbteoo                      = "result";
  1180.         ${${"GLOBALS"}["puovuqwtl"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_islem ORDER BY date_add DESC ");
  1181.         foreach (${${"GLOBALS"}["puovuqwtl"]} as ${${"GLOBALS"}["mdcusegt"]})
  1182.             ${$dbteoo}[] = ${${"GLOBALS"}["mdcusegt"]};
  1183.         return ${${"GLOBALS"}["dvjiopo"]};
  1184.     }
  1185.     function SpGetBan($id)
  1186.     {
  1187.         ${${"GLOBALS"}["brboynvsctj"]}  = Db::getInstance();
  1188.         $bxdtudqyyx                     = "return";
  1189.         ${${"GLOBALS"}["wvkxmxryyvgd"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_banka WHERE id = '$id' LIMIT 0,1");
  1190.         return ${$bxdtudqyyx}[0];
  1191.     }
  1192.     function SpGetBanBC($kod)
  1193.     {
  1194.         ${"GLOBALS"}["vujugqpthw"]      = "db";
  1195.         ${${"GLOBALS"}["vujugqpthw"]}   = Db::getInstance();
  1196.         ${${"GLOBALS"}["wvkxmxryyvgd"]} = $db->executeS("SELECT * FROM " . _DB_PREFIX_ . "sp_banka WHERE kod = '$kod' LIMIT 0,1");
  1197.         return ${${"GLOBALS"}["wvkxmxryyvgd"]}[0];
  1198.     }
  1199.     function SPPut2F($t, $e = true)
  1200.     {
  1201.         ${${"GLOBALS"}["agoudtolkuv"]} = fopen(_PS_MODULE_DIR_ . "sanalpos/oth/deb.php", "a");
  1202.         $yvwcdkzpn                     = "t";
  1203.         $jmijemg                       = "t";
  1204.         $gfgksljjcnuu                  = "e";
  1205.         if (${$gfgksljjcnuu} == true)
  1206.             ${$jmijemg} = base64_encode(${${"GLOBALS"}["wujjlwturry"]});
  1207.         $mmtyoeuskmt = "handle";
  1208.         if (fwrite(${$mmtyoeuskmt}, ${$yvwcdkzpn})) {
  1209.             return true;
  1210.         }
  1211.         return false;
  1212.     }
  1213.     function FixTrUnicode($q)
  1214.     {
  1215.         $mstqdpubmtt                   = "q";
  1216.         ${"GLOBALS"}["uofsevkfkti"]    = "q";
  1217.         $vhjwgwcg                      = "q";
  1218.         ${"GLOBALS"}["wdfiya"]         = "q";
  1219.         ${${"GLOBALS"}["puovuqwtl"]}   = str_replace("A�", "I", ${$mstqdpubmtt});
  1220.         ${${"GLOBALS"}["uofsevkfkti"]} = str_replace("A�", "c", ${${"GLOBALS"}["wdfiya"]});
  1221.         ${$vhjwgwcg}                   = str_replace("A", "s", ${${"GLOBALS"}["puovuqwtl"]});
  1222.         return ${${"GLOBALS"}["puovuqwtl"]};
  1223.     }
  1224.     function EncDec($Str_Message)
  1225.     {
  1226.         $foqmfxtxduz                    = "Str_Encrypted_Message";
  1227.         ${"GLOBALS"}["cezekcrustmi"]    = "Len_Str_Message";
  1228.         ${"GLOBALS"}["nqwkutpr"]        = "Position";
  1229.         ${${"GLOBALS"}["cezekcrustmi"]} = STRLEN(${${"GLOBALS"}["zkqeolnkqvn"]});
  1230.         ${${"GLOBALS"}["upqsfjo"]}      = "";
  1231.         for (${${"GLOBALS"}["vyrvfwccaljb"]} = 0; ${${"GLOBALS"}["nqwkutpr"]} < ${${"GLOBALS"}["mansilqt"]}; ${${"GLOBALS"}["vyrvfwccaljb"]}++) {
  1232.             ${"GLOBALS"}["xgbobswe"]     = "Encrypted_Byte";
  1233.             $txyauis                     = "Key_To_Use";
  1234.             ${"GLOBALS"}["cgexdn"]       = "Key_To_Use";
  1235.             $ieqjow                      = "Byte_To_Be_Encrypted";
  1236.             $ihuxlvf                     = "Str_Message";
  1237.             ${"GLOBALS"}["ibqhhmvkvkx"]  = "Xored_Byte";
  1238.             ${$txyauis}                  = ((${${"GLOBALS"}["mansilqt"]} + ${${"GLOBALS"}["vyrvfwccaljb"]}) + 1);
  1239.             $kqdlzbcmct                  = "Key_To_Use";
  1240.             ${"GLOBALS"}["fdukjdto"]     = "Ascii_Num_Byte_To_Encrypt";
  1241.             $omdapglix                   = "Ascii_Num_Byte_To_Encrypt";
  1242.             ${"GLOBALS"}["rilwlvey"]     = "Byte_To_Be_Encrypted";
  1243.             ${$kqdlzbcmct}               = (255 + ${${"GLOBALS"}["nitqgwprpd"]}) % 255;
  1244.             ${$ieqjow}                   = SUBSTR(${$ihuxlvf}, ${${"GLOBALS"}["vyrvfwccaljb"]}, 1);
  1245.             ${$omdapglix}                = ORD(${${"GLOBALS"}["rilwlvey"]});
  1246.             ${"GLOBALS"}["shoiehvju"]    = "Xored_Byte";
  1247.             ${${"GLOBALS"}["shoiehvju"]} = ${${"GLOBALS"}["fdukjdto"]} ^ ${${"GLOBALS"}["cgexdn"]};
  1248.             ${${"GLOBALS"}["lrpywqupg"]} = CHR(${${"GLOBALS"}["ibqhhmvkvkx"]});
  1249.             ${${"GLOBALS"}["upqsfjo"]} .= ${${"GLOBALS"}["xgbobswe"]};
  1250.         }
  1251.         return ${$foqmfxtxduz};
  1252.     }
  1253.     static public function getCurrent()
  1254.     {
  1255.         global $cookie;
  1256.         if (!@${${"GLOBALS"}["crvidjfqfzu"]}) {
  1257.             ${"GLOBALS"}["ixtczttjrxn"] = "current";
  1258.             if (isset($cookie->id_currency) AND $cookie->id_currency)
  1259.                 ${${"GLOBALS"}["crvidjfqfzu"]} = new Currency(intval($cookie->id_currency));
  1260.             else
  1261.                 ${${"GLOBALS"}["ixtczttjrxn"]} = new Currency(intval(Configuration::get("PS_CURRENCY_DEFAULT")));
  1262.         }
  1263.         return ${${"GLOBALS"}["crvidjfqfzu"]};
  1264.     }
  1265. }
  1266. include(_PS_MODULE_DIR_ . "/sanalpos/conf.php");
  1267. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement