public function init()
 {
     ${"GLOBALS"}["pcwndnxzm"] = "isoTinyMCE";
     parent::init();
     ${"GLOBALS"}["akprgggjmj"] = "languages";
     ${"GLOBALS"}["tbvspw"] = "deflang";
     ${"GLOBALS"}["vhicmlpg"] = "custom_labels";
     ${${"GLOBALS"}["tbvspw"]} = new Language(self::$cookie->id_lang);
     $tmulinwrlntj = "str_custom_multi_lang_fields";
     ${"GLOBALS"}["ktemnns"] = "custom_multi_lang_fields";
     ${${"GLOBALS"}["gdwbgebyw"]} = file_exists(_PS_ROOT_DIR_ . "/js/tiny_mce/langs/" . $deflang->iso_code . ".js") ? $deflang->iso_code : "en";
     ${${"GLOBALS"}["iffkuw"]} = str_replace("\\", "\\\\", dirname($_SERVER["PHP_SELF"]));
     ${${"GLOBALS"}["akprgggjmj"]} = Language::getLanguages(false);
     ${"GLOBALS"}["aecuqgnp"] = "custom_multi_lang_fields";
     ${${"GLOBALS"}["ijwyqrvm"]} = new AgileMultipleSeller();
     ${${"GLOBALS"}["iqpxuil"]} = Configuration::getMultiple($sellermodule->getCustomFields());
     ${${"GLOBALS"}["vhicmlpg"]} = $sellermodule->getCustomLabels(":");
     ${"GLOBALS"}["ppyvhso"] = "custom_labels";
     ${${"GLOBALS"}["aecuqgnp"]} = SellerInfo::getCustomMultiLanguageFields();
     ${$tmulinwrlntj} = "";
     ${"GLOBALS"}["wsahmoa"] = "isoTinyMCE";
     foreach (${${"GLOBALS"}["ktemnns"]} as ${${"GLOBALS"}["jbuucd"]}) {
         ${"GLOBALS"}["krcvdjennfj"] = "custom_multi_lang_field";
         ${${"GLOBALS"}["lkuqcxcngl"]} .= "¤" . ${${"GLOBALS"}["krcvdjennfj"]};
     }
     self::$smarty->assign(array("seller_tab_id" => 2, "ad" => ${${"GLOBALS"}["iffkuw"]}, "isoTinyMCE" => ${${"GLOBALS"}["pcwndnxzm"]}, "theme_css_dir" => _THEME_CSS_DIR_, "languages" => ${${"GLOBALS"}["tgpizrhrpccv"]}, "current_id_lang" => self::$cookie->id_lang, "conf" => ${${"GLOBALS"}["iqpxuil"]}, "custom_labels" => ${${"GLOBALS"}["ppyvhso"]}, "str_custom_multi_lang_fields" => ${${"GLOBALS"}["lkuqcxcngl"]}, "shop_url_mode" => (int) Configuration::get("ASP_SHOP_URL_MODE"), "iso_code" => ${${"GLOBALS"}["wsahmoa"]}));
 }
예제 #2
0
 public function init()
 {
     $mcdihdb = "languages";
     ${"GLOBALS"}["xhccqhjxont"] = "isoTinyMCE";
     $drhnvgt = "isoTinyMCE";
     parent::init();
     $jroeop = "ad";
     ${${"GLOBALS"}["gamykcfjdcgw"]} = new Language(self::$cookie->id_lang);
     ${"GLOBALS"}["rhmmsnsvwlgp"] = "conf";
     $bbbjuniipnw = "sellermodule";
     ${${"GLOBALS"}["xhccqhjxont"]} = file_exists(_PS_ROOT_DIR_ . "/js/tiny_mce/langs/" . $deflang->iso_code . ".js") ? $deflang->iso_code : "en";
     ${${"GLOBALS"}["hlqjun"]} = str_replace("\\", "\\\\", dirname($_SERVER["PHP_SELF"]));
     ${$mcdihdb} = Language::getLanguages(false);
     ${$bbbjuniipnw} = new AgileMultipleSeller();
     $ecjsakupxs = "languages";
     ${${"GLOBALS"}["rhmmsnsvwlgp"]} = Configuration::getMultiple($sellermodule->getCustomFields());
     self::$smarty->assign(array("ad" => ${$jroeop}, "isoTinyMCE" => ${$drhnvgt}, "theme_css_dir" => _THEME_CSS_DIR_, "languages" => ${$ecjsakupxs}, "current_id_lang" => self::$cookie->id_lang, "shop_url_mode" => (int) Configuration::get("ASP_SHOP_URL_MODE"), "iso_code" => ${${"GLOBALS"}["yoedcy"]}));
 }
예제 #3
0
 public function init()
 {
     parent::init();
     ${"GLOBALS"}["tvubeipssbhz"] = "id_product";
     $bxgngnjmt = "action";
     $this->orderBy = Tools::getValue("agile_orderby");
     $this->orderWay = Tools::getValue("agile_orderway");
     $cegzdngh = "id_product";
     ${$bxgngnjmt} = Tools::getValue("process");
     ${$cegzdngh} = Tools::getValue("id_product");
     if (isset(${${"GLOBALS"}["xmejvhmbjf"]}) && isset(${${"GLOBALS"}["tvubeipssbhz"]})) {
         ${"GLOBALS"}["qcujxbitt"] = "action";
         $ljdeuuxtnpu = "action";
         if (${${"GLOBALS"}["qcujxbitt"]} == "delete") {
             $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId($this->context->customer->id), $this->context->language->id);
             if ($this->sellerinfo->id_seller > 0 and $this->sellerinfo->id_seller == AgileSellerManager::getObjectOwnerID("product", ${${"GLOBALS"}["kswjllrrkq"]})) {
                 ${"GLOBALS"}["jbichwqsqmye"] = "product";
                 $gmydjry = "product";
                 ${${"GLOBALS"}["xbssqyr"]} = new Product((int) ${${"GLOBALS"}["kswjllrrkq"]});
                 $this->beforeDelete(${${"GLOBALS"}["jbichwqsqmye"]});
                 if (!$product->delete()) {
                     $this->errors[] = Tools::displayError("Error occured during deleting the product.");
                 }
                 $this->afterDelete(${$gmydjry}, $product->id);
             } else {
                 $this->errors[] = Tools::displayError("You do not have permission to delete this product or the product is not found.");
             }
         } else {
             if (${${"GLOBALS"}["xmejvhmbjf"]} == "inactive" || ${$ljdeuuxtnpu} == "active") {
                 $gvvbmjfbht = "id_product";
                 ${${"GLOBALS"}["xbssqyr"]} = new Product((int) ${$gvvbmjfbht});
                 $product->active = !$product->active;
                 $product->update();
                 $this->sellerinfo = new SellerInfo(SellerInfo::getIdByCustomerId($this->context->customer->id), $this->context->language->id);
                 AgileSellerManager::assignObjectOwner("product", ${${"GLOBALS"}["kswjllrrkq"]}, $this->sellerinfo->id_seller);
             }
         }
     }
 }
 public function init()
 {
     global $smarty;
     parent::init();
     header("Cache-Control: no-cache, must-revalidate");
     header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
     $this->getLastId();
     if (isset($_POST["price"])) {
         $_POST["price"] = str_replace(",", ".", $_POST["price"]);
     }
     if (isset($_POST["priceTI"])) {
         $_POST["priceTI"] = str_replace(",", ".", $_POST["priceTI"]);
     }
     if (isset($_POST["wholesale_price"])) {
         $_POST["wholesale_price"] = str_replace(",", ".", $_POST["wholesale_price"]);
     }
     $this->max_image_size = (int) Configuration::get("PS_PRODUCT_PICTURE_MAX_SIZE") / 1000;
     $this->languages = Language::getLanguages(false);
     $this->id_object = intval(Tools::getValue("id_product"));
     // $this->id_language    = intval(Tools::getValue("id_language"));
     $this->id_language = intval(Tools::getValue("id_language"));
     $this->product_menu = intval(Tools::getValue("product_menu"));
     if ($this->product_menu == 0) {
         $this->product_menu = 1;
     }
     if ($this->id_language == 0) {
         $this->id_language = $this->context->language->id;
     }
     $this->object = $this->agileLoadProduct($this->id_object, true);
     if (empty($this->object->city[2])) {
         $this->object->city[2] = $this->object->city[1];
     }
     if (empty($this->object->address2[2])) {
         $this->object->address2[2] = $this->object->address2[1];
     }
     // die('<pre>' . print_r($this->object, true));
     if ($this->id_object == 0) {
         $this->object->out_of_stock = StockAvailable::outOfStock(0);
     }
     $ltyvyfkplnj = "hasOwnerShip";
     ${${"GLOBALS"}["fprzbrt"]} = $this->hasOwnerShip();
     if (!${$ltyvyfkplnj}) {
         $this->errors = Tools::displayError("You do not have permission to access/modify this data.");
     }
     $smarty->assign(array("hasOwnerShip" => ${${"GLOBALS"}["fprzbrt"]}));
 }
예제 #5
0
 public function init()
 {
     parent::init();
     header("Cache-Control: no-cache, must-revalidate");
     header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
 }