Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

${"GL\x4fB\x41\x4cS"}["\x6b\x6b\x70uuk\x66\x68\x68"]="k\x65\x79";${"\x47L\x4f\x42A\x4c\x53..

Decoded Output download

<?  ${"GLOBALS"}["kkpuukfhh"]="key";${"GLOBALS"}["buidfydfr"]="messages";${"GLOBALS"}["czsfooxm"]="id_location";${"GLOBALS"}["ocllingish"]="id_seller";${"GLOBALS"}["uoerbqsau"]="id_show_url";${"GLOBALS"}["hsgsjq"]="shopurl";${"GLOBALS"}["wcavufrnrb"]="shop";${"GLOBALS"}["mkjkedkkow"]="name";${"GLOBALS"}["mewphjnqouy"]="id_shop";${"GLOBALS"}["uxojlprmwac"]="sellers";${"GLOBALS"}["ujeilovr"]="location_level";${"GLOBALS"}["muyxuus"]="asp_sellers";${"GLOBALS"}["tvmhfshkd"]="sql";${"GLOBALS"}["swdbhwg"]="id_shop_owner";${"GLOBALS"}["wmgecess"]="res";${"GLOBALS"}["figgppvjt"]="params";${"GLOBALS"}["ybudvhnxbd"]="HOOK_SELLER_HEADER_LOGO";${"GLOBALS"}["ghxcyqpudr"]="seller_shop_url";${"GLOBALS"}["ufjywxgyxq"]="seller_logo_url";${"GLOBALS"}["yjbfsnjyea"]="main_shop";${"GLOBALS"}["ffnwrjfcq"]="sellerinfo";${"GLOBALS"}["hdvseaosb"]="location_block_style";${"GLOBALS"}["vrrmbzw"]="sellers_block_style";${"GLOBALS"}["perbty"]="location_block_virtualshop";${"GLOBALS"}["exdqekazsu"]="location_block_pos";${"GLOBALS"}["inpiseepo"]="sellers_block_virtualshop";${"GLOBALS"}["ibuhfur"]="sellers_block_pos";${"GLOBALS"}["ixoddqpbvsb"]="sellerNbr";${"GLOBALS"}["hujcghpsr"]="shop_url_mode";${"GLOBALS"}["jkgevbq"]="location_block_level";${"GLOBALS"}["ynscjfyx"]="header_logo_mode";if(!class_exists("AgileInstaller")){include_once(_PS_ROOT_DIR_."/modules/agilemultipleshop/install/".(_PS_VERSION_>"1.5"?"1.5x":"1.4x")."/classes/AgileInstaller.php");eval("class AgileInstaller extends AgileInstallerCore {}");}if(!class_exists("AgileModule")){include_once(_PS_ROOT_DIR_."/modules/agilemultipleshop/install/".(version_compare(_PS_VERSION_,"1.5",">")?"1.5x":"1.4x")."/classes/module/AgileModule.php");eval("class AgileModule extends AgileModuleCore {}");}class AgileMultipleShop extends AgileModule{const INSTALL_SQL_FILE="install.sql";const SHOP_BY_CUSTOM_FIELD="postcode";const SHOP_BY_CUSTOM_NAME="Postcode";const SHOP_BY_CUSTOM_LANG=false;const SHOP_BY_CUSTOM_ISINT=false;const SHOP_URL_MODE_VIRTUAL=0;const SHOP_URL_MODE_DOMAIN=1;const SELLERS_SHOP_MODE_VIRTUAL=0;const SELLERS_SHOP_MODE_PHYSICAL=1;private$_html='';public function __construct(){$this->configs=Configuration::getMultiple(array("ASP_SHOP_URL_MODE","ASP_SELLER_NBR","ASP_SELLERS_BLOCK_POSITION","ASP_SELLERS_BLOCK_STYLE","ASP_HEADER_LOGO_MODE","ASP_LOCATION_BLOCK_POSITION","ASP_LOCATION_BLOCK_STYLE","ASP_LOCATION_BLOCK_LEVEL","ASP_LOCATION_BLOCK_VIRTUALSHOP","ASP_SELLERS_BLOCK_VIRTUALSHOP"));$this->newfiles=array("classes/AgileInstaller.php"=>array("1.4x"=>"classes/AgileInstaller.php","1.5x"=>"classes/AgileInstaller.php"),"classes/AgileHelper.php"=>array("1.4x"=>"classes/AgileHelper.php","1.5x"=>"classes/AgileHelper.php"),"classes/AgileSellerManager.php"=>array("1.4x"=>"classes/AgileSellerManager.php","1.5x"=>"classes/AgileSellerManager.php"),"classes/module/AgileModule.php"=>array("1.4x"=>"classes/module/AgileModule.php","1.5x"=>"classes/module/AgileModule.php"),"controllers/front/AgileSellerController.php"=>array("1.4x"=>"controllers/AgileSellerController.php","1.5x"=>"controllers/front/AgileSellerController.php"),"controllers/front/AgileSellersController.php"=>array("1.4x"=>"controllers/AgileSellersController.php","1.5x"=>"controllers/front/AgileSellersController.php"),"controllers/front/SellerLocationController.php"=>array("1.4x"=>"controllers/SellerLocationController.php","1.5x"=>"controllers/front/SellerLocationController.php"));$this->shared_override=array();$this->version_dependencies=array("agilemultipleseller"=>"2.2.1");$this->name="agilemultipleshop";$this->tab="front_office_features";$this->version="1.2.2";$this->author="addons-modules.com";$this->dependencies=array("agilemultipleseller");$this->ps_versions_compliancy=array("min"=>"1.5","max"=>"1.6");parent::__construct();$this->displayName=$this->l('Agile Multiple Shop');$this->description=$this->l('Provides multiple shop functionality for multiple sellers - one seller, one shop.');}public function install(){if(!$this->preinstall())return false;if(!AgileInstaller::sql_install(dirname(__FILE__)."/".self::INSTALL_SQL_FILE))return false;if(parent::install()==false OR$this->registerHook("header")==false OR$this->registerHook("leftColumn")==false OR$this->registerHook("rightColumn")==false OR!$this->setDefaultConfig("ASP_SELLER_NBR",15)OR!$this->setDefaultConfig("ASP_SELLERS_BLOCK_POSITION",1)OR!$this->setDefaultConfig("ASP_SELLERS_BLOCK_STYLE",0)OR!$this->setDefaultConfig("ASP_SELLERS_BLOCK_VIRTUALSHOP",0)OR!$this->setDefaultConfig("ASP_HEADER_LOGO_MODE",0)OR!$this->setDefaultConfig("ASP_LOCATION_BLOCK_POSITION",1)OR!$this->setDefaultConfig("ASP_LOCATION_BLOCK_STYLE",0)OR!$this->setDefaultConfig("ASP_LOCATION_BLOCK_LEVEL","country")OR!$this->setDefaultConfig("ASP_SHOP_URL_MODE",AgileMultipleShop::SHOP_URL_MODE_VIRTUAL)OR!$this->setDefaultConfig("ASP_LOCATION_BLOCK_LEVEL","country")OR!$this->setDefaultConfig("ASP_LOCATION_BLOCK_VIRTUALSHOP",0))return false;if(!AgileInstaller::create_tab("Seller Types","AgileSellerTypes","AdminAdmin",$this->name))return false;AgileInstaller::init_tab_prmission_for_existing_profiles("AgileSellerTypes",1,1,1,1);$this->create_shops_for_existing_sellers();if(version_compare(_PS_VERSION_,"1.5",">="))Autoload::getInstance()->generateIndex();return true;}public function uninstall(){if(!parent::uninstall())return false;AgileInstaller::delete_tab("AgileSellerTypes");return true;}public function getContent(){${"GLOBALS"}["jcnygngqncb"]="health_check";$wnnxypj="adminfolder";$bnkloip="adminfolder";$this->_html="<h2>".$this->displayName."</h2>";${"GLOBALS"}["ldtzfq"]="health_check";${$wnnxypj}=AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]);${"GLOBALS"}["dgzgklsrx"]="health_check";${${"GLOBALS"}["dgzgklsrx"]}=AgileInstaller::install_health_check($this->newfiles,$this->name,${$bnkloip});if(!empty(${${"GLOBALS"}["ldtzfq"]}))$this->_html.=${${"GLOBALS"}["jcnygngqncb"]};$this->_html.=AgileInstaller::show_agile_links();if(Tools::isSubmit("submitSettings")){${${"GLOBALS"}["ynscjfyx"]}=Tools::getValue("header_logo_mode");$vrfxuygf="sellerNbr";$itpkrlk="sellerNbr";${"GLOBALS"}["imbuvsemcj"]="sellers_shop_mode";${${"GLOBALS"}["imbuvsemcj"]}=Tools::getValue("sellers_shop_mode");${${"GLOBALS"}["jkgevbq"]}=Tools::getValue("location_block_level");${${"GLOBALS"}["hujcghpsr"]}=(int)Tools::getValue("shop_url_mode");${"GLOBALS"}["dqfmmuhf"]="sellerNbr";if(!${$vrfxuygf}=Tools::getValue("sellerNbr")OR empty(${$itpkrlk})){$this->_html.="<div class=\"alert error\">".$this->l('Please fill in the "sellers to be displayed" field.')."</div>";}elseif((int)(${${"GLOBALS"}["dqfmmuhf"]})==0){$this->_html.="<div class=\"alert error\">".$this->l('Invalid number.')."</div>";}else{Configuration::updateValue("ASP_SELLER_NBR",intval((${${"GLOBALS"}["ixoddqpbvsb"]})));Configuration::updateValue("ASP_SELLERS_BLOCK_POSITION",intval(Tools::getValue("sellers_block_pos")));Configuration::updateValue("ASP_HEADER_LOGO_MODE",${${"GLOBALS"}["ynscjfyx"]});Configuration::updateValue("ASP_SELLERS_BLOCK_STYLE",intval(Tools::getValue("sellers_block_style")));Configuration::updateValue("ASP_SELLERS_BLOCK_VIRTUALSHOP",intval(Tools::getValue("sellers_block_virtualshop")));Configuration::updateValue("ASP_LOCATION_BLOCK_POSITION",intval(Tools::getValue("location_block_pos")));Configuration::updateValue("ASP_LOCATION_BLOCK_STYLE",intval(Tools::getValue("location_block_style")));Configuration::updateValue("ASP_LOCATION_BLOCK_VIRTUALSHOP",intval(Tools::getValue("location_block_virtualshop")));Configuration::updateValue("ASP_LOCATION_BLOCK_LEVEL",Tools::getValue("location_block_level"));Configuration::updateValue("ASP_SHOP_URL_MODE",${${"GLOBALS"}["hujcghpsr"]});$this->_html.="<div class=\"conf confirm\">".$this->l('Settings updated')."</div>";}}$this->displayForm();return$this->_html;}public function displayForm(){$mbmmuxe="sellers_block_virtualshop";$mvzbgkfxswkv="header_logo_mode";${"GLOBALS"}["xneeelkywgn"]="location_block_level";${${"GLOBALS"}["ibuhfur"]}=intval(Configuration::get("ASP_SELLERS_BLOCK_POSITION"));$shtxupib="sellers_block_style";${"GLOBALS"}["gafjor"]="location_block_level";${$mvzbgkfxswkv}=Configuration::get("ASP_HEADER_LOGO_MODE");${$shtxupib}=Configuration::get("ASP_SELLERS_BLOCK_STYLE");${"GLOBALS"}["kifuxoko"]="location_block_pos";${${"GLOBALS"}["inpiseepo"]}=Configuration::get("ASP_SELLERS_BLOCK_VIRTUALSHOP");${${"GLOBALS"}["exdqekazsu"]}=intval(Configuration::get("ASP_LOCATION_BLOCK_POSITION"));${"GLOBALS"}["mwcubmr"]="location_block_style";${${"GLOBALS"}["mwcubmr"]}=(int)Configuration::get("ASP_LOCATION_BLOCK_STYLE");${${"GLOBALS"}["perbty"]}=(int)Configuration::get("ASP_LOCATION_BLOCK_VIRTUALSHOP");${${"GLOBALS"}["jkgevbq"]}=Configuration::get("ASP_LOCATION_BLOCK_LEVEL");${"GLOBALS"}["cbawvvlw"]="shop_url_mode";$rtwgungxh="location_block_level";${${"GLOBALS"}["hujcghpsr"]}=(int)Configuration::get("ASP_SHOP_URL_MODE");$this->_html.="
		<form action=\"".$_SERVER["REQUEST_URI"]."\" method="post">
		<fieldset>
    		<legend><img src="".$this->_path."logo.gif\" alt=\"" title="\" />".$this->l('Seller Blocks Settings')."</legend>

	    	<label style="display:none;\">".$this->l('Shop URL Mode')."</label>
		    <div class="margin-form\" style="display:none;\">
		        <input type=radio name="shop_url_mode"  value="0" ".(${${"GLOBALS"}["cbawvvlw"]}==0?"checked":"")."/>&nbsp;".$this->l('Virtual URL - All shop share the same domain with primary store.')."<br>
		        <input type=radio name=\"shop_url_mode\"  value=\"1\" ".(${${"GLOBALS"}["hujcghpsr"]}==1?"checked":"")." />&nbsp;".$this->l('Domain or Subdomain - Each shop will have diffeerent domain or subdomain.')."<br>
				<p style="color:red">".$this->l('This can only be selected at beginning, once it is selected, please do not change it, otherwise, you will have  to manually change all shop URL setting.')."</p>
            </div>

	    	<label>".$this->l('Seller Shop Header Logo')."</label>
		    <div class="margin-form">
		        <input type=radio name="header_logo_mode"  value="0\" ".(${${"GLOBALS"}["ynscjfyx"]}==0?"checked":"")."/>&nbsp;".$this->l('Show main store logo only')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name="header_logo_mode"  value="1\" ".(${${"GLOBALS"}["ynscjfyx"]}==1?"checked":"")." />&nbsp;".$this->l('Show seller logo only')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"header_logo_mode\"  value="2\" ".(${${"GLOBALS"}["ynscjfyx"]}==2?"checked":"")."/>&nbsp;".$this->l('Show both the main store logo and the seller logo')."&nbsp;&nbsp;&nbsp;
				<br> ".$this->l('If you choose both, your theme must be adjusted to fit two logos by your theme designer - otherwise please choose one of other 2 options.')."<br>
            </div>
			<br>
			<br>

	    	<label>".$this->l('Shop by Seller Block')."</label>
		    <div class="margin-form">
		        <input type=radio name="sellers_block_pos"  value="1\" ".(${${"GLOBALS"}["ibuhfur"]}==1?"checked":"")." />&nbsp;".$this->l('On Left Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"sellers_block_pos\"  value=\"2\" ".(${${"GLOBALS"}["ibuhfur"]}==2?"checked":"")."/>&nbsp;".$this->l('On Right Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"sellers_block_pos"  value="0\" ".(${${"GLOBALS"}["ibuhfur"]}==0?"checked":"")."/>&nbsp;".$this->l('Do Not Display')."&nbsp;&nbsp;&nbsp;
				-- ".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."
            </div>
	    	<label>".$this->l('Number of Sellers Displayed')."</label>
			<div class=\"margin-form">
				<input type="text" name=\"sellerNbr" value="".(int)(Configuration::get("ASP_SELLER_NBR"))."" />&nbsp;<span>
				-- ".$this->l('Set the number of sellers (shops) to be displayed on the sellers block that is displayed in the left or right column.')."</span>
			</div>
	    	<label>".$this->l('Sho By Seller block style')."</label>
		    <div class="margin-form">
		        <input type=radio name=\"sellers_block_style\"  value=\"0\" ".(${${"GLOBALS"}["vrrmbzw"]}==0?"checked":"")."/>&nbsp;".$this->l('Flat name list')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"sellers_block_style\"  value="1\" ".(${${"GLOBALS"}["vrrmbzw"]}==1?"checked":"")." />&nbsp;".$this->l('Drop down list')."&nbsp;&nbsp;&nbsp;
				-- ".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."
            </div>
	    	<label>".$this->l('Show on seller shop?')."</label>
		    <div class=\"margin-form">
		        <input type=radio name="sellers_block_virtualshop\"  value="0\" ".(${${"GLOBALS"}["inpiseepo"]}==0?"checked":"")."/>&nbsp;".$this->l('No')."&nbsp;&nbsp;
		        <input type=radio name=\"sellers_block_virtualshop\"  value="1\" ".(${$mbmmuxe}==1?"checked":"")." />&nbsp;".$this->l('Yes')."&nbsp;&nbsp;
            </div>
			<br>
			<br>
			
	    	<label>".$this->l('Shop by Location Block')."</label>
		    <div class=\"margin-form">
		        <input type=radio name="location_block_pos\"  value=\"1" ".(${${"GLOBALS"}["exdqekazsu"]}==1?"checked":"")." />".$this->l('On Left Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"location_block_pos"  value=\"2" ".(${${"GLOBALS"}["exdqekazsu"]}==2?"checked":"")."/>".$this->l('On Right Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"location_block_pos\"  value="0" ".(${${"GLOBALS"}["kifuxoko"]}==0?"checked":"")."/>".$this->l('Do Not Display')."&nbsp;&nbsp;&nbsp;
            </div>
			
	    	<label>".$this->l('Shop By Location style')."</label>
		    <div class="margin-form\">
		        <input type=radio name=\"location_block_style"  value="0" ".(${${"GLOBALS"}["hdvseaosb"]}==0?"checked":"")."/>&nbsp;".$this->l('Flat name list')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name="location_block_style"  value="1\" ".(${${"GLOBALS"}["hdvseaosb"]}==1?"checked":"")." />&nbsp;".$this->l('Drop down list')."&nbsp;&nbsp;&nbsp;
				--".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."
            </div>
	    	<label>".$this->l('Shop By Location Level')."</label>
		    <div class="margin-form">
				<select name="location_block_level\" id=\"location_block_level\" style=\"width:150px;">
					<option value="country" ".(${${"GLOBALS"}["jkgevbq"]}=="country"?"selected":"").">".$this->l('Country')."</option>
					<option value=\"state" ".(${${"GLOBALS"}["jkgevbq"]}=="state"?"selected":"").">".$this->l('State')."</option>
					<option value="city" ".(${${"GLOBALS"}["xneeelkywgn"]}=="city"?"selected":"").">".$this->l('City')."</option>
					<option value="sellertype" ".(${${"GLOBALS"}["gafjor"]}=="sellertype"?"selected":"").">".$this->l('Seller Type')."</option>
					<!--option value="custom" ".(${$rtwgungxh}=="custom"?"selected":"").">".self::SHOP_BY_CUSTOM_NAME."</option-->
				</select>
            </div>
	    	<label>".$this->l('Show on seller shop?')."</label>
		    <div class=\"margin-form\">
		        <input type=radio name=\"location_block_virtualshop\"  value="0\" ".(${${"GLOBALS"}["perbty"]}==0?"checked":"")."/>&nbsp;".$this->l('No')."&nbsp;&nbsp;
		        <input type=radio name=\"location_block_virtualshop\"  value="1" ".(${${"GLOBALS"}["perbty"]}==1?"checked":"")." />&nbsp;".$this->l('Yes')."&nbsp;&nbsp;
            </div>
			
        	<center><input type=\"submit" name="submitSettings\" value="".$this->l('Save')."\" class=\"button" /></center>
			<span style=\"color:red">".$this->l('Notes:')."</span> - 
			<a target="_new\" style=\"color:blue;" href="".Tools::getShopDomainSsl(true,true).__PS_BASE_URI__."modules/agilemultipleshop/Install_en.txt"."">".$this->l('Please see here for detailed  instructions.')."<a/><br>
			".$this->l('1. Seller Logo at Header - You may change seller logo position by modifying header.tpl and also need adjust your CSS file to adopt seller logo at header ')."<br>
			".$this->l('2. Breadcrumb - You need make some changes at breadcrumb.tpl file to include seller shop in Breadcrumb (store navigation bar)')."<br>
	    </fieldset>
			</form>";}public function hookBreadcrumbShops(){${"GLOBALS"}["rfmkehsqjfs"]="id_shop_owner";global$smarty,$cookie;${"GLOBALS"}["rwiqixjbnvy"]="id_shop_owner";include_once(_PS_ROOT_DIR_."/modules/agilemultipleseller/SellerInfo.php");${${"GLOBALS"}["ffnwrjfcq"]}=new SellerInfo(SellerInfo::getIdBSellerId(Shop::${${"GLOBALS"}["rwiqixjbnvy"]}),$cookie->id_lang);${${"GLOBALS"}["yjbfsnjyea"]}=new Shop(Configuration::get("PS_SHOP_DEFAULT"));$smarty->assign(array("seller_shop"=>(Shop::${${"GLOBALS"}["rfmkehsqjfs"]}>0?Context::getContext()->shop:false),"isat_seller_home"=>((AgileHelper::getPageName()=="agileseller.php")?1:0),"seller_name"=>$sellerinfo->company,"base_dir_default"=>$main_shop->getBaseURL()));return$this->display(__FILE__,"hookbreadcrumb-shops.tpl");}public function hookHeader($params){global$smarty,$cookie,$link;if(!$this->active)return;if(!Module::isInstalled("agilemultipleshop"))return;${"GLOBALS"}["yyjhuqou"]="HOOK_SELLER_HEADER_LOGO";include_once(_PS_ROOT_DIR_."/modules/agilemultipleseller/SellerInfo.php");${${"GLOBALS"}["ufjywxgyxq"]}=(isset(Shop::${${"GLOBALS"}["ffnwrjfcq"]})?SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id):"");${"GLOBALS"}["yywqoeb"]="id_shop_owner";${${"GLOBALS"}["ynscjfyx"]}=intval(Configuration::get("ASP_HEADER_LOGO_MODE"));${${"GLOBALS"}["yjbfsnjyea"]}=new Shop(Configuration::get("PS_SHOP_DEFAULT"));$fmskcbo="seller_logo_url";$qvqquswe="seller_shop_url";${$qvqquswe}=Context::getContext()->shop->getBaseURL();$wpwheky="header_logo_mode";${"GLOBALS"}["nqjyfdur"]="id_shop_owner";${${"GLOBALS"}["yyjhuqou"]}="<a id=\"seller_header_logo\" class=\"logo\" href="".${${"GLOBALS"}["ghxcyqpudr"]}.""><img src="".${${"GLOBALS"}["ufjywxgyxq"]}."" height="60"></a>";if(${$wpwheky}==0 OR Shop::${${"GLOBALS"}["yywqoeb"]}==0)${${"GLOBALS"}["ybudvhnxbd"]}="";$smarty->assign(array("header_logo_mode"=>${${"GLOBALS"}["ynscjfyx"]},"base_dir_default"=>$main_shop->getBaseURL(),"id_shop_owner"=>Shop::${${"GLOBALS"}["nqjyfdur"]},"shops_link"=>$this->hookBreadcrumbShops(),"seller_logo_url"=>${$fmskcbo},"HOOK_SELLER_HEADER_LOGO"=>${${"GLOBALS"}["ybudvhnxbd"]}));return$this->display(__FILE__,"hookheader.tpl");}public function hookRightColumn($params){$jxpxeyhpkpp="res";if(!$this->active)return;${$jxpxeyhpkpp}="";if(intval(Configuration::get("ASP_SELLERS_BLOCK_POSITION"))==2){$icjzrgl="res";${"GLOBALS"}["nknqvdq"]="params";${"GLOBALS"}["swbnerqrop"]="id_shop_owner";if(Shop::${${"GLOBALS"}["swbnerqrop"]}==0||intval(Configuration::get("ASP_SELLERS_BLOCK_VIRTUALSHOP"))==1)${$icjzrgl}.=$this->showSellerBlock(${${"GLOBALS"}["nknqvdq"]});}if(intval(Configuration::get("ASP_LOCATION_BLOCK_POSITION"))==2){${"GLOBALS"}["pyqvajvk"]="res";$irrgbtxm="id_shop_owner";if(Shop::${$irrgbtxm}==0||intval(Configuration::get("ASP_LOCATION_BLOCK_VIRTUALSHOP"))==1)${${"GLOBALS"}["pyqvajvk"]}.=$this->showLocationBlock(${${"GLOBALS"}["figgppvjt"]});}return${${"GLOBALS"}["wmgecess"]};}public function hookLeftColumn($params){${"GLOBALS"}["yuurzns"]="res";if(!$this->active)return;${${"GLOBALS"}["yuurzns"]}="";if(intval(Configuration::get("ASP_SELLERS_BLOCK_POSITION"))==1){$kzuyadc="id_shop_owner";if(Shop::${$kzuyadc}==0||intval(Configuration::get("ASP_SELLERS_BLOCK_VIRTUALSHOP"))==1)${${"GLOBALS"}["wmgecess"]}.=$this->showSellerBlock(${${"GLOBALS"}["figgppvjt"]});}if(intval(Configuration::get("ASP_LOCATION_BLOCK_POSITION"))==1){${"GLOBALS"}["ueimkmybdo"]="params";${"GLOBALS"}["opxpueruloly"]="res";if(Shop::${${"GLOBALS"}["swdbhwg"]}==0||intval(Configuration::get("ASP_LOCATION_BLOCK_VIRTUALSHOP"))==1)${${"GLOBALS"}["opxpueruloly"]}.=$this->showLocationBlock(${${"GLOBALS"}["ueimkmybdo"]});}return${${"GLOBALS"}["wmgecess"]};}private function showSellerBlock($params){global$smarty,$cookie;${"GLOBALS"}["fskswqkyqpa"]="asp_sellers";if(!$this->active)return;if(!Module::isInstalled("agilemultipleseller"))return;${${"GLOBALS"}["tvmhfshkd"]}="SELECT e.id_employee,e.firstname,e.lastname,sl.company,s.id_seller
	            FROM `"._DB_PREFIX_."employee` e
	                LEFT JOIN  `"._DB_PREFIX_."sellerinfo` s ON e.id_employee = s.id_seller
	                LEFT JOIN  `"._DB_PREFIX_."sellerinfo_lang` sl ON (sl.id_sellerinfo = s.id_sellerinfo AND sl.id_lang=".intval($cookie->id_lang).")
	            WHERE e.active=1 AND e.id_profile = ".Configuration::get("AGILE_MS_PROFILE_ID")."
	            ORDER BY s.date_add DESC
	            LIMIT 0,".intval(Configuration::get("ASP_SELLER_NBR"))."
	            ";$kfvgsnh="asp_sellers";${${"GLOBALS"}["fskswqkyqpa"]}=Db::getInstance()->ExecuteS(${${"GLOBALS"}["tvmhfshkd"]});if(!${$kfvgsnh})return;$smarty->assign(array("asp_sellers"=>${${"GLOBALS"}["muyxuus"]},"asp_sellers_block_style"=>intval(Configuration::get("ASP_SELLERS_BLOCK_STYLE"))));return$this->display(__FILE__,"hookblocksellers.tpl");}private function showLocationBlock($params){global$smarty,$cookie;${"GLOBALS"}["zgbqcwtirit"]="location_level";if(!$this->active)return;if(!Module::isInstalled("agilemultipleseller"))return;${${"GLOBALS"}["ujeilovr"]}=Configuration::get("ASP_LOCATION_BLOCK_LEVEL");$smarty->assign(array("seller_locations4block"=>AgileMultipleShop::getLocationListNV(${${"GLOBALS"}["ujeilovr"]}),"location_level"=>${${"GLOBALS"}["zgbqcwtirit"]},"asp_location_block_style"=>(int)Configuration::get("ASP_LOCATION_BLOCK_STYLE"),"location_custom_field"=>self::SHOP_BY_CUSTOM_FIELD,"location_custom_name"=>self::SHOP_BY_CUSTOM_NAME,"agilemultipleshop_tpl"=>dirname(__FILE__)."/",));return$this->display(__FILE__,"hookblocklocation.tpl");}public static function getLocationListNV($location_level){global$cookie;$tbyzvk="sql";${"GLOBALS"}["mekxxzbu"]="sql";${"GLOBALS"}["ronaqvxwocdf"]="sql";${"GLOBALS"}["tqibxeyxe"]="sql";switch(${${"GLOBALS"}["ujeilovr"]}){default:case"country":${${"GLOBALS"}["tqibxeyxe"]}="SELECT distinct c.id_country AS id,cl.name AS name 
		            FROM `"._DB_PREFIX_."country` c
		                INNER JOIN `"._DB_PREFIX_."sellerinfo` si ON c.id_country = si.id_country
			            LEFT JOIN `"._DB_PREFIX_."country_lang` cl ON c.id_country=cl.id_country AND cl.id_lang=".$cookie->id_lang." 
				    ORDER BY cl.name ASC
	            ";break;case"state":${${"GLOBALS"}["tvmhfshkd"]}="SELECT distinct s.id_state AS id, s.name AS name 
		            FROM `"._DB_PREFIX_."state` s
		                INNER JOIN `"._DB_PREFIX_."sellerinfo` si ON s.id_state = si.id_state
				    ORDER BY s.name ASC
	            ";break;case"city":${${"GLOBALS"}["mekxxzbu"]}="SELECT distinct TRIM(sil.city) AS id, TRIM(sil.city) AS name 
		            FROM `"._DB_PREFIX_."sellerinfo_lang` sil 
					WHERE sil.id_lang = ".$cookie->id_lang." AND LENGTH(TRIM(sil.city)) > 0
				    ORDER BY sil.city ASC
	            ";break;case"sellertype":${$tbyzvk}="SELECT distinct id_sellertype AS id, name  
				            FROM `"._DB_PREFIX_."sellertype_lang` 
							WHERE id_lang = ".$cookie->id_lang." 
						    ORDER BY name ASC
					    ";break;case"custom":if(AgileMultipleShop::SHOP_BY_CUSTOM_LANG){${${"GLOBALS"}["tvmhfshkd"]}="SELECT distinct LOWER(TRIM(sil.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.")) AS id, TRIM(sil.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.") AS name 
			            FROM `"._DB_PREFIX_."sellerinfo_lang` sil 
						WHERE sil.id_lang = ".$cookie->id_lang." AND LENGTH(TRIM(sil.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.")) > 0
					    ORDER BY sil.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD." ASC
		            ";}else{$akkxwqtep="sql";${$akkxwqtep}="SELECT distinct LOWER(TRIM(si.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.")) AS id, TRIM(si.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.") AS name 
			            FROM `"._DB_PREFIX_."sellerinfo` si
					    ORDER BY si.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD." ASC
		            ";}break;}if(empty(${${"GLOBALS"}["tvmhfshkd"]}))return array();return Db::getInstance()->ExecuteS(${${"GLOBALS"}["ronaqvxwocdf"]});}public static function init_shop_header(){${"GLOBALS"}["iapeaowcrfxv"]="main_shop";${"GLOBALS"}["srmqun"]="id_shop_owner";global$smarty,$cookie;${${"GLOBALS"}["iapeaowcrfxv"]}=new Shop(Configuration::get("PS_SHOP_DEFAULT"));include_once(_PS_ROOT_DIR_."/modules/agilemultipleseller/SellerInfo.php");$smarty->assign(array("is_agilemultipleshop_installed"=>1,"header_logo_mode"=>intval(Configuration::get("ASP_HEADER_LOGO_MODE")),"base_dir_default"=>$main_shop->getBaseURL(),"seller_shop_name"=>Context::getContext()->shop->name,"id_shop_owner"=>Shop::${${"GLOBALS"}["srmqun"]},"seller_logo_url"=>(isset(Shop::${${"GLOBALS"}["ffnwrjfcq"]})?SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id):"")));}public static function clear_blockcategory_cache(){@session_start();if(!isset($_SESSION["id_shop_owner"]))$_SESSION["id_shop_owner"]=0;if($_SESSION["id_shop_owner"]!=Shop::${${"GLOBALS"}["swdbhwg"]}){$_SESSION["id_shop_owner"]=Shop::${${"GLOBALS"}["swdbhwg"]};Context::getContext()->smarty->clearAllCache();}}public static function get_rewrite_rules(){return array("agileseller"=>array("controller"=>"agileseller","rule"=>"home","keywords"=>array(),),"agilesellers"=>array("controller"=>"agilesellers","rule"=>"shops-name-start-with-{filter}-by-{loclevel}-in-{parentid}-{parentname}","keywords"=>array("filter"=>array("regexp"=>"[a-zA-Z]+","param"=>"filter"),"loclevel"=>array("regexp"=>"[a-zA-Z]+","param"=>"loclevel"),"parentid"=>array("regexp"=>"[0-9]+","param"=>"parentid"),"parentname"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*","param"=>"parentname"),"rewrite"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*"),"meta_keywords"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*"),"meta_title"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*"),),),"sellerlocation"=>array("controller"=>"sellerlocation","rule"=>"shop-by-{level}/{id}-{rewrite}","keywords"=>array("level"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*","param"=>"location_level"),"id"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*","param"=>"id_location"),"rewrite"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*"),"meta_keywords"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*"),"meta_title"=>array("regexp"=>"[_a-zA-Z0-9-\pL]*"),),));}private function create_shops_for_existing_sellers(){${"GLOBALS"}["fhpevfuwj"]="sql";${${"GLOBALS"}["fhpevfuwj"]}="SELECT s.id_seller, sl.company 
				FROM "._DB_PREFIX_."sellerinfo s
					LEFT JOIN "._DB_PREFIX_."sellerinfo_lang sl ON (s.id_sellerinfo=sl.id_sellerinfo AND sl.id_lang=".intval(Configuration::get("PS_LANG_DEFAULT")).")
				WHERE id_shop <=1";${"GLOBALS"}["ospprkmgbmk"]="sellers";$yzprlcut="seller";${${"GLOBALS"}["uxojlprmwac"]}=Db::getInstance()->ExecuteS(${${"GLOBALS"}["tvmhfshkd"]});$mlcvqwitvbe="sellers";if(empty(${${"GLOBALS"}["ospprkmgbmk"]}))return;foreach(${$mlcvqwitvbe} as${$yzprlcut}){$mjlmxvgngfk="seller";${"GLOBALS"}["cqlxfamit"]="seller";$qkraykyw="seller";$mrzmslh="sql";${"GLOBALS"}["wgnveyeacu"]="sql";${${"GLOBALS"}["mewphjnqouy"]}=$this->create_new_shop(${${"GLOBALS"}["cqlxfamit"]}["id_seller"],${$qkraykyw}["company"]);${$mrzmslh}="UPDATE "._DB_PREFIX_."sellerinfo SET id_shop=".${${"GLOBALS"}["mewphjnqouy"]}." WHERE id_seller=".intval(${$mjlmxvgngfk}["id_seller"]);Db::getInstance()->Execute(${${"GLOBALS"}["wgnveyeacu"]});}}public static function create_new_shop($id_seller,$name){${"GLOBALS"}["rgudiywnrpv"]="id_seller";$dljglohn="name";${"GLOBALS"}["iiemklqnxjqe"]="defshop";${"GLOBALS"}["mjmpij"]="name";if(empty(${${"GLOBALS"}["mkjkedkkow"]}))${${"GLOBALS"}["mkjkedkkow"]}="shop";$irnorbxeooq="sql";if(Shop::shop_name_duplicated(${${"GLOBALS"}["mkjkedkkow"]},0))${$dljglohn}=${${"GLOBALS"}["mjmpij"]}."-".${${"GLOBALS"}["rgudiywnrpv"]};${"GLOBALS"}["hzmcffozqnry"]="id_found";${"GLOBALS"}["kfvfzyetugy"]="name";${"GLOBALS"}["lnqekmnemt"]="id_show_url";${${"GLOBALS"}["iiemklqnxjqe"]}=new Shop((int)Configuration::get("PS_SHOP_DEFAULT"));${${"GLOBALS"}["wcavufrnrb"]}=new Shop();$shop->name=${${"GLOBALS"}["kfvfzyetugy"]};$shop->id_shop_group=$defshop->id_shop_group;$shop->id_category=$defshop->id_category;$shop->active=1;${"GLOBALS"}["lzykpiyz"]="sql";$shop->deleted=0;$shop->id_theme=$defshop->id_theme;$shop->add();${${"GLOBALS"}["lzykpiyz"]}="SELECT id_shop_url 	FROM "._DB_PREFIX_."shop_url WHERE active = 1 AND main=1 AND id_shop = ".(int)Configuration::get("PS_SHOP_DEFAULT");${${"GLOBALS"}["lnqekmnemt"]}=intval(Db::getInstance()->getValue(${$irnorbxeooq}));${${"GLOBALS"}["hsgsjq"]}=new ShopUrl(${${"GLOBALS"}["uoerbqsau"]});$shopurl->id=0;$shopurl->id_shop=$shop->id;if((int)Configuration::get("ASP_SHOP_URL_MODE")==agilemultipleshop::SHOP_URL_MODE_DOMAIN){$shopurl->domain=Tools::link_rewrite(${${"GLOBALS"}["mkjkedkkow"]}).".".str_replace("www.","",$shopurl->domain);$shopurl->domain_ssl=Tools::link_rewrite(${${"GLOBALS"}["mkjkedkkow"]}).".".str_replace("www.","",$shopurl->domain_ssl);}else{${"GLOBALS"}["obmqbxdfkw"]="name";$shopurl->virtual_uri=Tools::link_rewrite(${${"GLOBALS"}["obmqbxdfkw"]});}${"GLOBALS"}["ekwxjyz"]="id_found";${${"GLOBALS"}["ekwxjyz"]}=$shopurl->canAddThisUrl($shopurl->domain,$shopurl->domain_ssl,$shopurl->physical_uri,$shopurl->virtual_uri);if(intval(${${"GLOBALS"}["hzmcffozqnry"]})>0)$shopurl->virtual_uri=$shopurl->virtual_uri."-".${${"GLOBALS"}["ocllingish"]};$shopurl->active=1;$shopurl->add();Tools::generateHtaccess();return$shop->id;}public static function getShopByLocationLevel(){${${"GLOBALS"}["ujeilovr"]}=Tools::getValue("location_level");$agbjnoyx="location_level";if(empty(${${"GLOBALS"}["ujeilovr"]}))${${"GLOBALS"}["ujeilovr"]}="country";if(!in_array(${${"GLOBALS"}["ujeilovr"]},array("country","state","city","sellertype")))${$agbjnoyx}="custom";return${${"GLOBALS"}["ujeilovr"]};}public static function getShopByLocationID(){$brknfzybf="id_location";${"GLOBALS"}["omnxtropx"]="location_level";${$brknfzybf}=Tools::getValue("id_location");${${"GLOBALS"}["omnxtropx"]}=self::getShopByLocationLevel();$qnqeosqv="location_level";if((${${"GLOBALS"}["ujeilovr"]}!="custom"&&${$qnqeosqv}!="city")||(${${"GLOBALS"}["ujeilovr"]}=="custom"&&AgileMultipleShop::SHOP_BY_CUSTOM_ISINT)){${"GLOBALS"}["fhqsvzwnhsy"]="id_location";${"GLOBALS"}["ywyistfvwf"]="id_location";${${"GLOBALS"}["fhqsvzwnhsy"]}=(int)${${"GLOBALS"}["ywyistfvwf"]};}return${${"GLOBALS"}["czsfooxm"]};}public function getL($key){${"GLOBALS"}["zpdbvbx"]="messages";${${"GLOBALS"}["zpdbvbx"]}=$this->getMessages();return${${"GLOBALS"}["buidfydfr"]}[${${"GLOBALS"}["kkpuukfhh"]}];}public function getMessages(){$dhmrxoxfjww="messages";${${"GLOBALS"}["buidfydfr"]}=array("Shop By Seller"=>$this->l('Shop By Seller'),"Shop By Location"=>$this->l('Shop By Location'));return${$dhmrxoxfjww};}} 
 ?>

Did this file decode correctly?

Original Code

${"GL\x4fB\x41\x4cS"}["\x6b\x6b\x70uuk\x66\x68\x68"]="k\x65\x79";${"\x47L\x4f\x42A\x4c\x53"}["\x62\x75\x69\x64fyd\x66\x72"]="me\x73sag\x65\x73";${"G\x4c\x4f\x42A\x4c\x53"}["\x63\x7as\x66\x6f\x6fxm"]="\x69\x64_l\x6f\x63\x61\x74\x69on";${"\x47\x4c\x4fB\x41L\x53"}["o\x63\x6cl\x69\x6e\x67\x69s\x68"]="i\x64\x5f\x73\x65\x6c\x6c\x65\x72";${"\x47\x4cO\x42A\x4c\x53"}["\x75o\x65rbq\x73a\x75"]="\x69\x64\x5f\x73\x68ow\x5f\x75\x72\x6c";${"\x47L\x4fB\x41L\x53"}["h\x73g\x73\x6aq"]="\x73\x68\x6f\x70\x75r\x6c";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x77\x63\x61\x76\x75\x66\x72\x6erb"]="\x73\x68op";${"\x47L\x4f\x42A\x4c\x53"}["m\x6b\x6a\x6b\x65d\x6b\x6bow"]="\x6e\x61\x6d\x65";${"GLOB\x41\x4c\x53"}["\x6de\x77\x70h\x6a\x6eqouy"]="id_s\x68\x6f\x70";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ux\x6fj\x6c\x70\x72\x6d\x77\x61\x63"]="\x73el\x6c\x65\x72s";${"\x47\x4c\x4f\x42ALS"}["\x75\x6a\x65i\x6c\x6f\x76r"]="\x6coc\x61t\x69\x6f\x6e_l\x65\x76\x65\x6c";${"G\x4c\x4fB\x41L\x53"}["\x6d\x75\x79\x78uus"]="\x61\x73p\x5f\x73\x65ll\x65\x72\x73";${"G\x4c\x4fBAL\x53"}["t\x76\x6dh\x66\x73\x68k\x64"]="\x73ql";${"\x47L\x4f\x42\x41\x4c\x53"}["sw\x64\x62hw\x67"]="i\x64\x5fs\x68\x6fp_o\x77\x6e\x65\x72";${"\x47L\x4f\x42A\x4cS"}["\x77\x6dg\x65\x63\x65\x73\x73"]="\x72e\x73";${"G\x4c\x4fB\x41LS"}["\x66\x69gg\x70\x70\x76jt"]="\x70\x61r\x61\x6d\x73";${"\x47\x4cO\x42\x41\x4c\x53"}["y\x62\x75\x64v\x68n\x78b\x64"]="\x48\x4fOK\x5f\x53\x45L\x4c\x45\x52\x5f\x48\x45A\x44\x45\x52\x5f\x4cO\x47\x4f";${"\x47\x4c\x4f\x42AL\x53"}["g\x68x\x63y\x71\x70\x75d\x72"]="s\x65\x6c\x6c\x65r_sh\x6f\x70_\x75\x72\x6c";${"G\x4c\x4fB\x41\x4c\x53"}["u\x66j\x79w\x78\x67\x79\x78\x71"]="\x73\x65\x6c\x6cer_\x6c\x6fgo\x5furl";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x79\x6a\x62\x66\x73\x6e\x6ay\x65a"]="\x6d\x61in\x5fs\x68\x6f\x70";${"\x47\x4c\x4f\x42A\x4c\x53"}["f\x66n\x77\x72jfcq"]="\x73el\x6c\x65\x72\x69n\x66\x6f";${"\x47LO\x42\x41\x4c\x53"}["\x68\x64v\x73e\x61\x6f\x73b"]="\x6co\x63\x61t\x69\x6f\x6e\x5f\x62\x6c\x6f\x63\x6b\x5f\x73\x74y\x6c\x65";${"\x47\x4cO\x42\x41L\x53"}["\x76\x72r\x6db\x7aw"]="s\x65\x6c\x6c\x65\x72s_bl\x6fc\x6b_\x73\x74y\x6c\x65";${"GL\x4fB\x41\x4cS"}["\x70\x65\x72b\x74\x79"]="\x6c\x6f\x63a\x74\x69\x6f\x6e\x5f\x62lock\x5fv\x69rt\x75\x61\x6c\x73\x68\x6fp";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65\x78dq\x65\x6b\x61z\x73\x75"]="l\x6f\x63\x61\x74\x69on_b\x6co\x63\x6b_\x70\x6f\x73";${"GL\x4f\x42\x41\x4cS"}["inpi\x73\x65\x65\x70\x6f"]="\x73\x65l\x6cer\x73\x5fb\x6c\x6f\x63\x6b\x5fv\x69\x72tu\x61\x6cs\x68op";${"\x47\x4cOBAL\x53"}["ib\x75\x68f\x75\x72"]="\x73\x65ll\x65r\x73\x5f\x62lo\x63k\x5f\x70os";${"\x47LO\x42A\x4cS"}["\x69x\x6f\x64d\x71\x70b\x76\x73b"]="\x73\x65\x6c\x6ce\x72N\x62r";${"G\x4cO\x42A\x4c\x53"}["h\x75\x6a\x63\x67h\x70\x73\x72"]="s\x68\x6f\x70\x5f\x75\x72\x6c\x5f\x6d\x6f\x64\x65";${"\x47\x4c\x4fB\x41L\x53"}["jk\x67\x65v\x62\x71"]="l\x6f\x63\x61t\x69\x6f\x6e\x5f\x62\x6c\x6f\x63k\x5f\x6c\x65\x76\x65\x6c";${"\x47\x4cO\x42\x41\x4c\x53"}["\x79\x6e\x73\x63j\x66\x79\x78"]="h\x65\x61d\x65r_\x6co\x67o\x5fmo\x64\x65";if(!class_exists("A\x67il\x65I\x6e\x73\x74\x61\x6c\x6cer")){include_once(_PS_ROOT_DIR_."/\x6d\x6f\x64\x75l\x65\x73/\x61\x67\x69le\x6d\x75\x6ctip\x6c\x65\x73ho\x70/\x69nstal\x6c/".(_PS_VERSION_>"\x31.\x35"?"1\x2e\x35\x78":"\x31.\x34\x78")."/cla\x73s\x65\x73/AgileInstall\x65r.\x70\x68\x70");eval("c\x6c\x61s\x73\x20\x41g\x69\x6c\x65In\x73\x74\x61\x6cl\x65r exte\x6eds \x41\x67ileIn\x73tal\x6cer\x43\x6f\x72\x65\x20{}");}if(!class_exists("\x41\x67il\x65\x4d\x6f\x64\x75l\x65")){include_once(_PS_ROOT_DIR_."/\x6d\x6f\x64u\x6ces/\x61\x67\x69le\x6d\x75\x6cti\x70\x6c\x65\x73hop/in\x73t\x61\x6cl/".(version_compare(_PS_VERSION_,"1.5","\x3e")?"1\x2e\x35x":"1\x2e\x34\x78")."/c\x6ca\x73ses/\x6dod\x75le/A\x67\x69\x6ce\x4d\x6fd\x75l\x65\x2e\x70\x68\x70");eval("\x63\x6c\x61\x73s\x20\x41\x67i\x6ceM\x6f\x64u\x6c\x65\x20\x65xte\x6e\x64s \x41g\x69\x6c\x65\x4d\x6fd\x75l\x65\x43\x6f\x72e\x20{}");}class AgileMultipleShop extends AgileModule{const INSTALL_SQL_FILE="ins\x74\x61\x6cl\x2e\x73ql";const SHOP_BY_CUSTOM_FIELD="p\x6fstc\x6f\x64e";const SHOP_BY_CUSTOM_NAME="\x50\x6fst\x63od\x65";const SHOP_BY_CUSTOM_LANG=false;const SHOP_BY_CUSTOM_ISINT=false;const SHOP_URL_MODE_VIRTUAL=0;const SHOP_URL_MODE_DOMAIN=1;const SELLERS_SHOP_MODE_VIRTUAL=0;const SELLERS_SHOP_MODE_PHYSICAL=1;private$_html='';public function __construct(){$this->configs=Configuration::getMultiple(array("\x41S\x50\x5fSHOP\x5fU\x52\x4c\x5fM\x4f\x44\x45","AS\x50_S\x45\x4cL\x45\x52\x5f\x4e\x42R","AS\x50\x5fS\x45\x4cLERS\x5fB\x4c\x4f\x43K\x5fPOSIT\x49ON","ASP\x5fS\x45\x4cLE\x52S\x5fBLOCK_STYL\x45","\x41\x53P_H\x45\x41DE\x52\x5f\x4c\x4fGO\x5f\x4dODE","\x41S\x50\x5f\x4c\x4fC\x41\x54\x49O\x4e_BLO\x43\x4b_P\x4f\x53\x49\x54IO\x4e","\x41SP\x5f\x4c\x4fCA\x54ION\x5fB\x4cO\x43\x4b\x5f\x53T\x59\x4cE","A\x53P_\x4c\x4fC\x41\x54\x49\x4fN\x5fB\x4c\x4fCK\x5fL\x45VEL","ASP\x5fLOC\x41\x54ION\x5f\x42LO\x43K_V\x49\x52\x54U\x41\x4cSHO\x50","\x41S\x50_\x53\x45L\x4c\x45RS\x5fB\x4cO\x43K_\x56IRTUAL\x53H\x4fP"));$this->newfiles=array("cl\x61\x73\x73\x65\x73/\x41gi\x6c\x65I\x6es\x74\x61\x6c\x6c\x65r.\x70\x68p"=>array("\x31.\x34\x78"=>"cla\x73s\x65s/\x41gi\x6ce\x49ns\x74\x61l\x6c\x65\x72\x2eph\x70","\x31.\x35\x78"=>"\x63\x6ca\x73ses/\x41g\x69\x6ce\x49n\x73ta\x6cle\x72.\x70\x68p"),"cl\x61ss\x65s/Agil\x65H\x65\x6c\x70e\x72\x2e\x70\x68\x70"=>array("\x31.\x34\x78"=>"\x63\x6c\x61sses/\x41\x67\x69\x6c\x65\x48elp\x65\x72.p\x68\x70","\x31\x2e5x"=>"\x63l\x61\x73s\x65s/\x41\x67\x69\x6ce\x48\x65\x6c\x70e\x72\x2e\x70hp"),"c\x6ca\x73\x73e\x73/Ag\x69leS\x65\x6c\x6ce\x72\x4d\x61n\x61g\x65\x72\x2e\x70h\x70"=>array("1.\x34\x78"=>"\x63las\x73\x65s/\x41gil\x65Se\x6cler\x4d\x61n\x61g\x65\x72.\x70\x68p","1.\x35x"=>"c\x6c\x61\x73\x73es/\x41g\x69\x6c\x65\x53el\x6ce\x72\x4da\x6ea\x67er.p\x68p"),"c\x6cas\x73e\x73/m\x6f\x64\x75\x6c\x65/\x41\x67\x69l\x65Mo\x64\x75le.\x70\x68\x70"=>array("1.\x34x"=>"\x63\x6c\x61s\x73\x65\x73/m\x6fd\x75le/\x41\x67ile\x4do\x64ule\x2ephp","\x31.5\x78"=>"cla\x73ses/\x6do\x64u\x6c\x65/A\x67\x69\x6ce\x4dod\x75l\x65\x2e\x70hp"),"c\x6fn\x74\x72o\x6cl\x65r\x73/f\x72ont/Agil\x65\x53el\x6cer\x43on\x74r\x6fller.ph\x70"=>array("\x31.4x"=>"\x63\x6f\x6e\x74ro\x6c\x6cers/A\x67\x69l\x65S\x65l\x6ce\x72\x43\x6fntr\x6fller.ph\x70","\x31\x2e\x35x"=>"c\x6f\x6e\x74ro\x6cl\x65\x72\x73/\x66\x72\x6fn\x74/Ag\x69\x6c\x65\x53e\x6c\x6c\x65\x72\x43o\x6e\x74\x72\x6fll\x65r\x2e\x70\x68p"),"c\x6f\x6etro\x6c\x6ce\x72s/f\x72o\x6e\x74/\x41g\x69\x6c\x65\x53el\x6ce\x72sC\x6f\x6et\x72oller\x2e\x70\x68p"=>array("1.4\x78"=>"c\x6fntr\x6f\x6c\x6cer\x73/\x41\x67i\x6ceS\x65\x6clers\x43o\x6et\x72o\x6c\x6cer.p\x68p","1.5x"=>"\x63o\x6e\x74\x72\x6f\x6c\x6c\x65\x72\x73/fr\x6f\x6e\x74/\x41gile\x53\x65\x6cler\x73\x43\x6fn\x74ro\x6cle\x72\x2e\x70\x68p"),"\x63\x6f\x6e\x74r\x6f\x6c\x6c\x65\x72s/\x66ro\x6et/Sel\x6c\x65rL\x6f\x63at\x69o\x6e\x43\x6f\x6et\x72\x6f\x6cl\x65r\x2e\x70hp"=>array("1.4\x78"=>"c\x6f\x6etro\x6cle\x72\x73/S\x65ll\x65\x72Lo\x63a\x74i\x6fnCon\x74roller\x2ephp","1.\x35\x78"=>"co\x6e\x74ro\x6cle\x72s/fro\x6et/\x53ell\x65\x72\x4coc\x61t\x69\x6fnC\x6f\x6et\x72o\x6cl\x65r.\x70hp"));$this->shared_override=array();$this->version_dependencies=array("\x61gi\x6c\x65\x6du\x6ct\x69p\x6c\x65\x73e\x6cl\x65\x72"=>"2\x2e\x32.\x31");$this->name="a\x67\x69lem\x75\x6c\x74i\x70\x6c\x65s\x68o\x70";$this->tab="\x66r\x6f\x6e\x74_\x6fff\x69\x63e_\x66e\x61t\x75r\x65\x73";$this->version="\x31.\x32.\x32";$this->author="addo\x6e\x73-mod\x75\x6ces\x2eco\x6d";$this->dependencies=array("ag\x69\x6ce\x6du\x6ct\x69p\x6ces\x65\x6cle\x72");$this->ps_versions_compliancy=array("mi\x6e"=>"\x31.\x35","m\x61x"=>"\x31.\x36");parent::__construct();$this->displayName=$this->l('Agile Multiple Shop');$this->description=$this->l('Provides multiple shop functionality for multiple sellers - one seller, one shop.');}public function install(){if(!$this->preinstall())return false;if(!AgileInstaller::sql_install(dirname(__FILE__)."/".self::INSTALL_SQL_FILE))return false;if(parent::install()==false OR$this->registerHook("\x68e\x61d\x65\x72")==false OR$this->registerHook("lef\x74\x43\x6fl\x75mn")==false OR$this->registerHook("r\x69g\x68\x74Co\x6c\x75\x6dn")==false OR!$this->setDefaultConfig("\x41S\x50_SE\x4c\x4c\x45\x52_\x4eB\x52",15)OR!$this->setDefaultConfig("\x41\x53\x50\x5fSEL\x4cE\x52\x53\x5f\x42LO\x43K_PO\x53I\x54\x49ON",1)OR!$this->setDefaultConfig("\x41S\x50_\x53E\x4c\x4cE\x52S\x5fB\x4c\x4f\x43\x4b_\x53TY\x4c\x45",0)OR!$this->setDefaultConfig("A\x53\x50\x5fSELL\x45\x52\x53_\x42L\x4f\x43K_VIR\x54\x55\x41L\x53\x48O\x50",0)OR!$this->setDefaultConfig("A\x53P\x5f\x48\x45\x41D\x45\x52\x5fLO\x47O\x5fMO\x44\x45",0)OR!$this->setDefaultConfig("\x41\x53P_\x4c\x4f\x43ATION\x5f\x42\x4c\x4fC\x4b_P\x4fS\x49TIO\x4e",1)OR!$this->setDefaultConfig("A\x53\x50\x5fLOC\x41T\x49\x4f\x4e_BLO\x43K_\x53TYLE",0)OR!$this->setDefaultConfig("\x41\x53P\x5f\x4c\x4f\x43\x41T\x49\x4fN_B\x4cOC\x4b_LEV\x45\x4c","co\x75n\x74ry")OR!$this->setDefaultConfig("ASP\x5fSHO\x50\x5fUR\x4c_MO\x44\x45",AgileMultipleShop::SHOP_URL_MODE_VIRTUAL)OR!$this->setDefaultConfig("A\x53P\x5f\x4cOC\x41\x54ION_\x42\x4c\x4f\x43\x4b\x5f\x4cE\x56\x45\x4c","co\x75n\x74ry")OR!$this->setDefaultConfig("ASP_L\x4f\x43A\x54\x49O\x4e\x5fB\x4c\x4f\x43K_\x56IRTU\x41LS\x48O\x50",0))return false;if(!AgileInstaller::create_tab("\x53e\x6cl\x65r\x20\x54\x79\x70\x65s","Agi\x6c\x65\x53\x65ll\x65r\x54\x79\x70\x65\x73","Adm\x69nAd\x6di\x6e",$this->name))return false;AgileInstaller::init_tab_prmission_for_existing_profiles("A\x67\x69l\x65Sel\x6cerT\x79\x70\x65s",1,1,1,1);$this->create_shops_for_existing_sellers();if(version_compare(_PS_VERSION_,"1\x2e\x35",">="))Autoload::getInstance()->generateIndex();return true;}public function uninstall(){if(!parent::uninstall())return false;AgileInstaller::delete_tab("A\x67\x69\x6c\x65S\x65l\x6c\x65\x72T\x79\x70\x65s");return true;}public function getContent(){${"\x47\x4cO\x42A\x4cS"}["j\x63ny\x67\x6e\x67\x71nc\x62"]="\x68e\x61l\x74h\x5f\x63\x68eck";$wnnxypj="\x61\x64\x6d\x69\x6e\x66\x6f\x6c\x64\x65\x72";$bnkloip="a\x64m\x69\x6e\x66\x6f\x6c\x64\x65r";$this->_html="\x3ch2>".$this->displayName."\x3c/h2\x3e";${"GL\x4f\x42\x41L\x53"}["l\x64\x74\x7a\x66\x71"]="\x68e\x61l\x74h\x5fc\x68\x65\x63\x6b";${$wnnxypj}=AgileInstaller::detect_admin_folder($_SERVER["S\x43RIP\x54_FI\x4cEN\x41\x4dE"]);${"G\x4c\x4f\x42\x41\x4c\x53"}["\x64g\x7ag\x6b\x6c\x73\x72x"]="h\x65a\x6c\x74\x68\x5fc\x68e\x63\x6b";${${"\x47L\x4f\x42A\x4cS"}["d\x67\x7a\x67k\x6c\x73r\x78"]}=AgileInstaller::install_health_check($this->newfiles,$this->name,${$bnkloip});if(!empty(${${"\x47\x4c\x4f\x42AL\x53"}["\x6cd\x74z\x66\x71"]}))$this->_html.=${${"\x47\x4cO\x42\x41L\x53"}["\x6a\x63\x6e\x79\x67\x6e\x67\x71\x6e\x63\x62"]};$this->_html.=AgileInstaller::show_agile_links();if(Tools::isSubmit("\x73\x75\x62mi\x74S\x65tti\x6e\x67\x73")){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79n\x73\x63\x6a\x66\x79\x78"]}=Tools::getValue("\x68ead\x65\x72_\x6c\x6f\x67\x6f_\x6d\x6f\x64e");$vrfxuygf="s\x65ll\x65\x72N\x62\x72";$itpkrlk="s\x65\x6cle\x72Nb\x72";${"\x47L\x4f\x42\x41\x4c\x53"}["\x69\x6d\x62\x75\x76\x73emcj"]="s\x65\x6c\x6cer\x73_s\x68\x6fp_m\x6f\x64\x65";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x69m\x62\x75v\x73\x65m\x63j"]}=Tools::getValue("\x73\x65ll\x65rs_sh\x6f\x70_\x6do\x64\x65");${${"\x47\x4cO\x42\x41LS"}["jk\x67\x65\x76b\x71"]}=Tools::getValue("\x6coca\x74\x69on_b\x6co\x63k\x5f\x6cev\x65\x6c");${${"\x47L\x4f\x42\x41L\x53"}["\x68\x75j\x63g\x68\x70s\x72"]}=(int)Tools::getValue("s\x68\x6fp\x5f\x75\x72l_\x6d\x6fd\x65");${"GL\x4fBAL\x53"}["\x64\x71\x66\x6dm\x75\x68f"]="s\x65\x6c\x6c\x65\x72N\x62\x72";if(!${$vrfxuygf}=Tools::getValue("\x73\x65l\x6cerN\x62r")OR empty(${$itpkrlk})){$this->_html.="\x3c\x64i\x76\x20\x63\x6c\x61s\x73\x3d\"ale\x72t\x20\x65\x72r\x6fr\"\x3e".$this->l('Please fill in the "sellers to be displayed" field.')."\x3c/d\x69v\x3e";}elseif((int)(${${"G\x4cO\x42\x41L\x53"}["\x64\x71\x66\x6dm\x75hf"]})==0){$this->_html.="<div c\x6ca\x73s=\"\x61le\x72t\x20e\x72\x72o\x72\">".$this->l('Invalid number.')."</di\x76\x3e";}else{Configuration::updateValue("\x41\x53\x50_\x53\x45L\x4c\x45\x52\x5fNBR",intval((${${"G\x4c\x4f\x42\x41\x4c\x53"}["i\x78\x6f\x64\x64q\x70\x62v\x73b"]})));Configuration::updateValue("AS\x50\x5f\x53\x45L\x4c\x45\x52S\x5f\x42\x4c\x4fCK_\x50\x4fSI\x54IO\x4e",intval(Tools::getValue("\x73e\x6cle\x72\x73\x5f\x62lock\x5f\x70o\x73")));Configuration::updateValue("\x41SP_\x48E\x41\x44E\x52_LOG\x4f_\x4d\x4f\x44E",${${"GLOB\x41L\x53"}["\x79\x6es\x63\x6a\x66\x79\x78"]});Configuration::updateValue("A\x53\x50\x5f\x53EL\x4cER\x53_B\x4c\x4f\x43K\x5fS\x54\x59\x4c\x45",intval(Tools::getValue("\x73\x65l\x6cers\x5fblo\x63\x6b_st\x79le")));Configuration::updateValue("A\x53P\x5f\x53EL\x4cE\x52\x53_\x42\x4cO\x43K\x5f\x56I\x52\x54\x55AL\x53\x48O\x50",intval(Tools::getValue("\x73\x65\x6c\x6c\x65r\x73_b\x6cock\x5fv\x69r\x74\x75\x61ls\x68op")));Configuration::updateValue("AS\x50_LO\x43\x41TIO\x4e\x5fB\x4c\x4f\x43\x4b_PO\x53I\x54ION",intval(Tools::getValue("\x6co\x63\x61t\x69\x6fn\x5fbloc\x6b\x5fpo\x73")));Configuration::updateValue("ASP_\x4c\x4fCATION_BLOCK_S\x54YL\x45",intval(Tools::getValue("lo\x63\x61tio\x6e\x5f\x62\x6c\x6fc\x6b_st\x79\x6c\x65")));Configuration::updateValue("AS\x50\x5f\x4cO\x43\x41T\x49ON_\x42\x4cO\x43\x4b\x5fV\x49RTUALS\x48\x4fP",intval(Tools::getValue("l\x6fc\x61\x74\x69\x6fn\x5fb\x6co\x63\x6b\x5fv\x69\x72\x74\x75\x61l\x73hop")));Configuration::updateValue("\x41S\x50\x5f\x4c\x4fC\x41TI\x4fN_B\x4c\x4f\x43K_\x4c\x45\x56E\x4c",Tools::getValue("\x6coc\x61\x74\x69on_\x62lo\x63k_\x6c\x65\x76\x65l"));Configuration::updateValue("\x41S\x50_\x53\x48\x4f\x50_\x55RL\x5f\x4d\x4fDE",${${"\x47\x4cOBA\x4c\x53"}["\x68\x75\x6a\x63g\x68ps\x72"]});$this->_html.="<d\x69v \x63l\x61s\x73=\"\x63onf\x20\x63\x6fnfirm\">".$this->l('Settings updated')."\x3c/di\x76\x3e";}}$this->displayForm();return$this->_html;}public function displayForm(){$mbmmuxe="\x73e\x6c\x6c\x65rs\x5f\x62\x6c\x6f\x63\x6b\x5fvi\x72\x74\x75\x61\x6c\x73h\x6f\x70";$mvzbgkfxswkv="\x68\x65\x61\x64\x65\x72\x5f\x6c\x6fg\x6f\x5fm\x6fd\x65";${"\x47\x4cOBA\x4cS"}["\x78\x6e\x65\x65e\x6c\x6by\x77g\x6e"]="\x6co\x63ati\x6fn_\x62\x6c\x6f\x63\x6b\x5f\x6c\x65\x76e\x6c";${${"\x47L\x4fB\x41L\x53"}["\x69b\x75h\x66\x75\x72"]}=intval(Configuration::get("ASP\x5f\x53\x45\x4c\x4c\x45\x52S_BL\x4fC\x4b_P\x4fSIT\x49\x4fN"));$shtxupib="\x73\x65\x6cl\x65\x72\x73_b\x6co\x63k\x5f\x73\x74y\x6c\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x67\x61\x66\x6a\x6f\x72"]="\x6coc\x61\x74\x69\x6f\x6e\x5f\x62\x6c\x6f\x63\x6b\x5fl\x65\x76\x65\x6c";${$mvzbgkfxswkv}=Configuration::get("\x41\x53\x50_HE\x41D\x45\x52\x5f\x4cOG\x4f_\x4dOD\x45");${$shtxupib}=Configuration::get("\x41SP_\x53\x45L\x4cE\x52\x53_\x42\x4cO\x43K_S\x54YL\x45");${"\x47L\x4fBA\x4c\x53"}["ki\x66\x75x\x6f\x6b\x6f"]="\x6c\x6f\x63\x61\x74i\x6f\x6e_\x62lo\x63\x6b\x5f\x70o\x73";${${"\x47L\x4fBAL\x53"}["\x69\x6e\x70i\x73\x65\x65\x70o"]}=Configuration::get("\x41SP\x5f\x53E\x4cL\x45\x52S_\x42\x4c\x4fCK\x5f\x56\x49RT\x55AL\x53HO\x50");${${"\x47\x4c\x4fB\x41L\x53"}["e\x78\x64q\x65k\x61z\x73\x75"]}=intval(Configuration::get("\x41\x53P_\x4cO\x43\x41TI\x4f\x4e_BL\x4fC\x4b_P\x4fS\x49\x54I\x4fN"));${"\x47\x4c\x4fBA\x4c\x53"}["\x6d\x77c\x75\x62\x6dr"]="\x6co\x63\x61\x74io\x6e_\x62\x6c\x6fck_st\x79\x6c\x65";${${"G\x4c\x4fBA\x4cS"}["\x6d\x77\x63\x75\x62\x6d\x72"]}=(int)Configuration::get("\x41\x53\x50\x5f\x4c\x4fCATIO\x4e_\x42LOCK_\x53TYL\x45");${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x65\x72\x62\x74\x79"]}=(int)Configuration::get("A\x53P\x5fL\x4f\x43A\x54I\x4fN\x5fBL\x4f\x43K_V\x49R\x54UA\x4c\x53\x48OP");${${"\x47\x4cO\x42A\x4c\x53"}["j\x6bg\x65vbq"]}=Configuration::get("\x41SP\x5f\x4cOC\x41TION_BL\x4fC\x4b_\x4cEV\x45L");${"GL\x4f\x42A\x4c\x53"}["\x63b\x61\x77\x76\x76\x6cw"]="\x73\x68o\x70_\x75\x72\x6c\x5fm\x6f\x64e";$rtwgungxh="\x6co\x63\x61\x74\x69\x6fn\x5f\x62\x6co\x63\x6b_\x6cev\x65\x6c";${${"\x47LO\x42\x41L\x53"}["\x68u\x6a\x63\x67h\x70\x73\x72"]}=(int)Configuration::get("\x41\x53P\x5f\x53\x48\x4fP_\x55\x52\x4c\x5f\x4d\x4fD\x45");$this->_html.="\n\t\t<\x66\x6frm\x20\x61ct\x69\x6fn=\"".$_SERVER["R\x45Q\x55\x45S\x54_U\x52I"]."\"\x20meth\x6fd=\x22\x70o\x73t\x22>\n\t\t\x3c\x66ie\x6cd\x73\x65\x74\x3e\n\x20  \x20\t\t\x3cle\x67\x65nd\x3e\x3cim\x67 s\x72c=\x22".$this->_path."log\x6f\x2egi\x66\" \x61lt\x3d\"\x22 ti\x74\x6c\x65=\x22\" />".$this->l('Seller Blocks Settings')."</\x6ceg\x65nd>\n\n\t  \x20 \t\x3c\x6cab\x65\x6c st\x79l\x65\x3d\x22displ\x61\x79:\x6eon\x65\x3b\">".$this->l('Shop URL Mode')."\x3c/l\x61be\x6c>\n\t\t\x20\x20 \x20<\x64i\x76\x20cl\x61\x73\x73=\x22\x6d\x61rgin-f\x6fr\x6d\"\x20sty\x6ce=\x22d\x69s\x70l\x61y:\x6eon\x65;\">\n\t\t   \x20 \x20\x20 \x3ci\x6e\x70u\x74\x20t\x79\x70e\x3d\x72\x61\x64io\x20n\x61\x6de\x3d\x22sho\x70_u\x72\x6c\x5fmode\x22\x20\x20\x76\x61lue\x3d\x220\x22 ".(${${"GL\x4f\x42\x41\x4c\x53"}["\x63\x62\x61\x77\x76\x76\x6cw"]}==0?"\x63\x68\x65c\x6bed":"")."/\x3e\x26n\x62\x73\x70;".$this->l('Virtual URL - All shop share the same domain with primary store.')."<\x62\x72\x3e\n\t\t    \x20 \x20 <\x69npu\x74\x20t\x79p\x65=ra\x64\x69o\x20\x6eam\x65\x3d\"\x73\x68op_\x75r\x6c\x5fm\x6fde\"  val\x75\x65\x3d\"\x31\" ".(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["h\x75\x6acg\x68\x70\x73r"]}==1?"\x63h\x65\x63k\x65d":"")."\x20/\x3e\x26n\x62\x73\x70\x3b".$this->l('Domain or Subdomain - Each shop will have diffeerent domain or subdomain.')."<br>\n\t\t\t\t\x3cp\x20\x73\x74y\x6ce=\x22\x63\x6f\x6co\x72:\x72ed\x22\x3e".$this->l('This can only be selected at beginning, once it is selected, please do not change it, otherwise, you will have  to manually change all shop URL setting.')."</p>\n \x20 \x20 \x20 \x20  \x20 \x3c/\x64iv>\n\n\t\x20   \t<\x6cabel\x3e".$this->l('Seller Shop Header Logo')."\x3c/\x6c\x61\x62e\x6c\x3e\n\t\t   \x20\x3c\x64\x69\x76 c\x6cass\x3d\x22\x6da\x72\x67\x69\x6e-f\x6fr\x6d\x22>\n\t\t\x20\x20 \x20  \x20\x20<i\x6e\x70u\x74\x20\x74\x79\x70e=\x72a\x64i\x6f \x6ea\x6de\x3d\x22h\x65ade\x72\x5flo\x67\x6f_\x6d\x6f\x64\x65\x22  v\x61\x6cue\x3d\x22\x30\"\x20".(${${"\x47\x4cO\x42A\x4cS"}["\x79ns\x63\x6af\x79\x78"]}==0?"c\x68\x65cked":"")."/>&n\x62sp;".$this->l('Show main store logo only')."\x26nbsp;&nbs\x70;\x26n\x62sp\x3b\n\t\t\x20 \x20    \x20\x3ci\x6eput t\x79\x70e=\x72a\x64\x69o\x20n\x61me\x3d\x22\x68\x65\x61d\x65\x72_\x6c\x6fgo_mo\x64e\x22\x20 v\x61\x6c\x75\x65=\x22\x31\"\x20".(${${"G\x4cO\x42A\x4c\x53"}["yn\x73c\x6af\x79x"]}==1?"\x63h\x65c\x6b\x65d":"")."\x20/\x3e\x26\x6ebsp;".$this->l('Show seller logo only')."&nbs\x70\x3b&nbs\x70\x3b\x26\x6e\x62s\x70\x3b\n\t\t\x20\x20\x20\x20\x20\x20  <in\x70\x75t ty\x70\x65=\x72adio \x6e\x61\x6d\x65\x3d\"h\x65a\x64\x65\x72\x5f\x6c\x6f\x67\x6f_\x6d\x6fde\"\x20\x20va\x6c\x75\x65=\x222\" ".(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["y\x6e\x73c\x6a\x66\x79\x78"]}==2?"\x63\x68\x65c\x6b\x65d":"")."/\x3e&nb\x73p\x3b".$this->l('Show both the main store logo and the seller logo')."&n\x62\x73p\x3b&\x6ebsp;\x26\x6e\x62s\x70\x3b\n\t\t\t\t<b\x72\x3e\x20".$this->l('If you choose both, your theme must be adjusted to fit two logos by your theme designer - otherwise please choose one of other 2 options.')."\x3cbr\x3e\n \x20 \x20\x20\x20      </d\x69v\x3e\n\t\t\t<\x62r\x3e\n\t\t\t<br\x3e\n\n\t\x20\x20\x20 \t<la\x62\x65\x6c>".$this->l('Shop by Seller Block')."\x3c/l\x61b\x65l>\n\t\t\x20\x20\x20 <d\x69v c\x6cas\x73=\x22\x6da\x72\x67i\x6e-\x66o\x72\x6d\x22>\n\t\t       \x20<i\x6ep\x75t\x20\x74\x79\x70\x65=ra\x64\x69\x6f \x6ea\x6de\x3d\x22sell\x65r\x73\x5fb\x6c\x6fck_\x70\x6f\x73\x22  \x76a\x6c\x75e\x3d\x22\x31\"\x20".(${${"\x47\x4c\x4f\x42A\x4cS"}["i\x62\x75hf\x75\x72"]}==1?"\x63\x68\x65c\x6bed":"")." /\x3e&\x6eb\x73\x70\x3b".$this->l('On Left Column')."&\x6eb\x73p;\x26\x6eb\x73p;\x26nb\x73p;\n\t\t\x20 \x20\x20   \x20\x3ci\x6e\x70\x75t\x20\x74\x79\x70e=\x72a\x64io nam\x65=\"\x73elle\x72s_blo\x63\x6b\x5fp\x6fs\"  \x76alue\x3d\"\x32\" ".(${${"\x47\x4cO\x42\x41\x4c\x53"}["ib\x75\x68fu\x72"]}==2?"\x63\x68ec\x6be\x64":"")."/\x3e&\x6e\x62sp\x3b".$this->l('On Right Column')."&\x6e\x62s\x70;&nb\x73p;\x26n\x62\x73\x70;\n\t\t\x20   \x20 \x20\x20<\x69n\x70\x75t \x74\x79\x70\x65=\x72\x61\x64io n\x61me\x3d\"\x73elle\x72s\x5fbl\x6fck\x5f\x70\x6f\x73\x22  \x76a\x6cue=\x220\"\x20".(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x69\x62\x75\x68\x66\x75r"]}==0?"c\x68e\x63k\x65d":"")."/>\x26n\x62\x73p;".$this->l('Do Not Display')."\x26\x6e\x62\x73p;\x26nbsp;\x26n\x62sp;\n\t\t\t\t-- ".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."\n\x20  \x20 \x20  \x20 \x20 \x3c/div>\n\t\x20\x20  \t\x3c\x6c\x61\x62el\x3e".$this->l('Number of Sellers Displayed')."</\x6ca\x62\x65\x6c\x3e\n\t\t\t<di\x76\x20\x63l\x61ss\x3d\"\x6da\x72gin-\x66\x6f\x72m\x22\x3e\n\t\t\t\t\x3c\x69\x6eput \x74\x79\x70e\x3d\x22\x74\x65xt\x22 na\x6de\x3d\"\x73e\x6c\x6ce\x72\x4ebr\x22 \x76\x61\x6c\x75e\x3d\x22".(int)(Configuration::get("\x41S\x50_\x53E\x4cL\x45\x52_\x4e\x42R"))."\x22 /\x3e\x26\x6ebsp;\x3cs\x70\x61\x6e>\n\t\t\t\t--\x20".$this->l('Set the number of sellers (shops) to be displayed on the sellers block that is displayed in the left or right column.')."</s\x70a\x6e>\n\t\t\t\x3c/\x64i\x76>\n\t   \x20\t\x3cla\x62el\x3e".$this->l('Sho By Seller block style')."</\x6c\x61b\x65l\x3e\n\t\t\x20\x20\x20\x20<\x64\x69\x76\x20\x63\x6cass=\x22\x6d\x61\x72\x67i\x6e-\x66or\x6d\x22\x3e\n\t\t     \x20 \x20\x3cinp\x75t\x20\x74yp\x65\x3dra\x64\x69o\x20\x6e\x61\x6de=\"s\x65\x6cl\x65\x72s\x5f\x62l\x6fck_s\x74\x79\x6ce\"  \x76a\x6cue=\"\x30\" ".(${${"\x47\x4c\x4f\x42A\x4cS"}["\x76r\x72\x6d\x62\x7a\x77"]}==0?"c\x68\x65\x63\x6b\x65\x64":"")."/\x3e&nb\x73\x70\x3b".$this->l('Flat name list')."&\x6eb\x73p\x3b&\x6e\x62\x73p\x3b\x26\x6ebsp\x3b\n\t\t \x20\x20 \x20  \x20\x3c\x69\x6eput t\x79pe\x3d\x72\x61d\x69o \x6e\x61\x6d\x65=\"se\x6cl\x65rs_\x62l\x6f\x63k_st\x79\x6ce\"\x20\x20v\x61l\x75e=\x22\x31\"\x20".(${${"\x47\x4cO\x42A\x4cS"}["vr\x72mb\x7a\x77"]}==1?"\x63\x68e\x63ked":"")." />&\x6e\x62sp\x3b".$this->l('Drop down list')."\x26n\x62sp\x3b\x26\x6e\x62\x73p\x3b\x26nbs\x70;\n\t\t\t\t-- ".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."\n\x20 \x20\x20 \x20\x20\x20 \x20 \x20\x3c/\x64i\x76\x3e\n\t  \x20\x20\t<l\x61be\x6c\x3e".$this->l('Show on seller shop?')."</\x6c\x61\x62e\x6c\x3e\n\t\t\x20\x20\x20\x20\x3c\x64i\x76 \x63l\x61\x73s\x3d\"\x6d\x61rg\x69\x6e-\x66orm\x22\x3e\n\t\t \x20\x20\x20 \x20\x20 \x3c\x69\x6e\x70ut \x74y\x70e=r\x61dio \x6ea\x6de\x3d\x22se\x6c\x6ce\x72s\x5f\x62lo\x63k\x5fvi\x72t\x75\x61lshop\"\x20\x20\x76\x61\x6c\x75\x65=\x22\x30\"\x20".(${${"\x47\x4c\x4fB\x41\x4cS"}["\x69\x6e\x70i\x73\x65\x65p\x6f"]}==0?"c\x68e\x63\x6b\x65\x64":"")."/\x3e\x26nbsp;".$this->l('No')."\x26\x6ebs\x70\x3b\x26nbsp;\n\t\t\x20  \x20   \x20<i\x6e\x70u\x74 t\x79\x70\x65=\x72ad\x69o\x20na\x6d\x65=\"s\x65llers\x5f\x62\x6coc\x6b\x5fv\x69\x72tualsh\x6fp\"\x20\x20\x76\x61lu\x65=\x221\" ".(${$mbmmuxe}==1?"\x63\x68\x65c\x6b\x65\x64":"")."\x20/>\x26\x6ebsp\x3b".$this->l('Yes')."&nb\x73p\x3b&n\x62s\x70\x3b\n\x20\x20 \x20  \x20 \x20\x20\x20 </di\x76\x3e\n\t\t\t<b\x72>\n\t\t\t\x3cbr\x3e\n\t\t\t\n\t\x20\x20\x20\x20\t<l\x61\x62\x65l\x3e".$this->l('Shop by Location Block')."</label>\n\t\t    <di\x76 cla\x73s\x3d\"m\x61\x72\x67\x69n-\x66\x6frm\x22\x3e\n\t\t  \x20    \x20\x3ci\x6ep\x75\x74 ty\x70e=\x72adi\x6f \x6eame=\x22\x6co\x63\x61\x74\x69on\x5fb\x6c\x6f\x63k_\x70\x6f\x73\"\x20 \x76\x61\x6cue=\"\x31\x22\x20".(${${"GL\x4f\x42\x41\x4cS"}["e\x78\x64\x71e\x6b\x61\x7as\x75"]}==1?"\x63\x68e\x63ked":"")."\x20/\x3e".$this->l('On Left Column')."&n\x62\x73\x70;\x26\x6e\x62sp\x3b\x26\x6ebs\x70;\n\t\t \x20 \x20\x20  \x20\x3ci\x6ep\x75t \x74\x79\x70e=\x72\x61di\x6f \x6eame\x3d\"l\x6f\x63\x61\x74i\x6fn\x5fb\x6co\x63\x6b_\x70o\x73\x22\x20 valu\x65\x3d\"2\x22 ".(${${"\x47\x4c\x4fB\x41\x4c\x53"}["ex\x64q\x65k\x61\x7a\x73\x75"]}==2?"che\x63ked":"")."/>".$this->l('On Right Column')."&\x6e\x62sp;&n\x62\x73\x70;\x26n\x62\x73p\x3b\n\t\t\x20\x20\x20   \x20\x20<inp\x75t \x74\x79p\x65\x3d\x72\x61\x64io\x20nam\x65\x3d\"\x6co\x63a\x74\x69\x6fn_\x62l\x6fc\x6b_po\x73\"  \x76a\x6cue=\x22\x30\x22 ".(${${"G\x4c\x4fB\x41\x4cS"}["\x6b\x69\x66\x75\x78\x6f\x6b\x6f"]}==0?"ch\x65\x63\x6be\x64":"")."/>".$this->l('Do Not Display')."\x26\x6e\x62sp\x3b\x26\x6e\x62sp;&n\x62\x73\x70\x3b\n    \x20 \x20\x20\x20\x20 \x20\x3c/\x64\x69\x76\x3e\n\t\t\t\n\t \x20\x20 \t\x3c\x6ca\x62el\x3e".$this->l('Shop By Location style')."</\x6ca\x62e\x6c>\n\t\t\x20\x20\x20 \x3cd\x69\x76 c\x6c\x61s\x73\x3d\x22\x6da\x72g\x69\x6e-\x66\x6f\x72m\">\n\t\t \x20\x20\x20\x20 \x20\x20<\x69\x6e\x70\x75t \x74y\x70\x65=r\x61\x64\x69o na\x6d\x65=\"loc\x61t\x69\x6f\x6e_bl\x6fck\x5fstyl\x65\x22\x20 \x76a\x6cue=\x220\x22 ".(${${"G\x4c\x4fB\x41L\x53"}["\x68\x64\x76\x73\x65a\x6fsb"]}==0?"\x63h\x65\x63\x6b\x65d":"")."/>&\x6e\x62\x73\x70\x3b".$this->l('Flat name list')."\x26\x6e\x62\x73\x70;\x26n\x62\x73p;&n\x62\x73\x70\x3b\n\t\t \x20 \x20\x20\x20  \x3c\x69n\x70\x75\x74\x20\x74\x79\x70e\x3dr\x61di\x6f\x20name=\x22l\x6f\x63ation_bloc\x6b_\x73\x74yl\x65\x22\x20 \x76\x61lue=\x22\x31\"\x20".(${${"\x47\x4cO\x42\x41L\x53"}["h\x64v\x73\x65\x61\x6f\x73b"]}==1?"c\x68\x65\x63\x6b\x65d":"")."\x20/\x3e\x26n\x62\x73\x70;".$this->l('Drop down list')."\x26n\x62sp;&n\x62sp;&\x6e\x62sp\x3b\n\t\t\t\t--".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."\n  \x20\x20\x20 \x20\x20\x20\x20\x20\x20</\x64iv\x3e\n\t \x20  \t<\x6c\x61\x62el\x3e".$this->l('Shop By Location Level')."</lab\x65\x6c>\n\t\t\x20\x20  \x3c\x64\x69\x76\x20\x63la\x73s=\x22\x6da\x72g\x69n-fo\x72m\x22\x3e\n\t\t\t\t<\x73el\x65\x63t\x20\x6e\x61\x6d\x65\x3d\x22\x6c\x6fc\x61\x74i\x6fn_\x62loc\x6b\x5f\x6c\x65\x76\x65\x6c\"\x20i\x64=\"\x6coca\x74\x69o\x6e_b\x6c\x6fck_l\x65v\x65l\" st\x79le\x3d\"\x77\x69\x64th:150px;\x22\x3e\n\t\t\t\t\t<\x6f\x70t\x69o\x6e v\x61\x6cue=\x22\x63ou\x6etry\x22\x20".(${${"\x47L\x4f\x42\x41LS"}["\x6a\x6b\x67ev\x62\x71"]}=="c\x6f\x75n\x74r\x79"?"s\x65l\x65c\x74ed":"").">".$this->l('Country')."\x3c/optio\x6e>\n\t\t\t\t\t\x3cop\x74\x69on\x20v\x61\x6cu\x65=\"\x73\x74\x61\x74\x65\x22 ".(${${"G\x4cO\x42\x41L\x53"}["\x6ak\x67\x65\x76b\x71"]}=="\x73\x74\x61\x74e"?"\x73e\x6cec\x74\x65\x64":"").">".$this->l('State')."</\x6fp\x74i\x6fn>\n\t\t\t\t\t<o\x70\x74\x69on \x76\x61\x6cue=\x22ci\x74y\x22\x20".(${${"\x47L\x4f\x42A\x4cS"}["\x78ne\x65\x65\x6c\x6b\x79wgn"]}=="ci\x74y"?"s\x65\x6ce\x63ted":"").">".$this->l('City')."</op\x74\x69\x6f\x6e>\n\t\t\t\t\t<o\x70\x74\x69on valu\x65\x3d\x22\x73\x65\x6c\x6ce\x72t\x79\x70\x65\x22\x20".(${${"\x47\x4c\x4fB\x41L\x53"}["\x67\x61\x66\x6a\x6f\x72"]}=="\x73e\x6c\x6ce\x72t\x79pe"?"s\x65l\x65\x63ted":"").">".$this->l('Seller Type')."\x3c/opt\x69\x6f\x6e>\n\t\t\t\t\t<!--o\x70t\x69o\x6e va\x6cu\x65=\x22c\x75\x73\x74\x6fm\x22 ".(${$rtwgungxh}=="\x63us\x74o\x6d"?"\x73el\x65\x63t\x65\x64":"").">".self::SHOP_BY_CUSTOM_NAME."\x3c/o\x70\x74\x69on--\x3e\n\t\t\t\t\x3c/se\x6c\x65\x63t\x3e\n\x20 \x20\x20   \x20   \x20</div\x3e\n\t\x20   \t\x3c\x6cabe\x6c>".$this->l('Show on seller shop?')."\x3c/labe\x6c>\n\t\t\x20 \x20\x20\x3c\x64\x69v cl\x61s\x73\x3d\"\x6d\x61r\x67\x69n-\x66\x6f\x72\x6d\">\n\t\t \x20\x20\x20\x20\x20\x20\x20<inpu\x74 t\x79\x70\x65\x3d\x72\x61\x64i\x6f\x20\x6e\x61m\x65=\"l\x6f\x63\x61tio\x6e_b\x6c\x6fc\x6b_vir\x74\x75al\x73ho\x70\" \x20\x76\x61lue\x3d\x22\x30\" ".(${${"G\x4c\x4f\x42\x41\x4c\x53"}["p\x65rbty"]}==0?"\x63h\x65\x63k\x65\x64":"")."/\x3e\x26n\x62\x73\x70;".$this->l('No')."&\x6ebsp;\x26\x6ebsp;\n\t\t\x20\x20  \x20  \x20<i\x6eput\x20t\x79\x70e=\x72a\x64\x69\x6f \x6e\x61m\x65=\"\x6coc\x61tio\x6e_block\x5f\x76\x69rtua\x6cs\x68\x6fp\" \x20\x76\x61\x6c\x75\x65=\x22\x31\x22\x20".(${${"\x47\x4c\x4f\x42A\x4cS"}["\x70\x65\x72\x62t\x79"]}==1?"\x63\x68\x65c\x6b\x65\x64":"")."\x20/\x3e\x26nbsp\x3b".$this->l('Yes')."\x26n\x62\x73\x70\x3b\x26n\x62sp\x3b\n \x20\x20\x20  \x20\x20\x20\x20  \x3c/\x64i\x76>\n\t\t\t\n  \x20 \x20 \x20 \t\x3c\x63\x65nt\x65\x72><\x69np\x75\x74 \x74\x79p\x65=\"\x73ubmit\x22 \x6ea\x6d\x65=\x22\x73\x75b\x6di\x74\x53\x65\x74tin\x67s\" v\x61\x6cue=\x22".$this->l('Save')."\" \x63lass\x3d\"b\x75tton\x22\x20/\x3e\x3c/\x63\x65\x6et\x65r\x3e\n\t\t\t<\x73pan\x20\x73t\x79\x6c\x65\x3d\"c\x6fl\x6fr:\x72\x65d\x22>".$this->l('Notes:')."</s\x70\x61\x6e>\x20-\x20\n\t\t\t\x3ca\x20\x74a\x72g\x65\x74=\x22_\x6eew\" \x73\x74\x79l\x65=\"\x63ol\x6f\x72:\x62\x6cue\x3b\x22 h\x72ef\x3d\x22".Tools::getShopDomainSsl(true,true).__PS_BASE_URI__."m\x6fdules/\x61gilemu\x6ctipl\x65\x73hop/\x49ns\x74\x61\x6c\x6c_\x65n\x2e\x74xt"."\x22>".$this->l('Please see here for detailed  instructions.')."<\x61/>\x3c\x62\x72\x3e\n\t\t\t".$this->l('1. Seller Logo at Header - You may change seller logo position by modifying header.tpl and also need adjust your CSS file to adopt seller logo at header ')."<\x62\x72\x3e\n\t\t\t".$this->l('2. Breadcrumb - You need make some changes at breadcrumb.tpl file to include seller shop in Breadcrumb (store navigation bar)')."<\x62r>\n\t\x20\x20\x20 </\x66i\x65\x6c\x64\x73e\x74>\n\t\t\t\x3c/fo\x72m>";}public function hookBreadcrumbShops(){${"G\x4c\x4fB\x41\x4cS"}["\x72fm\x6b\x65\x68\x73\x71j\x66\x73"]="\x69\x64\x5f\x73hop\x5fowne\x72";global$smarty,$cookie;${"\x47\x4cO\x42\x41LS"}["\x72\x77i\x71\x69\x78j\x62nvy"]="i\x64\x5fs\x68\x6f\x70_\x6f\x77\x6e\x65r";include_once(_PS_ROOT_DIR_."/mod\x75\x6ces/\x61g\x69\x6c\x65\x6d\x75l\x74i\x70\x6c\x65s\x65ll\x65r/\x53e\x6c\x6cer\x49\x6efo\x2e\x70h\x70");${${"\x47\x4c\x4f\x42\x41L\x53"}["f\x66\x6ew\x72\x6a\x66\x63q"]}=new SellerInfo(SellerInfo::getIdBSellerId(Shop::${${"\x47L\x4f\x42A\x4c\x53"}["\x72\x77\x69\x71\x69\x78jbn\x76\x79"]}),$cookie->id_lang);${${"GL\x4f\x42\x41L\x53"}["y\x6a\x62f\x73\x6e\x6aye\x61"]}=new Shop(Configuration::get("P\x53_\x53\x48\x4f\x50\x5f\x44\x45FA\x55L\x54"));$smarty->assign(array("\x73e\x6c\x6c\x65\x72\x5f\x73ho\x70"=>(Shop::${${"\x47\x4cO\x42\x41L\x53"}["\x72\x66mkeh\x73qjf\x73"]}>0?Context::getContext()->shop:false),"i\x73at\x5fs\x65\x6cl\x65\x72\x5f\x68o\x6d\x65"=>((AgileHelper::getPageName()=="\x61g\x69\x6ces\x65l\x6ce\x72\x2e\x70\x68p")?1:0),"\x73\x65ller\x5f\x6eam\x65"=>$sellerinfo->company,"base\x5f\x64ir\x5f\x64\x65f\x61\x75lt"=>$main_shop->getBaseURL()));return$this->display(__FILE__,"hoo\x6bbr\x65adc\x72\x75m\x62-s\x68\x6fps.\x74pl");}public function hookHeader($params){global$smarty,$cookie,$link;if(!$this->active)return;if(!Module::isInstalled("\x61g\x69l\x65\x6d\x75\x6c\x74\x69pl\x65s\x68\x6f\x70"))return;${"G\x4c\x4f\x42\x41\x4cS"}["\x79\x79jh\x75\x71o\x75"]="\x48\x4f\x4f\x4b\x5fS\x45\x4c\x4c\x45R\x5f\x48\x45\x41\x44E\x52_\x4cO\x47\x4f";include_once(_PS_ROOT_DIR_."/\x6do\x64\x75les/\x61g\x69\x6ce\x6d\x75\x6ct\x69\x70le\x73\x65\x6c\x6cer/Sel\x6ce\x72I\x6e\x66o.p\x68\x70");${${"\x47L\x4f\x42\x41L\x53"}["\x75fjy\x77\x78g\x79xq"]}=(isset(Shop::${${"\x47LO\x42\x41\x4c\x53"}["\x66\x66n\x77\x72\x6a\x66c\x71"]})?SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id):"");${"\x47\x4cO\x42AL\x53"}["\x79\x79\x77\x71\x6f\x65b"]="\x69\x64\x5f\x73h\x6f\x70\x5fo\x77\x6e\x65r";${${"\x47LOB\x41\x4cS"}["yn\x73c\x6a\x66\x79\x78"]}=intval(Configuration::get("\x41SP_\x48\x45\x41DE\x52_L\x4f\x47O\x5f\x4d\x4fDE"));${${"GL\x4f\x42A\x4c\x53"}["\x79\x6ab\x66\x73\x6e\x6a\x79\x65\x61"]}=new Shop(Configuration::get("PS_SHOP_\x44\x45FA\x55LT"));$fmskcbo="se\x6c\x6ce\x72\x5fl\x6f\x67\x6f_u\x72\x6c";$qvqquswe="s\x65\x6cl\x65\x72\x5f\x73\x68o\x70\x5fu\x72\x6c";${$qvqquswe}=Context::getContext()->shop->getBaseURL();$wpwheky="h\x65\x61d\x65r\x5flo\x67\x6f_\x6d\x6f\x64e";${"\x47\x4c\x4fBA\x4c\x53"}["\x6e\x71j\x79\x66\x64\x75\x72"]="\x69d_s\x68\x6fp_\x6fw\x6e\x65\x72";${${"G\x4c\x4f\x42A\x4cS"}["\x79\x79j\x68\x75\x71\x6f\x75"]}="<a\x20\x69\x64=\"s\x65\x6c\x6ce\x72_\x68\x65\x61\x64\x65\x72_\x6c\x6f\x67o\" class=\"log\x6f\" h\x72ef\x3d\x22".${${"\x47\x4cOB\x41LS"}["\x67\x68\x78c\x79q\x70\x75d\x72"]}."\x22>\x3c\x69\x6d\x67 s\x72\x63\x3d\x22".${${"\x47L\x4fB\x41\x4c\x53"}["\x75fj\x79w\x78g\x79\x78q"]}."\x22 \x68\x65\x69ght\x3d\x2260\x22\x3e\x3c/a\x3e";if(${$wpwheky}==0 OR Shop::${${"\x47\x4cO\x42\x41LS"}["\x79\x79\x77\x71o\x65\x62"]}==0)${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x62\x75dv\x68n\x78\x62d"]}="";$smarty->assign(array("h\x65\x61\x64\x65\x72\x5flo\x67o_m\x6fde"=>${${"\x47L\x4f\x42\x41\x4c\x53"}["\x79\x6es\x63j\x66\x79x"]},"\x62\x61se\x5f\x64\x69r\x5fd\x65\x66au\x6c\x74"=>$main_shop->getBaseURL(),"id\x5fsh\x6f\x70\x5fown\x65\x72"=>Shop::${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6eqj\x79\x66du\x72"]},"\x73ho\x70s\x5f\x6cin\x6b"=>$this->hookBreadcrumbShops(),"\x73el\x6c\x65\x72_log\x6f_\x75rl"=>${$fmskcbo},"H\x4f\x4fK_\x53\x45\x4c\x4c\x45\x52_H\x45AD\x45\x52\x5f\x4cO\x47\x4f"=>${${"\x47LOB\x41L\x53"}["y\x62\x75\x64\x76\x68\x6ex\x62\x64"]}));return$this->display(__FILE__,"\x68\x6fo\x6bhe\x61d\x65r.tp\x6c");}public function hookRightColumn($params){$jxpxeyhpkpp="\x72\x65\x73";if(!$this->active)return;${$jxpxeyhpkpp}="";if(intval(Configuration::get("A\x53P_\x53E\x4cLER\x53_\x42LO\x43\x4b\x5f\x50OSI\x54\x49\x4f\x4e"))==2){$icjzrgl="res";${"GL\x4f\x42A\x4cS"}["\x6e\x6b\x6e\x71vd\x71"]="pa\x72\x61\x6ds";${"\x47LOB\x41\x4c\x53"}["\x73w\x62n\x65r\x71r\x6f\x70"]="\x69\x64\x5f\x73\x68o\x70\x5f\x6f\x77n\x65r";if(Shop::${${"\x47\x4cOB\x41\x4c\x53"}["s\x77\x62n\x65\x72\x71\x72\x6fp"]}==0||intval(Configuration::get("ASP\x5fSEL\x4c\x45\x52\x53_B\x4cOCK_\x56\x49R\x54\x55\x41\x4c\x53H\x4f\x50"))==1)${$icjzrgl}.=$this->showSellerBlock(${${"\x47LO\x42A\x4c\x53"}["\x6ek\x6e\x71\x76dq"]});}if(intval(Configuration::get("AS\x50\x5f\x4cOCA\x54\x49ON_\x42LO\x43\x4b\x5fP\x4fSI\x54I\x4f\x4e"))==2){${"GL\x4fB\x41LS"}["p\x79\x71v\x61\x6a\x76k"]="\x72\x65\x73";$irrgbtxm="i\x64\x5f\x73hop_\x6f\x77n\x65\x72";if(Shop::${$irrgbtxm}==0||intval(Configuration::get("ASP\x5f\x4cO\x43AT\x49O\x4e\x5f\x42\x4c\x4f\x43\x4b\x5f\x56\x49RT\x55\x41\x4cS\x48OP"))==1)${${"G\x4c\x4f\x42\x41\x4c\x53"}["p\x79\x71v\x61\x6av\x6b"]}.=$this->showLocationBlock(${${"\x47\x4c\x4f\x42AL\x53"}["\x66\x69\x67\x67\x70\x70\x76\x6a\x74"]});}return${${"\x47L\x4f\x42A\x4c\x53"}["\x77\x6d\x67\x65c\x65ss"]};}public function hookLeftColumn($params){${"\x47\x4cOB\x41\x4cS"}["y\x75\x75\x72\x7an\x73"]="r\x65s";if(!$this->active)return;${${"\x47\x4cO\x42\x41\x4c\x53"}["\x79\x75\x75\x72\x7an\x73"]}="";if(intval(Configuration::get("\x41SP\x5f\x53E\x4c\x4cE\x52\x53_\x42\x4cO\x43K\x5fPOSI\x54\x49\x4fN"))==1){$kzuyadc="\x69\x64_s\x68\x6f\x70_\x6f\x77n\x65\x72";if(Shop::${$kzuyadc}==0||intval(Configuration::get("\x41\x53P_SE\x4cL\x45R\x53\x5fB\x4cOCK_\x56\x49RTU\x41\x4cS\x48O\x50"))==1)${${"\x47\x4cO\x42\x41L\x53"}["\x77m\x67\x65\x63\x65\x73\x73"]}.=$this->showSellerBlock(${${"\x47\x4c\x4fB\x41L\x53"}["\x66\x69g\x67\x70p\x76\x6at"]});}if(intval(Configuration::get("\x41\x53P_L\x4f\x43ATION_B\x4c\x4fC\x4b_P\x4fSI\x54\x49ON"))==1){${"G\x4cOB\x41L\x53"}["ue\x69\x6d\x6b\x6d\x79b\x64o"]="p\x61\x72\x61ms";${"\x47\x4c\x4f\x42AL\x53"}["\x6fp\x78\x70\x75\x65r\x75l\x6f\x6c\x79"]="\x72es";if(Shop::${${"\x47LOBAL\x53"}["\x73\x77\x64\x62\x68\x77\x67"]}==0||intval(Configuration::get("\x41\x53\x50_L\x4fC\x41T\x49\x4fN_BLOC\x4b\x5f\x56I\x52TUAL\x53H\x4fP"))==1)${${"G\x4c\x4f\x42\x41\x4c\x53"}["opx\x70\x75\x65r\x75\x6c\x6f\x6c\x79"]}.=$this->showLocationBlock(${${"\x47\x4c\x4fB\x41LS"}["\x75\x65\x69\x6dk\x6d\x79\x62do"]});}return${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x6dg\x65\x63\x65\x73s"]};}private function showSellerBlock($params){global$smarty,$cookie;${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66sksw\x71k\x79q\x70\x61"]="a\x73\x70_\x73\x65ll\x65r\x73";if(!$this->active)return;if(!Module::isInstalled("\x61\x67il\x65mu\x6c\x74i\x70\x6ce\x73el\x6c\x65\x72"))return;${${"G\x4c\x4fB\x41L\x53"}["\x74v\x6d\x68\x66\x73hkd"]}="SEL\x45CT e\x2eid_empl\x6f\x79\x65e,\x65\x2e\x66irstn\x61m\x65,\x65.\x6c\x61s\x74\x6eame,sl\x2e\x63\x6fm\x70an\x79,\x73\x2ei\x64\x5fselle\x72\n\t\x20\x20     \x20    \x46\x52\x4f\x4d \x60"._DB_PREFIX_."empl\x6f\x79ee`\x20e\n\t\x20\x20\x20 \x20\x20\x20 \x20\x20 \x20   \x20\x4cE\x46\x54\x20J\x4fI\x4e\x20\x20`"._DB_PREFIX_."\x73e\x6cl\x65\x72inf\x6f\x60 s\x20O\x4e \x65.\x69d_\x65m\x70\x6coy\x65e =\x20s.\x69\x64\x5f\x73\x65ll\x65r\n\t\x20\x20 \x20\x20\x20\x20\x20  \x20\x20\x20  \x20\x4cEF\x54 JOIN \x20`"._DB_PREFIX_."\x73el\x6c\x65\x72\x69n\x66o_lang`\x20sl\x20ON (sl.\x69\x64_\x73\x65\x6cle\x72\x69n\x66o = s.i\x64\x5f\x73eller\x69nfo AN\x44\x20\x73\x6c.\x69d_l\x61\x6e\x67\x3d".intval($cookie->id_lang).")\n\t\x20\x20\x20   \x20 \x20\x20\x20\x20\x57HERE\x20\x65\x2e\x61\x63t\x69\x76e=1\x20\x41\x4e\x44 e\x2ei\x64\x5fp\x72\x6ffi\x6ce =\x20".Configuration::get("\x41\x47\x49LE\x5fMS_P\x52\x4fF\x49\x4cE\x5f\x49D")."\n\t    \x20\x20  \x20 \x20 O\x52\x44E\x52\x20\x42\x59 s.dat\x65_\x61dd \x44\x45\x53\x43\n\t  \x20  \x20\x20\x20 \x20 \x20\x4cIM\x49\x54 0,".intval(Configuration::get("AS\x50\x5f\x53\x45\x4cL\x45\x52\x5f\x4e\x42R"))."\n\t    \x20\x20\x20  \x20 \x20";$kfvgsnh="\x61\x73\x70\x5f\x73e\x6c\x6c\x65\x72\x73";${${"GL\x4f\x42\x41\x4c\x53"}["\x66\x73\x6bsw\x71\x6b\x79\x71\x70a"]}=Db::getInstance()->ExecuteS(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x76m\x68\x66\x73h\x6bd"]});if(!${$kfvgsnh})return;$smarty->assign(array("as\x70_\x73\x65\x6c\x6cer\x73"=>${${"GL\x4fB\x41L\x53"}["\x6d\x75y\x78\x75us"]},"a\x73\x70\x5fs\x65\x6cl\x65\x72s\x5fb\x6coc\x6b_s\x74\x79l\x65"=>intval(Configuration::get("A\x53\x50_\x53ELL\x45R\x53_\x42\x4c\x4f\x43\x4b\x5fS\x54YL\x45"))));return$this->display(__FILE__,"ho\x6fkb\x6c\x6fck\x73\x65ll\x65\x72s.\x74p\x6c");}private function showLocationBlock($params){global$smarty,$cookie;${"\x47\x4cOB\x41\x4c\x53"}["\x7a\x67\x62\x71c\x77\x74\x69\x72\x69\x74"]="\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x5f\x6c\x65\x76el";if(!$this->active)return;if(!Module::isInstalled("\x61gile\x6dult\x69ple\x73\x65l\x6cer"))return;${${"\x47L\x4f\x42ALS"}["\x75\x6aei\x6co\x76\x72"]}=Configuration::get("\x41\x53\x50\x5f\x4cO\x43\x41\x54I\x4fN_B\x4c\x4fCK\x5fLEVEL");$smarty->assign(array("se\x6cler_\x6c\x6fcat\x69\x6fns4\x62\x6co\x63k"=>AgileMultipleShop::getLocationListNV(${${"G\x4cOBA\x4c\x53"}["\x75\x6ae\x69\x6c\x6f\x76\x72"]}),"l\x6fc\x61t\x69o\x6e_le\x76e\x6c"=>${${"\x47\x4cOB\x41\x4c\x53"}["z\x67\x62q\x63w\x74\x69\x72\x69t"]},"\x61\x73p_\x6c\x6f\x63a\x74ion\x5f\x62\x6cock_s\x74yle"=>(int)Configuration::get("ASP_\x4cOC\x41\x54\x49\x4f\x4e\x5fB\x4cO\x43\x4b\x5fS\x54\x59LE"),"l\x6fc\x61t\x69on\x5f\x63\x75stom\x5ff\x69e\x6cd"=>self::SHOP_BY_CUSTOM_FIELD,"\x6cocation_\x63\x75\x73\x74\x6fm_\x6ea\x6d\x65"=>self::SHOP_BY_CUSTOM_NAME,"\x61\x67i\x6ce\x6d\x75\x6c\x74\x69\x70\x6ceshop\x5f\x74pl"=>dirname(__FILE__)."/",));return$this->display(__FILE__,"\x68\x6fo\x6bbloc\x6b\x6c\x6f\x63\x61\x74ion.\x74pl");}public static function getLocationListNV($location_level){global$cookie;$tbyzvk="\x73ql";${"\x47\x4c\x4fB\x41\x4cS"}["m\x65k\x78xz\x62u"]="\x73\x71\x6c";${"\x47\x4c\x4fB\x41\x4c\x53"}["r\x6f\x6e\x61q\x76\x78\x77o\x63d\x66"]="\x73\x71l";${"\x47LO\x42ALS"}["t\x71\x69\x62x\x65\x79x\x65"]="\x73\x71l";switch(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x6a\x65\x69\x6co\x76\x72"]}){default:case"c\x6funt\x72y":${${"\x47LO\x42\x41\x4cS"}["\x74\x71\x69\x62\x78\x65y\x78\x65"]}="\x53E\x4cEC\x54 di\x73t\x69\x6ec\x74\x20c.id_c\x6f\x75\x6et\x72\x79 A\x53 \x69d,\x63l\x2en\x61me A\x53\x20\x6eame \n\t\t \x20\x20\x20\x20\x20\x20\x20 \x20\x20\x20\x46\x52\x4fM\x20\x60"._DB_PREFIX_."c\x6f\x75\x6etry\x60\x20\x63\n\t\t   \x20\x20\x20   \x20 \x20    \x49\x4eN\x45R\x20\x4aOIN\x20`"._DB_PREFIX_."\x73\x65ll\x65\x72in\x66o` s\x69 ON \x63\x2e\x69d\x5f\x63o\x75ntry \x3d s\x69\x2e\x69\x64_\x63\x6f\x75\x6e\x74\x72\x79\n\t\t\t       \x20\x20  \x20\x4c\x45\x46\x54 \x4a\x4f\x49N \x60"._DB_PREFIX_."\x63o\x75\x6e\x74ry_\x6c\x61n\x67\x60 cl\x20O\x4e c.i\x64_c\x6funt\x72\x79=cl\x2e\x69\x64_\x63o\x75n\x74ry A\x4eD\x20c\x6c\x2eid_\x6c\x61ng\x3d".$cookie->id_lang."\x20\n\t\t\t\t   \x20ORDE\x52 \x42\x59 cl.\x6eame \x41\x53C\n\t   \x20\x20\x20\x20\x20 \x20\x20 ";break;case"s\x74at\x65":${${"GLO\x42\x41L\x53"}["\x74\x76m\x68\x66\x73\x68k\x64"]}="\x53EL\x45\x43\x54 \x64isti\x6ect \x73\x2ei\x64_\x73\x74\x61te A\x53\x20i\x64, s\x2e\x6e\x61\x6de AS n\x61me\x20\n\t\t\x20  \x20\x20 \x20 \x20  \x20\x46\x52\x4fM \x60"._DB_PREFIX_."\x73\x74a\x74\x65\x60\x20\x73\n\t\t\x20 \x20 \x20   \x20   \x20   \x49\x4eNE\x52 \x4a\x4fI\x4e `"._DB_PREFIX_."s\x65\x6c\x6cerin\x66o`\x20\x73i\x20\x4f\x4e s.id\x5f\x73\x74a\x74e\x20= s\x69.id_\x73tate\n\t\t\t\t \x20\x20\x20\x4fRD\x45\x52\x20B\x59 s\x2en\x61m\x65\x20A\x53C\n\t\x20 \x20   \x20\x20 \x20\x20\x20";break;case"c\x69ty":${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6d\x65\x6bx\x78\x7ab\x75"]}="S\x45\x4cE\x43T \x64\x69\x73ti\x6e\x63t \x54R\x49\x4d(s\x69l.city)\x20A\x53\x20id, \x54RIM(si\x6c.city)\x20\x41S \x6e\x61me\x20\n\t\t\x20\x20  \x20  \x20\x20\x20  F\x52OM\x20\x60"._DB_PREFIX_."\x73e\x6c\x6c\x65\x72\x69\x6e\x66\x6f_\x6can\x67\x60\x20s\x69l\x20\n\t\t\t\t\t\x57\x48ER\x45 sil.\x69\x64_\x6can\x67 \x3d\x20".$cookie->id_lang." A\x4e\x44 L\x45NG\x54H(TR\x49M(s\x69\x6c\x2e\x63\x69t\x79)) \x3e 0\n\t\t\t\t\x20\x20  OR\x44E\x52\x20\x42\x59 \x73\x69\x6c\x2e\x63\x69ty\x20A\x53C\n\t\x20 \x20 \x20\x20 \x20 \x20 \x20";break;case"selle\x72typ\x65":${$tbyzvk}="SEL\x45CT\x20d\x69s\x74inc\x74 \x69d_s\x65llert\x79p\x65 \x41S\x20\x69d, n\x61\x6de\x20 \n\t\t\t\t \x20  \x20\x20\x20  \x20\x20 FRO\x4d `"._DB_PREFIX_."se\x6c\x6c\x65\x72ty\x70e\x5flang`\x20\n\t\t\t\t\t\t\t\x57\x48\x45\x52E \x69\x64_\x6cang = ".$cookie->id_lang." \n\t\t\t\t\t\t \x20 \x20\x4fR\x44E\x52 \x42Y\x20na\x6de\x20A\x53C\n\t\t\t\t\t    ";break;case"\x63u\x73tom":if(AgileMultipleShop::SHOP_BY_CUSTOM_LANG){${${"\x47\x4cOB\x41LS"}["\x74\x76\x6d\x68\x66\x73hkd"]}="\x53E\x4cE\x43T\x20di\x73\x74\x69n\x63\x74 \x4cOW\x45R(\x54\x52\x49\x4d(\x73i\x6c\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."))\x20\x41S\x20\x69\x64, \x54RIM(\x73i\x6c.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.") \x41\x53 na\x6d\x65\x20\n\t\t\t \x20 \x20\x20 \x20\x20\x20\x20 \x20F\x52\x4fM `"._DB_PREFIX_."\x73e\x6c\x6ce\x72info\x5fl\x61\x6eg` s\x69l\x20\n\t\t\t\t\t\t\x57\x48ERE\x20\x73\x69\x6c\x2e\x69\x64_\x6ca\x6e\x67\x20=\x20".$cookie->id_lang."\x20\x41\x4eD\x20\x4c\x45N\x47T\x48(T\x52I\x4d(sil\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."))\x20\x3e\x20\x30\n\t\t\t\t\t \x20 \x20O\x52\x44\x45\x52\x20B\x59 s\x69l.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."\x20ASC\n\t\t \x20\x20  \x20\x20\x20    ";}else{$akkxwqtep="\x73\x71l";${$akkxwqtep}="S\x45\x4cEC\x54\x20distin\x63\x74 \x4cOWER(\x54R\x49M(\x73i.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."))\x20\x41\x53\x20\x69\x64,\x20T\x52\x49\x4d(s\x69.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.") A\x53\x20n\x61\x6de \n\t\t\t \x20    \x20  \x20  FR\x4f\x4d\x20`"._DB_PREFIX_."\x73\x65l\x6c\x65\x72\x69\x6e\x66o`\x20s\x69\n\t\t\t\t\t \x20 \x20ORDER\x20BY \x73i\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."\x20A\x53\x43\n\t\t  \x20 \x20 \x20 \x20\x20\x20\x20";}break;}if(empty(${${"\x47\x4cOBA\x4cS"}["\x74vm\x68\x66s\x68\x6b\x64"]}))return array();return Db::getInstance()->ExecuteS(${${"\x47L\x4fB\x41L\x53"}["r\x6f\x6e\x61\x71\x76x\x77\x6fcdf"]});}public static function init_shop_header(){${"\x47\x4c\x4f\x42\x41L\x53"}["\x69\x61\x70ea\x6f\x77\x63\x72\x66x\x76"]="m\x61\x69n\x5fs\x68o\x70";${"\x47L\x4f\x42\x41L\x53"}["\x73\x72\x6d\x71u\x6e"]="\x69\x64_\x73\x68\x6f\x70\x5fow\x6ee\x72";global$smarty,$cookie;${${"\x47\x4cO\x42A\x4cS"}["\x69\x61p\x65\x61o\x77\x63r\x66\x78\x76"]}=new Shop(Configuration::get("\x50\x53_SH\x4fP_DE\x46AU\x4cT"));include_once(_PS_ROOT_DIR_."/mo\x64ul\x65s/a\x67ile\x6du\x6ctip\x6c\x65se\x6c\x6c\x65r/S\x65\x6c\x6cerI\x6ef\x6f\x2e\x70hp");$smarty->assign(array("i\x73_\x61\x67i\x6c\x65\x6du\x6c\x74i\x70\x6c\x65\x73hop\x5fi\x6e\x73\x74\x61l\x6ce\x64"=>1,"h\x65\x61d\x65r\x5f\x6c\x6fgo\x5fmod\x65"=>intval(Configuration::get("ASP_HE\x41\x44\x45\x52_L\x4f\x47O\x5fMO\x44E")),"base_\x64\x69r\x5fdefa\x75lt"=>$main_shop->getBaseURL(),"\x73\x65ll\x65\x72_\x73\x68\x6fp_na\x6de"=>Context::getContext()->shop->name,"\x69d\x5f\x73ho\x70_\x6fwner"=>Shop::${${"\x47L\x4fBA\x4cS"}["\x73rmq\x75n"]},"\x73elle\x72_\x6c\x6f\x67o\x5furl"=>(isset(Shop::${${"G\x4c\x4f\x42\x41L\x53"}["\x66fn\x77\x72\x6a\x66\x63q"]})?SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id):"")));}public static function clear_blockcategory_cache(){@session_start();if(!isset($_SESSION["\x69\x64_\x73\x68o\x70_o\x77\x6e\x65\x72"]))$_SESSION["\x69d_\x73\x68o\x70\x5fo\x77ner"]=0;if($_SESSION["\x69\x64\x5f\x73h\x6fp\x5f\x6f\x77n\x65r"]!=Shop::${${"\x47L\x4f\x42\x41LS"}["s\x77\x64\x62h\x77\x67"]}){$_SESSION["\x69\x64\x5f\x73h\x6fp_owne\x72"]=Shop::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["s\x77\x64\x62\x68\x77g"]};Context::getContext()->smarty->clearAllCache();}}public static function get_rewrite_rules(){return array("\x61g\x69\x6c\x65\x73e\x6cl\x65\x72"=>array("\x63\x6fn\x74r\x6f\x6cl\x65r"=>"a\x67il\x65s\x65\x6c\x6c\x65r","\x72u\x6ce"=>"\x68\x6f\x6de","\x6be\x79w\x6fr\x64s"=>array(),),"\x61g\x69l\x65\x73\x65\x6c\x6cer\x73"=>array("\x63on\x74ro\x6c\x6c\x65\x72"=>"\x61gi\x6c\x65\x73\x65\x6cle\x72s","\x72ul\x65"=>"s\x68o\x70\x73-\x6e\x61me-s\x74\x61\x72t-w\x69t\x68-{\x66ilte\x72}-\x62y-{l\x6f\x63\x6ceve\x6c}-in-{paren\x74\x69\x64}-{\x70\x61\x72\x65n\x74\x6ea\x6de}","\x6bey\x77\x6fr\x64s"=>array("f\x69\x6c\x74\x65r"=>array("\x72eg\x65xp"=>"[a-\x7aA-Z]+","\x70a\x72\x61\x6d"=>"\x66\x69l\x74\x65r"),"loc\x6ceve\x6c"=>array("r\x65\x67ex\x70"=>"[a-zA-\x5a]+","p\x61r\x61\x6d"=>"lo\x63\x6c\x65\x76e\x6c"),"pare\x6e\x74i\x64"=>array("\x72eg\x65\x78p"=>"[\x30-9]+","p\x61\x72a\x6d"=>"pa\x72enti\x64"),"pare\x6etn\x61\x6d\x65"=>array("reg\x65x\x70"=>"[_\x61-zA-\x5a0-9-\x5cpL]*","pa\x72\x61\x6d"=>"par\x65ntnam\x65"),"\x72\x65wr\x69\x74\x65"=>array("\x72\x65\x67e\x78\x70"=>"[_\x61-\x7a\x41-Z0-9-\\\x70\x4c]*"),"\x6d\x65t\x61\x5fke\x79wor\x64s"=>array("reg\x65\x78\x70"=>"[\x5fa-zA-\x5a0-\x39-\\\x70L]*"),"\x6deta_t\x69t\x6c\x65"=>array("r\x65\x67\x65\x78p"=>"[_\x61-z\x41-Z\x30-\x39-\x5cp\x4c]*"),),),"\x73ell\x65rl\x6fc\x61t\x69\x6f\x6e"=>array("c\x6fn\x74r\x6f\x6cl\x65r"=>"\x73e\x6cl\x65\x72\x6coc\x61t\x69\x6f\x6e","\x72u\x6ce"=>"\x73h\x6fp-b\x79-{\x6ce\x76el}/{\x69\x64}-{\x72e\x77\x72\x69\x74\x65}","\x6b\x65\x79w\x6frds"=>array("\x6cev\x65l"=>array("regex\x70"=>"[_\x61-\x7a\x41-\x5a\x30-9-\x5c\x70L]*","\x70a\x72\x61m"=>"loc\x61tion_\x6c\x65vel"),"\x69\x64"=>array("\x72\x65\x67ex\x70"=>"[_\x61-z\x41-\x5a0-\x39-\\p\x4c]*","p\x61ra\x6d"=>"\x69d\x5f\x6c\x6f\x63\x61t\x69on"),"\x72\x65\x77ri\x74\x65"=>array("\x72e\x67\x65\x78p"=>"[_a-\x7aA-Z\x30-9-\x5cp\x4c]*"),"\x6det\x61_\x6b\x65y\x77\x6f\x72ds"=>array("regex\x70"=>"[_\x61-z\x41-\x5a0-\x39-\\\x70\x4c]*"),"\x6det\x61_\x74\x69t\x6ce"=>array("\x72e\x67e\x78p"=>"[_\x61-\x7aA-\x5a\x30-9-\\\x70\x4c]*"),),));}private function create_shops_for_existing_sellers(){${"\x47\x4c\x4f\x42AL\x53"}["\x66\x68\x70\x65\x76\x66\x75\x77\x6a"]="s\x71l";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x68\x70\x65\x76f\x75\x77\x6a"]}="S\x45\x4c\x45C\x54\x20\x73.\x69d\x5fselle\x72,\x20s\x6c\x2e\x63omp\x61ny \n\t\t\t\tFROM "._DB_PREFIX_."s\x65l\x6c\x65\x72\x69n\x66o s\n\t\t\t\t\t\x4cE\x46T\x20\x4aO\x49N "._DB_PREFIX_."\x73\x65\x6cl\x65\x72in\x66o_l\x61ng \x73\x6c \x4f\x4e (s\x2e\x69\x64_sell\x65rinf\x6f\x3d\x73\x6c.i\x64\x5fs\x65\x6cler\x69nf\x6f AN\x44 \x73l\x2e\x69\x64_\x6ca\x6eg=".intval(Configuration::get("P\x53\x5fLA\x4eG_\x44\x45F\x41U\x4cT")).")\n\t\t\t\t\x57\x48ERE\x20i\x64\x5fs\x68\x6fp \x3c\x3d1";${"G\x4cO\x42\x41\x4c\x53"}["\x6f\x73\x70\x70rk\x6d\x67\x62\x6d\x6b"]="\x73\x65\x6c\x6c\x65\x72\x73";$yzprlcut="se\x6c\x6c\x65r";${${"\x47\x4cO\x42\x41LS"}["uxo\x6a\x6c\x70\x72m\x77\x61c"]}=Db::getInstance()->ExecuteS(${${"G\x4c\x4f\x42\x41LS"}["t\x76\x6d\x68f\x73\x68\x6bd"]});$mlcvqwitvbe="\x73\x65\x6cl\x65rs";if(empty(${${"\x47\x4cO\x42\x41\x4cS"}["o\x73p\x70rk\x6d\x67\x62\x6dk"]}))return;foreach(${$mlcvqwitvbe} as${$yzprlcut}){$mjlmxvgngfk="\x73\x65\x6cl\x65\x72";${"\x47\x4cOB\x41L\x53"}["c\x71lx\x66\x61\x6d\x69\x74"]="s\x65l\x6cer";$qkraykyw="s\x65\x6c\x6ce\x72";$mrzmslh="\x73\x71l";${"\x47\x4c\x4f\x42\x41LS"}["\x77\x67\x6e\x76\x65yea\x63\x75"]="\x73\x71\x6c";${${"\x47\x4c\x4fB\x41\x4cS"}["\x6d\x65w\x70\x68\x6a\x6e\x71\x6fu\x79"]}=$this->create_new_shop(${${"\x47\x4c\x4fB\x41\x4c\x53"}["c\x71\x6cx\x66\x61\x6d\x69t"]}["i\x64\x5fse\x6cle\x72"],${$qkraykyw}["c\x6f\x6dpa\x6e\x79"]);${$mrzmslh}="UPD\x41\x54\x45 "._DB_PREFIX_."\x73el\x6cer\x69n\x66o \x53\x45T\x20i\x64\x5fs\x68\x6f\x70=".${${"\x47\x4c\x4fBAL\x53"}["\x6d\x65\x77ph\x6anqo\x75y"]}."\x20\x57HE\x52\x45 \x69\x64_sel\x6c\x65\x72\x3d".intval(${$mjlmxvgngfk}["id\x5fs\x65lle\x72"]);Db::getInstance()->Execute(${${"\x47LO\x42\x41L\x53"}["w\x67\x6e\x76eye\x61\x63\x75"]});}}public static function create_new_shop($id_seller,$name){${"\x47\x4c\x4f\x42\x41\x4cS"}["rg\x75d\x69\x79\x77\x6er\x70\x76"]="\x69d\x5fs\x65\x6cle\x72";$dljglohn="\x6ea\x6d\x65";${"\x47\x4cOB\x41\x4c\x53"}["\x69\x69\x65\x6d\x6b\x6cq\x6ex\x6a\x71\x65"]="\x64e\x66\x73\x68o\x70";${"\x47\x4c\x4fB\x41L\x53"}["\x6dj\x6d\x70\x69j"]="n\x61\x6de";if(empty(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["m\x6bj\x6b\x65d\x6bk\x6f\x77"]}))${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x6bjk\x65d\x6b\x6b\x6f\x77"]}="\x73ho\x70";$irnorbxeooq="s\x71\x6c";if(Shop::shop_name_duplicated(${${"\x47L\x4f\x42\x41\x4cS"}["m\x6bjke\x64\x6b\x6bo\x77"]},0))${$dljglohn}=${${"G\x4c\x4f\x42\x41\x4c\x53"}["m\x6am\x70\x69j"]}."-".${${"\x47\x4cOBALS"}["\x72g\x75\x64\x69\x79\x77n\x72p\x76"]};${"\x47\x4cO\x42\x41\x4cS"}["hz\x6d\x63\x66\x66oz\x71\x6ery"]="id_\x66\x6f\x75nd";${"G\x4c\x4f\x42\x41\x4c\x53"}["kfv\x66\x7aye\x74u\x67y"]="n\x61me";${"GLO\x42\x41\x4c\x53"}["ln\x71\x65\x6bm\x6e\x65\x6d\x74"]="\x69d\x5f\x73h\x6f\x77\x5f\x75r\x6c";${${"\x47LO\x42\x41\x4cS"}["\x69i\x65\x6d\x6b\x6cqn\x78jq\x65"]}=new Shop((int)Configuration::get("PS\x5fSH\x4fP_D\x45\x46\x41\x55LT"));${${"\x47\x4c\x4fB\x41\x4c\x53"}["wca\x76\x75\x66\x72\x6e\x72\x62"]}=new Shop();$shop->name=${${"\x47L\x4f\x42\x41\x4c\x53"}["k\x66\x76fzy\x65tu\x67\x79"]};$shop->id_shop_group=$defshop->id_shop_group;$shop->id_category=$defshop->id_category;$shop->active=1;${"\x47L\x4fBALS"}["l\x7a\x79\x6b\x70\x69\x79\x7a"]="sql";$shop->deleted=0;$shop->id_theme=$defshop->id_theme;$shop->add();${${"G\x4c\x4fBAL\x53"}["\x6c\x7ay\x6bp\x69yz"]}="\x53E\x4c\x45CT\x20\x69\x64_s\x68\x6f\x70\x5fu\x72l\x20\t\x46RO\x4d\x20"._DB_PREFIX_."\x73hop_\x75r\x6c\x20\x57\x48\x45\x52E a\x63t\x69\x76e =\x201 A\x4eD\x20ma\x69\x6e\x3d\x31\x20A\x4e\x44\x20\x69\x64\x5fsh\x6fp\x20=\x20".(int)Configuration::get("P\x53_\x53\x48\x4f\x50_\x44\x45F\x41UL\x54");${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6cn\x71ek\x6d\x6e\x65mt"]}=intval(Db::getInstance()->getValue(${$irnorbxeooq}));${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68\x73\x67s\x6a\x71"]}=new ShopUrl(${${"\x47L\x4fB\x41\x4c\x53"}["\x75o\x65\x72\x62\x71\x73\x61\x75"]});$shopurl->id=0;$shopurl->id_shop=$shop->id;if((int)Configuration::get("\x41\x53\x50_SH\x4fP_URL_\x4d\x4fD\x45")==agilemultipleshop::SHOP_URL_MODE_DOMAIN){$shopurl->domain=Tools::link_rewrite(${${"G\x4cO\x42\x41LS"}["\x6dk\x6ake\x64\x6bk\x6f\x77"]}).".".str_replace("\x77\x77\x77\x2e","",$shopurl->domain);$shopurl->domain_ssl=Tools::link_rewrite(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6dk\x6a\x6b\x65\x64\x6b\x6b\x6f\x77"]}).".".str_replace("\x77\x77\x77.","",$shopurl->domain_ssl);}else{${"\x47LO\x42\x41\x4cS"}["\x6f\x62\x6dqbx\x64\x66\x6bw"]="\x6e\x61m\x65";$shopurl->virtual_uri=Tools::link_rewrite(${${"\x47\x4c\x4f\x42A\x4c\x53"}["o\x62\x6dq\x62\x78d\x66\x6b\x77"]});}${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65k\x77x\x6a\x79\x7a"]="\x69\x64\x5ff\x6fu\x6ed";${${"G\x4cOBAL\x53"}["\x65\x6b\x77\x78jy\x7a"]}=$shopurl->canAddThisUrl($shopurl->domain,$shopurl->domain_ssl,$shopurl->physical_uri,$shopurl->virtual_uri);if(intval(${${"G\x4cOB\x41\x4c\x53"}["\x68zmc\x66\x66\x6f\x7aq\x6e\x72y"]})>0)$shopurl->virtual_uri=$shopurl->virtual_uri."-".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x63l\x6c\x69ng\x69\x73h"]};$shopurl->active=1;$shopurl->add();Tools::generateHtaccess();return$shop->id;}public static function getShopByLocationLevel(){${${"\x47L\x4fBALS"}["\x75\x6ae\x69lo\x76r"]}=Tools::getValue("\x6c\x6f\x63\x61t\x69\x6f\x6e_\x6c\x65ve\x6c");$agbjnoyx="\x6coca\x74\x69on\x5fle\x76\x65l";if(empty(${${"GLOB\x41L\x53"}["u\x6ae\x69lo\x76\x72"]}))${${"G\x4cO\x42\x41L\x53"}["uj\x65\x69\x6c\x6fvr"]}="\x63\x6fu\x6e\x74\x72y";if(!in_array(${${"GL\x4fBA\x4cS"}["\x75\x6aei\x6c\x6f\x76r"]},array("\x63\x6fun\x74r\x79","s\x74\x61te","\x63\x69ty","se\x6cle\x72\x74ype")))${$agbjnoyx}="cust\x6fm";return${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x75\x6a\x65\x69\x6covr"]};}public static function getShopByLocationID(){$brknfzybf="i\x64_\x6c\x6f\x63a\x74\x69o\x6e";${"\x47\x4c\x4f\x42\x41\x4cS"}["o\x6dn\x78tr\x6f\x70\x78"]="\x6c\x6f\x63\x61t\x69\x6fn\x5fl\x65\x76\x65\x6c";${$brknfzybf}=Tools::getValue("i\x64\x5fl\x6f\x63\x61\x74\x69on");${${"G\x4cO\x42\x41\x4c\x53"}["om\x6e\x78\x74r\x6fp\x78"]}=self::getShopByLocationLevel();$qnqeosqv="\x6co\x63\x61\x74i\x6f\x6e_\x6c\x65\x76e\x6c";if((${${"\x47LO\x42\x41L\x53"}["\x75je\x69\x6c\x6f\x76r"]}!="c\x75\x73\x74o\x6d"&&${$qnqeosqv}!="ci\x74\x79")||(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x75\x6a\x65i\x6c\x6f\x76\x72"]}=="\x63u\x73to\x6d"&&AgileMultipleShop::SHOP_BY_CUSTOM_ISINT)){${"G\x4cOB\x41\x4c\x53"}["\x66\x68q\x73\x76z\x77\x6e\x68\x73y"]="\x69\x64\x5f\x6c\x6f\x63a\x74\x69\x6f\x6e";${"G\x4c\x4fB\x41\x4c\x53"}["y\x77\x79i\x73\x74\x66\x76\x77f"]="\x69\x64\x5f\x6c\x6fc\x61\x74\x69\x6fn";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["f\x68qs\x76z\x77\x6eh\x73\x79"]}=(int)${${"GL\x4fBALS"}["\x79w\x79\x69\x73\x74\x66\x76\x77\x66"]};}return${${"\x47\x4cOBA\x4c\x53"}["\x63\x7a\x73\x66oox\x6d"]};}public function getL($key){${"G\x4c\x4fBAL\x53"}["\x7a\x70\x64b\x76b\x78"]="\x6dess\x61ge\x73";${${"\x47\x4c\x4fB\x41LS"}["\x7a\x70d\x62vb\x78"]}=$this->getMessages();return${${"\x47\x4c\x4f\x42A\x4c\x53"}["b\x75\x69\x64fy\x64\x66r"]}[${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6b\x6b\x70u\x75\x6bfh\x68"]}];}public function getMessages(){$dhmrxoxfjww="m\x65\x73\x73\x61\x67\x65s";${${"\x47\x4cO\x42\x41LS"}["\x62ui\x64\x66\x79dfr"]}=array("\x53\x68\x6f\x70\x20By\x20S\x65\x6cl\x65\x72"=>$this->l('Shop By Seller'),"Sh\x6f\x70\x20\x42\x79 \x4co\x63\x61\x74\x69\x6f\x6e"=>$this->l('Shop By Location'));return${$dhmrxoxfjww};}}

Function Calls

None

Variables

None

Stats

MD5 31b3150d9ccb8b8cf219e0214d97565a
Eval Count 0
Decode Time 178 ms