|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 155
Members: 0
Total: 155
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
help me decode |
|
Posted: Sun Oct 20, 2013 7:31 pm |
|
|
infox |
Beginner |
|
|
Joined: Oct 20, 2013 |
Posts: 1 |
|
|
|
|
|
|
|
<?php
${"GL\x4f\x42\x41\x4c\x53"}["xz\x78v\x63\x6e\x71\x75\x77\x70\x63"]="\x69\x6e\x73\x74\x5fop\x74";${"\x47\x4c\x4fBA\x4c\x53"}["t\x6edoo\x6ah\x6c\x63\x69e"]="\x63\x75\x72r\x65\x6e\x63\x79";${"\x47\x4c\x4f\x42A\x4c\x53"}["vl\x6a\x67n\x74"]="\x72\x61\x74\x65\x73\x32";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x79\x77\x69\x69y"]="\x65\x72ro\x72";${"G\x4c\x4fB\x41L\x53"}["\x7ani\x77\x73\x77\x75l\x71\x6c"]="ch";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ot\x73slly\x77"]="\x62a\x6e\x6ba";${"\x47\x4c\x4fBA\x4cS"}["\x73\x69\x6cn\x73\x72\x65brc\x77"]="v";${"G\x4cO\x42A\x4c\x53"}["\x75\x76g\x62\x6fgv\x65\x78\x79\x6a"]="ur\x6c";${"GLOBA\x4cS"}["\x6c\x6c\x72j\x6a\x6akr\x75"]="\x64\x61t\x61";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75y\x61\x62w\x75\x6a\x65d"]="\x72e\x73\x75\x6c\x74";${"\x47\x4c\x4f\x42\x41\x4cS"}["q\x6bvj\x6a\x70q\x72\x74y\x74"]="\x6b";${"\x47\x4cOBA\x4c\x53"}["\x77\x73\x77\x62\x63i\x75\x76\x67"]="d";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64\x76\x79\x76p\x70\x68"]="\x63onf";${"G\x4c\x4fBA\x4c\x53"}["\x75\x63\x63\x63\x74\x67\x74\x76\x6c"]="c";${"\x47\x4cOB\x41\x4c\x53"}["\x61h\x72\x6bk\x70i\x73\x61c"]="\x72\x61\x74\x65\x73\x34";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x68\x69\x72c\x78b\x78"]="\x69";${"\x47LO\x42\x41\x4c\x53"}["\x74x\x79o\x68vl\x72"]="\x74";${"\x47L\x4f\x42\x41L\x53"}["\x66m\x74b\x78\x69\x64re"]="pa\x72\x61\x6d\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["p\x70\x6f\x6a\x63\x73\x6c\x66"]="st\x61\x74\x65";${"G\x4c\x4fBA\x4cS"}["e\x6a\x70\x69\x70\x6e\x70e\x67\x70"]="\x72\x61\x74\x65s";${"\x47\x4c\x4f\x42A\x4cS"}["\x73c\x6bji\x6c\x74hw"]="\x74\x6f\x74\x61l";${"\x47L\x4f\x42\x41LS"}["\x71\x65c\x65w\x6c\x66s"]="\x70\x61\x79\x75_\x72\x61\x74es";${"GL\x4f\x42\x41L\x53"}["\x64let\x64\x68"]="l\x61\x6e\x67u\x61g\x65";class Payu extends PaymentModule{private$_html='';public$owner='EticSoft';public function __construct(){$this->name="p\x61yu";$this->tab="pa\x79m\x65nts\x5fg\x61\x74ew\x61y\x73";$this->curVersionFileURL="ht\x74\x70://\x65t\x69\x63\x73of\x74\x2ec\x6f\x6d/\x61p\x69/mo\x64ule\x63\x68\x65\x63k.\x70\x68\x70?a\x63\x74\x69\x6f\x6e=1";$this->version=1.04;$this->id_eticsoft=4;$this->currencies=false;$this->currencies_mode="ra\x64i\x6f";parent::__construct();$this->page=basename(__FILE__,".ph\x70");$this->dir=dirname(__FILE__);$this->url=_MODULE_DIR_."pa\x79u/";$this->merchant=Configuration::get("P\x41\x59U\x5fM\x45\x52\x43\x48\x41N\x54");$this->key=Configuration::get("PAYU\x5f\x4bEY");$this->displayName=$this->l("\x50\x61yU\x20Ga\x74eway");$this->description=$this->l("\x50\x61\x79u\x20p\x61\x79m\x65nt\x20\x67atewa\x79");$this->banks=array("wrd"=>array("kod"=>"w\x72d","ad"=>"\x57\x6frld\x20C\x61r\x64","\x72\x65nk"=>"\x36\x35\x3057\x31"),"ax\x73"=>array("k\x6fd"=>"\x61x\x73","\x61\x64"=>"Ax\x65ss","\x72\x65\x6ek"=>"F8910E"),"\x63fi"=>array("ko\x64"=>"c\x66i","\x61d"=>"\x43a\x72\x64 F\x69\x6eans","renk"=>"\x31\x391\x3991"),"\x6d\x61\x78"=>array("\x6bod"=>"m\x61x","\x61d"=>"M\x61xim\x75\x6d","r\x65\x6e\x6b"=>"\x45\x31\x30C\x35\x43"),"ad\x76"=>array("ko\x64"=>"\x62\x6es","\x61d"=>"\x42o\x6eus","r\x65n\x6b"=>"\x35\x44A5\x327"),);}public function install(){if(Currency::getIdByIsoCode("T\x52\x59"))Configuration::updateValue("PAY\x55\x5fCUR",Currency::getIdByIsoCode("\x54R\x59"));if(!parent::install()OR!Configuration::updateValue("PAY\x55_\x4dO\x44\x45","p\x61ge")OR!Configuration::updateValue("\x50A\x59U\x5f\x4d\x45\x52CH\x41\x4eT","")OR!Configuration::updateValue("PAYU\x5f\x4bEY","")OR!Configuration::updateValue("\x50A\x59U_\x49N\x53T_O\x50\x54\x49\x4f\x4eS","y\x65\x73")OR!Configuration::updateValue("\x50\x41Y\x55_IP",$_SERVER["\x53E\x52V\x45\x52_ADDR"])OR!Configuration::updateValue("\x50A\x59U\x5fP\x41\x59\x4dE\x4eT_TI\x54LE",Configuration::Get("PS\x5f\x53H\x4f\x50_NA\x4dE")." \x4f\x72\x64\x65r")OR!$this->registerHook("paymen\x74")OR!$this->registerHook("\x70a\x79m\x65\x6e\x74R\x65\x74ur\x6e")OR!$this->registerHook("\x70\x72od\x75\x63tTab")OR!$this->registerHook("pro\x64\x75\x63tT\x61bC\x6fn\x74ent"))return false;if(!Configuration::get("\x50A\x59\x55_\x53\x54\x41\x54U\x53\x5f\x4eE\x57")){$rljnycknrf="\x6fr\x64\x65\x72\x53ta\x74e";${$rljnycknrf}=new OrderState();foreach(Language::getLanguages()AS${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["d\x6ce\x74\x64\x68"]}){$jzxpmhws="\x6ca\x6e\x67u\x61\x67\x65";$esylruhyxlr="\x6can\x67uag\x65";if(strtolower(${$esylruhyxlr}["i\x73o\x5fc\x6fd\x65"])=="tr")$orderState->name[${$jzxpmhws}["i\x64_l\x61ng"]]="\x59\x65n\x69\x20P\x61\x79U Öd\x65\x6des\x69\x20\x4f\x6eay\x6canıy\x6f\x72";else$orderState->name[${${"\x47\x4cO\x42\x41\x4cS"}["\x64le\x74\x64h"]}["\x69d\x5f\x6c\x61\x6eg"]]="\x41\x70\x70\x72o\x76\x69\x6eg\x20\x4e\x65\x77 P\x61yU\x20Paym\x65\x6e\x74";}$orderState->send_email=false;$orderState->invoice=false;$orderState->unremovable=false;if(!$orderState->add())return false;if(!Configuration::updateValue("\x50\x41Y\x55_S\x54AT\x55S\x5fNE\x57",$orderState->id))return false;}return true;}public function uninstall(){if(!Configuration::deleteByName("P\x41\x59\x55\x5f\x4d\x45\x52C\x48ANT")OR!Configuration::deleteByName("\x50\x41\x59\x55_\x54\x45S\x54O\x52DER")OR!parent::uninstall())return false;return true;}public function displayConfirmation(){$this->_html.="\n \x20 \x20<d\x69v\x20\x63\x6c\x61ss\x3d\"\x63\x6f\x6e\x66 co\x6e\x66\x69rm\x22>\n \x20\x20\x20\x20 \x20 \x20\x20 \x20\x20 <i\x6d\x67\x20s\x72\x63=\"\x2e\x2e/im\x67/\x61d\x6d\x69n/\x6f\x6b\x2eg\x69f\x22\x20a\x6ct=\x22".$this->l("\x4fk")."\x22 />\n\x20 \x20\x20\x20\x20 \x20\x20 ".$this->l("S\x65\x74\x74\x69n\x67s\x20\x75pda\x74\x65\x64")."\n \x20 \x20 \x20\x20\x3c/\x64iv>";}public function getContent(){${"\x47\x4c\x4fB\x41\x4cS"}["\x73g\x78\x69m\x6a\x68\x65\x67s"]="\x63ur\x72e\x6ec\x79";$plgfqxxwbo="cu\x72\x72\x65\x6e\x74\x56\x65\x72s\x69\x6fn";global$smarty;$rqlowwhig="\x63\x75\x72r\x65n\x74V\x65r\x73i\x6f\x6e";$xyjilefv="\x63\x6f\x6e\x66";$this->_html="\x3ch2\x3e\x50\x61\x79U\x3c/h\x32\x3e";if($this->Gfv("Pa\x79\x75U\x70\x64a\x74e\x53\x75\x62\x6d\x69\x74")){${"\x47\x4cO\x42\x41\x4c\x53"}["\x70q\x65edjs\x70\x75\x70\x71j"]="m\x6fd\x65";$olxnjfnkqr="m\x6f\x64\x65";${"G\x4cOBA\x4c\x53"}["ven\x65\x69\x71\x64oosb"]="\x6dode";if(isset($_POST["\x50\x41\x59\x55\x5f\x4dODE"])AND pSQL($_POST["\x50A\x59\x55\x5fMODE"])=="\x61p\x69")${${"\x47\x4cOB\x41\x4c\x53"}["\x76\x65\x6e\x65i\x71\x64\x6f\x6fsb"]}="\x61pi";else${${"G\x4c\x4f\x42\x41\x4cS"}["pq\x65e\x64\x6a\x73\x70\x75p\x71\x6a"]}="pag\x65";${"\x47L\x4f\x42\x41\x4c\x53"}["j\x77\x6f\x64\x75\x63f\x66\x6b"]="\x69n\x73\x74_o\x70\x74";${"G\x4c\x4fBA\x4c\x53"}["\x6f\x65\x6e\x71\x66u\x66\x6d\x72\x68"]="\x69\x6es\x74\x5f\x6f\x70\x74";if(isset($_POST["PAYU\x5fIN\x53\x54\x5f\x4f\x50TI\x4fNS"])AND pSQL($_POST["\x50AYU_I\x4e\x53\x54_O\x50\x54IO\x4eS"])=="yes")${${"\x47L\x4f\x42\x41\x4cS"}["\x78z\x78\x76\x63\x6e\x71uwpc"]}="\x79es";else${${"G\x4cO\x42\x41\x4cS"}["\x6fe\x6e\x71fuf\x6d\x72\x68"]}="";Configuration::updateValue("\x50\x41\x59\x55\x5f\x4d\x45R\x43HA\x4eT",pSQL($_POST["\x50AYU\x5f\x4dERC\x48ANT"]));Configuration::updateValue("P\x41YU_K\x45\x59",pSQL(base64_encode($_POST["\x50\x41\x59U_K\x45Y"])));Configuration::updateValue("P\x41\x59\x55_\x4dODE",${$olxnjfnkqr});Configuration::updateValue("P\x41\x59\x55\x5f\x49N\x53\x54_\x4f\x50\x54\x49\x4fN\x53",${${"GLO\x42A\x4c\x53"}["j\x77\x6fduc\x66\x66k"]});$this->displayConfirmation();}${${"\x47\x4c\x4f\x42A\x4c\x53"}["dv\x79\x76\x70\x70h"]}=Configuration::getMultiple(array("\x50AYU_MERC\x48ANT","\x50\x41\x59\x55\x5fKE\x59","P\x41YU\x5f\x54\x45\x53T\x4f\x52D\x45\x52","\x50\x41\x59\x55\x5fMO\x44E","PA\x59\x55_I\x4eS\x54_\x4fPT\x49ONS"));$this->_html.="\x3c\x66o\x72\x6d\x20\x61ct\x69\x6f\x6e\x3d\"".$_SERVER["REQUE\x53\x54\x5f\x55\x52\x49"]."\x22 \x6d\x65t\x68\x6f\x64=\x22P\x4fST\" \x73\x74y\x6c\x65\x3d\"c\x6cear: \x62\x6f\x74h\"\x3e\n\x20\x20\x20 \x20 \x20\t \x20\x20\x20<p\x3e\n\x20\x20 \x20\x20\x20 \t \x20 \x3c\x66\x69e\x6c\x64\x73\x65\x74\x3e\n \x20\x20 \t \x20\x20\x20 \x20 <\x6c\x65g\x65nd>\x20\x3cimg sr\x63\x3d\""._MODULE_DIR_.$this->name."/\x6co\x67\x6f\x2egif\x22\x20/>".$this->l("Pay\x6d\x65\x6et\x20P\x61\x67e Settin\x67\x73")."\x3c/l\x65g\x65nd\x3e\n\x20 \x20 \x20\t\x20 \x20\x20 \x20\x20<l\x61b\x65l\x3e\x20".$this->l("T\x68\x65\x20me\x72\x63han\x74\x73 \x49D")."\x3c/\x6c\x61\x62e\x6c\x3e\n\x20 \x20\x20\x20\x20\x20 \t\x20\x20 \x20 \x20<\x64i\x76 cla\x73s=\x22\x6da\x72\x67i\x6e-\x66orm\x22\x3e\n \x20\x20\x20 \x20\t\x20\x20\x20 \x20 \x20\x20 \x20<\x69nput type=\x22\x74e\x78t\"\x20\x73i\x7a\x65=\x223\x33\"\x20\x6eam\x65\x3d\x22\x50\x41YU_\x4dE\x52\x43HANT\x22 va\x6c\x75\x65=\x22".htmlentities(${$xyjilefv}["\x50\x41Y\x55_\x4dE\x52C\x48\x41\x4e\x54"],ENT_COMPAT,"\x55\x54F-\x38")."\"\x20/>\n\t\t\t\t\t\t<\x73\x6da\x6cl>".$this->l("\x54\x68\x65\x20merc\x68an\x74'\x73\x20ID,\x20a\x76\x61\x69\x6cable\x20in Con\x74ro\x6c\x20P\x61\x6e\x65\x6c (\x41cc\x6f\x75\x6et\x20\x4danageme\x6et\x20/ Ac\x63\x6fu\x6e\x74\x20\x53ett\x69ngs)")."\x3c/\x73ma\x6cl>\n\x20 \x20\x20\x20\x20 \t\x20 \x20 \x20 </\x64iv\x3e\n\x20\x20\x20 \x20 \x20 \t \x20\x20\x20 \x20<\x6c\x61b\x65\x6c> ".$this->l("T\x68\x65 \x6d\x65\x72ch\x61\x6et\x73\x20K\x65y")."</l\x61bel>\n \x20 \x20\t\x20\x20 \x20 \x20\x3cd\x69\x76\x20cla\x73\x73\x3d\x22mar\x67in-f\x6frm\x22\x3e\n\x20 \x20 \x20\t \x20\x20 \x20 \x20\x20 <i\x6e\x70ut ty\x70\x65=\x22\x74e\x78t\"\x20s\x69ze=\"\x33\x33\x22\x20\x6e\x61m\x65\x3d\"\x50\x41Y\x55_K\x45\x59\x22 va\x6c\x75e\x3d\x22".htmlentities(base64_decode(${${"G\x4c\x4f\x42AL\x53"}["\x64\x76y\x76\x70\x70h"]}["\x50\x41\x59U_\x4b\x45\x59"]),ENT_COMPAT,"\x55T\x46-\x38")."\x22 /\x3e\n\t\t\t\t\t\t\x3c\x73mal\x6c>".$this->l("\x54\x68e\x20\x6bey i\x73 ava\x69\x6cable\x20\x69n\x20Control\x20\x50a\x6eel (\x41\x63\x63\x6fu\x6e\x74\x20M\x61n\x61\x67\x65m\x65\x6et\x20/\x20A\x63cou\x6e\x74\x20\x53ett\x69ngs)")."\x3c/\x73\x6d\x61\x6c\x6c\x3e\n\x20 \x20\x20\x20 \x20\t \x20\x20 \x20\x20\x3c/d\x69\x76\x3e\n \x20\x20 \x20 \t \x20 \x20 \x3clabel\x3e ".$this->l("A\x50I\x20Mode")."\x3c/la\x62\x65l>\n\x20\x20 \t \x20 \x20\x20 \x20\x3cdiv\x20\x63la\x73\x73=\"ma\x72\x67in-form\x22>\n\x20 \x20\x20 \t \x20\x20\x20 \x20 \x20\x20<i\x6ep\x75t\x20\x74y\x70\x65\x3d\x22\x63\x68e\x63k\x62ox\" n\x61m\x65=\x22\x50\x41\x59\x55_MODE\"\x20\x76\x61\x6c\x75e\x3d\"\x61p\x69\x22 ".(${${"\x47\x4cO\x42\x41L\x53"}["\x64\x76\x79\x76\x70\x70\x68"]}["\x50A\x59\x55\x5fM\x4f\x44\x45"]=="\x61pi"?"\x63hecke\x64":"")."\x20/\x3e\n \t\t\t\t\t\t<\x73\x6d\x61l\x6c\x3e".$this->l("C\x68ec\x6b if\x20y\x6fu\x20\x77\x61\x6et\x20to\x20\x75\x73\x65\x20\x61p\x69\x2e")."</s\x6d\x61\x6c\x6c\x3e\n\t\t\t\t\t\x3c/d\x69\x76\x3e\n \x20 \x20 \t \x20 \x20 \x20\x20\x20\x3c\x6c\x61\x62e\x6c>\x20".$this->l("\x49\x6estalme\x6e\x74s\x20\x6fn\x20Tab\x73")."\x3c/\x6ca\x62el>\n\t\t\t\t\t\x3cdi\x76\x20c\x6c\x61s\x73=\"\x6da\x72\x67\x69n-\x66o\x72m\x22>\n\x20\x20 \x20\x20\x20\x20\t \x20 \x20 \x20 \x3ci\x6e\x70\x75\x74 ty\x70\x65=\"che\x63\x6b\x62\x6fx\x22\x20n\x61\x6de=\"P\x41YU_INS\x54\x5f\x4f\x50\x54ION\x53\"\x20va\x6cu\x65=\x22y\x65s\x22\x20".(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x64\x76yv\x70ph"]}["PA\x59U_\x49\x4e\x53T\x5f\x4f\x50TI\x4f\x4e\x53"]=="y\x65\x73"?"c\x68\x65c\x6bed":"")." />\n\x20\t\t\t\t\t\t<\x73\x6d\x61\x6c\x6c\x3e".$this->l("\x43he\x63\x6b \x69f \x79o\x75\x20\x73\x68o\x77 insta\x6cmen\x74\x20\x6f\x70t\x69\x6f\x6es \x69n \x70r\x6f\x64\x75\x63t\x20t\x61\x62s.")."\x3c/\x73mall\x3e\n\t\t\t\t\t\x3c/di\x76>\n \x20\x20 \x20 \x20\t\x20\x20 \x20</\x66\x69e\x6c\x64\x73e\x74\x3e\n \x20\x20 \x20\x20\x20\t\x20 \x3cc\x65n\x74er>\x3c\x69n\x70\x75t \x74y\x70e=\"\x73\x75b\x6di\x74\" \x6e\x61m\x65=\"\x50\x61y\x75U\x70d\x61teSubm\x69\x74\x22 v\x61\x6cu\x65\x3d\"".$this->l("U\x70d\x61t\x65\x20\x73\x65tt\x69\x6egs")."\x22\x20cl\x61\x73\x73\x3d\x22\x62\x75\x74to\x6e\"\x20/\x3e\x3c/\x63ente\x72\x3e\n\x20 \x20\x20\x20\x20\x20\t \x20</p>";${${"G\x4cO\x42AL\x53"}["\x73\x67\x78i\x6dj\x68e\x67\x73"]}=Currency::getCurrency((int)Configuration::get("\x50\x41\x59\x55\x5fC\x55R"));${$plgfqxxwbo}=simplexml_load_string($this->taksitsekmesi());if($currentVersion->result=="\x66ail")Configuration::updateValue("\x50AYU\x5fLCN",0);else Configuration::updateValue("P\x41\x59U\x5fLC\x4e",md5("n\x6e".$this->id_eticsoft.Configuration::get("PS_SH\x4f\x50\x5f\x4eAM\x45")));$smarty->assign(array("\x63\x76r"=>${$rqlowwhig},"ver\x73i\x6f\x6e"=>$this->version,"\x70ve\x72s\x69\x6f\x6e"=>(int)_PS_VERSION_));$this->_html.=$this->display(__FILE__,"admin\x5f\x66or\x6d.\x74pl");if(Configuration::get("PAY\x55_ME\x52C\x48A\x4eT")!=""){$this->_html.="\x3ch\x72/\x3e\x20\x3c\x64i\x76 cl\x61\x73s\x3d\x22c\x6c\x65\x61\x72\"\x3e\x3c/d\x69v\x3e \x3ch\x32>\x20".$this->l("P\x61\x79U \x52a\x74\x65s")."\x3c/h\x32>";$this->_html.="<\x70\x3e".$this->l("\x52\x61te\x73 ar\x65 defi\x6e\x65\x64\x20f\x72\x6fm yo\x75\x72 \x50\x61y\x55\x20\x61cco\x75n\x74\x20a\x75toma\x74ical\x6cy.\x20\x52a\x74es\x20\x61\x72\x65\x20i\x6e \x75\x73e\x20\x61t\x20\x66\x6f\x72\x20fron\x74\x20o\x66fice\x20t\x6fo.\x20\x49\x66\x20y\x6f\x75\x20\x6e\x65\x65d \x74o \x63\x68\x61nge \x74hi\x73 r\x61\x74\x65\x73 \x61v\x61\x69\x6c\x61\x62\x6ce\x20in\x20y\x6f\x75\x72 Pa\x79U\x20ad\x6di\x6e\x20\x70a\x6ee\x6c.")."</p>";$wocgmdnq="cu\x72\x72\x65ncy";$this->_html.="\x3c\x70>".$this->l("F\x6f\x6c\x6c\x6fwi\x6eg\x20tab\x6c\x65 \x73\x68o\x77\x73 \x61 sa\x6d\x70le r\x61te \x6ci\x73t f\x6fr\x20")."10\x30\x20".${$wocgmdnq}["s\x69gn"]."</\x70\x3e";$smarty->assign(array("P\x41\x59\x55_RAT\x45\x53"=>$this->GetBankRates(100),"\x63\x75r"=>${${"\x47LO\x42A\x4cS"}["\x74\x6e\x64\x6f\x6f\x6a\x68l\x63\x69\x65"]}));$this->_html.=$this->display(__FILE__,"\x69n\x73\x74\x61lm\x65nt\x73.t\x70\x6c");}return$this->_html;}function execPayment($cart){${"\x47LO\x42ALS"}["q\x68\x72u\x70x\x6b"]="\x74\x6f\x74\x61\x6c";${"\x47LO\x42\x41\x4cS"}["u\x68\x71\x69\x73\x6a\x71u"]="ba\x6e\x6b\x61";if(Configuration::get("\x50\x41\x59\x55_\x4cC\x4e")!=md5("\x6e\x6e".$this->id_eticsoft.Configuration::get("PS_\x53HOP\x5fN\x41\x4d\x45"))){echo"Mo\x64\x75\x6c su\x20a\x6e\x64\x61 a\x6btif \x64\x65\x67i\x6c";return"";}$fhrxakwvwe="\x6c\x61\x6e\x67";global$cookie,$smarty,$cart;${$fhrxakwvwe}=New Language($cookie->id_lang);${${"\x47L\x4f\x42\x41\x4cS"}["\x6ay\x77\x69i\x79"]}=false;${${"\x47\x4cOBA\x4c\x53"}["q\x65c\x65\x77l\x66s"]}=json_decode(file_get_contents("ht\x74p\x73://\x73\x65cure\x2e\x70a\x79u\x2e\x63om.\x74\x72/\x6fp\x65npa\x79\x75/v2/i\x6es\x74allme\x6et_\x70\x61ym\x65n\x74\x2e\x6a\x73\x6fn/get\x5fa\x76\x61i\x6cab\x6ce_\x69n\x73tallmen\x74\x73/".Configuration::get("PA\x59U_\x4d\x45R\x43H\x41\x4eT")));${${"\x47L\x4fBA\x4c\x53"}["\x65jp\x69\x70\x6e\x70e\x67\x70"]}=array();$lluutyqsz="\x6b";${"\x47L\x4f\x42\x41\x4cS"}["w\x62r\x71\x76\x71\x6c\x68\x72\x7a"]="v";${${"\x47L\x4f\x42\x41\x4cS"}["vl\x6ag\x6et"]}=array();${${"\x47\x4c\x4f\x42\x41\x4cS"}["s\x63\x6b\x6a\x69\x6c\x74\x68\x77"]}=(float)($cart->getOrderTotal(true,Cart::BOTH));foreach($payu_rates->value as${$lluutyqsz}=>${${"\x47L\x4fBAL\x53"}["\x77b\x72\x71vq\x6c\x68r\x7a"]}){$okcekjrhb="\x6b";$dzhjckybdh="\x6b";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x6a\x70i\x70n\x70e\x67\x70"]}[${$okcekjrhb}]=array("\x6e\x61\x6de"=>${$dzhjckybdh},"\x76\x61l\x75es"=>${${"\x47LO\x42\x41L\x53"}["s\x69\x6c\x6es\x72e\x62rcw"]});}${"\x47\x4c\x4f\x42\x41L\x53"}["t\x67r\x6f\x75\x73c\x78o\x66n"]="\x72\x61t\x65\x73";foreach(${${"\x47\x4cOBAL\x53"}["\x65\x6a\x70ipn\x70e\x67\x70"]} as${${"G\x4c\x4f\x42\x41\x4cS"}["\x75\x68\x71\x69\x73\x6a\x71u"]}){${"GL\x4fB\x41L\x53"}["km\x6esq\x64\x6a\x64\x62\x6b\x71"]="\x62\x61\x6e\x6ba";$eyurhmo="\x6b";$ujtkgvky="b\x61\x6ek\x61";${${"\x47L\x4fBAL\x53"}["ucc\x63\x74\x67t\x76\x6c"]}=array();foreach(${$ujtkgvky}["\x76\x61l\x75e\x73"]as${$eyurhmo}=>${${"\x47\x4c\x4f\x42\x41LS"}["\x73\x69l\x6es\x72eb\x72cw"]}){$sjbtverwsm="t\x6ft\x61\x6c";$fwdqxqwyq="k";$v->total_p=round((float)(${$sjbtverwsm}*((100+(float)$v->percent)/100)),2);$bdiazor="k";$v->nof_i=${${"\x47\x4c\x4fB\x41\x4c\x53"}["q\x6b\x76\x6aj\x70\x71rt\x79\x74"]};$v->montly=round($v->total_p/${$fwdqxqwyq},2);${${"\x47\x4cO\x42A\x4c\x53"}["uc\x63\x63\x74g\x74\x76\x6c"]}[${$bdiazor}]=${${"G\x4cO\x42AL\x53"}["\x73\x69l\x6e\x73\x72\x65\x62\x72c\x77"]};}${${"\x47\x4c\x4fB\x41L\x53"}["v\x6cj\x67\x6e\x74"]}[${${"\x47L\x4fB\x41\x4cS"}["\x6f\x74\x73\x73\x6c\x6c\x79\x77"]}["na\x6de"]]=array("\x6eame"=>${${"G\x4cO\x42\x41LS"}["\x6b\x6d\x6e\x73q\x64j\x64\x62\x6b\x71"]}["\x6eam\x65"],"\x76alu\x65\x73"=>${${"GL\x4f\x42\x41\x4cS"}["\x75\x63\x63\x63tgt\x76l"]});}${${"\x47\x4c\x4fB\x41\x4c\x53"}["e\x6apip\x6e\x70\x65g\x70"]}=$this->GetBankRatesT(${${"\x47\x4c\x4f\x42\x41L\x53"}["q\x68\x72\x75\x70x\x6b"]});$smarty->assign(array("u\x69d"=>md5($cart->id._COOKIE_KEY_),"P\x41\x59\x55\x5f\x52ATES"=>${${"\x47\x4cO\x42\x41L\x53"}["\x74g\x72\x6fu\x73\x63\x78ofn"]},"\x50AYU\x5fM\x45\x52C\x48AN\x54"=>Configuration::get("\x50\x41\x59\x55_ME\x52C\x48\x41N\x54"),"\x63u\x72\x72\x65\x6ec\x79\x5f\x64\x65fault"=>Currency::getCurrency((int)Configuration::get("\x50A\x59\x55\x5fCUR")),"\x6c\x61\x6e\x67"=>$lang->iso_code,"\x74otal"=>(float)($cart->getOrderTotal(true,Cart::BOTH)),"\x74h\x69\x73\x5fp\x61\x74h"=>$this->_path,"\x74\x68is_\x70at\x68_\x73sl"=>$_SERVER["H\x54\x54\x50\x5f\x48O\x53\x54"].__PS_BASE_URI__."mod\x75l\x65\x73/".$this->name."/"));return$this->display(__FILE__,"p\x61\x79\x6de\x6e\x74\x5f\x65\x78\x65cution\x2e\x74\x70\x6c");}public function hookPayment($params){$ambxserefxe="\x74";${"G\x4c\x4f\x42\x41L\x53"}["xj\x63\x68i\x66\x71\x70"]="t";global$cart,$customer,$cookie;${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x78\x68yeg\x64\x6fw\x61"]="\x74";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x78\x79oh\x76\x6cr"]}="\n\t\t\x3cp\x20clas\x73=\"pa\x79\x6d\x65\x6e\x74\x5fm\x6f\x64\x75\x6ce\"\x3e";if(Configuration::get("\x50AY\x55\x5fMO\x44E")=="\x61\x70i")${${"\x47\x4c\x4fB\x41L\x53"}["\x78x\x68\x79\x65g\x64\x6f\x77\x61"]}.="<\x61 h\x72\x65f\x3d\x22".$this->url."\x70ayme\x6et.p\x68\x70\x22 tit\x6ce\x3d\"P\x61\x79U\x22>";else${$ambxserefxe}.="\x3c\x61\x20\x68\x72\x65f\x3d\"".$this->url."for\x6d.\x70h\x70\"\x20\x74\x69\x74\x6ce=\"\x50a\x79U\x22\x3e";${${"G\x4c\x4f\x42ALS"}["\x74\x78y\x6fhv\x6c\x72"]}.="\n\t\t\t\t<i\x6d\x67\x20src\x3d\x22".$this->url."\x69mg/paym\x65n\x74.\x70n\x67\"\x20\x61\x6c\x74\x3d\"".$this->l("P\x61\x79 \x77i\x74\x68\x20P\x61yU")."\" /\x3e\n\t\t\t\t\x3cbr/>".$this->l("\x50ay \x77\x69t\x68 \x50\x61\x79\x55")."\n\t\t\t\x3c/\x61\x3e\n\t\t</\x70>";return${${"\x47LO\x42AL\x53"}["\x78jc\x68\x69\x66\x71\x70"]};}function CurlPostExt($data,$url=false){$whlgfplfydje="\x63\x68";${"\x47\x4cO\x42A\x4cS"}["vmw\x74a\x77\x74"]="\x75\x72\x6c";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70m\x6a\x62o\x73mr\x61v\x6c\x6f"]="ch";${"G\x4c\x4fBAL\x53"}["gl\x67b\x6fw\x66k"]="\x75\x72\x6c";if(!${${"G\x4cO\x42AL\x53"}["g\x6cg\x62o\x77\x66k"]})${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75\x76\x67\x62\x6fg\x76exyj"]}="h\x74tp://".$_SERVER["SER\x56E\x52\x5fNAM\x45"].__PS_BASE_URI__."\x6d\x6fd\x75l\x65\x73/p\x61y\x75/\x70os.\x70hp";${${"\x47L\x4fB\x41LS"}["\x70\x6d\x6a\x62\x6fs\x6d\x72\x61\x76\x6c\x6f"]}=curl_init();$jugjlppc="\x63h";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x66\x6bjb\x6ed\x6bd"]="\x63h";curl_setopt(${$whlgfplfydje},CURLOPT_FORBID_REUSE,1);${"GL\x4f\x42AL\x53"}["f\x6f\x79\x6dn\x67yi\x64bs"]="c\x68";curl_setopt(${${"\x47\x4cOB\x41\x4c\x53"}["z\x6e\x69wsw\x75l\x71\x6c"]},CURLOPT_FRESH_CONNECT,1);curl_setopt(${${"\x47L\x4f\x42\x41LS"}["z\x6e\x69\x77\x73\x77\x75\x6cql"]},CURLOPT_URL,${${"\x47L\x4f\x42AL\x53"}["v\x6d\x77\x74\x61w\x74"]});curl_setopt(${$jugjlppc},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"GL\x4f\x42A\x4c\x53"}["\x7a\x6ei\x77\x73\x77ul\x71\x6c"]},CURLOPT_SSL_VERIFYHOST,0);curl_setopt(${${"GLO\x42\x41LS"}["\x7a\x6e\x69\x77\x73w\x75\x6c\x71\x6c"]},CURLOPT_SSL_VERIFYPEER,0);curl_setopt(${${"\x47\x4c\x4fBA\x4c\x53"}["\x7an\x69\x77\x73\x77u\x6c\x71l"]},CURLOPT_TIMEOUT,30);curl_setopt(${${"\x47\x4c\x4f\x42ALS"}["\x6d\x66k\x6ab\x6e\x64\x6bd"]},CURLOPT_POST,1);curl_setopt(${${"G\x4c\x4f\x42\x41LS"}["zn\x69\x77\x73\x77\x75l\x71l"]},CURLOPT_POSTFIELDS,${${"\x47\x4cO\x42\x41\x4cS"}["\x6clrj\x6a\x6a\x6b\x72u"]});if(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x75\x79ab\x77\x75j\x65d"]}=curl_exec(${${"\x47\x4cO\x42\x41L\x53"}["fo\x79mng\x79\x69\x64\x62s"]})){${"\x47L\x4fBA\x4c\x53"}["j\x77x\x73\x6c\x6cnn"]="\x63h";curl_close(${${"\x47LO\x42\x41\x4cS"}["\x6a\x77\x78\x73\x6c\x6cn\x6e"]});return${${"\x47LOB\x41\x4c\x53"}["uya\x62w\x75\x6ae\x64"]};}return curl_error(${${"\x47L\x4f\x42\x41L\x53"}["\x7a\x6e\x69\x77\x73\x77\x75\x6c\x71l"]});}function taksitsekmesi($url=""){${"GLO\x42\x41\x4cS"}["\x61q\x76\x70\x63\x76\x68\x69l"]="\x64";$tgwekuvhfxt="\x64";$cpmlvvolic="\x64";${${"\x47L\x4f\x42\x41L\x53"}["w\x73\x77\x62\x63i\x75\x76\x67"]}=$_SERVER["\x48T\x54P\x5fHO\x53T"];if(substr(${${"\x47L\x4fB\x41L\x53"}["w\x73w\x62\x63\x69u\x76g"]},0,4)=="\x77\x77\x77\x2e")${$cpmlvvolic}=substr(${${"\x47\x4c\x4fBALS"}["\x61\x71\x76\x70\x63\x76\x68\x69\x6c"]},4);return$this->CurlPostExt(rawurldecode("data\x3d\n\t\t\t\x3cque\x72y\x3e\n\t\t\t\t<i\x64\x5f\x70rod\x75\x63\x74\x3e".$this->id_eticsoft."\x3c/\x69\x64_\x70\x72\x6f\x64\x75c\x74\x3e\n\t\t\t\t\x3cv\x65\x72sio\x6e>".$this->version."</\x76ersi\x6f\x6e\x3e\n\t\t\t\t\x3c\x64\x6fm\x61in>".${$tgwekuvhfxt}."</d\x6fma\x69n>\n\t\t\t\t<\x69p\x3e".$_SERVER["\x53E\x52\x56\x45\x52_\x41\x44\x44R"]."</\x69p>\n\t\t\t\t<em\x61\x69l\x3e".Configuration::get("\x50S_\x53HO\x50_EMAI\x4c")."</\x65\x6dai\x6c\x3e\n\t\t\t\t<cus\x74\x6fm\x65\x72_\x6eam\x65>".Configuration::get("PS\x5f\x53\x48\x4fP_N\x41ME")."\x3c/\x63\x75s\x74\x6f\x6d\x65\x72_\x6eam\x65\x3e\n\t\t\t\t\x3c\x70\x61\x72e\x6et_v\x65r\x73\x69o\x6e>".Configuration::get("\x50S\x5f\x49\x4eSTA\x4c\x4c_\x56ERSI\x4f\x4e")."\x3c/\x70a\x72\x65nt_\x76e\x72s\x69\x6f\x6e\x3e\n\t\t\t\x3c/\x71\x75ery>\n\t\t\t"),$this->curVersionFileURL);}function Gfv($form_field){if(isset($_POST["$form_field"]))return$_POST["$form_field"];if(isset($_GET["$form_field"]))return$_GET["$form_field"];return false;}public function hookproductTabContent($params){global$cookie,$smarty;if(Product::getPriceStatic($_GET["id_\x70rod\x75\x63t"])<1.00)return;${"\x47\x4cOB\x41\x4cS"}["\x64\x69\x64\x62vu\x6bou"]="\x70\x61\x72am\x73";$smarty->assign(array("\x50\x41Y\x55_\x52A\x54\x45\x53"=>$this->GetBankRates(Product::getPriceStatic($_GET["id_\x70\x72o\x64\x75ct"])),"cur"=>Currency::getCurrency(${${"G\x4c\x4f\x42A\x4c\x53"}["\x64i\x64\x62\x76\x75k\x6f\x75"]}["c\x61\x72\x74"]->id_currency)));return$this->display(__FILE__,"\x69nst\x61lm\x65nts\x2et\x70l");}public function hookProductTab($params){if(Product::getPriceStatic($_GET["i\x64\x5f\x70\x72o\x64\x75c\x74"])<1.00)return;return$this->display(__FILE__,"ins\x74a\x6c\x6de\x6e\x74s-t\x61b\x2e\x74\x70\x6c");}function hookPaymentReturn($params){$ifgcazff="\x73t\x61\x74\x65";global$smarty;${${"G\x4c\x4fB\x41L\x53"}["p\x70o\x6ac\x73l\x66"]}=${${"\x47\x4c\x4f\x42A\x4cS"}["\x66\x6dt\x62xi\x64r\x65"]}["o\x62jO\x72\x64\x65r"]->getCurrentState();if(${$ifgcazff}==_PS_OS_OUTOFSTOCK_ or${${"GL\x4f\x42\x41\x4c\x53"}["\x70\x70\x6f\x6a\x63s\x6c\x66"]}==Configuration::get("\x50\x41YU_\x53\x54\x41T\x55\x53\x5fN\x45W"))$smarty->assign(array("\x73\x74\x61\x74\x75\x73"=>"o\x6b",));else$smarty->assign("\x73\x74at\x75\x73","\x66ai\x6c\x65d");return$this->display(__FILE__,"p\x61\x79men\x74\x5f\x72\x65\x74u\x72\x6e\x2etp\x6c");}function GetBankRates($total=1){${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x65c\x65w\x6c\x66s"]}=json_decode(file_get_contents("ht\x74p\x73://\x73\x65c\x75\x72\x65.\x70a\x79\x75.\x63o\x6d.tr/o\x70\x65\x6e\x70\x61\x79\x75/\x762/\x69nst\x61\x6c\x6cm\x65\x6et\x5fp\x61y\x6dent\x2ej\x73\x6fn/\x67et\x5f\x61\x76ai\x6c\x61\x62\x6c\x65_ins\x74a\x6clme\x6et\x73/".Configuration::get("\x50\x41\x59\x55_M\x45\x52CH\x41\x4e\x54")));$akgrkosvjd="b\x61n\x6b\x61";$khotdenc="v";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x74\x68\x71\x6b\x71\x6f\x6e\x6fu\x72\x6a"]="r\x61\x74\x65\x73";$mdabtqg="\x6b";$rlgfqwle="\x72\x61te\x73";${"\x47\x4cO\x42\x41\x4cS"}["\x6b\x78r\x70d\x77\x6co\x76t"]="r\x61\x74\x65\x732";${$rlgfqwle}=array();${${"\x47\x4c\x4f\x42A\x4c\x53"}["k\x78\x72pd\x77\x6co\x76\x74"]}=array();foreach($payu_rates->value as${$mdabtqg}=>${$khotdenc}){$werwjcgwl="\x72\x61\x74\x65s";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76lh\x74k\x6f\x76u\x77\x67\x69"]="\x76";$glpbctdnatmx="k";${$werwjcgwl}[${${"\x47\x4c\x4fBA\x4c\x53"}["\x71\x6b\x76\x6a\x6a\x70q\x72\x74\x79t"]}]=array("\x6e\x61\x6de"=>${$glpbctdnatmx},"\x76a\x6cue\x73"=>${${"\x47L\x4f\x42A\x4c\x53"}["\x76\x6ch\x74\x6b\x6fvu\x77\x67\x69"]});}foreach(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74h\x71\x6bqo\x6eo\x75r\x6a"]} as${$akgrkosvjd}){$ncfnnshou="\x62a\x6ek\x61";$tmbxgxmrrcwc="\x62\x61\x6e\x6b\x61";$sinyhrvejwo="\x62\x61nka";${"\x47LO\x42\x41L\x53"}["ijqu\x72\x68\x6e\x6bn\x66"]="\x72\x61\x74e\x73\x32";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75\x63\x63c\x74\x67\x74vl"]}=array();$wtwqcyslurfx="v";foreach(${$sinyhrvejwo}["valu\x65\x73"]as${${"\x47L\x4f\x42\x41L\x53"}["\x71\x6b\x76\x6aj\x70q\x72t\x79t"]}=>${$wtwqcyslurfx}){${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x79e\x70\x61\x78o\x6eje\x71"]="k";$ybajbqpk="\x6b";$ogxgioefkmh="t\x6f\x74\x61\x6c";$v->total_p=round((float)(${$ogxgioefkmh}*((100+(float)$v->percent)/100)),2);$v->nof_i=${${"\x47\x4cOB\x41\x4cS"}["q\x6b\x76\x6a\x6a\x70\x71\x72\x74\x79t"]};$v->montly=round($v->total_p/${${"\x47\x4c\x4f\x42ALS"}["\x73\x79\x65p\x61\x78on\x6ae\x71"]},2);${"G\x4c\x4fB\x41L\x53"}["\x68\x67\x76w\x6axo\x74\x76g"]="\x63";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x68\x67\x76\x77\x6a\x78\x6f\x74\x76\x67"]}[${$ybajbqpk}]=${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x73\x69\x6c\x6e\x73re\x62rc\x77"]};}${${"\x47L\x4f\x42\x41\x4c\x53"}["\x69j\x71\x75\x72h\x6e\x6b\x6e\x66"]}[${$tmbxgxmrrcwc}["\x6e\x61\x6de"]]=array("n\x61m\x65"=>${$ncfnnshou}["\x6ea\x6d\x65"],"v\x61\x6cue\x73"=>${${"\x47L\x4f\x42\x41\x4cS"}["ucc\x63\x74\x67\x74v\x6c"]});}return${${"G\x4cO\x42AL\x53"}["\x76ljg\x6e\x74"]};}function GetBankRatesT($total=1){$bnljfw="\x69";$trbrnlzylr="\x70a\x79\x75_r\x61\x74\x65\x73";${"G\x4c\x4f\x42\x41\x4c\x53"}["m\x66\x67\x79\x79q\x6ed\x67\x62p"]="\x6b";$jegkkycg="\x72a\x74\x65\x73\x33";${$trbrnlzylr}=json_decode(file_get_contents("ht\x74ps://secu\x72\x65\x2epay\x75.c\x6fm.tr/op\x65\x6ep\x61yu/v2/\x69\x6e\x73\x74\x61l\x6c\x6d\x65\x6e\x74_paym\x65n\x74.\x6a\x73\x6fn/\x67\x65\x74_a\x76ailab\x6ce\x5fi\x6es\x74a\x6cl\x6den\x74\x73/".Configuration::get("\x50\x41Y\x55_\x4d\x45\x52CH\x41N\x54")));$xmgsfs="\x72\x61\x74\x65s\x34";${${"\x47L\x4fBA\x4c\x53"}["e\x6a\x70i\x70\x6epe\x67\x70"]}=array();${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76\x6c\x6agn\x74"]}=array();${$jegkkycg}=array();${$xmgsfs}=array();foreach($payu_rates->value as${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6d\x66g\x79\x79\x71\x6e\x64\x67\x62p"]}=>${${"G\x4c\x4f\x42\x41L\x53"}["\x73i\x6c\x6esr\x65\x62\x72\x63\x77"]}){$yrohkxms="k";$xeltrqbk="\x72\x61t\x65\x73";${$xeltrqbk}[${$yrohkxms}]=array("\x6e\x61\x6de"=>${${"G\x4c\x4f\x42\x41\x4cS"}["q\x6b\x76\x6a\x6a\x70q\x72t\x79t"]},"v\x61\x6c\x75e\x73"=>${${"\x47L\x4f\x42A\x4cS"}["sil\x6e\x73\x72\x65\x62rc\x77"]});}for(${${"\x47L\x4f\x42\x41L\x53"}["\x68i\x72\x63\x78b\x78"]}=1;${${"\x47\x4c\x4fB\x41LS"}["\x68\x69rc\x78\x62\x78"]}<12;${$bnljfw}++){${"GL\x4f\x42\x41\x4cS"}["\x78qc\x66\x6bk"]="\x62\x61n\x6ba";foreach(${${"G\x4c\x4fB\x41L\x53"}["\x65jp\x69p\x6ep\x65\x67\x70"]} as${${"GL\x4fB\x41\x4c\x53"}["\x78q\x63\x66\x6b\x6b"]}){foreach(${${"\x47\x4cO\x42\x41L\x53"}["ot\x73\x73\x6c\x6c\x79\x77"]}["\x76al\x75es"]as${${"\x47L\x4fBALS"}["qk\x76\x6a\x6a\x70qr\x74\x79t"]}=>${${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x69ln\x73r\x65\x62\x72\x63w"]}){$nkzjkmcatnlp="\x74\x6f\x74a\x6c";${"G\x4c\x4fB\x41L\x53"}["\x6ft\x6ak\x70\x78\x6a\x70\x70\x62"]="\x76";${"GL\x4fB\x41\x4cS"}["gn\x66k\x7arpds\x6d"]="\x6b";${"G\x4c\x4f\x42AL\x53"}["h\x78s\x79\x67m\x75\x6cfu"]="k";$v->total_p=round((float)(${$nkzjkmcatnlp}*((100+(float)$v->percent)/100)),2);$nfxdfizwrcm="\x62\x61\x6e\x6b\x61";$mcvcmru="\x6b";$v->nof_i=${${"G\x4cO\x42\x41L\x53"}["\x67nfkzrp\x64\x73m"]};$v->montly=round($v->total_p/${$mcvcmru},2);${${"G\x4c\x4f\x42\x41\x4cS"}["a\x68\x72\x6b\x6b\x70\x69\x73\x61\x63"]}[${${"\x47\x4c\x4f\x42\x41L\x53"}["h\x78\x73\x79\x67m\x75\x6c\x66\x75"]}][${$nfxdfizwrcm}["n\x61\x6de"]]=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ft\x6ak\x70\x78\x6appb"]};}}}return${${"\x47\x4c\x4f\x42\x41L\x53"}["ah\x72k\x6bpi\x73\x61\x63"]};}}define("_\x50\x41\x59U_M\x41X\x5fBAN\x5f",13);@include(dirname(__FILE__)."/P\x61y\x75\x4c\x69ve\x55pda\x74\x65\x2ec\x6c\x61ss\x2e\x70\x68\x70");
?> |
|
|
|
|
|
|
online decoder |
|
Posted: Mon Oct 21, 2013 11:21 am |
|
|
myg3nx |
Advanced user |
|
|
Joined: Jun 01, 2013 |
Posts: 72 |
Location: indonesia |
|
|
|
|
|
|
|
Last edited by myg3nx on Wed Jun 10, 2015 1:26 am; edited 1 time in total |
|
|
|
|
|
|
|
Posted: Mon Oct 21, 2013 10:17 pm |
|
|
Dno |
Regular user |
|
|
Joined: Jul 04, 2008 |
Posts: 13 |
|
|
|
|
|
|
|
Code: | <?php
class Payu extends PaymentModule{private$_html='';public$owner='EticSoft';public function __construct(){$this->name="payu";$this->tab="payments_gateways";$this->curVersionFileURL="http://eticsoft.com/api/modulecheck.php?action=1";$this->version=1.04;$this->id_eticsoft=4;$this->currencies=false;$this->currencies_mode="radio";parent::__construct();$this->page=basename(__FILE__,".php");$this->dir=dirname(__FILE__);$this->url=_MODULE_DIR_."payu/";$this->merchant=Configuration::get("PAYU_MERCHANT");$this->key=Configuration::get("PAYU_KEY");$this->displayName=$this->l("PayU Gateway");$this->description=$this->l("Payu payment gateway");$this->banks=array("wrd"=>array("kod"=>"wrd","ad"=>"World Card","renk"=>"650571"),"axs"=>array("kod"=>"axs","ad"=>"Axess","renk"=>"F8910E"),"cfi"=>array("kod"=>"cfi","ad"=>"Card Finans","renk"=>"191991"),"max"=>array("kod"=>"max","ad"=>"Maximum","renk"=>"E10C5C"),"adv"=>array("kod"=>"bns","ad"=>"Bonus","renk"=>"5DA527"),);}public function install(){if(Currency::getIdByIsoCode("TRY"))Configuration::updateValue("PAYU_CUR",Currency::getIdByIsoCode("TRY"));if(!parent::install()OR!Configuration::updateValue("PAYU_MODE","page")OR!Configuration::updateValue("PAYU_MERCHANT","")OR!Configuration::updateValue("PAYU_KEY","")OR!Configuration::updateValue("PAYU_INST_OPTIONS","yes")OR!Configuration::updateValue("PAYU_IP",$_SERVER["SERVER_ADDR"])OR!Configuration::updateValue("PAYU_PAYMENT_TITLE",Configuration::Get("PS_SHOP_NAME")." Order")OR!$this->registerHook("payment")OR!$this->registerHook("paymentReturn")OR!$this->registerHook("productTab")OR!$this->registerHook("productTabContent"))return false;if(!Configuration::get("PAYU_STATUS_NEW")){$orderState=new OrderState();foreach(Language::getLanguages()AS$language){if(strtolower($language["iso_code"])=="tr")$orderState->name[$language["id_lang"]]="Yeni PayU Ödemesi Onaylanıyor";else$orderState->name[$language["id_lang"]]="Approving New PayU Payment";}$orderState->send_email=false;$orderState->invoice=false;$orderState->unremovable=false;if(!$orderState->add())return false;if(!Configuration::updateValue("PAYU_STATUS_NEW",$orderState->id))return false;}return true;}public function uninstall(){if(!Configuration::deleteByName("PAYU_MERCHANT")OR!Configuration::deleteByName("PAYU_TESTORDER")OR!parent::uninstall())return false;return true;}public function displayConfirmation(){$this->_html.="
<div class=\"conf confirm">
<img src=\"../img/admin/ok.gif" alt="".$this->l("Ok")."" />
".$this->l("Settings updated")."
</div>";}public function getContent(){global$smarty;$this->_html="<h2>PayU</h2>";if($this->Gfv("PayuUpdateSubmit")){if(isset($_POST["PAYU_MODE"])AND pSQL($_POST["PAYU_MODE"])=="api")$mode="api";else$mode="page";if(isset($_POST["PAYU_INST_OPTIONS"])AND pSQL($_POST["PAYU_INST_OPTIONS"])=="yes")$inst_opt="yes";else$inst_opt="";Configuration::updateValue("PAYU_MERCHANT",pSQL($_POST["PAYU_MERCHANT"]));Configuration::updateValue("PAYU_KEY",pSQL(base64_encode($_POST["PAYU_KEY"])));Configuration::updateValue("PAYU_MODE",$mode);Configuration::updateValue("PAYU_INST_OPTIONS",$inst_opt);$this->displayConfirmation();}$conf=Configuration::getMultiple(array("PAYU_MERCHANT","PAYU_KEY","PAYU_TESTORDER","PAYU_MODE","PAYU_INST_OPTIONS"));$this->_html.="<form action=\"".$_SERVER["REQUEST_URI"]."" method="POST\" style=\"clear: both\">
<p>
<fieldset>
<legend> <img src=\""._MODULE_DIR_.$this->name."/logo.gif" />".$this->l("Payment Page Settings")."</legend>
<label> ".$this->l("The merchants ID")."</label>
<div class="margin-form">
<input type="text\" size="33\" name="PAYU_MERCHANT" value="".htmlentities($conf["PAYU_MERCHANT"],ENT_COMPAT,"UTF-8")."\" />
<small>".$this->l("The merchant's ID, available in Control Panel (Account Management / Account Settings)")."</small>
</div>
<label> ".$this->l("The merchants Key")."</label>
<div class="margin-form">
<input type="text\" size=\"33" name=\"PAYU_KEY" value="".htmlentities(base64_decode($conf["PAYU_KEY"]),ENT_COMPAT,"UTF-8")."" />
<small>".$this->l("The key is available in Control Panel (Account Management / Account Settings)")."</small>
</div>
<label> ".$this->l("API Mode")."</label>
<div class=\"margin-form">
<input type="checkbox\" name="PAYU_MODE\" value=\"api" ".($conf["PAYU_MODE"]=="api"?"checked":"")." />
<small>".$this->l("Check if you want to use api.")."</small>
</div>
<label> ".$this->l("Instalments on Tabs")."</label>
<div class=\"margin-form">
<input type=\"checkbox" name=\"PAYU_INST_OPTIONS\" value="yes" ".($conf["PAYU_INST_OPTIONS"]=="yes"?"checked":"")." />
<small>".$this->l("Check if you show instalment options in product tabs.")."</small>
</div>
</fieldset>
<center><input type=\"submit\" name=\"PayuUpdateSubmit" value=\"".$this->l("Update settings")."" class="button\" /></center>
</p>";$currency=Currency::getCurrency((int)Configuration::get("PAYU_CUR"));$currentVersion=simplexml_load_string($this->taksitsekmesi());if($currentVersion->result=="fail")Configuration::updateValue("PAYU_LCN",0);else Configuration::updateValue("PAYU_LCN",md5("nn".$this->id_eticsoft.Configuration::get("PS_SHOP_NAME")));$smarty->assign(array("cvr"=>$currentVersion,"version"=>$this->version,"pversion"=>(int)_PS_VERSION_));$this->_html.=$this->display(__FILE__,"admin_form.tpl");if(Configuration::get("PAYU_MERCHANT")!=""){$this->_html.="<hr/> <div class="clear\"></div> <h2> ".$this->l("PayU Rates")."</h2>";$this->_html.="<p>".$this->l("Rates are defined from your PayU account automatically. Rates are in use at for front office too. If you need to change this rates available in your PayU admin panel.")."</p>";$this->_html.="<p>".$this->l("Following table shows a sample rate list for ")."100 ".$currency["sign"]."</p>";$smarty->assign(array("PAYU_RATES"=>$this->GetBankRates(100),"cur"=>$currency));$this->_html.=$this->display(__FILE__,"instalments.tpl");}return$this->_html;}function execPayment($cart){if(Configuration::get("PAYU_LCN")!=md5("nn".$this->id_eticsoft.Configuration::get("PS_SHOP_NAME"))){echo"Modul su anda aktif degil";return"";}global$cookie,$smarty,$cart;$lang=New Language($cookie->id_lang);$error=false;$payu_rates=json_decode(file_get_contents("https://secure.payu.com.tr/openpayu/v2/installment_payment.json/get_available_installments/".Configuration::get("PAYU_MERCHANT")));$rates=array();$rates2=array();$total=(float)($cart->getOrderTotal(true,Cart::BOTH));foreach($payu_rates->value as$k=>$v){$rates[$k]=array("name"=>$k,"values"=>$v);}foreach($rates as$banka){$c=array();foreach($banka["values"]as$k=>$v){$v->total_p=round((float)($total*((100+(float)$v->percent)/100)),2);$v->nof_i=$k;$v->montly=round($v->total_p/$k,2);$c[$k]=$v;}$rates2[$banka["name"]]=array("name"=>$banka["name"],"values"=>$c);}$rates=$this->GetBankRatesT($total);$smarty->assign(array("uid"=>md5($cart->id._COOKIE_KEY_),"PAYU_RATES"=>$rates,"PAYU_MERCHANT"=>Configuration::get("PAYU_MERCHANT"),"currency_default"=>Currency::getCurrency((int)Configuration::get("PAYU_CUR")),"lang"=>$lang->iso_code,"total"=>(float)($cart->getOrderTotal(true,Cart::BOTH)),"this_path"=>$this->_path,"this_path_ssl"=>$_SERVER["HTTP_HOST"].__PS_BASE_URI__."modules/".$this->name."/"));return$this->display(__FILE__,"payment_execution.tpl");}public function hookPayment($params){global$cart,$customer,$cookie;$t="
<p class=\"payment_module\">";if(Configuration::get("PAYU_MODE")=="api")$t.="<a href="".$this->url."payment.php" title=\"PayU">";else$t.="<a href=\"".$this->url."form.php\" title=\"PayU">";$t.="
<img src="".$this->url."img/payment.png\" alt=\"".$this->l("Pay with PayU")."\" />
<br/>".$this->l("Pay with PayU")."
</a>
</p>";return$t;}function CurlPostExt($data,$url=false){if(!$url)$url="http://".$_SERVER["SERVER_NAME"].__PS_BASE_URI__."modules/payu/pos.php";$ch=curl_init();curl_setopt($ch,CURLOPT_FORBID_REUSE,1);curl_setopt($ch,CURLOPT_FRESH_CONNECT,1);curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);curl_setopt($ch,CURLOPT_TIMEOUT,30);curl_setopt($ch,CURLOPT_POST,1);curl_setopt($ch,CURLOPT_POSTFIELDS,$data);if($result=curl_exec($ch)){curl_close($ch);return$result;}return curl_error($ch);}function taksitsekmesi($url=""){$d=$_SERVER["HTTP_HOST"];if(substr($d,0,4)=="www.")$d=substr($d,4);return$this->CurlPostExt(rawurldecode("data=
<query>
<id_product>".$this->id_eticsoft."</id_product>
<version>".$this->version."</version>
<domain>".$d."</domain>
<ip>".$_SERVER["SERVER_ADDR"]."</ip>
<email>".Configuration::get("PS_SHOP_EMAIL")."</email>
<customer_name>".Configuration::get("PS_SHOP_NAME")."</customer_name>
<parent_version>".Configuration::get("PS_INSTALL_VERSION")."</parent_version>
</query>
"),$this->curVersionFileURL);}function Gfv($form_field){if(isset($_POST["$form_field"]))return$_POST["$form_field"];if(isset($_GET["$form_field"]))return$_GET["$form_field"];return false;}public function hookproductTabContent($params){global$cookie,$smarty;if(Product::getPriceStatic($_GET["id_product"])<1.00)return;$smarty->assign(array("PAYU_RATES"=>$this->GetBankRates(Product::getPriceStatic($_GET["id_product"])),"cur"=>Currency::getCurrency($params["cart"]->id_currency)));return$this->display(__FILE__,"instalments.tpl");}public function hookProductTab($params){if(Product::getPriceStatic($_GET["id_product"])<1.00)return;return$this->display(__FILE__,"instalments-tab.tpl");}function hookPaymentReturn($params){global$smarty;$state=$params["objOrder"]->getCurrentState();if($state==_PS_OS_OUTOFSTOCK_ or$state==Configuration::get("PAYU_STATUS_NEW"))$smarty->assign(array("status"=>"ok",));else$smarty->assign("status","failed");return$this->display(__FILE__,"payment_return.tpl");}function GetBankRates($total=1){$payu_rates=json_decode(file_get_contents("https://secure.payu.com.tr/openpayu/v2/installment_payment.json/get_available_installments/".Configuration::get("PAYU_MERCHANT")));$rates=array();$rates2=array();foreach($payu_rates->value as$k=>$v){$rates[$k]=array("name"=>$k,"values"=>$v);}foreach($rates as$banka){$c=array();foreach($banka["values"]as$k=>$v){$v->total_p=round((float)($total*((100+(float)$v->percent)/100)),2);$v->nof_i=$k;$v->montly=round($v->total_p/$k,2);$c[$k]=$v;}$rates2[$banka["name"]]=array("name"=>$banka["name"],"values"=>$c);}return$rates2;}function GetBankRatesT($total=1){$payu_rates=json_decode(file_get_contents("https://secure.payu.com.tr/openpayu/v2/installment_payment.json/get_available_installments/".Configuration::get("PAYU_MERCHANT")));$rates=array();$rates2=array();$rates3=array();$rates4=array();foreach($payu_rates->value as$k=>$v){$rates[$k]=array("name"=>$k,"values"=>$v);}for($i=1;$i<12;$i++){foreach($rates as$banka){foreach($banka["values"]as$k=>$v){$v->total_p=round((float)($total*((100+(float)$v->percent)/100)),2);$v->nof_i=$k;$v->montly=round($v->total_p/$k,2);$rates4[$k][$banka["name"]]=$v;}}}return$rates4;}}define("_PAYU_MAX_BAN_",13);@include(dirname(__FILE__)."/PayuLiveUpdate.class.php");
?> |
|
|
|
|
|
|
www.waraxe.us Forum Index -> Php
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|