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

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* ///-build_id: 2014041120.2016 /// This source file is subject to the Software..

Decoded Output download

<?php /* 
///-build_id: 2014041120.2016 
 
/// This source file is subject to the Software License Agreement that is bundled with this  
 
/// package in the file license.txt, or you can get it here 
 
/// http://addons-modules.com/store/en/content/3-terms-and-conditions-of-use 
 
/// 
 
/// @copyright  2009-2012 Addons-Modules.com 
 
/// 
*/ 
${"GLOBALS"}["fubucbijevy"]="messages";${"GLOBALS"}["vratokygkog"]="id_location";${"GLOBALS"}["gtrfhqjprly"]="id_found";${"GLOBALS"}["awjfwbrxmc"]="shopurl";${"GLOBALS"}["rgahgcv"]="id_show_url";${"GLOBALS"}["plefushy"]="defshop";${"GLOBALS"}["xclebue"]="id_seller";${"GLOBALS"}["tzwhjjkmh"]="name";${"GLOBALS"}["atemqvjc"]="id_shop";${"GLOBALS"}["skdnmsh"]="seller";${"GLOBALS"}["rlxcpbdegibw"]="sellers";${"GLOBALS"}["ecejrndtdwd"]="sql";${"GLOBALS"}["lgcsnchlhjvx"]="location_level";${"GLOBALS"}["qfvvyqlktf"]="asp_sellers";${"GLOBALS"}["kpgiwxdvwf"]="params";${"GLOBALS"}["leoyrrplmv"]="res";${"GLOBALS"}["volcepneri"]="HOOK_SELLER_HEADER_LOGO";${"GLOBALS"}["xveyjhijltm"]="seller_shop_url";${"GLOBALS"}["scjltfgqb"]="seller_logo_url";${"GLOBALS"}["tocujzcme"]="main_shop";${"GLOBALS"}["etzeptizrd"]="id_shop_owner";${"GLOBALS"}["ksqfofbdtxt"]="sellerinfo";${"GLOBALS"}["drjilzuj"]="location_block_virtualshop";${"GLOBALS"}["lbjcgidre"]="location_block_level";${"GLOBALS"}["gjtnjniophk"]="sellers_block_virtualshop";${"GLOBALS"}["tilhjtqylr"]="header_logo_mode";${"GLOBALS"}["kxrhbtvcfx"]="location_block_style";${"GLOBALS"}["nvrtosyeep"]="location_block_pos";${"GLOBALS"}["ukpoqkcscs"]="sellers_block_pos";${"GLOBALS"}["eesjlsbvyk"]="sellerNbr";${"GLOBALS"}["htpstscut"]="shop_url_mode";${"GLOBALS"}["kunhbbfmhsd"]="sellers_shop_mode";${"GLOBALS"}["vuvspdou"]="health_check";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/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.3";$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(){$crfzcjirwo="adminfolder";$this->_html="<h2>".$this->displayName."</h2>";${"GLOBALS"}["igjswnktmcis"]="adminfolder";$fmhdnlmyhnv="health_check";${$crfzcjirwo}=AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]);${$fmhdnlmyhnv}=AgileInstaller::install_health_check($this->newfiles,$this->name,${${"GLOBALS"}["igjswnktmcis"]});if(!empty(${${"GLOBALS"}["vuvspdou"]}))$this->_html.=${${"GLOBALS"}["vuvspdou"]};$this->_html.=AgileInstaller::show_agile_links();if(Tools::isSubmit("submitSettings")){${"GLOBALS"}["jzwyfagzvnm"]="header_logo_mode";${"GLOBALS"}["jvqwstyzo"]="sellerNbr";$jizygtjlqs="location_block_level";${${"GLOBALS"}["jzwyfagzvnm"]}=Tools::getValue("header_logo_mode");${${"GLOBALS"}["kunhbbfmhsd"]}=Tools::getValue("sellers_shop_mode");${$jizygtjlqs}=Tools::getValue("location_block_level");${${"GLOBALS"}["htpstscut"]}=(int)Tools::getValue("shop_url_mode");$pnxhkgiztiix="sellerNbr";if(!${${"GLOBALS"}["jvqwstyzo"]}=Tools::getValue("sellerNbr")OR empty(${${"GLOBALS"}["eesjlsbvyk"]})){$this->_html.="<div class=\"alert error\">".$this->l('Please fill in the "sellers to be displayed" field.')."</div>";}elseif((int)(${$pnxhkgiztiix})==0){$this->_html.="<div class=\"alert error">".$this->l('Invalid number.')."</div>";}else{$mhvhym="header_logo_mode";Configuration::updateValue("ASP_SELLER_NBR",intval((${${"GLOBALS"}["eesjlsbvyk"]})));Configuration::updateValue("ASP_SELLERS_BLOCK_POSITION",intval(Tools::getValue("sellers_block_pos")));Configuration::updateValue("ASP_HEADER_LOGO_MODE",${$mhvhym});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"}["htpstscut"]});$this->_html.="<div class=\"conf confirm">".$this->l('Settings updated')."</div>";}}$this->displayForm();return$this->_html;}public function displayForm(){$kumuruul="location_block_level";$wuifvl="location_block_level";${"GLOBALS"}["mmsubq"]="sellers_block_pos";$htxpqcdreirv="sellers_block_style";${"GLOBALS"}["pymupjbem"]="sellers_block_style";$uthvrvskt="location_block_virtualshop";$wkqrsjuisnd="header_logo_mode";${${"GLOBALS"}["ukpoqkcscs"]}=intval(Configuration::get("ASP_SELLERS_BLOCK_POSITION"));$rndeuyqv="sellers_block_virtualshop";${"GLOBALS"}["ypnixocb"]="sellers_block_virtualshop";${$wkqrsjuisnd}=Configuration::get("ASP_HEADER_LOGO_MODE");${"GLOBALS"}["udeboehh"]="sellers_block_style";$fwesgdmpj="shop_url_mode";$quzdgslx="location_block_level";${${"GLOBALS"}["pymupjbem"]}=Configuration::get("ASP_SELLERS_BLOCK_STYLE");${$rndeuyqv}=Configuration::get("ASP_SELLERS_BLOCK_VIRTUALSHOP");${${"GLOBALS"}["nvrtosyeep"]}=intval(Configuration::get("ASP_LOCATION_BLOCK_POSITION"));$cauyarhroy="sellers_block_pos";${${"GLOBALS"}["kxrhbtvcfx"]}=(int)Configuration::get("ASP_LOCATION_BLOCK_STYLE");${$uthvrvskt}=(int)Configuration::get("ASP_LOCATION_BLOCK_VIRTUALSHOP");${$kumuruul}=Configuration::get("ASP_LOCATION_BLOCK_LEVEL");${${"GLOBALS"}["htpstscut"]}=(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"}["htpstscut"]}==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" ".(${$fwesgdmpj}==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"}["tilhjtqylr"]}==0?"checked":"")."/>&nbsp;".$this->l('Show main store logo only')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"header_logo_mode\"  value="1\" ".(${${"GLOBALS"}["tilhjtqylr"]}==1?"checked":"")." />&nbsp;".$this->l('Show seller logo only')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"header_logo_mode\"  value=\"2" ".(${${"GLOBALS"}["tilhjtqylr"]}==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"}["mmsubq"]}==1?"checked":"")." />&nbsp;".$this->l('On Left Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name="sellers_block_pos\"  value="2" ".(${$cauyarhroy}==2?"checked":"")."/>&nbsp;".$this->l('On Right Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name="sellers_block_pos\"  value=\"0\" ".(${${"GLOBALS"}["ukpoqkcscs"]}==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\" ".(${$htxpqcdreirv}==0?"checked":"")."/>&nbsp;".$this->l('Flat name list')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name="sellers_block_style"  value=\"1\" ".(${${"GLOBALS"}["udeboehh"]}==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"}["gjtnjniophk"]}==0?"checked":"")."/>&nbsp;".$this->l('No')."&nbsp;&nbsp;
		        <input type=radio name="sellers_block_virtualshop"  value=\"1\" ".(${${"GLOBALS"}["ypnixocb"]}==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"}["nvrtosyeep"]}==1?"checked":"")." />".$this->l('On Left Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name="location_block_pos\"  value="2" ".(${${"GLOBALS"}["nvrtosyeep"]}==2?"checked":"")."/>".$this->l('On Right Column')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"location_block_pos\"  value="0\" ".(${${"GLOBALS"}["nvrtosyeep"]}==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"}["kxrhbtvcfx"]}==0?"checked":"")."/>&nbsp;".$this->l('Flat name list')."&nbsp;&nbsp;&nbsp;
		        <input type=radio name=\"location_block_style\"  value="1\" ".(${${"GLOBALS"}["kxrhbtvcfx"]}==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"}["lbjcgidre"]}=="country"?"selected":"").">".$this->l('Country')."</option>
					<option value=\"state\" ".(${${"GLOBALS"}["lbjcgidre"]}=="state"?"selected":"").">".$this->l('State')."</option>
					<option value="city\" ".(${$wuifvl}=="city"?"selected":"").">".$this->l('City')."</option>
					<option value=\"sellertype\" ".(${${"GLOBALS"}["lbjcgidre"]}=="sellertype"?"selected":"").">".$this->l('Seller Type')."</option>
					<!--option value=\"custom\" ".(${$quzdgslx}=="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"}["drjilzuj"]}==0?"checked":"")."/>&nbsp;".$this->l('No')."&nbsp;&nbsp;
		        <input type=radio name="location_block_virtualshop\"  value="1\" ".(${${"GLOBALS"}["drjilzuj"]}==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(){global$smarty,$cookie;include_once(_PS_ROOT_DIR_."/modules/agilemultipleseller/SellerInfo.php");${${"GLOBALS"}["ksqfofbdtxt"]}=new SellerInfo(SellerInfo::getIdBSellerId(Shop::${${"GLOBALS"}["etzeptizrd"]}),$cookie->id_lang);${${"GLOBALS"}["tocujzcme"]}=new Shop(Configuration::get("PS_SHOP_DEFAULT"));$smarty->assign(array("seller_shop"=>(Shop::${${"GLOBALS"}["etzeptizrd"]}>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;$szjztupsyb="header_logo_mode";${"GLOBALS"}["aywirimx"]="sellerinfo";if(!Module::isInstalled("agilemultipleshop"))return;$spkrurcuivqw="header_logo_mode";include_once(_PS_ROOT_DIR_."/modules/agilemultipleseller/SellerInfo.php");${${"GLOBALS"}["scjltfgqb"]}=(isset(Shop::${${"GLOBALS"}["aywirimx"]})?SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id):"");${"GLOBALS"}["cpfstrrlex"]="seller_logo_url";$qfjiazseepq="seller_logo_url";$ulibscps="HOOK_SELLER_HEADER_LOGO";${${"GLOBALS"}["tilhjtqylr"]}=intval(Configuration::get("ASP_HEADER_LOGO_MODE"));${${"GLOBALS"}["tocujzcme"]}=new Shop(Configuration::get("PS_SHOP_DEFAULT"));${${"GLOBALS"}["xveyjhijltm"]}=Context::getContext()->shop->getBaseURL();${${"GLOBALS"}["volcepneri"]}="<a id="seller_header_logo\" class=\"logo\" href=\"".${${"GLOBALS"}["xveyjhijltm"]}.""><img src=\"".${$qfjiazseepq}."" height="60"></a>";if(${$spkrurcuivqw}==0 OR Shop::${${"GLOBALS"}["etzeptizrd"]}==0)${${"GLOBALS"}["volcepneri"]}="";$smarty->assign(array("header_logo_mode"=>${$szjztupsyb},"base_dir_default"=>$main_shop->getBaseURL(),"id_shop_owner"=>Shop::${${"GLOBALS"}["etzeptizrd"]},"shops_link"=>$this->hookBreadcrumbShops(),"seller_logo_url"=>${${"GLOBALS"}["cpfstrrlex"]},"HOOK_SELLER_HEADER_LOGO"=>${$ulibscps}));return$this->display(__FILE__,"hookheader.tpl");}public function hookRightColumn($params){$vgtxeflwht="res";if(!$this->active)return;${$vgtxeflwht}="";if(intval(Configuration::get("ASP_SELLERS_BLOCK_POSITION"))==2){$fnggneg="params";if(Shop::${${"GLOBALS"}["etzeptizrd"]}==0||intval(Configuration::get("ASP_SELLERS_BLOCK_VIRTUALSHOP"))==1)${${"GLOBALS"}["leoyrrplmv"]}.=$this->showSellerBlock(${$fnggneg});}if(intval(Configuration::get("ASP_LOCATION_BLOCK_POSITION"))==2){$gzunfdtmse="id_shop_owner";$nfjsnxooro="params";if(Shop::${$gzunfdtmse}==0||intval(Configuration::get("ASP_LOCATION_BLOCK_VIRTUALSHOP"))==1)${${"GLOBALS"}["leoyrrplmv"]}.=$this->showLocationBlock(${$nfjsnxooro});}return${${"GLOBALS"}["leoyrrplmv"]};}public function hookLeftColumn($params){if(!$this->active)return;${${"GLOBALS"}["leoyrrplmv"]}="";if(intval(Configuration::get("ASP_SELLERS_BLOCK_POSITION"))==1){if(Shop::${${"GLOBALS"}["etzeptizrd"]}==0||intval(Configuration::get("ASP_SELLERS_BLOCK_VIRTUALSHOP"))==1)${${"GLOBALS"}["leoyrrplmv"]}.=$this->showSellerBlock(${${"GLOBALS"}["kpgiwxdvwf"]});}if(intval(Configuration::get("ASP_LOCATION_BLOCK_POSITION"))==1){${"GLOBALS"}["bjfoxftdui"]="res";if(Shop::${${"GLOBALS"}["etzeptizrd"]}==0||intval(Configuration::get("ASP_LOCATION_BLOCK_VIRTUALSHOP"))==1)${${"GLOBALS"}["bjfoxftdui"]}.=$this->showLocationBlock(${${"GLOBALS"}["kpgiwxdvwf"]});}return${${"GLOBALS"}["leoyrrplmv"]};}private function showSellerBlock($params){global$smarty,$cookie;if(!$this->active)return;${"GLOBALS"}["mnrpggmtrj"]="sql";${"GLOBALS"}["haiibzqbss"]="sql";if(!Module::isInstalled("agilemultipleseller"))return;${"GLOBALS"}["zpipttbwlb"]="asp_sellers";${${"GLOBALS"}["mnrpggmtrj"]}="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"))."
	            ";${${"GLOBALS"}["qfvvyqlktf"]}=Db::getInstance()->ExecuteS(${${"GLOBALS"}["haiibzqbss"]});if(!${${"GLOBALS"}["qfvvyqlktf"]})return;$smarty->assign(array("asp_sellers"=>${${"GLOBALS"}["zpipttbwlb"]},"asp_sellers_block_style"=>intval(Configuration::get("ASP_SELLERS_BLOCK_STYLE"))));return$this->display(__FILE__,"hookblocksellers.tpl");}private function showLocationBlock($params){${"GLOBALS"}["vldhuhrkrc"]="location_level";global$smarty,$cookie;if(!$this->active)return;if(!Module::isInstalled("agilemultipleseller"))return;${${"GLOBALS"}["lgcsnchlhjvx"]}=Configuration::get("ASP_LOCATION_BLOCK_LEVEL");$smarty->assign(array("seller_locations4block"=>AgileMultipleShop::getLocationListNV(${${"GLOBALS"}["vldhuhrkrc"]}),"location_level"=>${${"GLOBALS"}["lgcsnchlhjvx"]},"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){$fnuwtxfcpw="sql";global$cookie;switch(${${"GLOBALS"}["lgcsnchlhjvx"]}){default:case"country":${${"GLOBALS"}["ecejrndtdwd"]}="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"}["ecejrndtdwd"]}="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":${$fnuwtxfcpw}="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":${${"GLOBALS"}["ecejrndtdwd"]}="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"}["ecejrndtdwd"]}="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{${"GLOBALS"}["rkcozqkdyj"]="sql";${${"GLOBALS"}["rkcozqkdyj"]}="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"}["ecejrndtdwd"]}))return array();return Db::getInstance()->ExecuteS(${${"GLOBALS"}["ecejrndtdwd"]});}public static function init_shop_header(){global$smarty,$cookie;$nivdcpztwud="main_shop";${$nivdcpztwud}=new Shop(Configuration::get("PS_SHOP_DEFAULT"));$muyjyx="sellerinfo";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"}["etzeptizrd"]},"seller_logo_url"=>(isset(Shop::${$muyjyx})?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;${"GLOBALS"}["fdjmjmiethe"]="id_shop_owner";if($_SESSION["id_shop_owner"]!=Shop::${${"GLOBALS"}["fdjmjmiethe"]}){$_SESSION["id_shop_owner"]=Shop::${${"GLOBALS"}["etzeptizrd"]};Context::getContext()->smarty->clearAllCache();}}public static function get_rewrite_rules(){return 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"}["bhchnlerocy"]="sellers";${${"GLOBALS"}["ecejrndtdwd"]}="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"}["bhchnlerocy"]}=Db::getInstance()->ExecuteS(${${"GLOBALS"}["ecejrndtdwd"]});if(empty(${${"GLOBALS"}["rlxcpbdegibw"]}))return;foreach(${${"GLOBALS"}["rlxcpbdegibw"]} as${${"GLOBALS"}["skdnmsh"]}){$jckbhmg="seller";${"GLOBALS"}["xsqlewyumtb"]="seller";${${"GLOBALS"}["atemqvjc"]}=$this->create_new_shop(${$jckbhmg}["id_seller"],${${"GLOBALS"}["xsqlewyumtb"]}["company"]);${${"GLOBALS"}["ecejrndtdwd"]}="UPDATE "._DB_PREFIX_."sellerinfo SET id_shop=".${${"GLOBALS"}["atemqvjc"]}." WHERE id_seller=".intval(${${"GLOBALS"}["skdnmsh"]}["id_seller"]);Db::getInstance()->Execute(${${"GLOBALS"}["ecejrndtdwd"]});}}public static function create_new_shop($id_seller,$name){${"GLOBALS"}["jpmiaes"]="name";${"GLOBALS"}["foefdpxk"]="name";$kwhubrtfc="shop";if(empty(${${"GLOBALS"}["tzwhjjkmh"]}))${${"GLOBALS"}["tzwhjjkmh"]}="shop";if(Shop::shop_name_duplicated(${${"GLOBALS"}["jpmiaes"]},0))${${"GLOBALS"}["foefdpxk"]}=${${"GLOBALS"}["tzwhjjkmh"]}."-".${${"GLOBALS"}["xclebue"]};${${"GLOBALS"}["plefushy"]}=new Shop((int)Configuration::get("PS_SHOP_DEFAULT"));${$kwhubrtfc}=new Shop();$shop->name=${${"GLOBALS"}["tzwhjjkmh"]};$shop->id_shop_group=$defshop->id_shop_group;$shop->id_category=$defshop->id_category;$shop->active=1;$shop->deleted=0;${"GLOBALS"}["xeddeqli"]="id_show_url";${"GLOBALS"}["kcskatmcpks"]="sql";$shop->id_theme=$defshop->id_theme;$shop->add();${${"GLOBALS"}["ecejrndtdwd"]}="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"}["rgahgcv"]}=intval(Db::getInstance()->getValue(${${"GLOBALS"}["kcskatmcpks"]}));${${"GLOBALS"}["awjfwbrxmc"]}=new ShopUrl(${${"GLOBALS"}["xeddeqli"]});$shopurl->id=0;$shopurl->id_shop=$shop->id;if((int)Configuration::get("ASP_SHOP_URL_MODE")==agilemultipleshop::SHOP_URL_MODE_DOMAIN){$vlydxwduz="name";${"GLOBALS"}["lfybmip"]="name";$shopurl->domain=Tools::link_rewrite(${$vlydxwduz}).".".str_replace("www.","",$shopurl->domain);$shopurl->domain_ssl=Tools::link_rewrite(${${"GLOBALS"}["lfybmip"]}).".".str_replace("www.","",$shopurl->domain_ssl);}else{${"GLOBALS"}["abbnelkttw"]="name";$shopurl->virtual_uri=Tools::link_rewrite(${${"GLOBALS"}["abbnelkttw"]});}${${"GLOBALS"}["gtrfhqjprly"]}=$shopurl->canAddThisUrl($shopurl->domain,$shopurl->domain_ssl,$shopurl->physical_uri,$shopurl->virtual_uri);if(intval(${${"GLOBALS"}["gtrfhqjprly"]})>0)$shopurl->virtual_uri=$shopurl->virtual_uri."-".${${"GLOBALS"}["xclebue"]};$shopurl->active=1;$shopurl->add();Tools::generateHtaccess();return$shop->id;}public static function getShopByLocationLevel(){$mentsvx="location_level";${${"GLOBALS"}["lgcsnchlhjvx"]}=Tools::getValue("location_level");$jsbueuvtq="location_level";if(empty(${${"GLOBALS"}["lgcsnchlhjvx"]}))${$jsbueuvtq}="country";if(!in_array(${${"GLOBALS"}["lgcsnchlhjvx"]},array("country","state","city","sellertype")))${$mentsvx}="custom";return${${"GLOBALS"}["lgcsnchlhjvx"]};}public static function getShopByLocationID(){${"GLOBALS"}["xfinsqit"]="location_level";$qevmufgevwc="id_location";${$qevmufgevwc}=Tools::getValue("id_location");${${"GLOBALS"}["lgcsnchlhjvx"]}=self::getShopByLocationLevel();if((${${"GLOBALS"}["lgcsnchlhjvx"]}!="custom"&&${${"GLOBALS"}["xfinsqit"]}!="city")||(${${"GLOBALS"}["lgcsnchlhjvx"]}=="custom"&&AgileMultipleShop::SHOP_BY_CUSTOM_ISINT)){${"GLOBALS"}["ubyipcw"]="id_location";${${"GLOBALS"}["vratokygkog"]}=(int)${${"GLOBALS"}["ubyipcw"]};}return${${"GLOBALS"}["vratokygkog"]};}public function getL($key){$toykieh="key";${${"GLOBALS"}["fubucbijevy"]}=$this->getMessages();return${${"GLOBALS"}["fubucbijevy"]}[${$toykieh}];}public function getMessages(){${"GLOBALS"}["myiwvyr"]="messages";${${"GLOBALS"}["myiwvyr"]}=array("Shop By Seller"=>$this->l('Listado de tiendas'),"Shop By Location"=>$this->l('Shop By Location'));return${${"GLOBALS"}["fubucbijevy"]};}} 
?>

Did this file decode correctly?

Original Code

<?php /*
///-build_id: 2014041120.2016

/// This source file is subject to the Software License Agreement that is bundled with this 

/// package in the file license.txt, or you can get it here

/// http://addons-modules.com/store/en/content/3-terms-and-conditions-of-use

///

/// @copyright  2009-2012 Addons-Modules.com

///
*/
${"\x47L\x4f\x42\x41\x4c\x53"}["\x66u\x62\x75\x63\x62\x69\x6a\x65\x76\x79"]="m\x65\x73\x73ages";${"GLOBA\x4c\x53"}["v\x72\x61\x74\x6f\x6b\x79\x67\x6b\x6f\x67"]="i\x64\x5f\x6c\x6f\x63a\x74io\x6e";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x67trfh\x71\x6a\x70r\x6c\x79"]="\x69d\x5ff\x6fund";${"\x47\x4cO\x42\x41\x4cS"}["\x61w\x6a\x66\x77\x62\x72\x78\x6dc"]="\x73\x68\x6f\x70u\x72\x6c";${"\x47LOBA\x4cS"}["\x72g\x61\x68\x67\x63\x76"]="i\x64\x5f\x73\x68\x6fw\x5fur\x6c";${"GLO\x42\x41\x4cS"}["\x70\x6c\x65\x66\x75\x73\x68\x79"]="\x64\x65fsh\x6f\x70";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78c\x6ce\x62\x75\x65"]="\x69d_\x73\x65\x6c\x6ce\x72";${"\x47\x4c\x4f\x42A\x4cS"}["\x74z\x77\x68\x6a\x6a\x6b\x6d\x68"]="\x6ea\x6d\x65";${"\x47LO\x42\x41\x4cS"}["\x61\x74e\x6dq\x76\x6ac"]="\x69\x64_\x73\x68\x6f\x70";${"GL\x4f\x42\x41\x4cS"}["\x73\x6b\x64\x6e\x6d\x73\x68"]="\x73\x65l\x6c\x65\x72";${"G\x4cOBAL\x53"}["r\x6cx\x63\x70\x62\x64\x65gibw"]="\x73\x65\x6c\x6c\x65rs";${"\x47\x4cO\x42\x41\x4cS"}["e\x63\x65\x6a\x72\x6edt\x64\x77\x64"]="s\x71l";${"G\x4cO\x42\x41\x4c\x53"}["\x6c\x67\x63sn\x63h\x6c\x68\x6a\x76\x78"]="\x6co\x63\x61\x74io\x6e\x5f\x6cev\x65l";${"GLO\x42\x41\x4cS"}["qf\x76\x76y\x71\x6c\x6bt\x66"]="as\x70\x5fse\x6c\x6c\x65rs";${"\x47L\x4fB\x41\x4c\x53"}["\x6bp\x67\x69\x77\x78\x64\x76\x77f"]="\x70a\x72\x61m\x73";${"\x47L\x4f\x42A\x4cS"}["l\x65\x6fyr\x72\x70l\x6d\x76"]="\x72e\x73";${"\x47\x4cOB\x41\x4c\x53"}["\x76ol\x63e\x70\x6e\x65r\x69"]="HO\x4f\x4b\x5fSEL\x4c\x45\x52\x5f\x48E\x41\x44E\x52\x5fL\x4f\x47\x4f";${"\x47\x4c\x4fBA\x4cS"}["\x78vey\x6ah\x69\x6a\x6c\x74\x6d"]="s\x65\x6c\x6ce\x72\x5f\x73h\x6f\x70\x5fur\x6c";${"\x47\x4c\x4fB\x41LS"}["\x73\x63\x6a\x6c\x74f\x67q\x62"]="\x73\x65l\x6c\x65r\x5fl\x6fg\x6f_\x75\x72\x6c";${"\x47LOB\x41\x4c\x53"}["\x74\x6fc\x75j\x7ac\x6d\x65"]="\x6da\x69\x6e\x5f\x73\x68\x6f\x70";${"G\x4cO\x42\x41L\x53"}["\x65\x74z\x65p\x74i\x7ard"]="\x69\x64\x5f\x73\x68o\x70\x5f\x6f\x77n\x65\x72";${"\x47\x4cOB\x41\x4c\x53"}["\x6bs\x71f\x6ff\x62\x64\x74\x78t"]="\x73\x65\x6cl\x65rin\x66\x6f";${"\x47\x4cOB\x41\x4c\x53"}["\x64\x72ji\x6c\x7au\x6a"]="\x6c\x6f\x63\x61\x74\x69\x6fn\x5fbl\x6f\x63k_\x76\x69\x72\x74u\x61\x6c\x73\x68\x6f\x70";${"\x47\x4c\x4fBA\x4c\x53"}["\x6c\x62\x6ac\x67\x69\x64\x72\x65"]="l\x6f\x63\x61t\x69\x6fn\x5fbl\x6fck\x5fl\x65ve\x6c";${"\x47L\x4f\x42\x41\x4c\x53"}["\x67\x6a\x74\x6ej\x6e\x69\x6f\x70\x68\x6b"]="\x73el\x6c\x65r\x73\x5f\x62l\x6f\x63\x6b_\x76\x69\x72\x74\x75\x61l\x73\x68\x6fp";${"GLO\x42\x41\x4c\x53"}["\x74\x69\x6c\x68\x6a\x74\x71\x79l\x72"]="\x68\x65\x61\x64\x65r\x5f\x6cog\x6f\x5f\x6dod\x65";${"G\x4cO\x42\x41L\x53"}["\x6b\x78r\x68\x62tv\x63\x66x"]="l\x6f\x63\x61t\x69\x6f\x6e_\x62\x6c\x6f\x63\x6b\x5f\x73\x74y\x6c\x65";${"GL\x4f\x42AL\x53"}["\x6evr\x74\x6fs\x79\x65\x65p"]="\x6c\x6f\x63\x61t\x69\x6f\x6e\x5fbl\x6fc\x6b\x5f\x70\x6fs";${"\x47\x4cO\x42A\x4c\x53"}["\x75\x6b\x70oqk\x63\x73\x63\x73"]="\x73\x65\x6cl\x65\x72\x73_\x62\x6c\x6f\x63\x6b\x5f\x70\x6f\x73";${"G\x4cO\x42\x41\x4cS"}["\x65\x65s\x6a\x6cs\x62vy\x6b"]="\x73\x65\x6c\x6c\x65\x72N\x62\x72";${"\x47\x4c\x4fB\x41LS"}["\x68\x74\x70st\x73cut"]="\x73h\x6f\x70\x5f\x75\x72\x6c\x5f\x6dod\x65";${"\x47\x4c\x4f\x42A\x4cS"}["k\x75\x6eh\x62bf\x6d\x68\x73\x64"]="\x73\x65\x6c\x6c\x65rs\x5f\x73\x68o\x70_m\x6f\x64\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["vu\x76sp\x64ou"]="\x68\x65\x61\x6c\x74\x68\x5f\x63\x68\x65\x63\x6b";if(!class_exists("\x41\x67i\x6ceIn\x73\x74\x61\x6cler")){include_once(_PS_ROOT_DIR_."/\x6do\x64\x75\x6ces/\x61\x67i\x6ce\x6dul\x74i\x70\x6c\x65\x73h\x6fp/\x69nst\x61\x6c\x6c/".(_PS_VERSION_>"\x31\x2e\x35"?"\x31.\x35x":"\x31.\x34\x78")."/\x63las\x73\x65s/\x41gi\x6c\x65\x49\x6e\x73t\x61\x6c\x6ce\x72.\x70\x68p");eval("c\x6c\x61s\x73\x20Agil\x65\x49n\x73ta\x6c\x6cer\x20\x65x\x74\x65\x6e\x64\x73 Ag\x69\x6c\x65\x49n\x73t\x61\x6cl\x65r\x43\x6fr\x65 {}");}if(!class_exists("\x41gi\x6c\x65M\x6fdu\x6ce")){include_once(_PS_ROOT_DIR_."/mo\x64ul\x65\x73/a\x67il\x65\x6dult\x69\x70\x6ce\x73ho\x70/i\x6es\x74al\x6c/".(version_compare(_PS_VERSION_,"\x31\x2e\x35",">")?"\x31.5\x78":"1\x2e\x34\x78")."/\x63la\x73s\x65\x73/\x6d\x6f\x64u\x6c\x65/Ag\x69\x6ce\x4do\x64\x75le.p\x68p");eval("\x63las\x73\x20\x41g\x69le\x4d\x6f\x64ule\x20ext\x65nd\x73 \x41g\x69l\x65\x4dodu\x6c\x65C\x6f\x72e {}");}class AgileMultipleShop extends AgileModule{const INSTALL_SQL_FILE="ins\x74al\x6c\x2e\x73ql";const SHOP_BY_CUSTOM_FIELD="\x70os\x74co\x64\x65";const SHOP_BY_CUSTOM_NAME="Po\x73\x74co\x64e";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_\x53HOP\x5fU\x52L_\x4dODE","\x41S\x50_\x53\x45\x4c\x4cER\x5f\x4e\x42\x52","AS\x50_SEL\x4c\x45R\x53_\x42\x4c\x4f\x43\x4b\x5f\x50O\x53I\x54IO\x4e","AS\x50_\x53ELLE\x52S_B\x4cO\x43K\x5fSTYLE","\x41SP\x5f\x48\x45\x41\x44\x45R\x5fLO\x47O_\x4d\x4fDE","\x41SP_L\x4fCA\x54I\x4f\x4e\x5f\x42\x4cO\x43K\x5fP\x4f\x53I\x54ION","A\x53\x50_\x4c\x4f\x43\x41TI\x4f\x4e_B\x4cO\x43\x4b\x5fSTY\x4c\x45","\x41S\x50_\x4c\x4fCA\x54\x49\x4fN\x5f\x42LOCK_\x4c\x45V\x45L","\x41SP_LO\x43ATIO\x4e_\x42\x4c\x4f\x43K_\x56\x49RTU\x41LS\x48\x4fP","\x41S\x50\x5fSE\x4c\x4c\x45RS_\x42\x4cOC\x4b_VI\x52\x54U\x41\x4c\x53H\x4fP"));$this->newfiles=array("cla\x73\x73\x65\x73/\x41\x67\x69\x6c\x65\x49\x6est\x61ll\x65\x72.\x70h\x70"=>array("1.\x34\x78"=>"c\x6cas\x73e\x73/A\x67ileIns\x74al\x6ce\x72\x2e\x70h\x70","1\x2e5\x78"=>"c\x6c\x61\x73\x73e\x73/\x41gi\x6c\x65I\x6e\x73\x74all\x65\x72\x2ep\x68\x70"),"\x63la\x73\x73\x65\x73/Agi\x6c\x65H\x65\x6c\x70\x65r\x2ephp"=>array("\x31.\x34\x78"=>"\x63la\x73\x73es/A\x67\x69l\x65\x48e\x6c\x70\x65r.ph\x70","\x31.5x"=>"\x63\x6casse\x73/\x41gileH\x65\x6c\x70er.\x70h\x70"),"\x63\x6c\x61\x73\x73\x65\x73/A\x67ileS\x65lle\x72\x4d\x61\x6e\x61\x67e\x72\x2e\x70\x68p"=>array("1.4x"=>"\x63\x6c\x61s\x73e\x73/\x41gi\x6ceSe\x6c\x6c\x65rMana\x67\x65\x72\x2e\x70\x68p","1\x2e\x35\x78"=>"\x63\x6c\x61s\x73\x65s/Agile\x53e\x6cler\x4dan\x61g\x65r.\x70h\x70"),"clas\x73\x65\x73/m\x6f\x64u\x6c\x65/\x41\x67\x69leM\x6f\x64\x75l\x65.p\x68p"=>array("\x31\x2e4x"=>"\x63\x6ca\x73\x73e\x73/mo\x64u\x6ce/A\x67ile\x4dod\x75le.\x70hp","1\x2e5x"=>"cl\x61\x73s\x65\x73/mo\x64u\x6c\x65/A\x67ileM\x6fdul\x65\x2eph\x70"),"cont\x72\x6fll\x65r\x73/\x66ron\x74/\x41\x67\x69\x6ce\x53\x65l\x6cersCo\x6et\x72\x6f\x6cle\x72\x2ep\x68p"=>array("\x31.4x"=>"\x63\x6fn\x74\x72\x6f\x6cler\x73/\x41\x67\x69\x6ceS\x65\x6c\x6c\x65\x72\x73\x43on\x74rol\x6cer.php","\x31.5\x78"=>"c\x6f\x6et\x72\x6f\x6cl\x65rs/fr\x6fn\x74/\x41g\x69l\x65Se\x6c\x6c\x65\x72\x73Co\x6e\x74\x72o\x6c\x6c\x65r.ph\x70"),"\x63o\x6et\x72\x6f\x6c\x6ce\x72s/\x66\x72ont/\x53\x65\x6cle\x72\x4c\x6fc\x61t\x69\x6f\x6eC\x6f\x6e\x74ro\x6cle\x72\x2e\x70\x68\x70"=>array("\x31.4\x78"=>"\x63\x6fn\x74\x72\x6fl\x6ce\x72s/\x53\x65\x6cle\x72Lo\x63\x61\x74i\x6fn\x43ontr\x6f\x6c\x6c\x65\x72\x2ephp","\x31.5x"=>"\x63on\x74ro\x6c\x6c\x65\x72s/front/\x53\x65ll\x65\x72L\x6f\x63\x61\x74i\x6fnCo\x6e\x74\x72o\x6c\x6ce\x72.\x70h\x70"));$this->shared_override=array();$this->version_dependencies=array("a\x67ile\x6d\x75l\x74\x69p\x6ces\x65l\x6c\x65r"=>"\x32.2.1");$this->name="ag\x69l\x65m\x75\x6ct\x69\x70l\x65\x73h\x6fp";$this->tab="\x66ro\x6et\x5fo\x66f\x69\x63e\x5f\x66ea\x74ur\x65s";$this->version="\x31.2\x2e\x33";$this->author="\x61\x64do\x6es-\x6d\x6f\x64u\x6c\x65\x73.\x63o\x6d";$this->dependencies=array("a\x67il\x65\x6du\x6cti\x70l\x65\x73e\x6cle\x72");$this->ps_versions_compliancy=array("m\x69\x6e"=>"\x31.\x35","\x6d\x61\x78"=>"1\x2e\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("h\x65ad\x65\x72")==false OR$this->registerHook("\x6ce\x66t\x43\x6f\x6c\x75\x6dn")==false OR$this->registerHook("ri\x67\x68tC\x6f\x6cu\x6dn")==false OR!$this->setDefaultConfig("A\x53P\x5f\x53E\x4cL\x45R_NBR",15)OR!$this->setDefaultConfig("ASP\x5fS\x45\x4c\x4cERS\x5f\x42\x4cOC\x4b\x5f\x50\x4f\x53\x49T\x49O\x4e",1)OR!$this->setDefaultConfig("\x41S\x50\x5f\x53\x45LLE\x52\x53\x5f\x42L\x4f\x43K_STY\x4c\x45",0)OR!$this->setDefaultConfig("ASP_\x53\x45LLERS\x5f\x42\x4c\x4f\x43K\x5f\x56\x49\x52\x54U\x41\x4c\x53\x48\x4fP",0)OR!$this->setDefaultConfig("AS\x50\x5fHE\x41\x44E\x52\x5f\x4c\x4fG\x4f_\x4d\x4f\x44\x45",0)OR!$this->setDefaultConfig("A\x53\x50\x5fLOCA\x54\x49\x4fN\x5fBLOC\x4b_POS\x49TIO\x4e",1)OR!$this->setDefaultConfig("A\x53\x50\x5f\x4cO\x43ATIO\x4e\x5fBL\x4fCK\x5fS\x54\x59\x4cE",0)OR!$this->setDefaultConfig("ASP\x5f\x4cO\x43A\x54IO\x4e_BLOCK_L\x45VEL","c\x6f\x75n\x74\x72\x79")OR!$this->setDefaultConfig("\x41S\x50_S\x48OP\x5f\x55\x52L\x5f\x4dO\x44\x45",AgileMultipleShop::SHOP_URL_MODE_VIRTUAL)OR!$this->setDefaultConfig("\x41\x53\x50_\x4c\x4f\x43ATION\x5f\x42\x4c\x4f\x43K\x5fL\x45V\x45L","\x63ount\x72y")OR!$this->setDefaultConfig("A\x53\x50\x5f\x4cOCATIO\x4e_\x42LO\x43\x4b_V\x49R\x54\x55AL\x53HO\x50",0))return false;if(!AgileInstaller::create_tab("S\x65\x6c\x6c\x65\x72\x20Ty\x70\x65s","Ag\x69\x6ceS\x65\x6cl\x65\x72Typ\x65\x73","\x41d\x6d\x69n\x41d\x6din",$this->name))return false;AgileInstaller::init_tab_prmission_for_existing_profiles("\x41gi\x6c\x65\x53\x65l\x6ce\x72\x54\x79\x70e\x73",1,1,1,1);$this->create_shops_for_existing_sellers();if(version_compare(_PS_VERSION_,"1.5",">\x3d"))Autoload::getInstance()->generateIndex();return true;}public function uninstall(){if(!parent::uninstall())return false;AgileInstaller::delete_tab("\x41gi\x6c\x65S\x65ller\x54y\x70es");return true;}public function getContent(){$crfzcjirwo="\x61\x64\x6d\x69\x6efo\x6c\x64e\x72";$this->_html="\x3ch\x32>".$this->displayName."</\x68\x32\x3e";${"\x47L\x4f\x42A\x4c\x53"}["i\x67\x6a\x73\x77\x6e\x6b\x74m\x63is"]="a\x64mi\x6ef\x6fl\x64e\x72";$fmhdnlmyhnv="h\x65\x61\x6c\x74\x68\x5f\x63\x68\x65\x63\x6b";${$crfzcjirwo}=AgileInstaller::detect_admin_folder($_SERVER["\x53CR\x49P\x54_FI\x4c\x45\x4e\x41\x4d\x45"]);${$fmhdnlmyhnv}=AgileInstaller::install_health_check($this->newfiles,$this->name,${${"G\x4c\x4f\x42ALS"}["i\x67\x6a\x73\x77\x6e\x6b\x74\x6d\x63i\x73"]});if(!empty(${${"\x47\x4cO\x42A\x4cS"}["\x76\x75v\x73\x70\x64\x6f\x75"]}))$this->_html.=${${"G\x4c\x4f\x42AL\x53"}["\x76u\x76\x73\x70\x64o\x75"]};$this->_html.=AgileInstaller::show_agile_links();if(Tools::isSubmit("\x73ub\x6d\x69\x74\x53ett\x69\x6eg\x73")){${"\x47\x4c\x4fBA\x4c\x53"}["\x6a\x7a\x77y\x66a\x67\x7a\x76n\x6d"]="\x68\x65\x61\x64e\x72\x5fl\x6f\x67\x6f\x5f\x6do\x64\x65";${"GL\x4f\x42AL\x53"}["j\x76\x71\x77\x73\x74\x79z\x6f"]="\x73\x65l\x6ce\x72\x4e\x62r";$jizygtjlqs="loc\x61\x74\x69o\x6e_\x62lo\x63\x6b\x5fl\x65\x76\x65\x6c";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6az\x77\x79fag\x7a\x76\x6e\x6d"]}=Tools::getValue("he\x61de\x72_l\x6f\x67o_\x6d\x6f\x64e");${${"G\x4cO\x42\x41\x4c\x53"}["k\x75nhb\x62f\x6dh\x73\x64"]}=Tools::getValue("se\x6cl\x65\x72s\x5f\x73hop_mode");${$jizygtjlqs}=Tools::getValue("l\x6f\x63ati\x6f\x6e_bl\x6f\x63k\x5f\x6ce\x76\x65l");${${"\x47L\x4f\x42\x41\x4c\x53"}["\x68\x74p\x73\x74\x73\x63\x75t"]}=(int)Tools::getValue("\x73\x68\x6f\x70\x5f\x75rl\x5f\x6d\x6fd\x65");$pnxhkgiztiix="\x73\x65\x6cle\x72N\x62\x72";if(!${${"\x47\x4c\x4f\x42\x41LS"}["\x6av\x71\x77\x73\x74y\x7a\x6f"]}=Tools::getValue("\x73\x65l\x6c\x65\x72Nb\x72")OR empty(${${"\x47L\x4f\x42\x41LS"}["\x65\x65s\x6al\x73\x62v\x79\x6b"]})){$this->_html.="\x3c\x64\x69\x76\x20cl\x61s\x73\x3d\"aler\x74 e\x72ro\x72\"\x3e".$this->l('Please fill in the "sellers to be displayed" field.')."</d\x69\x76>";}elseif((int)(${$pnxhkgiztiix})==0){$this->_html.="<\x64i\x76 \x63l\x61\x73\x73=\"\x61le\x72\x74\x20er\x72\x6fr\x22>".$this->l('Invalid number.')."\x3c/d\x69v\x3e";}else{$mhvhym="\x68e\x61d\x65r\x5fl\x6fg\x6f\x5fm\x6fd\x65";Configuration::updateValue("\x41S\x50_\x53\x45L\x4c\x45R_NB\x52",intval((${${"\x47L\x4f\x42\x41L\x53"}["\x65es\x6a\x6c\x73\x62vyk"]})));Configuration::updateValue("ASP\x5f\x53E\x4c\x4c\x45\x52S_\x42\x4c\x4fC\x4b\x5f\x50OS\x49T\x49O\x4e",intval(Tools::getValue("s\x65\x6cle\x72s_b\x6c\x6fck_po\x73")));Configuration::updateValue("ASP_\x48EA\x44ER\x5fL\x4fG\x4f_MO\x44E",${$mhvhym});Configuration::updateValue("AS\x50\x5f\x53E\x4c\x4cERS_\x42L\x4f\x43\x4b\x5fSTYL\x45",intval(Tools::getValue("\x73\x65ller\x73\x5f\x62\x6co\x63\x6b_\x73tyl\x65")));Configuration::updateValue("\x41S\x50_\x53ELL\x45R\x53_B\x4cO\x43K\x5fVI\x52T\x55\x41\x4c\x53H\x4f\x50",intval(Tools::getValue("\x73el\x6cer\x73_blo\x63\x6b_v\x69\x72\x74\x75\x61ls\x68op")));Configuration::updateValue("A\x53\x50_LO\x43ATIO\x4e\x5fB\x4cOCK_P\x4fS\x49\x54\x49O\x4e",intval(Tools::getValue("locatio\x6e\x5f\x62l\x6fck_pos")));Configuration::updateValue("ASP_L\x4fC\x41\x54\x49\x4fN\x5f\x42\x4c\x4fC\x4b\x5f\x53TY\x4c\x45",intval(Tools::getValue("\x6c\x6fcat\x69\x6f\x6e_\x62l\x6f\x63k\x5f\x73\x74yle")));Configuration::updateValue("\x41SP_\x4c\x4f\x43\x41T\x49ON_\x42L\x4f\x43K_\x56IR\x54\x55\x41\x4cS\x48O\x50",intval(Tools::getValue("l\x6fca\x74ion_\x62lo\x63\x6b_\x76irtu\x61l\x73\x68\x6fp")));Configuration::updateValue("ASP_\x4cO\x43A\x54\x49O\x4e_\x42\x4cOCK_LE\x56EL",Tools::getValue("l\x6fca\x74ion_b\x6coc\x6b_lev\x65l"));Configuration::updateValue("A\x53P\x5f\x53HO\x50_\x55\x52\x4c_MO\x44E",${${"GLO\x42\x41LS"}["\x68\x74\x70\x73t\x73\x63\x75t"]});$this->_html.="\x3cdiv \x63\x6c\x61\x73\x73=\"co\x6ef\x20\x63onfi\x72m\x22>".$this->l('Settings updated')."</\x64i\x76>";}}$this->displayForm();return$this->_html;}public function displayForm(){$kumuruul="l\x6f\x63a\x74i\x6f\x6e_\x62\x6c\x6fc\x6b_\x6c\x65\x76el";$wuifvl="l\x6f\x63a\x74\x69on_\x62\x6c\x6f\x63\x6b\x5f\x6c\x65v\x65l";${"\x47LO\x42A\x4cS"}["m\x6d\x73\x75\x62\x71"]="\x73\x65\x6c\x6c\x65\x72s\x5f\x62\x6c\x6f\x63\x6b_p\x6f\x73";$htxpqcdreirv="\x73e\x6cle\x72\x73_\x62\x6co\x63k_\x73t\x79l\x65";${"G\x4c\x4f\x42\x41\x4cS"}["\x70\x79m\x75\x70j\x62\x65\x6d"]="\x73\x65\x6c\x6c\x65\x72s\x5f\x62\x6c\x6fc\x6b_\x73\x74\x79\x6ce";$uthvrvskt="\x6coca\x74\x69\x6f\x6e_\x62\x6c\x6fc\x6b\x5f\x76\x69\x72\x74ua\x6c\x73\x68\x6f\x70";$wkqrsjuisnd="\x68\x65a\x64er\x5f\x6co\x67\x6f_\x6d\x6f\x64e";${${"\x47\x4cOB\x41L\x53"}["\x75\x6bp\x6fq\x6bc\x73\x63\x73"]}=intval(Configuration::get("AS\x50\x5fSE\x4cLERS\x5fB\x4c\x4fCK_POS\x49\x54I\x4f\x4e"));$rndeuyqv="sell\x65rs\x5f\x62\x6coc\x6b_\x76\x69\x72\x74\x75\x61l\x73\x68\x6f\x70";${"G\x4c\x4f\x42\x41\x4cS"}["\x79pn\x69x\x6f\x63b"]="\x73e\x6c\x6c\x65\x72s\x5f\x62\x6c\x6f\x63\x6b_\x76\x69r\x74\x75\x61\x6c\x73h\x6fp";${$wkqrsjuisnd}=Configuration::get("\x41SP_\x48\x45ADER_\x4c\x4fG\x4f\x5fM\x4fDE");${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75d\x65\x62\x6feh\x68"]="\x73\x65\x6c\x6c\x65rs_\x62l\x6f\x63\x6b_\x73t\x79\x6c\x65";$fwesgdmpj="s\x68op\x5f\x75r\x6c\x5fmo\x64\x65";$quzdgslx="loc\x61\x74i\x6f\x6e\x5fbl\x6f\x63\x6b_\x6c\x65\x76\x65l";${${"\x47L\x4fBA\x4c\x53"}["p\x79\x6d\x75p\x6a\x62\x65\x6d"]}=Configuration::get("\x41\x53\x50\x5fSE\x4c\x4cE\x52\x53\x5f\x42LO\x43K_\x53T\x59\x4c\x45");${$rndeuyqv}=Configuration::get("\x41S\x50_\x53E\x4c\x4cER\x53_B\x4cO\x43\x4b_\x56\x49\x52T\x55ALSH\x4f\x50");${${"GL\x4f\x42\x41L\x53"}["\x6e\x76\x72\x74\x6f\x73ye\x65\x70"]}=intval(Configuration::get("A\x53\x50\x5fL\x4fCA\x54\x49\x4fN\x5f\x42\x4c\x4fC\x4b_\x50OS\x49\x54\x49ON"));$cauyarhroy="\x73e\x6c\x6ce\x72\x73\x5fbl\x6fc\x6b\x5f\x70o\x73";${${"G\x4c\x4fB\x41\x4cS"}["\x6b\x78\x72\x68\x62\x74v\x63\x66\x78"]}=(int)Configuration::get("AS\x50\x5f\x4c\x4fCA\x54\x49O\x4e_BLO\x43\x4b\x5fS\x54YLE");${$uthvrvskt}=(int)Configuration::get("AS\x50_LOC\x41TI\x4fN_B\x4cOC\x4b\x5fVI\x52\x54U\x41\x4cSHO\x50");${$kumuruul}=Configuration::get("A\x53P_\x4cOCA\x54\x49\x4fN_BL\x4fCK_\x4c\x45VE\x4c");${${"\x47L\x4f\x42\x41\x4cS"}["\x68t\x70st\x73cu\x74"]}=(int)Configuration::get("\x41\x53P\x5f\x53\x48O\x50_UR\x4c\x5f\x4d\x4fD\x45");$this->_html.="\n\t\t<f\x6frm\x20\x61c\x74ion\x3d\x22".$_SERVER["R\x45\x51U\x45ST_\x55R\x49"]."\"\x20m\x65\x74ho\x64=\"p\x6f\x73t\x22\x3e\n\t\t<f\x69\x65l\x64\x73e\x74\x3e\n\x20\x20\x20 \t\t\x3c\x6ce\x67end\x3e\x3cim\x67\x20\x73rc=\"".$this->_path."\x6co\x67\x6f\x2e\x67\x69\x66\x22 \x61\x6ct\x3d\x22\x22\x20ti\x74le\x3d\x22\x22 />".$this->l('Seller Blocks Settings')."\x3c/\x6ce\x67\x65\x6ed>\n\n\t    \t\x3cl\x61\x62\x65\x6c \x73t\x79le\x3d\"di\x73\x70l\x61y:\x6e\x6fn\x65\x3b\"\x3e".$this->l('Shop URL Mode')."\x3c/l\x61b\x65\x6c\x3e\n\t\t \x20 \x20<\x64\x69v c\x6cas\x73\x3d\x22\x6da\x72g\x69\x6e-fo\x72\x6d\" \x73\x74\x79l\x65=\"d\x69s\x70\x6ca\x79:no\x6ee\x3b\">\n\t\t\x20  \x20\x20\x20\x20\x20<input \x74ype=\x72adi\x6f n\x61\x6d\x65\x3d\"\x73h\x6fp_\x75rl_\x6dod\x65\"\x20\x20\x76alu\x65\x3d\x220\" ".(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68tps\x74scut"]}==0?"ch\x65\x63\x6bed":"")."/\x3e&nbsp;".$this->l('Virtual URL - All shop share the same domain with primary store.')."\x3c\x62\x72>\n\t\t\x20\x20 \x20 \x20\x20 \x3c\x69\x6eput type\x3d\x72a\x64\x69o \x6eame=\x22\x73h\x6f\x70_u\x72\x6c_\x6dode\x22 \x20val\x75\x65=\"1\x22\x20".(${$fwesgdmpj}==1?"\x63\x68ecked":"")."\x20/\x3e&\x6eb\x73\x70;".$this->l('Domain or Subdomain - Each shop will have diffeerent domain or subdomain.')."<br\x3e\n\t\t\t\t<\x70 s\x74y\x6c\x65\x3d\"c\x6flor:\x72\x65\x64\x22>".$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.')."\x3c/p\x3e\n  \x20\x20  \x20 \x20 \x20\x20</\x64\x69\x76>\n\n\t   \x20\t<l\x61\x62\x65l\x3e".$this->l('Seller Shop Header Logo')."\x3c/l\x61b\x65\x6c>\n\t\t\x20\x20  <\x64iv cla\x73\x73=\x22m\x61\x72g\x69n-\x66\x6fr\x6d\"\x3e\n\t\t\x20 \x20 \x20\x20\x20 <\x69\x6e\x70\x75t \x74\x79\x70\x65\x3drad\x69o\x20\x6eame=\"h\x65a\x64\x65r\x5f\x6c\x6f\x67\x6f_\x6d\x6fde\x22 \x20\x76\x61\x6cue\x3d\"\x30\" ".(${${"\x47\x4c\x4f\x42\x41LS"}["\x74\x69\x6c\x68\x6a\x74\x71\x79l\x72"]}==0?"\x63\x68e\x63ked":"")."/>\x26nb\x73\x70\x3b".$this->l('Show main store logo only')."&\x6ebsp;&\x6e\x62s\x70;\x26\x6eb\x73\x70;\n\t\t    \x20 \x20 \x3c\x69n\x70\x75\x74\x20ty\x70e\x3d\x72a\x64io n\x61\x6de\x3d\"\x68\x65a\x64\x65r\x5f\x6c\x6fgo\x5f\x6do\x64e\"\x20\x20\x76alu\x65\x3d\x221\" ".(${${"\x47LOBA\x4c\x53"}["\x74il\x68jt\x71yl\x72"]}==1?"\x63\x68\x65\x63ke\x64":"")."\x20/>\x26n\x62sp\x3b".$this->l('Show seller logo only')."&\x6ebs\x70;\x26\x6ebsp;&\x6e\x62\x73\x70\x3b\n\t\t\x20   \x20  \x20<\x69n\x70\x75\x74 ty\x70\x65\x3d\x72a\x64\x69o na\x6d\x65=\"he\x61der\x5f\x6cog\x6f\x5fm\x6f\x64\x65\"\x20\x20v\x61\x6cue\x3d\"2\x22 ".(${${"G\x4c\x4fBA\x4c\x53"}["\x74\x69\x6c\x68\x6atq\x79\x6c\x72"]}==2?"\x63\x68\x65c\x6b\x65\x64":"")."/>\x26\x6e\x62\x73\x70;".$this->l('Show both the main store logo and the seller logo')."&\x6e\x62s\x70\x3b&\x6e\x62\x73p\x3b&\x6e\x62\x73p\x3b\n\t\t\t\t\x3c\x62r>\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  \x20\x20\x20 </\x64iv>\n\t\t\t\x3c\x62r>\n\t\t\t<\x62r\x3e\n\n\t  \x20 \t\x3clab\x65\x6c>".$this->l('Shop by Seller Block')."</labe\x6c>\n\t\t  \x20 <d\x69v\x20\x63\x6c\x61s\x73=\x22\x6d\x61\x72gi\x6e-\x66or\x6d\x22\x3e\n\t\t\x20\x20   \x20\x20\x20\x3ci\x6ep\x75t\x20\x74\x79pe\x3d\x72adi\x6f \x6ea\x6de\x3d\"sel\x6ce\x72\x73\x5fb\x6cock\x5fpos\x22  \x76\x61\x6cue=\"\x31\"\x20".(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6d\x6dsubq"]}==1?"\x63\x68\x65cked":"")."\x20/\x3e\x26n\x62sp;".$this->l('On Left Column')."\x26n\x62sp;\x26\x6e\x62s\x70\x3b\x26\x6e\x62\x73\x70;\n\t\t \x20\x20\x20\x20\x20\x20 \x3ci\x6epu\x74 typ\x65\x3dra\x64io\x20\x6e\x61me=\x22selle\x72\x73_bl\x6fc\x6b_p\x6f\x73\" \x20v\x61\x6c\x75\x65=\x222\x22\x20".(${$cauyarhroy}==2?"che\x63ke\x64":"")."/\x3e\x26nbs\x70\x3b".$this->l('On Right Column')."\x26nbs\x70\x3b&n\x62s\x70;\x26nb\x73\x70\x3b\n\t\t \x20   \x20\x20 <\x69np\x75t\x20t\x79\x70e=r\x61\x64\x69o n\x61\x6d\x65\x3d\x22s\x65\x6cle\x72\x73_b\x6c\x6fck\x5f\x70\x6f\x73\"\x20\x20\x76\x61\x6cue=\"\x30\" ".(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75k\x70o\x71k\x63s\x63\x73"]}==0?"ch\x65\x63\x6b\x65\x64":"")."/>&n\x62\x73p\x3b".$this->l('Do Not Display')."\x26nbsp;&\x6e\x62sp;&n\x62\x73\x70\x3b\n\t\t\t\t-- ".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."\n\x20 \x20   \x20   \x20\x20</\x64iv>\n\t\x20 \x20\x20\t<\x6ca\x62\x65l>".$this->l('Number of Sellers Displayed')."</\x6c\x61\x62e\x6c>\n\t\t\t<\x64\x69\x76\x20cla\x73s=\"\x6d\x61\x72\x67in-f\x6fr\x6d\">\n\t\t\t\t\x3ci\x6ep\x75\x74 \x74\x79\x70e=\x22\x74e\x78t\" na\x6d\x65\x3d\"\x73\x65\x6cl\x65\x72Nbr\"\x20val\x75e=\x22".(int)(Configuration::get("\x41SP\x5f\x53ELL\x45\x52_NBR"))."\x22 />&n\x62\x73p\x3b\x3c\x73p\x61n>\n\t\t\t\t-- ".$this->l('Set the number of sellers (shops) to be displayed on the sellers block that is displayed in the left or right column.')."</\x73p\x61n>\n\t\t\t</\x64i\x76>\n\t  \x20\x20\t\x3cla\x62el\x3e".$this->l('Sho By Seller block style')."\x3c/\x6cab\x65\x6c\x3e\n\t\t\x20\x20\x20 <\x64iv\x20\x63l\x61\x73s=\"\x6d\x61\x72gi\x6e-f\x6fr\x6d\x22>\n\t\t\x20\x20\x20  \x20 \x20<in\x70\x75\x74 t\x79pe=r\x61\x64io name\x3d\"s\x65\x6c\x6c\x65\x72\x73_b\x6coc\x6b_s\x74\x79\x6ce\x22  \x76a\x6cu\x65=\x220\" ".(${$htxpqcdreirv}==0?"\x63\x68\x65ck\x65\x64":"")."/>\x26n\x62sp\x3b".$this->l('Flat name list')."\x26n\x62\x73p;\x26n\x62\x73p;\x26\x6ebsp;\n\t\t\x20\x20  \x20  \x20\x3c\x69\x6epu\x74\x20ty\x70\x65=ra\x64io \x6ea\x6de\x3d\x22\x73e\x6c\x6c\x65\x72\x73_b\x6coc\x6b_\x73\x74yle\x22  v\x61lu\x65=\"\x31\" ".(${${"GL\x4f\x42A\x4c\x53"}["\x75deb\x6fe\x68\x68"]}==1?"c\x68e\x63\x6bed":"")."\x20/>\x26\x6eb\x73p\x3b".$this->l('Drop down list')."&\x6ebsp\x3b\x26nbs\x70;&nb\x73p\x3b\n\t\t\t\t--\x20".$this->l('You can adjust the position from the "Modules"->"Positions" tab.')."\n \x20 \x20  \x20\x20\x20   </\x64i\x76>\n\t\x20 \x20 \t<\x6c\x61\x62el>".$this->l('Show on seller shop?')."</\x6cab\x65l\x3e\n\t\t \x20\x20 <d\x69\x76\x20\x63l\x61ss=\"\x6dargin-fo\x72\x6d\"\x3e\n\t\t\x20 \x20\x20    <\x69np\x75\x74\x20\x74\x79\x70e=r\x61dio n\x61\x6de=\x22sellers_\x62\x6c\x6fck\x5f\x76irtu\x61\x6cs\x68\x6fp\"  v\x61\x6c\x75\x65\x3d\x220\x22 ".(${${"\x47\x4cOB\x41\x4c\x53"}["\x67j\x74\x6e\x6a\x6e\x69op\x68k"]}==0?"\x63heck\x65d":"")."/\x3e\x26\x6e\x62\x73p;".$this->l('No')."\x26\x6e\x62\x73p;\x26nbs\x70\x3b\n\t\t   \x20\x20  \x20<i\x6ep\x75t\x20t\x79\x70e=r\x61\x64io \x6eam\x65\x3d\x22s\x65\x6cler\x73_\x62loc\x6b_\x76i\x72t\x75\x61\x6c\x73\x68\x6f\x70\x22\x20\x20\x76\x61lue=\"\x31\" ".(${${"GLO\x42A\x4cS"}["ypni\x78\x6fcb"]}==1?"\x63\x68e\x63\x6b\x65\x64":"")."\x20/>\x26\x6ebs\x70;".$this->l('Yes')."\x26n\x62\x73p;\x26nbsp\x3b\n  \x20   \x20\x20 \x20  \x3c/di\x76>\n\t\t\t<b\x72>\n\t\t\t\x3cb\x72>\n\t\t\t\n\t   \x20\t<label\x3e".$this->l('Shop by Location Block')."</lab\x65l\x3e\n\t\t  \x20\x20<d\x69\x76\x20cl\x61\x73\x73=\x22\x6d\x61\x72gi\x6e-f\x6fr\x6d\"\x3e\n\t\t  \x20 \x20\x20  <\x69n\x70\x75\x74 t\x79\x70e\x3dra\x64\x69\x6f\x20na\x6de\x3d\"loc\x61\x74i\x6fn\x5fblock\x5fp\x6f\x73\x22\x20 va\x6cue=\"\x31\"\x20".(${${"\x47\x4cOB\x41L\x53"}["\x6e\x76\x72to\x73y\x65\x65p"]}==1?"\x63\x68\x65ck\x65d":"")."\x20/\x3e".$this->l('On Left Column')."\x26n\x62\x73p\x3b&\x6ebsp;\x26\x6e\x62\x73p\x3b\n\t\t\x20 \x20 \x20   <\x69\x6ep\x75t t\x79\x70\x65\x3d\x72\x61d\x69o \x6ea\x6d\x65\x3d\x22l\x6f\x63\x61t\x69o\x6e_\x62l\x6fc\x6b\x5fpo\x73\"  \x76\x61\x6c\x75e=\x22\x32\x22 ".(${${"\x47\x4c\x4f\x42\x41L\x53"}["nv\x72\x74\x6f\x73\x79\x65e\x70"]}==2?"\x63he\x63k\x65\x64":"")."/>".$this->l('On Right Column')."\x26n\x62s\x70;&\x6ebs\x70\x3b&n\x62s\x70;\n\t\t \x20      <\x69\x6eput\x20\x74y\x70\x65\x3d\x72\x61\x64i\x6f\x20\x6e\x61m\x65=\"l\x6f\x63\x61t\x69on_\x62\x6co\x63\x6b_pos\"  \x76\x61\x6c\x75e\x3d\x22\x30\" ".(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ev\x72t\x6f\x73\x79e\x65\x70"]}==0?"\x63h\x65\x63\x6b\x65\x64":"")."/\x3e".$this->l('Do Not Display')."\x26nb\x73p;&\x6e\x62sp\x3b&n\x62\x73\x70\x3b\n \x20    \x20 \x20  \x20</di\x76\x3e\n\t\t\t\n\t\x20 \x20 \t<\x6c\x61bel>".$this->l('Shop By Location style')."\x3c/\x6cabe\x6c\x3e\n\t\t  \x20\x20\x3c\x64iv cl\x61\x73\x73\x3d\"\x6dar\x67\x69\x6e-fo\x72\x6d\"\x3e\n\t\t  \x20\x20 \x20 \x20<inpu\x74 \x74\x79p\x65\x3dra\x64\x69\x6f nam\x65\x3d\"\x6c\x6fc\x61\x74i\x6f\x6e_\x62l\x6fc\x6b\x5fs\x74\x79\x6c\x65\x22  va\x6cue\x3d\x220\x22 ".(${${"GL\x4f\x42\x41L\x53"}["k\x78r\x68b\x74v\x63\x66x"]}==0?"checke\x64":"")."/>&\x6e\x62\x73\x70\x3b".$this->l('Flat name list')."\x26nbsp\x3b&nbs\x70\x3b\x26nb\x73\x70\x3b\n\t\t\x20\x20\x20     \x3cin\x70\x75t typ\x65\x3d\x72a\x64\x69\x6f\x20nam\x65=\"l\x6f\x63\x61ti\x6fn_\x62\x6coc\x6b\x5fsty\x6c\x65\" \x20\x76\x61\x6c\x75e\x3d\x22\x31\" ".(${${"\x47\x4cO\x42AL\x53"}["\x6b\x78\x72\x68\x62\x74\x76\x63f\x78"]}==1?"che\x63\x6b\x65\x64":"")."\x20/>&\x6ebsp\x3b".$this->l('Drop down list')."&\x6e\x62s\x70;&nb\x73p;&\x6ebsp;\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</\x64\x69v>\n\t\x20\x20 \x20\t\x3clab\x65l\x3e".$this->l('Shop By Location Level')."\x3c/\x6c\x61be\x6c>\n\t\t\x20  \x20\x3cd\x69\x76 cla\x73s=\"m\x61\x72g\x69\x6e-fo\x72\x6d\"\x3e\n\t\t\t\t\x3cselect\x20\x6e\x61me=\x22\x6co\x63\x61\x74io\x6e\x5f\x62\x6c\x6fc\x6b_le\x76el\"\x20\x69d=\x22loc\x61t\x69on_\x62\x6coc\x6b\x5flev\x65\x6c\x22 \x73\x74y\x6ce=\"w\x69d\x74h:1\x350p\x78;\">\n\t\t\t\t\t<\x6fp\x74\x69\x6fn\x20\x76\x61lue=\"\x63\x6f\x75\x6et\x72\x79\"\x20".(${${"\x47LO\x42A\x4c\x53"}["l\x62\x6a\x63\x67id\x72\x65"]}=="\x63ou\x6e\x74r\x79"?"\x73\x65lecte\x64":"")."\x3e".$this->l('Country')."\x3c/op\x74\x69\x6f\x6e>\n\t\t\t\t\t<o\x70\x74\x69\x6f\x6e\x20\x76al\x75\x65=\"s\x74ate\"\x20".(${${"GLOB\x41\x4cS"}["lb\x6a\x63\x67\x69\x64\x72e"]}=="st\x61\x74\x65"?"se\x6ce\x63t\x65\x64":"")."\x3e".$this->l('State')."\x3c/opti\x6fn\x3e\n\t\t\t\t\t\x3co\x70t\x69\x6fn \x76a\x6c\x75e\x3d\x22c\x69\x74\x79\" ".(${$wuifvl}=="ci\x74y"?"\x73\x65le\x63t\x65d":"").">".$this->l('City')."\x3c/o\x70\x74i\x6fn>\n\t\t\t\t\t<\x6f\x70\x74ion\x20v\x61lue\x3d\"s\x65lle\x72ty\x70e\"\x20".(${${"\x47\x4cO\x42\x41\x4cS"}["\x6c\x62j\x63\x67\x69\x64\x72\x65"]}=="\x73\x65ll\x65\x72\x74y\x70e"?"\x73\x65\x6ce\x63te\x64":"").">".$this->l('Seller Type')."\x3c/opt\x69on\x3e\n\t\t\t\t\t\x3c!--o\x70\x74\x69\x6fn\x20\x76a\x6cue=\"\x63u\x73\x74om\" ".(${$quzdgslx}=="c\x75\x73to\x6d"?"se\x6c\x65\x63ted":"").">".self::SHOP_BY_CUSTOM_NAME."</o\x70tion-->\n\t\t\t\t</s\x65\x6c\x65\x63t>\n \x20 \x20\x20 \x20\x20   \x20</\x64\x69v>\n\t    \t\x3c\x6cabel>".$this->l('Show on seller shop?')."</la\x62\x65l\x3e\n\t\t \x20\x20\x20\x3c\x64\x69\x76\x20\x63\x6cass=\x22ma\x72\x67i\x6e-f\x6f\x72\x6d\">\n\t\t \x20 \x20  \x20 <input \x74y\x70\x65\x3d\x72\x61\x64\x69\x6f \x6e\x61\x6de\x3d\"\x6c\x6f\x63\x61\x74\x69o\x6e\x5f\x62\x6cock\x5f\x76i\x72tuals\x68\x6f\x70\"\x20\x20\x76\x61\x6c\x75\x65\x3d\x22\x30\"\x20".(${${"\x47L\x4f\x42\x41\x4cS"}["\x64\x72\x6a\x69\x6cz\x75\x6a"]}==0?"\x63he\x63ked":"")."/>&nb\x73\x70;".$this->l('No')."\x26n\x62s\x70;&\x6e\x62sp\x3b\n\t\t\x20\x20   \x20\x20 <inp\x75\x74 \x74y\x70e=ra\x64\x69o\x20\x6e\x61\x6de=\x22\x6coc\x61t\x69o\x6e\x5fb\x6c\x6fck_\x76i\x72\x74u\x61ls\x68\x6f\x70\"\x20\x20va\x6cu\x65=\x22\x31\" ".(${${"\x47\x4cO\x42\x41L\x53"}["\x64\x72ji\x6c\x7a\x75\x6a"]}==1?"\x63\x68\x65\x63\x6b\x65d":"")." />\x26\x6eb\x73p;".$this->l('Yes')."&nbs\x70\x3b&n\x62\x73\x70;\n  \x20 \x20    \x20\x20 </di\x76\x3e\n\t\t\t\n \x20\x20\x20\x20\x20 \x20\t<c\x65\x6ete\x72\x3e<\x69nput\x20\x74yp\x65=\x22\x73\x75\x62\x6di\x74\x22 n\x61me\x3d\x22su\x62\x6d\x69\x74\x53\x65\x74ti\x6e\x67s\"\x20va\x6cu\x65\x3d\"".$this->l('Save')."\"\x20cla\x73s=\"butto\x6e\"\x20/\x3e\x3c/\x63e\x6et\x65r\x3e\n\t\t\t\x3c\x73\x70\x61n s\x74\x79l\x65=\x22\x63ol\x6fr:\x72ed\"\x3e".$this->l('Notes:')."\x3c/s\x70\x61n> - \n\t\t\t<\x61\x20ta\x72get\x3d\x22_\x6e\x65\x77\x22 s\x74yle\x3d\"\x63olo\x72:\x62\x6c\x75e;\" h\x72\x65f=\"".Tools::getShopDomainSsl(true,true).__PS_BASE_URI__."m\x6f\x64\x75\x6c\x65s/a\x67\x69\x6cem\x75l\x74i\x70l\x65s\x68\x6f\x70/In\x73t\x61l\x6c_\x65n\x2e\x74xt"."\x22\x3e".$this->l('Please see here for detailed  instructions.')."\x3c\x61/\x3e<br\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 ')."<br>\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)')."\x3cbr\x3e\n\t\x20\x20  </fie\x6c\x64\x73et>\n\t\t\t</\x66\x6frm>";}public function hookBreadcrumbShops(){global$smarty,$cookie;include_once(_PS_ROOT_DIR_."/\x6d\x6fdul\x65s/ag\x69\x6c\x65\x6dult\x69p\x6ce\x73e\x6cl\x65\x72/S\x65\x6cl\x65\x72\x49n\x66o\x2eph\x70");${${"G\x4c\x4fBA\x4cS"}["k\x73qf\x6ff\x62\x64\x74\x78\x74"]}=new SellerInfo(SellerInfo::getIdBSellerId(Shop::${${"GLO\x42\x41\x4c\x53"}["\x65\x74z\x65\x70\x74\x69\x7a\x72d"]}),$cookie->id_lang);${${"G\x4c\x4fB\x41\x4c\x53"}["t\x6f\x63\x75\x6a\x7a\x63\x6d\x65"]}=new Shop(Configuration::get("P\x53\x5f\x53HOP_\x44EF\x41UL\x54"));$smarty->assign(array("\x73ell\x65\x72_s\x68o\x70"=>(Shop::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65t\x7a\x65pt\x69\x7ard"]}>0?Context::getContext()->shop:false),"\x69s\x61\x74_\x73\x65l\x6ce\x72\x5fho\x6de"=>((AgileHelper::getPageName()=="\x61g\x69le\x73\x65ll\x65\x72.php")?1:0),"\x73e\x6c\x6c\x65r_n\x61me"=>$sellerinfo->company,"b\x61\x73e_d\x69r_d\x65f\x61\x75\x6ct"=>$main_shop->getBaseURL()));return$this->display(__FILE__,"\x68o\x6f\x6bb\x72\x65a\x64\x63r\x75mb-\x73hop\x73\x2e\x74\x70l");}public function hookHeader($params){global$smarty,$cookie,$link;if(!$this->active)return;$szjztupsyb="\x68\x65ad\x65\x72\x5f\x6c\x6f\x67\x6f\x5f\x6d\x6f\x64\x65";${"\x47L\x4f\x42A\x4cS"}["\x61y\x77\x69r\x69\x6d\x78"]="\x73\x65\x6c\x6ce\x72\x69nfo";if(!Module::isInstalled("\x61\x67ilem\x75\x6c\x74\x69pl\x65sho\x70"))return;$spkrurcuivqw="h\x65\x61\x64\x65r\x5f\x6c\x6fg\x6f_m\x6f\x64\x65";include_once(_PS_ROOT_DIR_."/mod\x75\x6c\x65\x73/\x61\x67il\x65\x6dul\x74i\x70l\x65\x73\x65ller/S\x65\x6clerI\x6e\x66o\x2ep\x68\x70");${${"\x47\x4cO\x42AL\x53"}["\x73\x63\x6a\x6c\x74fgqb"]}=(isset(Shop::${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x61y\x77i\x72\x69m\x78"]})?SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id):"");${"\x47\x4c\x4f\x42AL\x53"}["\x63pf\x73\x74\x72r\x6c\x65\x78"]="\x73\x65\x6c\x6c\x65\x72\x5flo\x67o\x5f\x75\x72\x6c";$qfjiazseepq="\x73\x65l\x6c\x65r\x5f\x6co\x67\x6f\x5f\x75r\x6c";$ulibscps="\x48\x4f\x4f\x4b\x5fS\x45\x4cL\x45\x52\x5f\x48\x45A\x44\x45\x52\x5fL\x4f\x47O";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x69l\x68\x6a\x74\x71\x79\x6cr"]}=intval(Configuration::get("\x41S\x50_HEAD\x45R_L\x4fGO\x5f\x4dODE"));${${"\x47L\x4f\x42\x41\x4c\x53"}["t\x6fcuj\x7a\x63\x6d\x65"]}=new Shop(Configuration::get("\x50\x53\x5f\x53HO\x50_\x44\x45\x46\x41\x55LT"));${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x76\x65\x79jh\x69\x6al\x74\x6d"]}=Context::getContext()->shop->getBaseURL();${${"G\x4c\x4fBA\x4c\x53"}["\x76\x6f\x6c\x63\x65\x70\x6e\x65\x72\x69"]}="\x3c\x61\x20id=\x22sel\x6c\x65r\x5fhe\x61\x64er\x5flogo\"\x20\x63l\x61s\x73=\"\x6c\x6f\x67o\"\x20\x68r\x65f=\"".${${"\x47\x4c\x4f\x42\x41LS"}["xve\x79j\x68i\x6a\x6c\x74\x6d"]}."\x22><\x69\x6d\x67\x20src\x3d\"".${$qfjiazseepq}."\x22\x20h\x65i\x67\x68\x74\x3d\x22\x360\x22></\x61>";if(${$spkrurcuivqw}==0 OR Shop::${${"\x47\x4cO\x42A\x4cS"}["e\x74\x7a\x65pt\x69z\x72d"]}==0)${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76\x6flc\x65p\x6e\x65\x72\x69"]}="";$smarty->assign(array("\x68eader_\x6cogo\x5f\x6d\x6fd\x65"=>${$szjztupsyb},"\x62ase\x5f\x64\x69r_d\x65f\x61u\x6c\x74"=>$main_shop->getBaseURL(),"\x69\x64_sh\x6f\x70\x5f\x6fwner"=>Shop::${${"\x47LO\x42\x41\x4c\x53"}["e\x74\x7ae\x70t\x69\x7ar\x64"]},"\x73hop\x73\x5fl\x69\x6e\x6b"=>$this->hookBreadcrumbShops(),"sel\x6cer_\x6cog\x6f\x5fur\x6c"=>${${"\x47LO\x42\x41\x4c\x53"}["\x63pf\x73t\x72rl\x65\x78"]},"H\x4f\x4f\x4b_\x53\x45LL\x45R\x5fH\x45\x41D\x45\x52\x5f\x4c\x4fGO"=>${$ulibscps}));return$this->display(__FILE__,"h\x6fo\x6bhe\x61\x64e\x72.t\x70l");}public function hookRightColumn($params){$vgtxeflwht="r\x65\x73";if(!$this->active)return;${$vgtxeflwht}="";if(intval(Configuration::get("ASP\x5f\x53\x45LLER\x53_B\x4cO\x43\x4b_\x50OS\x49TI\x4f\x4e"))==2){$fnggneg="\x70\x61\x72a\x6ds";if(Shop::${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x74\x7a\x65\x70\x74i\x7a\x72\x64"]}==0||intval(Configuration::get("ASP\x5fSE\x4c\x4cE\x52\x53_\x42L\x4f\x43\x4b_\x56\x49\x52T\x55\x41\x4c\x53H\x4fP"))==1)${${"G\x4c\x4f\x42A\x4c\x53"}["\x6c\x65\x6f\x79r\x72plm\x76"]}.=$this->showSellerBlock(${$fnggneg});}if(intval(Configuration::get("\x41\x53\x50_\x4cOC\x41\x54\x49ON\x5fBL\x4f\x43K_\x50\x4f\x53IT\x49ON"))==2){$gzunfdtmse="i\x64_sh\x6f\x70\x5f\x6f\x77\x6e\x65r";$nfjsnxooro="p\x61\x72\x61\x6d\x73";if(Shop::${$gzunfdtmse}==0||intval(Configuration::get("\x41SP\x5f\x4cO\x43\x41\x54\x49\x4f\x4e\x5fB\x4cO\x43K\x5fV\x49\x52\x54\x55\x41\x4cS\x48\x4fP"))==1)${${"GL\x4f\x42\x41\x4cS"}["\x6c\x65\x6f\x79r\x72\x70\x6cm\x76"]}.=$this->showLocationBlock(${$nfjsnxooro});}return${${"\x47\x4cOB\x41\x4c\x53"}["l\x65\x6f\x79r\x72\x70\x6c\x6dv"]};}public function hookLeftColumn($params){if(!$this->active)return;${${"G\x4c\x4f\x42A\x4c\x53"}["leoyr\x72p\x6c\x6dv"]}="";if(intval(Configuration::get("\x41\x53P_SE\x4cL\x45R\x53_BL\x4fCK_P\x4f\x53\x49TIO\x4e"))==1){if(Shop::${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65tz\x65\x70\x74\x69\x7ard"]}==0||intval(Configuration::get("\x41\x53P_SE\x4c\x4cER\x53_\x42\x4c\x4fCK\x5f\x56I\x52TUAL\x53H\x4f\x50"))==1)${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6c\x65o\x79\x72\x72p\x6cm\x76"]}.=$this->showSellerBlock(${${"\x47\x4cO\x42\x41L\x53"}["\x6bpgiw\x78\x64\x76\x77f"]});}if(intval(Configuration::get("\x41\x53\x50\x5f\x4cOCATI\x4f\x4e\x5f\x42L\x4fCK_POSI\x54\x49\x4f\x4e"))==1){${"\x47\x4cOB\x41\x4c\x53"}["\x62j\x66\x6fxf\x74\x64\x75i"]="\x72e\x73";if(Shop::${${"\x47L\x4f\x42A\x4c\x53"}["\x65\x74\x7ae\x70\x74\x69zr\x64"]}==0||intval(Configuration::get("\x41SP\x5fLOC\x41TION\x5fB\x4c\x4f\x43K\x5fV\x49\x52T\x55ALS\x48\x4fP"))==1)${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62\x6a\x66\x6fx\x66td\x75i"]}.=$this->showLocationBlock(${${"\x47L\x4f\x42\x41L\x53"}["\x6b\x70\x67i\x77\x78d\x76w\x66"]});}return${${"\x47LO\x42\x41L\x53"}["le\x6fy\x72\x72p\x6c\x6d\x76"]};}private function showSellerBlock($params){global$smarty,$cookie;if(!$this->active)return;${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x6e\x72\x70\x67\x67\x6dt\x72\x6a"]="s\x71l";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ha\x69\x69\x62\x7a\x71\x62\x73s"]="\x73\x71l";if(!Module::isInstalled("\x61\x67i\x6c\x65\x6d\x75l\x74ipl\x65\x73\x65ll\x65\x72"))return;${"G\x4c\x4fB\x41\x4cS"}["\x7a\x70\x69\x70\x74\x74\x62wlb"]="a\x73p_\x73e\x6c\x6c\x65\x72\x73";${${"\x47\x4cO\x42A\x4cS"}["\x6d\x6e\x72\x70gg\x6d\x74\x72\x6a"]}="SEL\x45C\x54 \x65\x2ei\x64_emp\x6c\x6f\x79e\x65,e.first\x6e\x61m\x65,\x65\x2e\x6ca\x73tn\x61\x6d\x65,\x73\x6c\x2ecomp\x61\x6e\x79,\x73.id\x5f\x73\x65l\x6ce\x72\n\t   \x20 \x20\x20 \x20   \x46\x52\x4f\x4d `"._DB_PREFIX_."e\x6dp\x6c\x6f\x79\x65\x65\x60 \x65\n\t\x20\x20 \x20\x20  \x20\x20\x20  \x20 \x20\x20\x4c\x45F\x54\x20\x4aO\x49\x4e\x20 `"._DB_PREFIX_."\x73\x65\x6c\x6ceri\x6efo\x60 s \x4f\x4e \x65\x2e\x69d_emp\x6c\x6fy\x65\x65 \x3d\x20\x73\x2eid_se\x6c\x6c\x65\x72\n\t   \x20 \x20\x20\x20\x20\x20    \x20\x20\x4c\x45FT\x20\x4aOI\x4e\x20\x20`"._DB_PREFIX_."\x73\x65\x6cl\x65\x72\x69\x6e\x66o_\x6cang`\x20\x73l\x20\x4fN\x20(\x73l\x2ei\x64\x5f\x73el\x6ce\x72\x69\x6e\x66o\x20= \x73\x2e\x69\x64\x5f\x73\x65\x6cler\x69\x6e\x66\x6f\x20A\x4eD\x20s\x6c.\x69\x64\x5fla\x6e\x67\x3d".intval($cookie->id_lang).")\n\t\x20\x20  \x20\x20 \x20   \x20\x57\x48\x45R\x45\x20\x65.a\x63\x74ive=\x31\x20AND e.\x69d\x5fprofile = ".Configuration::get("AG\x49\x4c\x45\x5f\x4d\x53\x5f\x50R\x4f\x46\x49\x4cE\x5fID")."\n\t\x20 \x20  \x20\x20\x20\x20\x20\x20\x20OR\x44ER\x20\x42\x59\x20s\x2ed\x61te\x5fa\x64d DESC\n\t\x20\x20 \x20\x20\x20\x20\x20 \x20\x20 \x4c\x49M\x49\x54\x200,".intval(Configuration::get("\x41SP_\x53\x45\x4c\x4cER_\x4e\x42R"))."\n\t\x20  \x20 \x20\x20\x20 \x20\x20 ";${${"G\x4c\x4fB\x41\x4c\x53"}["\x71\x66v\x76\x79\x71l\x6b\x74\x66"]}=Db::getInstance()->ExecuteS(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68a\x69ib\x7aqbs\x73"]});if(!${${"\x47L\x4f\x42\x41\x4c\x53"}["q\x66\x76v\x79\x71lk\x74\x66"]})return;$smarty->assign(array("asp\x5f\x73\x65lle\x72s"=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x70\x69\x70\x74\x74\x62\x77\x6c\x62"]},"\x61s\x70_seller\x73_\x62l\x6f\x63\x6b_s\x74\x79le"=>intval(Configuration::get("A\x53\x50_S\x45\x4c\x4cE\x52S_\x42LOC\x4b\x5fSTYLE"))));return$this->display(__FILE__,"\x68\x6fokbl\x6fc\x6b\x73elle\x72s\x2e\x74\x70l");}private function showLocationBlock($params){${"\x47L\x4f\x42\x41\x4cS"}["\x76ld\x68\x75\x68r\x6b\x72\x63"]="\x6c\x6f\x63\x61\x74\x69on_\x6c\x65\x76\x65\x6c";global$smarty,$cookie;if(!$this->active)return;if(!Module::isInstalled("ag\x69\x6c\x65m\x75lt\x69\x70\x6c\x65s\x65l\x6cer"))return;${${"\x47\x4c\x4f\x42ALS"}["l\x67c\x73\x6e\x63\x68\x6chjv\x78"]}=Configuration::get("\x41\x53\x50\x5f\x4c\x4fC\x41T\x49\x4f\x4e_\x42\x4c\x4fC\x4b\x5fLEVEL");$smarty->assign(array("s\x65ll\x65\x72\x5flocations4\x62l\x6f\x63\x6b"=>AgileMultipleShop::getLocationListNV(${${"\x47\x4cOB\x41\x4c\x53"}["\x76l\x64\x68\x75\x68r\x6br\x63"]}),"\x6coc\x61t\x69\x6fn_\x6ce\x76\x65l"=>${${"\x47\x4cOB\x41\x4c\x53"}["\x6cg\x63s\x6e\x63h\x6c\x68\x6a\x76x"]},"\x61s\x70\x5f\x6c\x6fca\x74\x69o\x6e_bl\x6f\x63k\x5fsty\x6ce"=>(int)Configuration::get("\x41S\x50_L\x4fC\x41\x54\x49\x4f\x4e\x5fBLO\x43\x4b\x5f\x53TYLE"),"\x6coca\x74i\x6fn_\x63u\x73\x74\x6f\x6d\x5f\x66i\x65ld"=>self::SHOP_BY_CUSTOM_FIELD,"\x6c\x6f\x63\x61\x74\x69on_\x63u\x73\x74\x6fm_nam\x65"=>self::SHOP_BY_CUSTOM_NAME,"\x61gil\x65m\x75\x6ct\x69\x70\x6ce\x73h\x6fp_\x74pl"=>dirname(__FILE__)."/",));return$this->display(__FILE__,"h\x6fok\x62lo\x63kl\x6fc\x61t\x69\x6f\x6e.\x74pl");}public static function getLocationListNV($location_level){$fnuwtxfcpw="\x73\x71\x6c";global$cookie;switch(${${"G\x4cO\x42ALS"}["l\x67\x63s\x6ec\x68l\x68jv\x78"]}){default:case"\x63\x6fu\x6et\x72\x79":${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x65\x63\x65j\x72\x6e\x64\x74d\x77\x64"]}="\x53\x45LEC\x54 disti\x6ec\x74 \x63.\x69d_co\x75\x6e\x74ry\x20A\x53\x20\x69d,\x63l.n\x61\x6de\x20A\x53\x20na\x6d\x65\x20\n\t\t\x20    \x20  \x20 \x20 \x46ROM\x20\x60"._DB_PREFIX_."cou\x6e\x74r\x79` \x63\n\t\t\x20   \x20 \x20\x20 \x20\x20\x20\x20   \x49NN\x45R \x4a\x4f\x49N `"._DB_PREFIX_."\x73\x65\x6cl\x65\x72\x69nfo\x60 si O\x4e\x20c\x2ei\x64_\x63o\x75\x6etr\x79 \x3d\x20\x73i.i\x64\x5f\x63\x6f\x75nt\x72\x79\n\t\t\t\x20\x20    \x20   \x20\x20\x4cEF\x54 JOI\x4e \x60"._DB_PREFIX_."\x63\x6f\x75nt\x72\x79_\x6c\x61n\x67`\x20cl\x20\x4fN\x20c.id_co\x75nt\x72\x79\x3d\x63l.id\x5f\x63ou\x6e\x74ry AN\x44\x20cl\x2e\x69d_la\x6eg=".$cookie->id_lang." \n\t\t\t\t\x20 \x20 OR\x44ER BY\x20\x63l\x2ena\x6de\x20ASC\n\t \x20\x20  \x20\x20\x20  \x20 ";break;case"\x73ta\x74e":${${"\x47\x4c\x4fB\x41L\x53"}["\x65\x63\x65\x6a\x72\x6e\x64\x74\x64w\x64"]}="\x53E\x4c\x45\x43\x54 d\x69\x73\x74in\x63\x74\x20s\x2e\x69\x64\x5f\x73\x74\x61te\x20\x41\x53\x20i\x64,\x20s.n\x61me \x41\x53\x20\x6e\x61\x6d\x65 \n\t\t \x20\x20      \x20  \x46R\x4f\x4d \x60"._DB_PREFIX_."\x73\x74ate\x60\x20s\n\t\t    \x20 \x20\x20\x20 \x20\x20 \x20 \x20I\x4eN\x45R JO\x49\x4e \x60"._DB_PREFIX_."se\x6cle\x72in\x66\x6f` s\x69\x20\x4fN\x20\x73\x2e\x69\x64\x5f\x73ta\x74e\x20=\x20si.id\x5fsta\x74e\n\t\t\t\t\x20\x20  \x4fRDER\x20\x42\x59\x20s.\x6ea\x6d\x65 ASC\n\t\x20\x20  \x20  \x20 \x20\x20\x20";break;case"city":${$fnuwtxfcpw}="\x53EL\x45CT d\x69\x73t\x69\x6e\x63\x74 \x54\x52IM(\x73il\x2eci\x74y)\x20\x41S id,\x20T\x52\x49M(s\x69\x6c.\x63it\x79) A\x53\x20\x6e\x61\x6d\x65 \n\t\t\x20 \x20 \x20\x20\x20 \x20\x20 \x20\x46\x52O\x4d `"._DB_PREFIX_."\x73\x65\x6cle\x72\x69\x6efo_lang`\x20s\x69l \n\t\t\t\t\t\x57H\x45R\x45\x20\x73i\x6c\x2eid\x5f\x6ca\x6e\x67 \x3d\x20".$cookie->id_lang." AND\x20L\x45\x4eG\x54\x48(\x54RIM(\x73i\x6c\x2ec\x69\x74y)) \x3e\x20\x30\n\t\t\t\t\x20\x20\x20\x20\x4f\x52D\x45\x52 B\x59 s\x69\x6c\x2ec\x69\x74y\x20\x41S\x43\n\t \x20\x20\x20\x20 \x20\x20\x20 \x20 ";break;case"\x73e\x6c\x6ce\x72typ\x65":${${"\x47\x4cO\x42A\x4cS"}["\x65\x63\x65\x6a\x72n\x64\x74\x64\x77\x64"]}="\x53ELE\x43T \x64\x69s\x74in\x63\x74\x20id_\x73\x65\x6c\x6c\x65r\x74ype\x20\x41S \x69\x64, na\x6de\x20 \n\t\t\t\t\x20 \x20\x20        \x46R\x4f\x4d \x60"._DB_PREFIX_."\x73el\x6c\x65r\x74y\x70e_l\x61\x6eg\x60\x20\n\t\t\t\t\t\t\t\x57HERE \x69d_la\x6eg = ".$cookie->id_lang." \n\t\t\t\t\t\t\x20 \x20\x20\x4fRDER\x20\x42\x59\x20\x6ea\x6d\x65\x20\x41SC\n\t\t\t\t\t\x20 \x20\x20";break;case"c\x75stom":if(AgileMultipleShop::SHOP_BY_CUSTOM_LANG){${${"GL\x4f\x42\x41\x4c\x53"}["\x65c\x65\x6a\x72\x6edtdwd"]}="SELEC\x54 dist\x69\x6ect \x4cO\x57E\x52(\x54\x52\x49M(si\x6c.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.")) AS \x69\x64, TR\x49\x4d(\x73\x69\x6c\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.")\x20AS\x20\x6eam\x65\x20\n\t\t\t\x20\x20\x20 \x20      \x20\x46\x52OM\x20`"._DB_PREFIX_."se\x6c\x6ce\x72inf\x6f\x5f\x6c\x61\x6e\x67\x60\x20si\x6c \n\t\t\t\t\t\tWH\x45R\x45 \x73il.i\x64\x5fl\x61n\x67\x20\x3d\x20".$cookie->id_lang." A\x4eD L\x45\x4eG\x54H(\x54R\x49\x4d(sil\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."))\x20>\x200\n\t\t\t\t\t   \x20OR\x44ER BY\x20\x73\x69\x6c.".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."\x20\x41\x53\x43\n\t\t  \x20\x20\x20  \x20 \x20 \x20";}else{${"\x47LO\x42\x41L\x53"}["\x72kc\x6f\x7a\x71\x6bd\x79\x6a"]="s\x71l";${${"GLO\x42AL\x53"}["r\x6bc\x6f\x7aq\x6bdy\x6a"]}="S\x45\x4c\x45CT \x64i\x73\x74i\x6e\x63t LOWE\x52(\x54\x52IM(\x73\x69\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD."))\x20\x41S\x20id, T\x52\x49\x4d(s\x69\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD.")\x20A\x53\x20n\x61m\x65 \n\t\t\t\x20  \x20   \x20\x20 \x20 \x46\x52\x4f\x4d\x20\x60"._DB_PREFIX_."se\x6cl\x65rin\x66o\x60 \x73i\n\t\t\t\t\t \x20 \x20\x4f\x52\x44E\x52\x20\x42\x59 \x73i\x2e".AgileMultipleShop::SHOP_BY_CUSTOM_FIELD." \x41SC\n\t\t \x20  \x20\x20 \x20  \x20\x20";}break;}if(empty(${${"\x47\x4cO\x42\x41L\x53"}["\x65\x63\x65j\x72\x6e\x64t\x64wd"]}))return array();return Db::getInstance()->ExecuteS(${${"\x47L\x4fBALS"}["e\x63\x65\x6a\x72nd\x74dw\x64"]});}public static function init_shop_header(){global$smarty,$cookie;$nivdcpztwud="\x6d\x61\x69\x6e_\x73\x68\x6f\x70";${$nivdcpztwud}=new Shop(Configuration::get("P\x53\x5f\x53H\x4f\x50_\x44\x45FA\x55LT"));$muyjyx="s\x65ll\x65\x72i\x6e\x66\x6f";include_once(_PS_ROOT_DIR_."/\x6d\x6fd\x75\x6ce\x73/\x61\x67il\x65\x6dul\x74i\x70le\x73\x65\x6c\x6ce\x72/S\x65l\x6c\x65rI\x6ef\x6f.p\x68p");$smarty->assign(array("\x69s_\x61\x67\x69le\x6du\x6c\x74i\x70\x6c\x65\x73ho\x70\x5fi\x6es\x74a\x6c\x6c\x65d"=>1,"\x68e\x61de\x72_lo\x67o_\x6do\x64e"=>intval(Configuration::get("\x41SP\x5f\x48\x45\x41D\x45\x52_LO\x47O\x5f\x4dODE")),"\x62\x61se_\x64\x69r\x5fdefa\x75\x6ct"=>$main_shop->getBaseURL(),"sell\x65r\x5fsho\x70_n\x61me"=>Context::getContext()->shop->name,"\x69d\x5f\x73\x68\x6fp_o\x77\x6eer"=>Shop::${${"GLO\x42\x41L\x53"}["\x65\x74z\x65p\x74\x69\x7a\x72d"]},"se\x6c\x6cer_\x6c\x6f\x67o_\x75r\x6c"=>(isset(Shop::${$muyjyx})?SellerInfo::get_seller_logo_url_static(Shop::$sellerinfo->id):"")));}public static function clear_blockcategory_cache(){@session_start();if(!isset($_SESSION["\x69\x64\x5fs\x68\x6f\x70\x5fo\x77\x6eer"]))$_SESSION["\x69d_\x73h\x6fp\x5fo\x77\x6ee\x72"]=0;${"\x47L\x4fB\x41\x4cS"}["\x66d\x6a\x6dj\x6d\x69\x65\x74h\x65"]="i\x64_sh\x6f\x70\x5f\x6f\x77\x6e\x65r";if($_SESSION["\x69\x64_sho\x70_\x6f\x77\x6ee\x72"]!=Shop::${${"G\x4c\x4fBAL\x53"}["\x66d\x6a\x6d\x6am\x69e\x74\x68e"]}){$_SESSION["\x69d\x5fsh\x6fp_o\x77n\x65r"]=Shop::${${"\x47\x4c\x4f\x42\x41L\x53"}["\x65\x74\x7a\x65\x70\x74\x69\x7a\x72\x64"]};Context::getContext()->smarty->clearAllCache();}}public static function get_rewrite_rules(){return array("\x61\x67\x69le\x73\x65\x6c\x6ce\x72\x73"=>array("\x63\x6f\x6e\x74r\x6fl\x6ce\x72"=>"a\x67il\x65se\x6cle\x72s","\x72u\x6c\x65"=>"s\x68op\x73-na\x6d\x65-star\x74-\x77\x69\x74h-{\x66il\x74\x65r}-\x62y-{lo\x63\x6c\x65ve\x6c}-in-{\x70\x61\x72e\x6et\x69\x64}-{pa\x72\x65\x6e\x74\x6e\x61m\x65}","\x6b\x65\x79\x77\x6f\x72\x64s"=>array("\x66\x69\x6ct\x65r"=>array("\x72eg\x65xp"=>"[a-zA-Z]+","\x70a\x72a\x6d"=>"filt\x65\x72"),"loc\x6c\x65\x76\x65l"=>array("\x72\x65\x67\x65xp"=>"[a-\x7a\x41-\x5a]+","para\x6d"=>"l\x6fclev\x65l"),"p\x61r\x65\x6e\x74i\x64"=>array("\x72eg\x65\x78\x70"=>"[\x30-9]+","\x70a\x72a\x6d"=>"pare\x6eti\x64"),"\x70\x61\x72\x65n\x74name"=>array("r\x65\x67e\x78\x70"=>"[\x5f\x61-z\x41-\x5a0-9-\x5cp\x4c]*","par\x61\x6d"=>"\x70ar\x65n\x74\x6e\x61me"),"rew\x72\x69\x74\x65"=>array("\x72eg\x65\x78p"=>"[_a-\x7aA-\x5a\x30-9-\\pL]*"),"m\x65t\x61\x5fk\x65\x79\x77o\x72\x64\x73"=>array("r\x65\x67exp"=>"[_\x61-z\x41-\x5a0-9-\\pL]*"),"\x6d\x65ta\x5ft\x69\x74\x6c\x65"=>array("\x72\x65gexp"=>"[_\x61-\x7aA-\x5a0-\x39-\\pL]*"),),),"\x73\x65\x6c\x6cerlo\x63a\x74ion"=>array("c\x6f\x6e\x74\x72o\x6cl\x65\x72"=>"sel\x6c\x65r\x6cocation","r\x75\x6c\x65"=>"\x73h\x6fp-\x62\x79-{\x6c\x65\x76\x65l}/{i\x64}-{\x72\x65w\x72i\x74\x65}","k\x65\x79\x77\x6f\x72\x64s"=>array("\x6cev\x65l"=>array("\x72\x65\x67exp"=>"[\x5f\x61-\x7a\x41-Z\x30-\x39-\x5c\x70\x4c]*","\x70\x61ram"=>"\x6co\x63atio\x6e\x5f\x6c\x65\x76\x65\x6c"),"i\x64"=>array("r\x65\x67ex\x70"=>"[\x5f\x61-\x7aA-\x5a\x30-9-\\\x70L]*","p\x61\x72am"=>"\x69d_\x6coc\x61ti\x6f\x6e"),"r\x65\x77\x72\x69t\x65"=>array("\x72e\x67\x65xp"=>"[\x5fa-\x7aA-\x5a0-\x39-\\p\x4c]*"),"\x6d\x65\x74\x61_\x6b\x65\x79\x77or\x64s"=>array("re\x67\x65\x78\x70"=>"[\x5f\x61-zA-Z0-\x39-\x5cp\x4c]*"),"\x6deta\x5ft\x69t\x6c\x65"=>array("re\x67ex\x70"=>"[_a-\x7aA-Z0-9-\x5c\x70L]*"),),));}private function create_shops_for_existing_sellers(){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x68\x63\x68\x6e\x6c\x65r\x6fc\x79"]="s\x65l\x6c\x65\x72\x73";${${"G\x4c\x4f\x42\x41\x4c\x53"}["e\x63e\x6a\x72nd\x74d\x77\x64"]}="\x53\x45\x4cE\x43T \x73\x2e\x69\x64\x5fs\x65l\x6ce\x72,\x20sl.\x63\x6fmpany\x20\n\t\t\t\t\x46\x52OM\x20"._DB_PREFIX_."\x73\x65ll\x65\x72i\x6e\x66\x6f\x20s\n\t\t\t\t\t\x4cE\x46\x54 JO\x49\x4e\x20"._DB_PREFIX_."\x73\x65ll\x65\x72\x69\x6efo\x5fla\x6e\x67\x20\x73\x6c ON\x20(\x73.\x69d\x5f\x73eller\x69nf\x6f=\x73\x6c\x2e\x69\x64_s\x65l\x6c\x65r\x69n\x66\x6f\x20AND sl\x2eid_l\x61\x6eg=".intval(Configuration::get("P\x53\x5fLA\x4eG_\x44\x45F\x41\x55\x4c\x54")).")\n\t\t\t\t\x57H\x45RE \x69d\x5f\x73\x68\x6f\x70\x20\x3c\x3d\x31";${${"GL\x4f\x42\x41\x4cS"}["\x62\x68c\x68\x6e\x6ce\x72\x6f\x63\x79"]}=Db::getInstance()->ExecuteS(${${"\x47\x4c\x4f\x42\x41L\x53"}["e\x63\x65\x6a\x72\x6e\x64\x74\x64\x77\x64"]});if(empty(${${"GL\x4fB\x41L\x53"}["\x72\x6cx\x63pbd\x65\x67\x69b\x77"]}))return;foreach(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x6c\x78\x63\x70\x62\x64eg\x69b\x77"]} as${${"\x47L\x4fB\x41L\x53"}["\x73k\x64\x6em\x73\x68"]}){$jckbhmg="s\x65ll\x65\x72";${"\x47\x4cOB\x41L\x53"}["\x78s\x71\x6c\x65\x77\x79\x75\x6d\x74\x62"]="s\x65\x6c\x6c\x65\x72";${${"G\x4cOBAL\x53"}["a\x74e\x6d\x71\x76\x6a\x63"]}=$this->create_new_shop(${$jckbhmg}["i\x64\x5fselle\x72"],${${"G\x4cO\x42\x41\x4c\x53"}["xs\x71\x6cewy\x75\x6d\x74\x62"]}["\x63omp\x61n\x79"]);${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["e\x63\x65jr\x6e\x64\x74\x64\x77\x64"]}="\x55PD\x41T\x45\x20"._DB_PREFIX_."sel\x6cer\x69\x6efo SET \x69d\x5fs\x68\x6fp=".${${"G\x4c\x4f\x42\x41L\x53"}["a\x74\x65mq\x76\x6ac"]}." \x57\x48\x45\x52E\x20i\x64\x5fs\x65l\x6c\x65\x72=".intval(${${"GL\x4f\x42\x41\x4cS"}["\x73\x6b\x64\x6e\x6d\x73\x68"]}["i\x64_s\x65ll\x65r"]);Db::getInstance()->Execute(${${"G\x4c\x4f\x42\x41L\x53"}["\x65\x63e\x6a\x72\x6edt\x64wd"]});}}public static function create_new_shop($id_seller,$name){${"G\x4c\x4fB\x41L\x53"}["\x6a\x70\x6d\x69\x61\x65\x73"]="\x6e\x61me";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x66\x6f\x65f\x64\x70\x78\x6b"]="\x6eam\x65";$kwhubrtfc="\x73h\x6f\x70";if(empty(${${"\x47LO\x42\x41L\x53"}["t\x7awhjj\x6bm\x68"]}))${${"\x47L\x4fBAL\x53"}["\x74z\x77h\x6a\x6a\x6bm\x68"]}="s\x68\x6f\x70";if(Shop::shop_name_duplicated(${${"\x47\x4cO\x42\x41L\x53"}["j\x70mia\x65s"]},0))${${"G\x4cOB\x41L\x53"}["\x66\x6f\x65fd\x70\x78\x6b"]}=${${"\x47\x4cOB\x41\x4cS"}["tzw\x68jj\x6b\x6dh"]}."-".${${"\x47\x4cOB\x41\x4c\x53"}["x\x63\x6c\x65\x62\x75e"]};${${"\x47L\x4fB\x41L\x53"}["\x70\x6cef\x75\x73h\x79"]}=new Shop((int)Configuration::get("\x50\x53\x5fS\x48\x4f\x50_\x44EF\x41\x55L\x54"));${$kwhubrtfc}=new Shop();$shop->name=${${"\x47L\x4f\x42\x41\x4cS"}["\x74\x7a\x77hj\x6a\x6bm\x68"]};$shop->id_shop_group=$defshop->id_shop_group;$shop->id_category=$defshop->id_category;$shop->active=1;$shop->deleted=0;${"\x47\x4c\x4f\x42\x41L\x53"}["\x78e\x64\x64\x65\x71l\x69"]="i\x64\x5fsho\x77\x5fu\x72\x6c";${"G\x4c\x4f\x42\x41\x4c\x53"}["k\x63\x73k\x61\x74\x6d\x63p\x6b\x73"]="\x73\x71\x6c";$shop->id_theme=$defshop->id_theme;$shop->add();${${"\x47LOB\x41L\x53"}["\x65\x63\x65j\x72\x6e\x64\x74d\x77d"]}="\x53ELE\x43T id\x5f\x73\x68o\x70\x5f\x75\x72\x6c \tFR\x4f\x4d "._DB_PREFIX_."s\x68\x6fp_\x75\x72\x6c\x20W\x48\x45\x52E \x61c\x74\x69v\x65 = 1\x20AN\x44\x20mai\x6e\x3d1\x20A\x4e\x44\x20i\x64\x5f\x73\x68op\x20= ".(int)Configuration::get("P\x53_S\x48\x4fP\x5f\x44\x45F\x41\x55L\x54");${${"\x47\x4cO\x42\x41\x4c\x53"}["r\x67\x61h\x67c\x76"]}=intval(Db::getInstance()->getValue(${${"\x47LOB\x41L\x53"}["\x6b\x63sk\x61\x74m\x63\x70\x6b\x73"]}));${${"\x47\x4cOBAL\x53"}["\x61\x77j\x66\x77b\x72\x78\x6d\x63"]}=new ShopUrl(${${"\x47L\x4fBA\x4c\x53"}["\x78\x65\x64d\x65\x71\x6c\x69"]});$shopurl->id=0;$shopurl->id_shop=$shop->id;if((int)Configuration::get("AS\x50\x5fSH\x4f\x50_U\x52L\x5f\x4dOD\x45")==agilemultipleshop::SHOP_URL_MODE_DOMAIN){$vlydxwduz="\x6e\x61me";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6c\x66y\x62m\x69\x70"]="\x6ea\x6d\x65";$shopurl->domain=Tools::link_rewrite(${$vlydxwduz})."\x2e".str_replace("w\x77\x77\x2e","",$shopurl->domain);$shopurl->domain_ssl=Tools::link_rewrite(${${"\x47\x4cO\x42AL\x53"}["l\x66ybmi\x70"]}).".".str_replace("\x77\x77\x77.","",$shopurl->domain_ssl);}else{${"\x47\x4cOB\x41\x4c\x53"}["\x61\x62\x62n\x65l\x6bt\x74\x77"]="n\x61m\x65";$shopurl->virtual_uri=Tools::link_rewrite(${${"\x47\x4c\x4fB\x41\x4c\x53"}["a\x62bn\x65\x6c\x6b\x74\x74\x77"]});}${${"\x47L\x4f\x42\x41\x4c\x53"}["\x67t\x72\x66\x68qjp\x72\x6c\x79"]}=$shopurl->canAddThisUrl($shopurl->domain,$shopurl->domain_ssl,$shopurl->physical_uri,$shopurl->virtual_uri);if(intval(${${"\x47\x4c\x4f\x42A\x4c\x53"}["gt\x72fhq\x6a\x70r\x6cy"]})>0)$shopurl->virtual_uri=$shopurl->virtual_uri."-".${${"\x47\x4c\x4f\x42A\x4c\x53"}["xc\x6ceb\x75\x65"]};$shopurl->active=1;$shopurl->add();Tools::generateHtaccess();return$shop->id;}public static function getShopByLocationLevel(){$mentsvx="\x6c\x6f\x63a\x74ion\x5fl\x65\x76\x65l";${${"\x47\x4c\x4fBALS"}["\x6c\x67\x63s\x6e\x63\x68\x6c\x68\x6a\x76\x78"]}=Tools::getValue("lo\x63a\x74io\x6e\x5f\x6cev\x65l");$jsbueuvtq="\x6co\x63at\x69o\x6e\x5fle\x76e\x6c";if(empty(${${"\x47\x4cO\x42ALS"}["l\x67\x63s\x6e\x63hl\x68\x6a\x76\x78"]}))${$jsbueuvtq}="\x63\x6f\x75\x6etry";if(!in_array(${${"\x47\x4cO\x42\x41\x4cS"}["lg\x63\x73\x6e\x63\x68lhjv\x78"]},array("cou\x6e\x74r\x79","stat\x65","\x63i\x74\x79","se\x6c\x6ce\x72t\x79\x70e")))${$mentsvx}="cu\x73t\x6f\x6d";return${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6cg\x63\x73\x6ech\x6c\x68jv\x78"]};}public static function getShopByLocationID(){${"\x47\x4cO\x42AL\x53"}["x\x66\x69\x6e\x73\x71\x69\x74"]="\x6co\x63\x61\x74\x69on\x5f\x6c\x65ve\x6c";$qevmufgevwc="id_\x6c\x6fca\x74\x69\x6f\x6e";${$qevmufgevwc}=Tools::getValue("\x69\x64_\x6coc\x61tion");${${"GL\x4fB\x41\x4c\x53"}["\x6c\x67\x63s\x6e\x63\x68l\x68\x6a\x76x"]}=self::getShopByLocationLevel();if((${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6c\x67\x63\x73n\x63\x68\x6c\x68j\x76\x78"]}!="cus\x74\x6fm"&&${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x66\x69ns\x71\x69\x74"]}!="ci\x74\x79")||(${${"\x47\x4c\x4f\x42\x41LS"}["lg\x63\x73nc\x68\x6c\x68j\x76\x78"]}=="c\x75\x73to\x6d"&&AgileMultipleShop::SHOP_BY_CUSTOM_ISINT)){${"G\x4c\x4f\x42A\x4cS"}["u\x62y\x69p\x63w"]="\x69\x64\x5fl\x6f\x63\x61\x74\x69\x6fn";${${"GL\x4f\x42\x41L\x53"}["\x76ra\x74ok\x79g\x6b\x6fg"]}=(int)${${"\x47LOB\x41L\x53"}["\x75\x62y\x69\x70\x63\x77"]};}return${${"\x47\x4cO\x42\x41L\x53"}["\x76\x72at\x6fk\x79g\x6bog"]};}public function getL($key){$toykieh="k\x65\x79";${${"G\x4c\x4f\x42A\x4c\x53"}["\x66\x75\x62u\x63bi\x6a\x65\x76\x79"]}=$this->getMessages();return${${"\x47L\x4f\x42A\x4cS"}["\x66\x75b\x75\x63\x62i\x6a\x65\x76\x79"]}[${$toykieh}];}public function getMessages(){${"\x47L\x4f\x42A\x4cS"}["\x6d\x79\x69\x77\x76yr"]="\x6d\x65s\x73\x61\x67\x65s";${${"G\x4c\x4fB\x41\x4c\x53"}["my\x69w\x76y\x72"]}=array("Sh\x6f\x70 By \x53e\x6cl\x65r"=>$this->l('Listado de tiendas'),"S\x68op\x20B\x79\x20\x4cocatio\x6e"=>$this->l('Shop By Location'));return${${"\x47\x4c\x4f\x42A\x4cS"}["f\x75\x62u\x63b\x69\x6a\x65\x76y"]};}}
?>

Function Calls

None

Variables

None

Stats

MD5 a4772e22a20e2069d387926679fd3d48
Eval Count 0
Decode Time 212 ms