Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
 function set_permissions($id_profile, $tabs)
 {
     ${"GLOBALS"}["owuxtjj"] = "classes";
     $ersxjahvsivr = "classes";
     ${"GLOBALS"}["srcwor"] = "tabs";
     ${$ersxjahvsivr} = array_keys(${${"GLOBALS"}["srcwor"]});
     foreach (${${"GLOBALS"}["owuxtjj"]} as ${${"GLOBALS"}["lopcfvl"]}) {
         ${"GLOBALS"}["vlfiyelsex"] = "class";
         $mrgvvljcigx = "classname";
         ${"GLOBALS"}["lawbeotfpxg"] = "class";
         $lyzrjlnwfb = "tabs";
         ${"GLOBALS"}["foldgqbgy"] = "class";
         $uzsnnkxp = "class";
         $qnleejtf = "class";
         ${$mrgvvljcigx} = ${${"GLOBALS"}["lopcfvl"]};
         $edqwbpr = "tabs";
         $monvoyijl = "id_profile";
         ${"GLOBALS"}["ntxxbxbjdld"] = "tabs";
         if (isset(${$lyzrjlnwfb}[${$uzsnnkxp}]["new_class"]) and !empty(${${"GLOBALS"}["rzchhrej"]}[${${"GLOBALS"}["vlfiyelsex"]}]["new_class"])) {
             ${${"GLOBALS"}["uhijycecvb"]} = ${${"GLOBALS"}["rzchhrej"]}[${$qnleejtf}]["new_class"];
         }
         AgileInstaller::update_access(${$monvoyijl}, ${${"GLOBALS"}["uhijycecvb"]}, ${$edqwbpr}[${${"GLOBALS"}["lopcfvl"]}]["view"], ${${"GLOBALS"}["rzchhrej"]}[${${"GLOBALS"}["lawbeotfpxg"]}]["edit"], ${${"GLOBALS"}["ntxxbxbjdld"]}[${${"GLOBALS"}["foldgqbgy"]}]["add"], ${${"GLOBALS"}["rzchhrej"]}[${${"GLOBALS"}["lopcfvl"]}]["delete"]);
     }
 }
Exemplo n.º 4
0
 public static function cleanup_old_installation()
 {
     $atfajms = "files";
     $jdiwfl = "results";
     ${${"GLOBALS"}["ivwoowsbwrdg"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]);
     ${$atfajms} = array("override/classes/controller/AdminController.php", "override/classes/controller/FrontController.php", "override/classes/controller/ModuleFrontController.php", "override/classes/controller/ModuleAdminController.php", "override/classes/AdminTab.php", "override/classes/Attachment.php", "override/classes/Carrier.php", "override/classes/Category.php", "override/classes/Customer.php", "override/classes/Cart.php", "override/classes/Dispatcher.php", "override/classes/Employee.php", "override/classes/Link.php", "override/classes/Language.php", "override/classes/Mail.php", "override/classes/Manufacturer.php", "override/classes/ObjectModel.php", "override/classes/PaymentModule.php", "override/classes/Product.php", "override/classes/ProductDownload.php", "override/classes/ProductSale.php", "override/classes/Search.php", "override/classes/Tools.php", "override/classes/helper/HelperList.php", "override/classes/module/Module.php", "override/classes/order/Order.php", "override/classes/pdf/HTMLTemplate.php", "override/classes/shop/Shop.php", "override/controllers/admin/AdminAddressesController.php", "override/controllers/admin/AdminCarriersController.php", "override/controllers/admin/AdminCarrierWizardController.php", "override/controllers/admin/AdminCategoriesController.php", "override/controllers/admin/AdminCustomersController.php", "override/controllers/admin/AdminEmployeesController.php", "override/controllers/admin/AdminFeaturesController.php", "override/controllers/admin/AdminLanguagesController.php", "override/controllers/admin/AdminLoginController.php", "override/controllers/admin/AdminManufacturersController.php", "override/controllers/admin/AdminOrdersController.php", "override/controllers/admin/AdminProductsController.php", "override/controllers/admin/AdminReturnController.php", "override/controllers/admin/AdminShippingController.php", "override/controllers/admin/AdminPreferencesController.php", "override/controllers/admin/AdminShopController.php", "override/controllers/admin/AdminShopGroupController.php", "override/controllers/admin/AdminShopUrlController.php", "override/controllers/front/AuthController.php", "override/controllers/front/ProductController.php", "override/controllers/front/OrderController.php", "override/controllers/front/OrderOpcController.php");
     ${$jdiwfl} = array();
     foreach (${${"GLOBALS"}["jkeltojcie"]} as ${${"GLOBALS"}["sqdbutqrqwd"]}) {
         ${"GLOBALS"}["nrkfbrctyokn"] = "folder";
         ${"GLOBALS"}["iovmeyres"] = "file";
         ${"GLOBALS"}["jjdlfjk"] = "path";
         ${"GLOBALS"}["hligxiyuouq"] = "file";
         ${"GLOBALS"}["idoucpkqbl"] = "pathinfo";
         if (empty(${${"GLOBALS"}["iovmeyres"]})) {
             continue;
         }
         ${"GLOBALS"}["uvxuooro"] = "path";
         $cnlcxfomd = "pathinfo";
         $lsnemrtk = "pathinfo";
         ${"GLOBALS"}["dkeuzezzuu"] = "fullname";
         ${"GLOBALS"}["vxzzpbso"] = "folder";
         ${"GLOBALS"}["qnfisws"] = "file";
         ${"GLOBALS"}["rvwaynnvsyfl"] = "folder";
         if (strlen(${${"GLOBALS"}["hligxiyuouq"]}) >= 5 and substr(${${"GLOBALS"}["sqdbutqrqwd"]}, 0, 5) == "admin") {
             $aubgappddho = "adminfolder";
             ${"GLOBALS"}["ffkdogqghgkx"] = "file";
             ${${"GLOBALS"}["ffkdogqghgkx"]} = ${$aubgappddho} . substr(${${"GLOBALS"}["sqdbutqrqwd"]}, 5);
         }
         ${$cnlcxfomd} = explode("/", ${${"GLOBALS"}["qnfisws"]});
         ${${"GLOBALS"}["dqlutueout"]} = array_pop(${${"GLOBALS"}["idoucpkqbl"]});
         ${${"GLOBALS"}["vxzzpbso"]} = implode("/", ${$lsnemrtk});
         ${${"GLOBALS"}["euxfcwdutpdp"]} = _PS_ROOT_DIR_ . (empty(${${"GLOBALS"}["nrkfbrctyokn"]}) ? "" : "/" . ${${"GLOBALS"}["rvwaynnvsyfl"]});
         ${${"GLOBALS"}["enslxcfoo"]} = ${${"GLOBALS"}["jjdlfjk"]} . "/bak";
         ${${"GLOBALS"}["dkeuzezzuu"]} = ${${"GLOBALS"}["uvxuooro"]} . "/" . ${${"GLOBALS"}["dqlutueout"]};
         if (!file_exists(${${"GLOBALS"}["enslxcfoo"]})) {
             mkdir(${${"GLOBALS"}["enslxcfoo"]});
         }
         if (file_exists(${${"GLOBALS"}["qsixvegvogg"]})) {
             ${"GLOBALS"}["ejymxi"] = "build_id";
             $gwitihdi = "filename";
             ${"GLOBALS"}["cgvmrizv"] = "bakfullname";
             ${${"GLOBALS"}["ejymxi"]} = floatval(self::get_build_id(${${"GLOBALS"}["qsixvegvogg"]}));
             $qhwyvqporcy = "bakpath";
             ${${"GLOBALS"}["cgvmrizv"]} = ${$qhwyvqporcy} . "/" . ${$gwitihdi} . ".last";
             if (${${"GLOBALS"}["fgeueyq"]} > 0 && ${${"GLOBALS"}["fgeueyq"]} < 2013092401.0101) {
                 $zyjjizjbbw = "bakfullname";
                 rename(${${"GLOBALS"}["qsixvegvogg"]}, ${$zyjjizjbbw});
             }
         }
     }
 }
Exemplo n.º 5
0
 private function build_index()
 {
     AgileInstaller::add_index_ifnotexists("sellerinfo", "id_seller");
     AgileInstaller::add_index_ifnotexists("sellerinfo", "id_customer");
     AgileInstaller::add_index_ifnotexists("category_owner", "id_category");
     AgileInstaller::add_index_ifnotexists("category_owner", "id_owner");
     AgileInstaller::add_index_ifnotexists("product_owner", "id_product");
     AgileInstaller::add_index_ifnotexists("product_owner", "id_owner");
     AgileInstaller::add_index_ifnotexists("customer_owner", "id_customer");
     AgileInstaller::add_index_ifnotexists("customer_owner", "id_owner");
     AgileInstaller::add_index_ifnotexists("order_owner", "id_order");
     AgileInstaller::add_index_ifnotexists("order_owner", "id_owner");
     AgileInstaller::add_index_ifnotexists("object_owner", "id_object");
     AgileInstaller::add_index_ifnotexists("object_owner", "id_owner");
     AgileInstaller::add_index_ifnotexists("object_owner", "entity");
 }
Exemplo n.º 6
0
 public static function cleanup_old_installation()
 {
     $hzjqsv = "adminfolder";
     ${$hzjqsv} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]);
     ${${"GLOBALS"}["vhohwvhku"]} = array("override/classes/controller/AdminController.php", "override/classes/controller/FrontController.php", "override/classes/controller/ModuleFrontController.php", "override/classes/controller/ModuleAdminController.php", "override/classes/AdminTab.php", "override/classes/Attachment.php", "override/classes/Carrier.php", "override/classes/Category.php", "override/classes/Customer.php", "override/classes/Cart.php", "override/classes/Dispatcher.php", "override/classes/Employee.php", "override/classes/Link.php", "override/classes/Language.php", "override/classes/Mail.php", "override/classes/Manufacturer.php", "override/classes/ObjectModel.php", "override/classes/PaymentModule.php", "override/classes/Product.php", "override/classes/ProductDownload.php", "override/classes/ProductSale.php", "override/classes/Search.php", "override/classes/Tools.php", "override/classes/helper/HelperList.php", "override/classes/module/Module.php", "override/classes/order/Order.php", "override/classes/pdf/HTMLTemplate.php", "override/classes/shop/Shop.php", "override/controllers/admin/AdminAddressesController.php", "override/controllers/admin/AdminCarriersController.php", "override/controllers/admin/AdminCarrierWizardController.php", "override/controllers/admin/AdminCategoriesController.php", "override/controllers/admin/AdminCustomersController.php", "override/controllers/admin/AdminEmployeesController.php", "override/controllers/admin/AdminFeaturesController.php", "override/controllers/admin/AdminLanguagesController.php", "override/controllers/admin/AdminLoginController.php", "override/controllers/admin/AdminManufacturersController.php", "override/controllers/admin/AdminOrdersController.php", "override/controllers/admin/AdminProductsController.php", "override/controllers/admin/AdminReturnController.php", "override/controllers/admin/AdminShippingController.php", "override/controllers/admin/AdminPreferencesController.php", "override/controllers/admin/AdminShopController.php", "override/controllers/admin/AdminShopGroupController.php", "override/controllers/admin/AdminShopUrlController.php", "override/controllers/front/AuthController.php", "override/controllers/front/ProductController.php", "override/controllers/front/OrderController.php", "override/controllers/front/OrderOpcController.php");
     ${${"GLOBALS"}["mdfvbstpbm"]} = array();
     foreach (${${"GLOBALS"}["vhohwvhku"]} as ${${"GLOBALS"}["vkhxvcnstcdi"]}) {
         ${"GLOBALS"}["kdkrlf"] = "file";
         ${"GLOBALS"}["rjvvxypvrhic"] = "file";
         $kkrymyycfqt = "bakpath";
         $cagfmdf = "pathinfo";
         ${"GLOBALS"}["tqqrotp"] = "folder";
         ${"GLOBALS"}["vogffbrarni"] = "bakpath";
         $roecryh = "fullname";
         if (empty(${${"GLOBALS"}["rjvvxypvrhic"]})) {
             continue;
         }
         $gvcpsfgsm = "file";
         ${"GLOBALS"}["ynymrng"] = "filename";
         $tuwicapq = "fullname";
         ${"GLOBALS"}["qfflixdw"] = "pathinfo";
         ${"GLOBALS"}["wpmdonou"] = "folder";
         if (strlen(${${"GLOBALS"}["vkhxvcnstcdi"]}) >= 5 and substr(${${"GLOBALS"}["kdkrlf"]}, 0, 5) == "admin") {
             $pxrler = "adminfolder";
             ${"GLOBALS"}["gmdaqejq"] = "file";
             ${${"GLOBALS"}["gmdaqejq"]} = ${$pxrler} . substr(${${"GLOBALS"}["vkhxvcnstcdi"]}, 5);
         }
         ${${"GLOBALS"}["qfflixdw"]} = explode("/", ${$gvcpsfgsm});
         ${"GLOBALS"}["fjpwkiketp"] = "folder";
         ${${"GLOBALS"}["ynymrng"]} = array_pop(${$cagfmdf});
         ${${"GLOBALS"}["wpmdonou"]} = implode("/", ${${"GLOBALS"}["tkmwtkqidmh"]});
         ${${"GLOBALS"}["csslhyqthot"]} = _PS_ROOT_DIR_ . (empty(${${"GLOBALS"}["tqqrotp"]}) ? "" : "/" . ${${"GLOBALS"}["fjpwkiketp"]});
         ${$kkrymyycfqt} = ${${"GLOBALS"}["csslhyqthot"]} . "/bak";
         ${$roecryh} = ${${"GLOBALS"}["csslhyqthot"]} . "/" . ${${"GLOBALS"}["rsrmvmjaw"]};
         if (!file_exists(${${"GLOBALS"}["vogffbrarni"]})) {
             mkdir(${${"GLOBALS"}["dnnucrbxu"]});
         }
         if (file_exists(${$tuwicapq})) {
             ${"GLOBALS"}["bfaowxda"] = "build_id";
             $sidbvcef = "build_id";
             ${${"GLOBALS"}["bfaowxda"]} = floatval(self::get_build_id(${${"GLOBALS"}["eipflewums"]}));
             ${${"GLOBALS"}["gokjgosvy"]} = ${${"GLOBALS"}["dnnucrbxu"]} . "/" . ${${"GLOBALS"}["rsrmvmjaw"]} . ".last";
             if (${${"GLOBALS"}["qjjamiimdovg"]} > 0 && ${$sidbvcef} < 2013092401.0101) {
                 $rdbpxj = "bakfullname";
                 rename(${${"GLOBALS"}["eipflewums"]}, ${$rdbpxj});
             }
         }
     }
 }
Exemplo n.º 7
0
    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>
Exemplo n.º 8
0
 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;
 }
Exemplo n.º 9
0
 public static function cleanup_old_installation()
 {
     $cijonrvcy = "adminfolder";
     ${$cijonrvcy} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]);
     ${"GLOBALS"}["zeoeurotohm"] = "file";
     ${${"GLOBALS"}["qpfoyotr"]} = array("override/classes/controller/AdminController.php", "override/classes/controller/FrontController.php", "override/classes/controller/ModuleFrontController.php", "override/classes/controller/ModuleAdminController.php", "override/classes/AdminTab.php", "override/classes/Attachment.php", "override/classes/Carrier.php", "override/classes/Category.php", "override/classes/Customer.php", "override/classes/Cart.php", "override/classes/Dispatcher.php", "override/classes/Employee.php", "override/classes/Link.php", "override/classes/Language.php", "override/classes/Mail.php", "override/classes/Manufacturer.php", "override/classes/ObjectModel.php", "override/classes/PaymentModule.php", "override/classes/Product.php", "override/classes/ProductDownload.php", "override/classes/ProductSale.php", "override/classes/Search.php", "override/classes/Tools.php", "override/classes/helper/HelperList.php", "override/classes/module/Module.php", "override/classes/order/Order.php", "override/classes/pdf/HTMLTemplate.php", "override/classes/shop/Shop.php", "override/controllers/admin/AdminAddressesController.php", "override/controllers/admin/AdminCarriersController.php", "override/controllers/admin/AdminCarrierWizardController.php", "override/controllers/admin/AdminCategoriesController.php", "override/controllers/admin/AdminCustomersController.php", "override/controllers/admin/AdminEmployeesController.php", "override/controllers/admin/AdminFeaturesController.php", "override/controllers/admin/AdminLanguagesController.php", "override/controllers/admin/AdminLoginController.php", "override/controllers/admin/AdminManufacturersController.php", "override/controllers/admin/AdminOrdersController.php", "override/controllers/admin/AdminProductsController.php", "override/controllers/admin/AdminReturnController.php", "override/controllers/admin/AdminShippingController.php", "override/controllers/admin/AdminPreferencesController.php", "override/controllers/admin/AdminShopController.php", "override/controllers/admin/AdminShopGroupController.php", "override/controllers/admin/AdminShopUrlController.php", "override/controllers/front/AuthController.php", "override/controllers/front/ProductController.php", "override/controllers/front/OrderController.php", "override/controllers/front/OrderOpcController.php");
     ${${"GLOBALS"}["ybtjhjsrzdb"]} = array();
     foreach (${${"GLOBALS"}["qpfoyotr"]} as ${${"GLOBALS"}["zeoeurotohm"]}) {
         ${"GLOBALS"}["kktdnvimmyuu"] = "path";
         $ythjypq = "pathinfo";
         if (empty(${${"GLOBALS"}["phubmlsnbvm"]})) {
             continue;
         }
         if (strlen(${${"GLOBALS"}["phubmlsnbvm"]}) >= 5 and substr(${${"GLOBALS"}["phubmlsnbvm"]}, 0, 5) == "admin") {
             ${"GLOBALS"}["uluvzuutk"] = "file";
             ${${"GLOBALS"}["uluvzuutk"]} = ${${"GLOBALS"}["mpvjiii"]} . substr(${${"GLOBALS"}["phubmlsnbvm"]}, 5);
         }
         $ssfnbuhbfx = "bakpath";
         ${${"GLOBALS"}["vimgvtb"]} = explode("/", ${${"GLOBALS"}["phubmlsnbvm"]});
         ${${"GLOBALS"}["usukulxwfr"]} = array_pop(${$ythjypq});
         ${${"GLOBALS"}["kicivuexxav"]} = implode("/", ${${"GLOBALS"}["vimgvtb"]});
         ${"GLOBALS"}["gelqbgwimwu"] = "folder";
         $dxvjckem = "fullname";
         ${"GLOBALS"}["wopwnpvyqvuv"] = "bakpath";
         $agcoqgveyhpf = "filename";
         ${${"GLOBALS"}["kktdnvimmyuu"]} = _PS_ROOT_DIR_ . (empty(${${"GLOBALS"}["gelqbgwimwu"]}) ? "" : "/" . ${${"GLOBALS"}["kicivuexxav"]});
         $ougtweevk = "path";
         ${${"GLOBALS"}["wopwnpvyqvuv"]} = ${${"GLOBALS"}["lzkrjentxai"]} . "/bak";
         ${$dxvjckem} = ${$ougtweevk} . "/" . ${$agcoqgveyhpf};
         if (!file_exists(${$ssfnbuhbfx})) {
             mkdir(${${"GLOBALS"}["nzejbaqorjn"]});
         }
         if (file_exists(${${"GLOBALS"}["nmusgironqi"]})) {
             $xuocdxu = "build_id";
             ${"GLOBALS"}["glhflpm"] = "bakfullname";
             ${"GLOBALS"}["jcymcoijktgz"] = "filename";
             ${$xuocdxu} = floatval(self::get_build_id(${${"GLOBALS"}["nmusgironqi"]}));
             ${${"GLOBALS"}["glhflpm"]} = ${${"GLOBALS"}["nzejbaqorjn"]} . "/" . ${${"GLOBALS"}["jcymcoijktgz"]} . ".last";
             if (${${"GLOBALS"}["dqgzsqot"]} > 0 && ${${"GLOBALS"}["dqgzsqot"]} < 2013092401.0101) {
                 ${"GLOBALS"}["vbnvrpdq"] = "bakfullname";
                 rename(${${"GLOBALS"}["nmusgironqi"]}, ${${"GLOBALS"}["vbnvrpdq"]});
             }
         }
     }
 }
 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;
 }
Exemplo n.º 11
0
 public static function cleanup_old_installation()
 {
     ${"GLOBALS"}["nbqvmzcstsve"] = "files";
     ${${"GLOBALS"}["nkrmowulnzd"]} = AgileInstaller::detect_admin_folder($_SERVER["SCRIPT_FILENAME"]);
     ${${"GLOBALS"}["nbqvmzcstsve"]} = array("override/classes/controller/AdminController.php", "override/classes/controller/FrontController.php", "override/classes/controller/ModuleFrontController.php", "override/classes/controller/ModuleAdminController.php", "override/classes/AdminTab.php", "override/classes/Attachment.php", "override/classes/Carrier.php", "override/classes/Category.php", "override/classes/Customer.php", "override/classes/Cart.php", "override/classes/Dispatcher.php", "override/classes/Employee.php", "override/classes/Link.php", "override/classes/Language.php", "override/classes/Mail.php", "override/classes/Manufacturer.php", "override/classes/ObjectModel.php", "override/classes/PaymentModule.php", "override/classes/Product.php", "override/classes/ProductDownload.php", "override/classes/ProductSale.php", "override/classes/Search.php", "override/classes/Tools.php", "override/classes/helper/HelperList.php", "override/classes/module/Module.php", "override/classes/order/Order.php", "override/classes/pdf/HTMLTemplate.php", "override/classes/shop/Shop.php", "override/controllers/admin/AdminAddressesController.php", "override/controllers/admin/AdminCarriersController.php", "override/controllers/admin/AdminCarrierWizardController.php", "override/controllers/admin/AdminCategoriesController.php", "override/controllers/admin/AdminCustomersController.php", "override/controllers/admin/AdminEmployeesController.php", "override/controllers/admin/AdminFeaturesController.php", "override/controllers/admin/AdminLanguagesController.php", "override/controllers/admin/AdminLoginController.php", "override/controllers/admin/AdminManufacturersController.php", "override/controllers/admin/AdminOrdersController.php", "override/controllers/admin/AdminProductsController.php", "override/controllers/admin/AdminReturnController.php", "override/controllers/admin/AdminShippingController.php", "override/controllers/admin/AdminPreferencesController.php", "override/controllers/admin/AdminShopController.php", "override/controllers/admin/AdminShopGroupController.php", "override/controllers/admin/AdminShopUrlController.php", "override/controllers/front/AuthController.php", "override/controllers/front/ProductController.php", "override/controllers/front/OrderController.php", "override/controllers/front/OrderOpcController.php");
     ${"GLOBALS"}["veogxjkwgaj"] = "files";
     ${"GLOBALS"}["vjcklkwuwvh"] = "file";
     ${${"GLOBALS"}["buykajmjdvx"]} = array();
     foreach (${${"GLOBALS"}["veogxjkwgaj"]} as ${${"GLOBALS"}["vjcklkwuwvh"]}) {
         $llsnirpvyx = "file";
         $jdohycvccd = "file";
         ${"GLOBALS"}["mpumqbl"] = "fullname";
         if (empty(${$llsnirpvyx})) {
             continue;
         }
         ${"GLOBALS"}["risvrxr"] = "bakpath";
         $iyiroelsky = "pathinfo";
         $shugbkm = "filename";
         if (strlen(${$jdohycvccd}) >= 5 and substr(${${"GLOBALS"}["pcpnkfapd"]}, 0, 5) == "admin") {
             ${${"GLOBALS"}["pcpnkfapd"]} = ${${"GLOBALS"}["nkrmowulnzd"]} . substr(${${"GLOBALS"}["pcpnkfapd"]}, 5);
         }
         $xvemfgsez = "path";
         ${"GLOBALS"}["axbihny"] = "path";
         ${${"GLOBALS"}["ddviwxqhenh"]} = explode("/", ${${"GLOBALS"}["pcpnkfapd"]});
         ${$shugbkm} = array_pop(${$iyiroelsky});
         ${${"GLOBALS"}["nwnslyxa"]} = implode("/", ${${"GLOBALS"}["ddviwxqhenh"]});
         ${$xvemfgsez} = _PS_ROOT_DIR_ . (empty(${${"GLOBALS"}["nwnslyxa"]}) ? "" : "/" . ${${"GLOBALS"}["nwnslyxa"]});
         ${${"GLOBALS"}["risvrxr"]} = ${${"GLOBALS"}["hwtwzpdev"]} . "/bak";
         ${${"GLOBALS"}["mpumqbl"]} = ${${"GLOBALS"}["axbihny"]} . "/" . ${${"GLOBALS"}["ypdfunmuy"]};
         if (!file_exists(${${"GLOBALS"}["jhwednll"]})) {
             mkdir(${${"GLOBALS"}["jhwednll"]});
         }
         if (file_exists(${${"GLOBALS"}["tcogkfj"]})) {
             ${${"GLOBALS"}["elrhmwscnqjb"]} = floatval(self::get_build_id(${${"GLOBALS"}["tcogkfj"]}));
             ${"GLOBALS"}["rhlytngk"] = "bakfullname";
             ${${"GLOBALS"}["rhlytngk"]} = ${${"GLOBALS"}["jhwednll"]} . "/" . ${${"GLOBALS"}["ypdfunmuy"]} . ".last";
             $piassthek = "build_id";
             if (${${"GLOBALS"}["elrhmwscnqjb"]} > 0 && ${$piassthek} < 2013092401.0101) {
                 rename(${${"GLOBALS"}["tcogkfj"]}, ${${"GLOBALS"}["gpeftfdhmk"]});
             }
         }
     }
 }
Exemplo n.º 12
0
 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;
 }