public function preinstall() { ${"GLOBALS"}["gbpsbjss"] = "reterrs"; ${"GLOBALS"}["cqivbxpwvu"] = "reterrs"; if (!defined("_IS_AGILE_DEV_") && !empty($this->newfiles) && !Tools::getValue("redirected")) { ${"GLOBALS"}["pbgqplgdhn"] = "adminfolder"; ${${"GLOBALS"}["pbgqplgdhn"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]); AgileInstaller::install_newfiles($this->newfiles, $this->name, ${${"GLOBALS"}["uyaelzfgq"]}, 2); ${${"GLOBALS"}["utfubvv"]} = AgileInstaller::install_health_check($this->newfiles, $this->name, ${${"GLOBALS"}["uyaelzfgq"]}); if (!empty(${${"GLOBALS"}["utfubvv"]})) { $this->_errors[] = "<a target=\"agile\" style=\"text-decoration:underline;color:blue;\" href=\"http://addons-modules.com/store/en/content/36-agile-module-installation-tips\">" . $this->l('Failed to update files due to permission issue, please visit here for more instructions.') . "</a>"; return false; } Tools::redirectAdmin("./index.php?controller=AdminModules&token=" . Tools::getValue("token") . "&install=" . $this->name . "&tab_module=" . $this->tab . " &module_name=" . $this->name . "&anchor=anchor" . $this->name . "&redirected=1"); } AgileInstaller::process_shared_override($this->name, $this->shared_override); ${${"GLOBALS"}["cqivbxpwvu"]} = AgileInstaller::version_depencies($this->version_dependencies); if (!empty(${${"GLOBALS"}["kdimirig"]})) { ${"GLOBALS"}["obtmsybtt"] = "reterrs"; $this->_errors = array_merge($this->_errors, ${${"GLOBALS"}["obtmsybtt"]}); return false; } ${${"GLOBALS"}["gbpsbjss"]} = AgileInstaller::CanModuleOverride($this->name); if (!empty(${${"GLOBALS"}["kdimirig"]})) { $this->_errors = array_merge($this->_errors, ${${"GLOBALS"}["kdimirig"]}); return false; } return true; }
public function preinstall() { $yqqodbjgeg = "reterrs"; if (!defined("_IS_AGILE_DEV_") && !empty($this->newfiles) && !Tools::getValue("redirected")) { ${"GLOBALS"}["knqfecnkgdoh"] = "result"; ${"GLOBALS"}["glhcybl"] = "adminfolder"; ${${"GLOBALS"}["dnbuadvi"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]); AgileInstaller::install_newfiles($this->newfiles, $this->name, ${${"GLOBALS"}["glhcybl"]}, 2); ${${"GLOBALS"}["hhfazbwhkgg"]} = AgileInstaller::install_health_check($this->newfiles, $this->name, ${${"GLOBALS"}["dnbuadvi"]}); if (!empty(${${"GLOBALS"}["knqfecnkgdoh"]})) { $this->_errors[] = "<a target=\"agile\" style=\"text-decoration:underline;color:blue;\" href=\"http://addons-modules.com/store/en/content/36-agile-module-installation-tips\">" . $this->l('Failed to update files due to permission issue, please visit here for more instructions.') . "</a>"; return false; } Tools::redirectAdmin("./index.php?controller=AdminModules&token=" . Tools::getValue("token") . "&install=" . $this->name . "&tab_module=" . $this->tab . " &module_name=" . $this->name . "&anchor=anchor" . $this->name . "&redirected=1"); } AgileInstaller::process_shared_override($this->name, $this->shared_override); ${"GLOBALS"}["ayjsfp"] = "reterrs"; ${$yqqodbjgeg} = AgileInstaller::version_depencies($this->version_dependencies); if (!empty(${${"GLOBALS"}["xrjtzzbelbld"]})) { $this->_errors = array_merge($this->_errors, ${${"GLOBALS"}["xrjtzzbelbld"]}); return false; } ${${"GLOBALS"}["xrjtzzbelbld"]} = AgileInstaller::CanModuleOverride($this->name); if (!empty(${${"GLOBALS"}["ayjsfp"]})) { $ovvrqmk = "reterrs"; $this->_errors = array_merge($this->_errors, ${$ovvrqmk}); return false; } return true; }
public function getContent() { $this->_html = ''; $adminfolder = AgileInstaller::detect_admin_folder($_SERVER['SCRIPT_FILENAME']); $health_check = AgileInstaller::install_health_check($this->newfiles, $this->name, $adminfolder); if (!empty($health_check)) { $this->_html .= $health_check; } $this->_html .= AgileInstaller::show_agile_links(); if (Tools::isSubmit('submitSettings')) { $header_logo_mode = Tools::getValue('header_logo_mode'); $home_column_left = Tools::getValue('home_column_left'); $home_column_right = Tools::getValue('home_column_right'); $sellers_shop_mode = Tools::getValue('sellers_shop_mode'); $location_block_level = Tools::getValue('location_block_level'); $shop_url_mode = (int) Tools::getValue('shop_url_mode'); $shop_login_mode = (int) Tools::getValue('shop_login_mode'); if (!($sellerNbr = Tools::getValue('sellerNbr')) or empty($sellerNbr)) { $this->_html .= $this->displayError($this->l('Please fill in the "sellers to be displayed" field.')); } elseif ((int) $sellerNbr == 0) { $this->_html .= $this->displayError($this->l('Invalid number.')); } else { Configuration::updateValue('ASP_SELLER_NBR', intval($sellerNbr)); Configuration::updateValue('ASP_SELLERS_BLOCK_POSITION', intval(Tools::getValue('sellers_block_pos'))); Configuration::updateValue('ASP_HOME_COLUMN_LEFT', $home_column_left); Configuration::updateValue('ASP_HOME_COLUMN_RIGHT', $home_column_right); Configuration::updateValue('ASP_HEADER_LOGO_MODE', $header_logo_mode); 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', $shop_url_mode); Configuration::updateValue('ASP_SHOP_LOGIN_MODE', $shop_login_mode); Configuration::updateValue('ASP_URL_CHOICE_CAT', Tools::getValue('url_choice_cat')); Configuration::updateValue('ASP_URL_CHOICE_CMS', Tools::getValue('url_choice_cms')); $this->_html .= $this->displayConfirmation($this->l('Settings updated')); } } $this->_html .= $this->renderForm(); $this->_html .= '<div class="alert alert-info"> <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>
public function getContent() { ${"GLOBALS"}["bqxxxfy"] = "health_check"; ${"GLOBALS"}["qbxopdigit"] = "adminfolder"; global $cookie; $this->_html = "<h2>" . $this->displayName . "</h2>"; ${"GLOBALS"}["kvrvddsl"] = "adminfolder"; ${"GLOBALS"}["opaewiqlpwn"] = "health_check"; ${${"GLOBALS"}["iihtvx"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]); $sdwauu = "health_check"; Configuration::updateValue("AGILE_MS_ADMIN_FOLDER_NAME", ${${"GLOBALS"}["qbxopdigit"]}); ${${"GLOBALS"}["bqxxxfy"]} = AgileInstaller::install_health_check(self::${${"GLOBALS"}["cbfiyrnxuj"]}, $this->name, ${${"GLOBALS"}["kvrvddsl"]}); if (!empty(${${"GLOBALS"}["opaewiqlpwn"]})) { $this->_html .= ${$sdwauu}; } $this->_html .= AgileInstaller::show_agile_links(); if (Tools::isSubmit("submitSetting")) { ${"GLOBALS"}["cjajndwh"] = "seller_back_office"; $kmllpyu = "product_approval"; $kshypr = "seller_approval"; ${$kshypr} = intval(Tools::getValue("seller_approval")); ${"GLOBALS"}["hilfrprkkn"] = "customer_seller"; ${${"GLOBALS"}["hilfrprkkn"]} = intval(Tools::getValue("customer_seller")); ${"GLOBALS"}["pfdkcpmn"] = "payment_mode"; $rwkbxao = "cart_mode"; ${${"GLOBALS"}["fpcptknwjrx"]} = intval(Tools::getValue("edit_category")); ${${"GLOBALS"}["pfdkcpmn"]} = intval(Tools::getValue("payment_mode")); ${"GLOBALS"}["bmpcbkxfkjm"] = "seller_terms"; ${$rwkbxao} = intval(Tools::getValue("cart_mode")); ${${"GLOBALS"}["mxyocfdw"]} = intval(Tools::getValue("seller_tab")); ${${"GLOBALS"}["bmpcbkxfkjm"]} = intval(Tools::getValue("seller_terms")); ${$kmllpyu} = intval(Tools::getValue("product_approval")); ${${"GLOBALS"}["mtuxjshltej"]} = (int) Tools::getValue("seller_panel_withleft"); ${${"GLOBALS"}["hwumogruw"]} = (int) Tools::getValue("\$seller_panel_withright"); ${${"GLOBALS"}["htwdzocv"]} = (int) Tools::getValue("allow_register_athome"); ${${"GLOBALS"}["cjajndwh"]} = (int) Tools::getValue("seller_back_office"); ${${"GLOBALS"}["dwhsqnjp"]} = (int) Tools::getValue("seller_info_theme"); if (${${"GLOBALS"}["dhkpqft"]} == self::PAYMENT_MODE_BOTH and !Module::isInstalled("agilepaypaladaptive") and !Module::isInstalled("agilepaypalparallel") and !Module::isInstalled("cashondelivery")) { $this->_postErrors[] = $this->getL("You must install the Agile Paypal Parallel Payment module if you choose payment mode \"Seller/Store Split Payments\" in the Agile Multiple Seller module."); } if (!sizeof($this->_postErrors)) { ${"GLOBALS"}["dnuvpjgp"] = "seller_approval"; ${"GLOBALS"}["wzwoieecfbc"] = "cart_mode"; $qyfcnee = "seller_tab"; ${"GLOBALS"}["hoewtum"] = "i"; $cryvywov = "customer_seller"; $epimipnhc = "product_approval"; ${"GLOBALS"}["rwldxgt"] = "seller_panel_withleft"; $fhmrijkd = "edit_category"; Configuration::updateValue("AGILE_MS_SELLER_APPROVAL", intval(${${"GLOBALS"}["dnuvpjgp"]})); ${"GLOBALS"}["gcpvlfxyljt"] = "i"; $ujfmgwnic = "seller_info_theme"; Configuration::updateValue("AGILE_MS_CUSTOMER_SELLER", intval(${$cryvywov})); $gizukgx = "i"; $phxtiahxl = "seller_back_office"; $updgitkvtpyr = "product_approval"; Configuration::updateValue("AGILE_MS_EDIT_CATEGORY", intval(${$fhmrijkd})); Configuration::updateValue("AGILE_MS_PAYMENT_MODE", intval(${${"GLOBALS"}["dhkpqft"]})); Configuration::updateValue("AGILE_MS_CART_MODE", intval(${${"GLOBALS"}["wzwoieecfbc"]})); Configuration::updateValue("AGILE_MS_SELLER_TAB", intval(${$qyfcnee})); Configuration::updateValue("AGILE_MS_SELLER_TERMS", intval(${${"GLOBALS"}["wosrajrkxz"]})); Configuration::updateValue("AGILE_MS_PRODUCT_APPROVAL", ${$updgitkvtpyr}); ${"GLOBALS"}["ifcxerun"] = "allow_register_athome"; Configuration::updateValue("AGILE_MS_SELLER_PANEL_WITHLEFT", ${${"GLOBALS"}["rwldxgt"]}); Configuration::updateValue("AGILE_MS_SELLER_PANEL_WITHRIGHT", ${${"GLOBALS"}["hwumogruw"]}); Configuration::updateValue("AGILE_MS_ALLOW_REGISTER_ATHOME", ${${"GLOBALS"}["ifcxerun"]}); Configuration::updateValue("AGILE_MS_SELLER_BACK_OFFICE", ${$phxtiahxl}); ${"GLOBALS"}["qnjdmsyhtl"] = "i"; Configuration::updateValue("AGILE_MS_SELLER_INFO_THEME", ${$ujfmgwnic}); ${"GLOBALS"}["jboqdlg"] = "i"; for (${${"GLOBALS"}["bimlyp"]} = 1; ${${"GLOBALS"}["bimlyp"]} <= 10; ${${"GLOBALS"}["bimlyp"]}++) { $afmekvfmhej = "field_name"; ${"GLOBALS"}["nheyigjy"] = "i"; ${${"GLOBALS"}["uhwljodynle"]} = sprintf("AGILE_MS_SELLER_TEXT%s", ${${"GLOBALS"}["nheyigjy"]}); $bhjuugriron = "i"; ${${"GLOBALS"}["mbquodqvh"]} = sprintf("ams_custom_text%s", ${$bhjuugriron}); Configuration::updateValue(${${"GLOBALS"}["uhwljodynle"]}, intval(Tools::getValue(${$afmekvfmhej}))); } $gmootmrgt = "i"; for (${${"GLOBALS"}["bimlyp"]} = 1; ${${"GLOBALS"}["bimlyp"]} <= 2; ${$gizukgx}++) { ${"GLOBALS"}["hocpzhqlcq"] = "i"; ${${"GLOBALS"}["uhwljodynle"]} = sprintf("AGILE_MS_SELLER_HTML%s", ${${"GLOBALS"}["bimlyp"]}); $pfkmbpoc = "field_name"; ${${"GLOBALS"}["mbquodqvh"]} = sprintf("ams_custom_html%s", ${${"GLOBALS"}["hocpzhqlcq"]}); Configuration::updateValue(${${"GLOBALS"}["uhwljodynle"]}, intval(Tools::getValue(${$pfkmbpoc}))); } ${"GLOBALS"}["bnsufcienk"] = "i"; for (${${"GLOBALS"}["jboqdlg"]} = 1; ${${"GLOBALS"}["gcpvlfxyljt"]} <= 10; ${${"GLOBALS"}["hoewtum"]}++) { $iutrsdxlhi = "i"; ${"GLOBALS"}["hpdywikc"] = "field_name"; ${${"GLOBALS"}["uhwljodynle"]} = sprintf("AGILE_MS_SELLER_NUMBER%s", ${${"GLOBALS"}["bimlyp"]}); ${${"GLOBALS"}["hpdywikc"]} = sprintf("ams_custom_number%s", ${$iutrsdxlhi}); Configuration::updateValue(${${"GLOBALS"}["uhwljodynle"]}, intval(Tools::getValue(${${"GLOBALS"}["mbquodqvh"]}))); } for (${${"GLOBALS"}["qnjdmsyhtl"]} = 1; ${$gmootmrgt} <= 5; ${${"GLOBALS"}["bnsufcienk"]}++) { ${"GLOBALS"}["wiikfky"] = "key"; $ljmipdsys = "field_name"; ${${"GLOBALS"}["uhwljodynle"]} = sprintf("AGILE_MS_SELLER_DATE%s", ${${"GLOBALS"}["bimlyp"]}); ${${"GLOBALS"}["mbquodqvh"]} = sprintf("ams_custom_date%s", ${${"GLOBALS"}["bimlyp"]}); Configuration::updateValue(${${"GLOBALS"}["wiikfky"]}, intval(Tools::getValue(${$ljmipdsys}))); } if (${$epimipnhc}) { if (!AgileInstaller::create_tab("Bulk Approval", "AgileBulkApproval", "AdminCatalog", $this->name)) { return false; } AgileInstaller::init_tab_prmission_for_existing_profiles("AgileBulkApproval", 1, 1, 1, 1); } else { AgileInstaller::delete_tab("AgileBulkApproval"); } $this->displayConf(); } else { $this->displayErrors(); } } $this->displayForm(); return $this->_html; }
function install() { $jfwdvmlh = "reterrs"; $rcfsdwxkrfr = "reterrs"; $picorcbvbjw = "pid"; @set_time_limit(120); ${"GLOBALS"}["dbmmuxigchv"] = "reterrs"; if (!$this->check16013()) { $this->_errors[] = "<a target=\"agile\" style=\"text-decoration:underline;color:blue;\" href=\"http://addons-modules.com/forum/viewtopic.php?f=10&t=2181&p=7622\">" . $this->l('You are using PrestaShop 1.6.0.12/13/14, you need to fix 2 fatal bugs of PrestaShop first before installing this module. Please visit here for more instructions.') . "</a>"; return false; } if (!defined("_IS_AGILE_DEV_") && !empty(self::${${"GLOBALS"}["cutdtieh"]}) && !Tools::getValue("redirected")) { ${"GLOBALS"}["cedfefuylho"] = "adminfolder"; ${"GLOBALS"}["qqwmbcglxk"] = "adminfolder"; $lfrqohzbyihy = "result"; $kehebpyykf = "result"; ${${"GLOBALS"}["cedfefuylho"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]); AgileInstaller::install_newfiles(self::${${"GLOBALS"}["cutdtieh"]}, $this->name, ${${"GLOBALS"}["lnqnkx"]}, 2); ${$lfrqohzbyihy} = AgileInstaller::install_health_check(self::${${"GLOBALS"}["cutdtieh"]}, $this->name, ${${"GLOBALS"}["qqwmbcglxk"]}); if (!empty(${$kehebpyykf})) { $this->_errors[] = "<a target=\"agile\" style=\"text-decoration:underline;color:blue;\" href=\"http://addons-modules.com/store/en/content/36-agile-module-installation-tips\">" . $this->l('Failed to update files due to permission issue, please visit here for more instructions.') . "</a>"; return false; } Tools::redirectAdmin("./index.php?controller=AdminModules&token=" . Tools::getValue("token") . "&install=" . $this->name . "&tab_module=" . $this->tab . " &module_name=" . $this->name . "&anchor=anchor" . $this->name . "&redirected=1"); } ${${"GLOBALS"}["dbmmuxigchv"]} = AgileInstaller::version_depencies($this->version_dependencies); ${"GLOBALS"}["gkvxrpe"] = "pid"; if (!empty(${$jfwdvmlh})) { $this->_errors = array_merge($this->_errors, ${${"GLOBALS"}["dnccsutmou"]}); return false; } ${$rcfsdwxkrfr} = AgileInstaller::CanModuleOverride($this->name); if (!empty(${${"GLOBALS"}["dnccsutmou"]})) { $qxvkqwflpkt = "reterrs"; $this->_errors = array_merge($this->_errors, ${$qxvkqwflpkt}); return false; } ${"GLOBALS"}["wjqppbgec"] = "pid"; if (!AgileInstaller::sql_install(dirname(__FILE__) . "/" . self::INSTALL_SQL_FILE)) { return false; } $this->add_fields_for_upgrade(); $this->build_index(); if (!AgileInstaller::sql_install(dirname(__FILE__) . "/" . self::FIELDS_CONFIG_SQL_FILE)) { return false; } if (!AgileInstaller::sql_install(dirname(__FILE__) . "/" . self::CUSTOM_FIELDS_CONFIG_SQL_FILE)) { return false; } if (!$this->register_tabs()) { return false; } ${${"GLOBALS"}["wjqppbgec"]} = $this->createLinkedProfile(); AgileInstaller::init_profile_prmission_for_existing_tabs(${${"GLOBALS"}["gkvxrpe"]}, 0, 0, 0, 0); $this->set_permissions(${${"GLOBALS"}["mpdtemgjjhqp"]}, self::${${"GLOBALS"}["evyxjfphfrmf"]}); if (parent::install() == false or Configuration::updateValue("AGILE_MS_PROFILE_ID", ${$picorcbvbjw}) == false or Configuration::updateValue("AGILE_MS_CUSTOMER_SELLER", 1) == false or Configuration::updateValue("AGILE_MS_SELLER_APPROVAL", 0) == false or Configuration::updateValue("AGILE_MS_EDIT_CATEGORY", 0) == false or Configuration::updateValue("AGILE_MS_PAYMENT_MODE", AgileMultipleSeller::PAYMENT_MODE_STORE) == false or Configuration::updateValue("AGILE_MS_CART_MODE", 0) == false or Configuration::updateValue("AGILE_MS_SELLER_TAB", 1) == false or Configuration::updateValue("AGILE_MS_SELLER_TERMS", 3) == false or Configuration::updateValue("AGILE_MS_PRODUCT_APPROVAL", 0) == false or Configuration::updateValue("AGILE_MS_MYSELLER_URL_DIRECTORY", "my-seller-account") == false or Configuration::updateValue("AGILE_MS_SELLER_PANEL_WITHLEFT", 0) == false or Configuration::updateValue("AGILE_MS_SELLER_PANEL_WITHRIGHT", 0) == false or Configuration::updateValue("AGILE_MS_ALLOW_REGISTER_ATHOME", 0) == false or Configuration::updateValue("AGILE_MS_SELLER_BACK_OFFICE", 0) == false or Configuration::updateValue("AGILE_MS_SELLER_INFO_THEME", 0) == false) { return false; } if (!$this->registerHook("displayFooter") or !$this->registerHook("actionCartSave") or !$this->registerHook("displayCustomerAccountForm") or !$this->registerHook("actionValidateOrder") or !$this->registerHook("displayProductTab") or !$this->registerHook("displayProductTabContent") or !$this->registerHook("actionOrderStatusUpdate") or !$this->registerHook("actionHtaccessCreate") or !$this->registerHook("actionCustomerAccountAdd") or !$this->registerHook("actionCarrierUpdate") or !$this->registerHook("displayHeader")) { return false; } $this->update_sellerinfo_lang_data(); $this->registerHook("customerAccount"); $this->registerHook("myAccountBlock"); $this->hookActionHtaccessCreate(array("install" => 1)); Configuration::updateValue("AGILE_MS_ADMIN_FOLDER_NAME", AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"])); $this->assign_exosting_objects(); $this->install_otherfiles(); if (version_compare(_PS_VERSION_, "1.5", ">=")) { Autoload::getInstance()->generateIndex(); } return true; }
public function getContent() { ${"GLOBALS"}["nggopnwnm"] = "_newfiles"; $ofgtuxou = "health_check"; $this->_html = "<h2>" . $this->displayName . "</h2>"; ${${"GLOBALS"}["dctmswpd"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]); ${"GLOBALS"}["wvapdbhsqu"] = "health_check"; ${${"GLOBALS"}["jwwodsfdhp"]} = AgileInstaller::install_health_check(self::${${"GLOBALS"}["nggopnwnm"]}, $this->name, ${${"GLOBALS"}["dctmswpd"]}); if (!empty(${$ofgtuxou})) { $this->_html .= ${${"GLOBALS"}["wvapdbhsqu"]}; } $this->_html .= AgileInstaller::show_agile_links(); if (Tools::isSubmit("submitSettings")) { ${"GLOBALS"}["gflwfkuj"] = "login_required"; ${"GLOBALS"}["fjrrodp"] = "donotreply_email"; ${"GLOBALS"}["evzyodqrecf"] = "use_capcha"; ${"GLOBALS"}["amqoojigfhst"] = "login_required"; ${${"GLOBALS"}["amqoojigfhst"]} = Tools::getValue("login_required"); $ulmjqavqch = "approval_required"; if (intval(${${"GLOBALS"}["uermrffloso"]}) != 0) { ${${"GLOBALS"}["uermrffloso"]} = 1; } ${"GLOBALS"}["lxrumynk"] = "email_copyadmin"; ${"GLOBALS"}["fhdskqgghrc"] = "use_capcha"; ${"GLOBALS"}["jkmxnbzql"] = "use_capcha"; $keoajkcffnc = "hide_email"; Configuration::updateValue("ASMGER_LOGIN_REQUIRED", intval(${${"GLOBALS"}["gflwfkuj"]})); $uvgjdwwvsy = "donotreply_email"; ${${"GLOBALS"}["ltblefvsy"]} = Tools::getValue("approval_required"); ${"GLOBALS"}["vicgbehls"] = "hide_email"; if (intval(${$ulmjqavqch}) != 0) { ${${"GLOBALS"}["ltblefvsy"]} = 1; } $vdiljeil = "messenger_theme"; Configuration::updateValue("ASMGER_APPROVAL_REQUIRED", intval(${${"GLOBALS"}["ltblefvsy"]})); ${${"GLOBALS"}["swryjfvdb"]} = Tools::getValue("hide_email"); if (intval(${${"GLOBALS"}["vicgbehls"]}) != 0) { ${${"GLOBALS"}["swryjfvdb"]} = 1; } Configuration::updateValue("ASMGER_HIDE_EMAIL", intval(${$keoajkcffnc})); ${${"GLOBALS"}["lxrumynk"]} = Tools::getValue("email_copyadmin"); if (intval(${${"GLOBALS"}["ubbycy"]}) != 0) { ${${"GLOBALS"}["ubbycy"]} = 1; } $dkbgwqcxtj = "allow_attachment"; Configuration::updateValue("ASMGER_EMAIL_COPYADMIN", intval(${${"GLOBALS"}["ubbycy"]})); ${${"GLOBALS"}["pzyfrehts"]} = Tools::getValue("use_capcha"); if (intval(${${"GLOBALS"}["jkmxnbzql"]}) != 0) { ${${"GLOBALS"}["fhdskqgghrc"]} = 1; } Configuration::updateValue("ASMGER_USE_CAPCHA", intval(${${"GLOBALS"}["evzyodqrecf"]})); ${$uvgjdwwvsy} = Tools::getValue("donotreply_email"); Configuration::updateValue("ASMGER_DONOTREPLY_EMAIL", ${${"GLOBALS"}["fjrrodp"]}); ${${"GLOBALS"}["ujqcfl"]} = Tools::getValue("allow_attachment"); if (intval(${${"GLOBALS"}["ujqcfl"]}) != 0) { ${${"GLOBALS"}["ujqcfl"]} = 1; } Configuration::updateValue("ASMGER_ALLOW_ATTACHMENT", intval(${$dkbgwqcxtj})); ${${"GLOBALS"}["oivbtgllqy"]} = (int) Tools::getValue("messenger_theme"); Configuration::updateValue("AGILE_MESSENGER_THEME", ${$vdiljeil}); $this->_html .= $this->displayConfirmation($this->l('Settings updated')); } $this->displayForm(); return $this->_html; }
public function getContent() { $this->_html = '<h2>' . $this->displayName . '</h2>'; $adminfolder = AgileInstaller::detect_admin_folder($_SERVER['SCRIPT_FILENAME']); $health_check = AgileInstaller::install_health_check(self::$_newfiles, $this->name, $adminfolder); if (!empty($health_check)) { $this->_html .= $health_check; } $this->_html .= AgileInstaller::show_agile_links(); if (isset($_POST['submitPaypal'])) { if (empty($_POST['business'])) { $this->_postErrors[] = $this->getL('Paypal business e-mail address is required.'); } elseif (!Validate::isEmail($_POST['business'])) { $this->_postErrors[] = $this->getL('Paypal business must be an e-mail address.'); } if (!isset($_POST['sandbox'])) { $_POST['sandbox'] = 1; } if (!isset($_POST['force_summary'])) { $_POST['force_summary'] = 1; } if (!isset($_POST['hidecountry'])) { $_POST['hidecountry'] = 0; } if (!isset($_POST['hidecarrier'])) { $_POST['hidecarrier'] = 0; } if (!isset($_POST['hideterms'])) { $_POST['hideterms'] = 0; } if (!isset($_POST['recurringpayment'])) { $_POST['recurringpayment'] = 0; } if (!isset($_POST['recurringdaily'])) { $_POST['recurringdaily'] = 0; } if (!isset($_POST['recurringweekly'])) { $_POST['recurringweekly'] = 0; } if (!isset($_POST['recurringmonthly'])) { $_POST['recurringmonthly'] = 0; } if (!isset($_POST['recurringyearly'])) { $_POST['recurringyearly'] = 0; } if (!isset($_POST['support_sellers'])) { $_POST['support_sellers'] = 0; } if (!isset($_POST['am_integrated'])) { $_POST['am_integrated'] = 0; } if (!isset($_POST['am_show_choice'])) { $_POST['am_show_choice'] = 0; } if (!isset($_POST['am_mix_product'])) { $_POST['am_mix_product'] = 0; } if (!sizeof($this->_postErrors)) { Configuration::updateValue('AGILE_PAYPAL_BUSINESS', strval($_POST['business'])); Configuration::updateValue('AGILE_PAYPAL_SANDBOX', intval($_POST['sandbox'])); Configuration::updateValue('AGILE_PAYPAL_FORCE_SUMMARY', intval($_POST['force_summary'])); Configuration::updateValue('AGILE_PAYPAL_HEADER', strval($_POST['header'])); Configuration::updateValue('AGILE_PAYPAL_HIDE_COUNTRY', intval($_POST['hidecountry'])); Configuration::updateValue('AGILE_PAYPAL_HIDE_CARRIER', intval($_POST['hidecarrier'])); Configuration::updateValue('AGILE_PAYPAL_HIDE_TERMS', intval($_POST['hideterms'])); Configuration::updateValue('AGILE_PAYPAL_RECURRING_PAYMENT', intval($_POST['recurringpayment'])); Configuration::updateValue('AGILE_PAYPAL_RECURRING_DAILY', intval($_POST['recurringdaily'])); Configuration::updateValue('AGILE_PAYPAL_RECURRING_WEEKLY', intval($_POST['recurringweekly'])); Configuration::updateValue('AGILE_PAYPAL_RECURRING_MONTHLY', intval($_POST['recurringmonthly'])); Configuration::updateValue('AGILE_PAYPAL_RECURRING_YEARLY', intval($_POST['recurringyearly'])); Configuration::updateValue('AGILE_PAYPAL_SUPPORT_SELLERS', floatval($_POST['support_sellers'])); Configuration::updateValue('AGILE_PAYPAL_BUSINESS2', strval($_POST['business2'])); Configuration::updateValue('AGILE_PAYPAL_MICRO_AMOUNT', floatval($_POST['micro_amount'])); Configuration::updateValue('AGILE_PAYPAL_EXPRESS_ENABLED', intval(Tools::getValue('express_enabled'))); Configuration::updateValue('AGILE_PAYPAL_AM_INTEGRATED', intval(Tools::getValue('am_integrated'))); Configuration::updateValue('AGILE_PAYPAL_AM_SHOW_CHOICE', intval(Tools::getValue('am_show_choice'))); Configuration::updateValue('AGILE_PAYPAL_AM_NO_MIX_PRODUCT', intval(Tools::getValue('am_mix_product'))); Configuration::updateValue('AGILE_PAYPAL_SUBSCRIBE_ONLY', intval(Tools::getValue('subscribe_only'))); Configuration::updateValue('AGILE_PAYPAL_CURRENCY', intval(Tools::getValue('paypal_currency'))); $this->displayConf(); } else { $this->displayErrors(); } } $this->displayFormSettings(); return $this->_html; }
public function getContent() { $rcfppmkiv = "health_check"; ${"GLOBALS"}["svrovshnru"] = "health_check"; $this->_html = ""; ${${"GLOBALS"}["lnnlxqmnhci"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]); ${${"GLOBALS"}["svrovshnru"]} = AgileInstaller::install_health_check($this->newfiles, $this->name, ${${"GLOBALS"}["lnnlxqmnhci"]}); if (!empty(${${"GLOBALS"}["lulogktguw"]})) { $this->_html .= ${$rcfppmkiv}; } $this->_html .= AgileInstaller::show_agile_links(); if (Tools::isSubmit("submitSettings")) { ${"GLOBALS"}["sxisjsml"] = "header_logo_mode"; ${"GLOBALS"}["ofvhktcz"] = "sellers_shop_mode"; ${${"GLOBALS"}["sxisjsml"]} = Tools::getValue("header_logo_mode"); ${${"GLOBALS"}["fgtuoftqbd"]} = Tools::getValue("home_column_left"); $afpvseocsgw = "sellerNbr"; ${${"GLOBALS"}["iygstvxxgl"]} = Tools::getValue("home_column_right"); ${${"GLOBALS"}["ofvhktcz"]} = Tools::getValue("sellers_shop_mode"); ${"GLOBALS"}["hsoksqkqx"] = "sellerNbr"; ${${"GLOBALS"}["mjiiyoe"]} = Tools::getValue("location_block_level"); ${${"GLOBALS"}["mdihropugwk"]} = (int) Tools::getValue("shop_url_mode"); ${${"GLOBALS"}["iqcfbhgpl"]} = (int) Tools::getValue("shop_login_mode"); if (!(${$afpvseocsgw} = Tools::getValue("sellerNbr")) or empty(${${"GLOBALS"}["hsoksqkqx"]})) { $this->_html .= $this->displayError($this->l('Please fill in the "sellers to be displayed" field.')); } elseif ((int) ${${"GLOBALS"}["jlydvn"]} == 0) { $this->_html .= $this->displayError($this->l('Invalid number.')); } else { ${"GLOBALS"}["qbfpngwva"] = "home_column_left"; Configuration::updateValue("ASP_SELLER_NBR", intval(${${"GLOBALS"}["jlydvn"]})); Configuration::updateValue("ASP_SELLERS_BLOCK_POSITION", intval(Tools::getValue("sellers_block_pos"))); Configuration::updateValue("ASP_HOME_COLUMN_LEFT", ${${"GLOBALS"}["qbfpngwva"]}); Configuration::updateValue("ASP_HOME_COLUMN_RIGHT", ${${"GLOBALS"}["iygstvxxgl"]}); Configuration::updateValue("ASP_HEADER_LOGO_MODE", ${${"GLOBALS"}["zfizxzknlec"]}); 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"}["mdihropugwk"]}); Configuration::updateValue("ASP_SHOP_LOGIN_MODE", ${${"GLOBALS"}["iqcfbhgpl"]}); Configuration::updateValue("ASP_URL_CHOICE_CAT", Tools::getValue("url_choice_cat")); Configuration::updateValue("ASP_URL_CHOICE_CMS", Tools::getValue("url_choice_cms")); $this->_html .= $this->displayConfirmation($this->l('Settings updated')); } } $this->_html .= $this->renderForm(); $this->_html .= "<div class=\"alert alert-info\"> <span style=\"color:red\">" . $this->l('Notes:') . "</span> - \n\t\t\t<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>\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" . $this->l('2. Breadcrumb - You need make some changes at breadcrumb.tpl file to include seller shop in Breadcrumb (store navigation bar)') . "<br></div>"; return $this->_html; }