public function init() { Yii::import('application.modules.advertising.models.AdvertArea'); $advertModel = new Advert(); $advertModel->publishAssets(); parent::init(); }
public function init() { if (Tools::getValue("submitAdd" . $this->table)) { $_POST["submitAdd" . $this->table . "AndStay"] = 1; } parent::init(); }
public function init() { parent::init(); $this->bootstrap = true; $this->action = 'view'; $this->display = 'view'; $this->show_page_header_toolbar = true; $this->tpl_folder = _PS_MODULE_DIR_ . $this->module->name . '/views/templates/admin/PiwikAnalytics/'; }
public function init() { if (Tools::isSubmit('edit' . $this->className)) { $this->display = 'edit'; } elseif (Tools::isSubmit('addLinkBlock')) { $this->display = 'add'; } parent::init(); }
public function init() { if (Tools::isSubmit('createclaims')) { $this->display = 'createClaims'; } if (Tools::isSubmit('viewMessages')) { $this->display = 'viewMessages'; } parent::init(); }
public function init() { parent::init(); Shop::addTableAssociation($this->table, array('type' => 'shop')); if (Shop::getContext() == Shop::CONTEXT_SHOP) { $this->_join .= ' LEFT JOIN `' . _DB_PREFIX_ . $this->table . '_shop` sa ON (a.`id_' . $this->table . '` = sa.`id_' . $this->table . '` AND sa.id_shop = ' . (int) $this->context->shop->id . ') '; } if (Shop::getContext() == Shop::CONTEXT_SHOP && Shop::isFeatureActive()) { $this->_where = ' AND sa.`id_shop` = ' . (int) Context::getContext()->shop->id; } }
public function init() { parent::init(); $this->filter = array('country_id' => 0, 'region_id' => 0, 'city_id' => 0, 'type' => 0, 'obj_type_id' => 0, 'rooms' => 0, 'ot' => 0, 'wp' => 0); $addedFields = InfoPages::getAddedFields(); if ($addedFields) { $this->addedFields = $addedFields; foreach ($addedFields as $field) { $this->filter[$field['field']] = ''; } } }
public function init() { $this->number_from = Tools::getValue('number_from') ? Tools::getValue('number_from') : false; $this->number_to = Tools::getValue('number_to') ? Tools::getValue('number_to') : false; if ($this->number_to && $this->number_from > $this->number_to) { $_n = $this->number_from; $this->number_from = $this->number_to; $this->number_to = $_n; } $this->postProcess(); $this->context->smarty->assign(['number_from' => $this->number_from, 'number_to' => $this->number_to]); parent::init(); }
public function init() { global $cookie; if (isset($_GET["update" . $this->table]) and isset($_GET[$this->identifier]) and (int) $_GET[$this->identifier] > 0) { $sceeyw = "id"; $uhniwwg = "newtoekn"; ${$sceeyw} = Tools::getValue($this->identifier); $dnpivptxp = "url"; ${${"GLOBALS"}["alckpcfpi"]} = Tools::getAdminTokenLite("AdminProducts"); ${$dnpivptxp} = "./index.php?controller=adminproducts&" . $this->identifier . "=" . ${${"GLOBALS"}["zqcowl"]} . "&update" . $this->table . "&token=" . ${$uhniwwg}; Tools::redirectAdmin(${${"GLOBALS"}["ngytimynyt"]}); } parent::init(); }
public function init() { parent::init(); Shop::addTableAssociation($this->table, array('type' => 'shop')); if (Shop::getContext() == Shop::CONTEXT_SHOP) { $this->_join .= ' LEFT JOIN `' . _DB_PREFIX_ . 'simpleblog_category_shop` sa ON (a.`id_simpleblog_category` = sa.`id_simpleblog_category` AND sa.id_shop = ' . (int) $this->context->shop->id . ') '; } // else // $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'simpleblog_category_shop` sa ON (a.`simpleblog_category` = sa.`simpleblog_category` AND sa.id_shop = a.id_shop_default) '; if (Shop::getContext() == Shop::CONTEXT_SHOP && Shop::isFeatureActive()) { $this->_where = ' AND sa.`id_shop` = ' . (int) Context::getContext()->shop->id; } if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP) { unset($this->fields_list['position']); } }
public function init() { parent::init(); if (isFree()) { $this->defLang = Yii::app()->language; $this->currLang = Yii::app()->language; $this->mask = 'type;priceType;objType;countryName;regionName;cityName;isPricePoa;price;priceTo;numberRooms;floor;floorTotal;square;landSquare;sleeps;title;description;near;location;exchange;bathroom;safety;comfort;kitchen;employment;entertainment;services;terms;photos;lat;lng'; } else { $this->allLangs = Lang::model()->findAll(array('condition' => 'active = 1')); $this->mask = 'type;priceType;objType;countryName;regionName;cityName;isPricePoa;price;priceTo;numberRooms;floor;floorTotal;square;landSquare;sleeps'; $this->defLang = Lang::getDefaultLang(); $this->currLang = Yii::app()->language; if ($this->allLangs) { foreach ($this->i18nMaskFields as $i18nMaskField) { foreach ($this->allLangs as $lang) { $this->mask .= ";{$i18nMaskField}_{$lang->name_iso}"; } } } $this->mask .= ';bathroom;safety;comfort;kitchen;employment;entertainment;services;terms;photos;lat;lng'; } }
public function init() { parent::init(); Yii::app()->user->setState('menu_active', 'location.country'); }
public function init() { global $cookie; if (isset($_GET["updateorder_detail"]) and isset($_GET["id_order_detail"]) and (int) $_GET["id_order_detail"] > 0) { ${"GLOBALS"}["yaxheiul"] = "id_order_detail"; ${${"GLOBALS"}["yaxheiul"]} = Tools::getValue("id_order_detail"); $nkotcipboi = "url"; $mlqeupaocox = "tabid"; ${${"GLOBALS"}["xeuiojtfef"]} = new OrderDetail(${${"GLOBALS"}["kwzmtwdwu"]}); ${"GLOBALS"}["zcuxuhun"] = "newtoekn"; ${${"GLOBALS"}["aaiesey"]} = Tab::getIdFromClassName("AdminOrders"); ${${"GLOBALS"}["zcuxuhun"]} = Tools::getAdminToken("AdminOrders" . intval(${$mlqeupaocox}) . intval($cookie->id_employee)); ${${"GLOBALS"}["epfgdop"]} = "./index.php?controller=adminorders&id_order=" . $orderdetail->id_order . "&vieworder&token=" . ${${"GLOBALS"}["cxphhve"]}; Tools::redirectAdmin(${$nkotcipboi}); } parent::init(); }