Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
use vendor\ekipisi\metabase\config as Config; class ControllerExtensionFeedMetaBase exten..
Decoded Output download
<? use vendor\ekipisi\metabase\config as Config; class ControllerExtensionFeedMetaBase extends Controller { private $error = array(); public function __construct($registry) { parent::__construct($registry); $this->load->language(Config::metabase_path); $this->load->model("setting/setting"); $this->load->model("setting/store"); $this->load->model("localisation/language"); $this->load->model("localisation/currency"); } public function index() { $heading_title = $this->language->get("heading_title") . " v" . Config::metabase_version; $data["heading_title"] = $heading_title; $data["lang"] = $this->config->get("config_admin_language"); $this->document->setTitle($heading_title); $this->document->addScript("view/javascript/ekipisi/lib/bootstrap-notify/bootstrap-notify.js"); $this->document->addStyle("view/javascript/ekipisi/ekipisi.css"); $this->document->addScript("view/javascript/ekipisi/ekipisi.js"); $this->document->addScript("view/javascript/ekipisi/metabase.js"); if (!isset($this->request->get["store_id"])) { $this->request->get["store_id"] = 0; } $store = $this->getCurrentStore($this->request->get["store_id"]); $metabase = $this->model_setting_setting->getSetting(Config::metabase_name_small, $store["store_id"]); $data["languages"] = $this->model_localisation_language->getLanguages(); $data["currencies"] = $this->model_localisation_currency->getCurrencies(); $data["stores"] = array_merge(array(0 => array("store_id" => "0", "name" => $this->config->get("config_name") . " (" . $this->language->get("text_default") . ")", "url" => HTTP_SERVER, "ssl" => HTTPS_SERVER)), $this->model_setting_store->getStores()); $data["store"] = $store; if ($this->request->server["REQUEST_METHOD"] == "POST" && $this->validate()) { $this->model_setting_setting->editSetting(Config::metabase_name_small, $this->request->post, $this->request->post["store_id"]); $this->session->data["success"] = $this->language->get("text_success"); $this->response->redirect($this->url->link(Config::metabase_path, "store_id=" . $this->request->post["store_id"] . "&user_token=" . $this->session->data["user_token"], true)); } if (isset($this->error["warning"])) { $data["error_warning"] = $this->error["warning"]; } else { $data["error_warning"] = ''; } if (isset($this->session->data["success"])) { $data["success"] = $this->session->data["success"]; unset($this->session->data["success"]); } else { $data["success"] = ''; } $data["breadcrumbs"] = array(); $data["breadcrumbs"][] = array("text" => $this->language->get("text_home"), "href" => $this->url->link("common/dashboard", "user_token=" . $this->session->data["user_token"], true)); $data["breadcrumbs"][] = array("text" => $this->language->get("text_extensions"), "href" => $this->url->link("marketplace/extension", "user_token=" . $this->session->data["user_token"], true)); $data["breadcrumbs"][] = array("text" => $this->language->get("heading_title"), "href" => $this->url->link(Config::metabase_path, "store_id=" . $store["store_id"] . "&user_token=" . $this->session->data["user_token"], true)); $data["gtins"] = array("UPC" => "upc", "EAN" => "ean", "JAN" => "jan", "ISBN" => "isbn", $this->language->get("text_default") => "default"); $tags = array("feed_metabase_status", "feed_metabase_category", "feed_metabase_manufacturer", "feed_metabase_currency", "feed_metabase_language", "feed_metabase_gtin", "feed_metabase_additional_image"); foreach ($tags as $tag) { if (isset($this->request->post[$tag])) { $data[$tag] = $this->request->post[$tag]; } elseif (isset($metabase[$tag])) { $data[$tag] = $metabase[$tag]; } else { if ($tag == "feed_metabase_category" || $tag == "feed_metabase_manufacturer") { $data[$tag] = array(); } else { $data[$tag] = ''; } } } $this->load->model("catalog/category"); $data["categories"] = array(); $filter = array("sort" => "name"); $categories = $this->model_catalog_category->getCategories($filter); foreach ($categories as $category) { $data["categories"][] = array("category_id" => $category["category_id"], "name" => strip_tags(html_entity_decode($category["name"], ENT_QUOTES, "UTF-8"))); } $this->load->model("catalog/manufacturer"); $data["manufacturers"] = array(); $manufacturers = $this->model_catalog_manufacturer->getManufacturers($filter); foreach ($manufacturers as $manufacturer) { $data["manufacturers"][] = array("manufacturer_id" => $manufacturer["manufacturer_id"], "name" => $manufacturer["name"], "sort_order" => $manufacturer["sort_order"], "selected" => isset($this->request->post["selected"]) && in_array($manufacturer["manufacturer_id"], $this->request->post["selected"])); } $data["feed_metabase_url"] = str_replace("//", "/", $store["ssl"] . "/index.php?route=extension/feed/meta_base&store_id=" . $this->request->get["store_id"]); if (isset($metabase["feed_metabase"])) { $data["feed_metabase"] = $metabase["feed_metabase"]; } else { $data["feed_metabase"] = array(); } if (empty($data["feed_metabase"]["license"]["name"])) { $data["domain"] = base64_encode($_SERVER["SERVER_NAME"]); $data["mid"] = "TWV0YSBCYXNl"; $data["base64"] = base64_decode($data["lang"] == "tr-tr" ? "PGRpdiBjbGFzcz0iYWxlcnQgYWxlcnQtd2FybmluZyBmYWRlIGluIj4KCQkJPGJ1dHRvbiB0eXBlPSJidXR0b24iIGNsYXNzPSJjbG9zZSIgZGF0YS1kaXNtaXNzPSJhbGVydCIgYXJpYS1oaWRkZW49InRydWUiPsOXPC9idXR0b24+CgkJCTxoND5VeWFyxLEhIE1vZMO8bMO8biBsaXNhbnNzxLF6IGJpciBzw7xyw7xtw7xuw7wga3VsbGFuxLF5b3JzdW51eiEKCQkJPC9oND4KCQkJPHA+RG/En3J1IGnFn2xleWnFnywgZGVzdGVrIHZlIGfDvG5jZWxsZW1lbGVyZSBlcmnFn2ltIHNhxJ9sYW1hayBpw6dpbiBsaXNhbnMga29kdW51enUgZ2lybWVuaXogZ2VyZWttZWt0ZWRpci48L3A+CgkJCTxwPk1ldGEgQmFzZSBGZWVkIHYxIG1vZMO8bMO8IGnDp2luIGhlcmhhbmdpIGJpciDDvGNyZXQgw7ZkZW1lZGVuCgkJCQk8Yj4KCQkJCQk8YSBjbGFzcz0idGV4dC13YXJuaW5nIiBocmVmPSJodHRwczovL3N1cHBvcnQuZWtpcGlzaS5jb20udHIvc3VibWl0LXRpY2tldC80LWxpY2VuY2UtY29kZS1saXNhbnMta29kdSIgdGFyZ2V0PSJfYmxhbmsiPmxpc2FucyBrb2R1Jm5ic3A7PGkgY2xhc3M9ImZhIGZhLWV4dGVybmFsLWxpbmsiPjwvaT4KCQkJCQk8L2E+CgkJCQk8L2I+CgkJCQl0YWxlcCBlZGViaWxpcnNpbml6Li48L3A+CgkJCTxkaXYgc3R5bGU9ImhlaWdodDoxNXB4OyI+PC9kaXY+CgkJCTxhIGNsYXNzPSJidG4gYnRuLXdhcm5pbmciIGhyZWY9ImphdmFzY3JpcHQ6dm9pZCgwKSIgb25jbGljaz0iJCgnYVtocmVmPSN0YWJfc3VwcG9ydF0nKS50cmlnZ2VyKCdjbGljaycpIj48aSBjbGFzcz0iZmEgZmEta2V5IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PC9pPiZuYnNwO0xpc2FucyBrb2R1bnV6dSBnaXJpbjwvYT4KCQk8L2Rpdj4=" : "CQk8ZGl2IGNsYXNzPSJhbGVydCBhbGVydC13YXJuaW5nIGZhZGUgaW4iPgoJCQk8YnV0dG9uIHR5cGU9ImJ1dHRvbiIgY2xhc3M9ImNsb3NlIiBkYXRhLWRpc21pc3M9ImFsZXJ0IiBhcmlhLWhpZGRlbj0idHJ1ZSI+w5c8L2J1dHRvbj4KCQkJPGg0Pldhcm5pbmchIFlvdSBhcmUgdXNpbmcgYW4gdW5saWNlbnNlZCB2ZXJzaW9uIG9mIHRoZSBtb2R1bGUhPC9oND4KCQkJPHA+VG8gZW5zdXJlIHByb3BlciBmdW5jdGlvbmluZywgYWNjZXNzIHN1cHBvcnQsIGFuZCByZWNlaXZlIHVwZGF0ZXMsIHlvdSBuZWVkIHRvIGVudGVyIHlvdXIgbGljZW5zZSBjb2RlLjwvcD4KCQkJPHA+WW91IGNhbiByZXF1ZXN0IGEKCQkJCTxiPgoJCQkJCTxhIGNsYXNzPSJ0ZXh0LXdhcm5pbmciIGhyZWY9Imh0dHBzOi8vc3VwcG9ydC5la2lwaXNpLmNvbS50ci9zdWJtaXQtdGlja2V0LzQtbGljZW5jZS1jb2RlLWxpc2Fucy1rb2R1IiB0YXJnZXQ9Il9ibGFuayI+bGljZW5zZSBjb2RlJm5ic3A7PGkgY2xhc3M9ImZhIGZhLWV4dGVybmFsLWxpbmsiPjwvaT4KCQkJCQk8L2E+CgkJCQk8L2I+CgkJCQlmb3IgdGhlIE1ldGEgQmFzZSBGZWVkIHYxIG1vZHVsZSBmcmVlIG9mIGNoYXJnZS48L3A+CgkJCTxkaXYgc3R5bGU9ImhlaWdodDoxNXB4OyI+PC9kaXY+CgkJCTxhIGNsYXNzPSJidG4gYnRuLXdhcm5pbmciIGhyZWY9ImphdmFzY3JpcHQ6dm9pZCgwKSIgb25jbGljaz0iJCgnYVtocmVmPSN0YWJfc3VwcG9ydF0nKS50cmlnZ2VyKCdjbGljaycpIj4KCQkJCTxpIGNsYXNzPSJmYSBmYS1rZXkiIGFyaWEtaGlkZGVuPSJ0cnVlIj48L2k+Jm5ic3A7RW50ZXIgeW91ciBsaWNlbnNlIGNvZGU8L2E+CgkJPC9kaXY+"); } else { $data["ekipisi"] = $data["feed_metabase"]["license"]; } $data["user_token"] = $this->session->data["user_token"]; $data["action"] = $this->url->link(Config::metabase_path, "user_token=" . $this->session->data["user_token"], true); $data["cancel"] = $this->url->link("marketplace/extension", "user_token=" . $this->session->data["user_token"] . "&type=feed", true); $data["path"] = Config::metabase_path; $data["currency"] = $this->config->get("config_currency"); $data["support_url"] = "https://support.ekipisi.com.tr/"; $data["open_ticket_url"] = "https://support.ekipisi.com.tr/submit-ticket"; $data["license_ticket_url"] = "https://support.ekipisi.com.tr/submit-ticket/4-license-code-lisans-kodu"; $data["tab_generalsettings"] = $this->load->view(Config::metabase_path . "/tab_generalsettings", $data); $data["tab_support"] = $this->load->view(Config::metabase_path . "/tab_support", $data); $data["header"] = $this->load->controller("common/header"); $data["column_left"] = $this->load->controller("common/column_left"); $data["footer"] = $this->load->controller("common/footer"); $this->response->setOutput($this->load->view(Config::metabase_path, $data)); } protected function validate() { if (!$this->user->hasPermission("modify", Config::metabase_path)) { $this->error["warning"] = $this->language->get("error_permission"); } return !$this->error; } public function install() { $languages = $this->model_localisation_language->getLanguages(); $stores = array_merge(array(0 => array("store_id" => "0", "name" => $this->config->get("config_name"), "url" => HTTP_SERVER, "ssl" => HTTPS_SERVER)), $this->model_setting_store->getStores()); for ($x = 0; $x < count($stores); $x++) { $setting["feed_metabase_status"] = 1; $this->model_setting_setting->editSetting(Config::metabase_name_small, $setting, $stores[$x]["store_id"]); } } public function uninstall() { $this->model_setting_setting->editSetting(Config::metabase_name_small, array()); } private function getCurrentStore($store_id) { if ($store_id && $store_id != 0) { $store = $this->model_setting_store->getStore($store_id); } else { $store["store_id"] = 0; $store["name"] = $this->config->get("config_name"); $store["ssl"] = HTTPS_CATALOG; } return $store; } } ?>
Did this file decode correctly?
Original Code
use vendor\ekipisi\metabase\config as Config; class ControllerExtensionFeedMetaBase extends Controller { private $error = array(); public function __construct($registry) { parent::__construct($registry); $this->load->language(Config::metabase_path); $this->load->model("\x73\x65\x74\164\x69\x6e\x67\x2f\163\145\x74\x74\x69\156\x67"); $this->load->model("\x73\145\x74\164\x69\x6e\x67\x2f\x73\x74\x6f\162\x65"); $this->load->model("\x6c\157\143\141\x6c\x69\163\x61\164\x69\157\156\57\154\x61\156\x67\165\141\x67\145"); $this->load->model("\154\x6f\143\141\154\x69\x73\x61\164\x69\x6f\156\x2f\x63\165\162\x72\x65\156\143\x79"); } public function index() { $heading_title = $this->language->get("\x68\x65\141\144\x69\x6e\x67\x5f\164\151\x74\x6c\145") . "\x20\x76" . Config::metabase_version; $data["\150\145\x61\x64\x69\x6e\x67\x5f\x74\x69\x74\154\145"] = $heading_title; $data["\x6c\x61\156\x67"] = $this->config->get("\143\157\x6e\x66\151\147\137\x61\144\155\x69\x6e\137\x6c\141\x6e\147\x75\x61\x67\145"); $this->document->setTitle($heading_title); $this->document->addScript("\x76\x69\x65\167\57\152\141\x76\x61\x73\x63\x72\x69\160\x74\57\145\153\151\x70\x69\x73\151\57\154\151\x62\57\142\x6f\157\x74\x73\164\162\x61\x70\x2d\x6e\x6f\x74\x69\146\x79\57\142\157\x6f\164\x73\x74\162\x61\x70\x2d\156\x6f\x74\x69\x66\x79\x2e\152\x73"); $this->document->addStyle("\x76\151\x65\x77\57\152\x61\x76\141\x73\x63\x72\151\160\x74\57\x65\153\151\x70\151\163\151\57\145\x6b\151\x70\151\163\x69\x2e\x63\x73\163"); $this->document->addScript("\166\x69\145\x77\x2f\x6a\x61\x76\141\163\143\x72\151\160\164\x2f\x65\x6b\x69\x70\x69\x73\151\x2f\145\153\x69\160\x69\x73\151\56\x6a\x73"); $this->document->addScript("\x76\x69\x65\x77\57\152\141\166\x61\163\143\x72\x69\160\x74\x2f\145\153\x69\160\x69\x73\151\57\155\x65\164\x61\142\141\x73\x65\x2e\152\x73"); if (!isset($this->request->get["\163\164\157\x72\145\x5f\x69\144"])) { $this->request->get["\163\164\x6f\162\145\137\x69\144"] = 0; } $store = $this->getCurrentStore($this->request->get["\x73\164\x6f\x72\145\137\x69\x64"]); $metabase = $this->model_setting_setting->getSetting(Config::metabase_name_small, $store["\x73\164\157\x72\145\x5f\x69\x64"]); $data["\154\141\x6e\147\165\141\147\x65\x73"] = $this->model_localisation_language->getLanguages(); $data["\143\x75\162\x72\145\156\x63\x69\x65\x73"] = $this->model_localisation_currency->getCurrencies(); $data["\x73\x74\157\162\145\x73"] = array_merge(array(0 => array("\163\164\157\162\145\137\x69\144" => "\x30", "\156\x61\155\145" => $this->config->get("\x63\157\156\146\151\x67\137\x6e\141\x6d\145") . "\x20\50" . $this->language->get("\164\145\170\x74\137\x64\145\146\x61\x75\x6c\x74") . "\51", "\x75\162\154" => HTTP_SERVER, "\163\x73\154" => HTTPS_SERVER)), $this->model_setting_store->getStores()); $data["\163\x74\157\162\x65"] = $store; if ($this->request->server["\122\x45\121\x55\105\123\x54\137\115\x45\x54\x48\117\x44"] == "\120\x4f\123\x54" && $this->validate()) { $this->model_setting_setting->editSetting(Config::metabase_name_small, $this->request->post, $this->request->post["\163\164\157\x72\145\137\151\x64"]); $this->session->data["\163\x75\x63\x63\x65\x73\x73"] = $this->language->get("\164\145\x78\x74\x5f\x73\x75\143\143\x65\x73\x73"); $this->response->redirect($this->url->link(Config::metabase_path, "\163\x74\157\162\x65\137\151\144\x3d" . $this->request->post["\163\164\157\x72\145\x5f\x69\x64"] . "\46\x75\x73\145\162\x5f\164\157\153\x65\x6e\75" . $this->session->data["\165\x73\x65\162\137\x74\x6f\x6b\x65\156"], true)); } if (isset($this->error["\167\x61\162\x6e\x69\x6e\x67"])) { $data["\145\x72\x72\157\162\137\x77\141\162\156\x69\156\147"] = $this->error["\x77\141\162\x6e\x69\156\147"]; } else { $data["\x65\162\x72\157\x72\137\x77\141\x72\x6e\151\x6e\147"] = ''; } if (isset($this->session->data["\x73\x75\143\143\x65\x73\x73"])) { $data["\x73\165\143\143\145\x73\x73"] = $this->session->data["\163\x75\143\143\145\163\163"]; unset($this->session->data["\x73\x75\x63\143\x65\163\x73"]); } else { $data["\163\x75\x63\x63\x65\x73\163"] = ''; } $data["\x62\162\x65\x61\144\143\162\165\155\142\163"] = array(); $data["\142\x72\x65\x61\144\143\x72\x75\x6d\142\x73"][] = array("\164\x65\170\164" => $this->language->get("\164\x65\170\164\x5f\x68\x6f\x6d\145"), "\x68\x72\x65\146" => $this->url->link("\x63\x6f\155\x6d\157\156\57\144\141\163\x68\142\x6f\141\162\144", "\x75\x73\145\x72\137\164\157\x6b\145\156\x3d" . $this->session->data["\165\x73\145\162\137\x74\157\x6b\145\x6e"], true)); $data["\x62\x72\x65\141\x64\x63\162\165\155\142\x73"][] = array("\x74\145\170\164" => $this->language->get("\164\x65\x78\x74\137\145\170\164\x65\156\x73\x69\x6f\156\x73"), "\150\162\145\146" => $this->url->link("\155\x61\162\153\145\x74\160\154\141\143\145\x2f\x65\x78\x74\145\156\x73\x69\157\x6e", "\x75\x73\x65\162\137\x74\x6f\153\145\156\x3d" . $this->session->data["\x75\163\145\x72\137\x74\157\153\145\x6e"], true)); $data["\142\162\x65\x61\144\143\162\165\155\142\163"][] = array("\164\x65\170\x74" => $this->language->get("\x68\145\141\144\x69\x6e\x67\137\x74\151\164\x6c\145"), "\x68\x72\145\146" => $this->url->link(Config::metabase_path, "\x73\x74\x6f\162\145\x5f\x69\x64\75" . $store["\x73\164\x6f\162\x65\137\151\x64"] . "\x26\x75\163\x65\162\x5f\164\x6f\x6b\x65\156\75" . $this->session->data["\165\x73\x65\x72\x5f\164\157\153\145\x6e"], true)); $data["\147\164\151\156\x73"] = array("\125\120\103" => "\165\160\143", "\x45\x41\116" => "\145\141\x6e", "\x4a\x41\x4e" => "\152\x61\156", "\x49\x53\102\116" => "\151\x73\x62\x6e", $this->language->get("\164\x65\x78\164\x5f\144\145\x66\x61\165\x6c\164") => "\144\x65\146\x61\x75\154\x74"); $tags = array("\x66\145\145\x64\137\x6d\x65\x74\x61\x62\x61\x73\145\137\x73\164\141\x74\x75\163", "\146\x65\145\x64\137\x6d\145\164\x61\x62\x61\x73\x65\137\143\141\x74\x65\147\157\162\x79", "\146\145\x65\x64\x5f\155\x65\x74\141\x62\x61\163\145\137\155\141\x6e\165\146\x61\x63\164\165\162\x65\x72", "\146\145\145\x64\137\x6d\145\164\x61\x62\141\163\145\137\143\x75\162\x72\145\156\x63\171", "\x66\145\x65\144\x5f\155\145\164\x61\x62\x61\163\x65\x5f\x6c\x61\x6e\x67\x75\141\x67\145", "\146\145\145\144\137\155\145\x74\x61\x62\141\x73\x65\137\147\x74\151\x6e", "\146\x65\x65\x64\137\x6d\x65\x74\x61\142\x61\x73\x65\137\141\144\x64\x69\164\x69\x6f\156\x61\x6c\x5f\x69\x6d\x61\x67\x65"); foreach ($tags as $tag) { if (isset($this->request->post[$tag])) { $data[$tag] = $this->request->post[$tag]; } elseif (isset($metabase[$tag])) { $data[$tag] = $metabase[$tag]; } else { if ($tag == "\146\145\145\x64\x5f\155\145\164\x61\142\141\163\145\137\143\141\x74\x65\x67\x6f\162\171" || $tag == "\146\x65\x65\x64\x5f\155\145\164\x61\x62\x61\163\145\137\155\141\156\165\146\141\143\x74\165\x72\x65\x72") { $data[$tag] = array(); } else { $data[$tag] = ''; } } } $this->load->model("\x63\x61\x74\x61\154\x6f\147\57\143\141\164\x65\x67\157\x72\x79"); $data["\143\x61\x74\145\147\x6f\x72\x69\145\163"] = array(); $filter = array("\163\157\162\164" => "\156\141\155\145"); $categories = $this->model_catalog_category->getCategories($filter); foreach ($categories as $category) { $data["\x63\x61\x74\x65\147\157\x72\151\145\163"][] = array("\143\141\x74\145\x67\157\162\x79\x5f\151\144" => $category["\x63\x61\164\145\x67\x6f\162\x79\x5f\151\x64"], "\x6e\x61\155\x65" => strip_tags(html_entity_decode($category["\x6e\141\155\145"], ENT_QUOTES, "\x55\x54\x46\55\x38"))); } $this->load->model("\143\x61\164\141\x6c\157\147\57\155\141\156\165\x66\x61\x63\x74\165\x72\145\162"); $data["\x6d\141\156\165\146\x61\143\164\165\x72\145\162\x73"] = array(); $manufacturers = $this->model_catalog_manufacturer->getManufacturers($filter); foreach ($manufacturers as $manufacturer) { $data["\x6d\x61\x6e\x75\146\x61\x63\x74\x75\x72\145\162\163"][] = array("\155\x61\156\x75\146\x61\x63\164\165\x72\x65\x72\x5f\151\144" => $manufacturer["\x6d\141\156\165\x66\x61\143\164\x75\162\x65\x72\x5f\151\144"], "\x6e\x61\155\x65" => $manufacturer["\156\x61\x6d\x65"], "\x73\x6f\x72\164\137\x6f\162\144\145\x72" => $manufacturer["\x73\x6f\162\x74\x5f\x6f\x72\144\145\162"], "\163\145\154\145\x63\x74\145\144" => isset($this->request->post["\x73\145\154\x65\143\x74\x65\x64"]) && in_array($manufacturer["\155\x61\x6e\x75\x66\x61\143\x74\x75\162\x65\x72\137\x69\144"], $this->request->post["\163\145\x6c\145\143\x74\x65\x64"])); } $data["\x66\145\x65\x64\137\x6d\145\x74\141\x62\141\x73\145\x5f\x75\162\154"] = str_replace("\57\57", "\x2f", $store["\163\x73\154"] . "\x2f\151\156\x64\145\x78\56\160\x68\160\77\162\157\x75\164\145\x3d\145\x78\164\x65\156\163\x69\x6f\x6e\57\x66\145\x65\x64\x2f\155\145\x74\141\137\x62\x61\x73\145\46\x73\164\157\x72\145\x5f\x69\144\x3d" . $this->request->get["\x73\x74\x6f\162\x65\137\151\144"]); if (isset($metabase["\x66\x65\x65\144\x5f\155\x65\x74\x61\x62\x61\163\145"])) { $data["\146\145\x65\144\137\x6d\x65\x74\x61\142\x61\x73\145"] = $metabase["\146\x65\x65\x64\x5f\x6d\145\x74\141\142\141\x73\x65"]; } else { $data["\x66\145\x65\x64\x5f\155\145\164\x61\142\x61\163\145"] = array(); } if (empty($data["\146\145\x65\144\137\x6d\145\x74\x61\142\141\x73\145"]["\x6c\x69\143\x65\156\163\x65"]["\x6e\141\x6d\x65"])) { $data["\144\157\155\x61\151\x6e"] = base64_encode($_SERVER["\x53\x45\122\126\x45\x52\137\x4e\101\x4d\105"]); $data["\x6d\151\144"] = "\x54\127\x56\x30\x59\x53\x42\103\x59\x58\x4e\x6c"; $data["\142\x61\x73\x65\66\x34"] = base64_decode($data["\154\x61\x6e\147"] == "\164\162\x2d\164\x72" ? "\x50\107\122\x70\x64\x69\102\x6a\142\107\106\x7a\x63\x7a\x30\x69\x59\x57\170\x6c\x63\156\x51\x67\x59\x57\170\154\143\x6e\121\164\144\x32\x46\x79\142\155\x6c\165\x5a\x79\x42\x6d\131\x57\122\154\111\107\x6c\165\111\152\64\113\103\121\x6b\x4a\120\107\x4a\61\144\110\122\x76\142\151\102\x30\x65\130\x42\x6c\120\x53\x4a\x69\x64\x58\122\60\x62\62\64\x69\x49\x47\116\163\x59\130\116\x7a\120\x53\112\x6a\142\x47\71\172\132\x53\x49\x67\132\107\x46\x30\x59\123\61\x6b\x61\x58\x4e\164\x61\x58\x4e\x7a\120\123\112\150\142\107\126\171\144\x43\111\147\x59\x58\x4a\160\131\123\61\157\x61\127\x52\153\x5a\127\64\x39\x49\156\122\171\144\x57\125\x69\120\163\x4f\130\120\103\x39\x69\x64\130\x52\60\142\x32\x34\53\103\x67\x6b\x4a\103\x54\x78\x6f\116\104\x35\x56\x65\x57\x46\171\170\x4c\105\150\111\x45\x31\x76\132\x4d\x4f\x38\142\x4d\117\70\x62\x69\102\x73\x61\x58\116\x68\142\x6e\116\x7a\170\114\106\66\111\x47\112\x70\x63\x69\102\x7a\167\67\170\171\x77\67\x78\164\167\67\170\x75\167\67\167\x67\141\x33\126\x73\142\107\106\165\x78\114\x46\65\x62\63\112\172\x64\127\65\x31\145\151\x45\113\103\121\x6b\x4a\120\x43\x39\157\116\x44\x34\113\103\x51\x6b\x4a\120\x48\101\53\122\107\x2f\x45\156\x33\x4a\x31\x49\107\x6e\x46\x6e\62\x78\x6c\145\x57\156\106\156\x79\167\147\132\x47\126\x7a\144\x47\126\x72\111\110\x5a\x6c\x49\x47\x66\x44\166\107\65\152\132\127\170\x73\x5a\x57\61\154\142\107\x56\x79\132\x53\102\154\x63\155\156\106\156\62\x6c\x74\x49\110\x4e\150\x78\x4a\71\163\x59\x57\61\x68\x61\171\102\160\167\66\144\x70\142\x69\102\163\x61\x58\116\150\142\x6e\x4d\147\x61\62\71\x6b\144\x57\x35\61\145\x6e\125\x67\132\x32\154\171\x62\x57\x56\165\x61\x58\x6f\x67\132\x32\126\171\132\127\x74\x74\x5a\x57\x74\60\x5a\127\x52\160\143\151\x34\70\x4c\63\101\x2b\x43\x67\x6b\x4a\103\x54\x78\167\120\x6b\61\154\x64\107\x45\147\x51\x6d\106\172\132\123\102\107\x5a\127\126\153\x49\110\131\x78\111\x47\61\x76\x5a\115\117\x38\x62\x4d\x4f\70\x49\x47\x6e\104\x70\x32\x6c\165\x49\107\x68\154\x63\x6d\150\150\142\x6d\144\160\x49\x47\112\160\143\151\104\x44\166\x47\x4e\x79\x5a\130\121\x67\167\x37\x5a\153\x5a\x57\x31\154\x5a\107\x56\165\x43\x67\x6b\x4a\x43\121\x6b\x38\x59\x6a\64\x4b\x43\x51\x6b\112\103\121\x6b\70\x59\123\102\x6a\142\107\106\172\x63\x7a\x30\151\x64\x47\x56\x34\144\x43\x31\x33\x59\x58\112\165\141\x57\x35\156\111\x69\102\157\x63\155\126\x6d\x50\123\x4a\157\144\110\x52\x77\143\x7a\157\x76\114\x33\x4e\x31\143\x48\102\x76\x63\156\x51\x75\132\x57\164\x70\x63\107\x6c\x7a\x61\123\x35\x6a\x62\x32\x30\x75\x64\x48\111\166\143\x33\x56\x69\142\x57\x6c\x30\x4c\x58\x52\160\131\x32\164\154\x64\103\x38\60\x4c\x57\x78\160\131\x32\126\x75\x59\x32\125\164\x59\62\x39\x6b\132\123\x31\x73\141\x58\116\x68\142\x6e\x4d\164\x61\x32\x39\153\144\123\x49\147\144\107\106\171\x5a\62\x56\x30\x50\123\x4a\x66\x59\155\x78\150\142\x6d\163\151\x50\x6d\x78\160\143\62\x46\x75\143\x79\x42\x72\x62\62\122\61\112\155\65\x69\x63\63\x41\67\x50\x47\153\147\x59\x32\170\x68\143\x33\x4d\x39\111\155\x5a\150\x49\x47\x5a\x68\x4c\x57\126\x34\x64\x47\126\171\142\x6d\x46\x73\x4c\x57\x78\x70\142\155\x73\151\120\x6a\167\x76\x61\x54\64\x4b\x43\x51\153\x4a\x43\121\x6b\70\x4c\62\x45\x2b\x43\147\x6b\x4a\x43\121\153\x38\114\x32\111\53\x43\147\x6b\x4a\103\121\x6c\60\x59\127\170\x6c\x63\x43\102\154\132\107\x56\x69\141\x57\x78\160\143\x6e\x4e\x70\142\155\154\x36\114\x69\64\x38\114\63\101\53\x43\147\x6b\112\x43\124\x78\x6b\141\x58\131\x67\x63\63\x52\x35\x62\x47\x55\71\x49\155\x68\x6c\x61\x57\144\x6f\144\104\157\170\x4e\130\102\x34\117\171\x49\x2b\x50\103\x39\x6b\x61\130\x59\53\x43\147\x6b\x4a\x43\124\170\150\x49\x47\x4e\x73\x59\130\x4e\x7a\x50\x53\112\x69\144\107\x34\x67\131\x6e\x52\x75\x4c\x58\x64\x68\x63\155\65\x70\x62\155\143\151\111\x47\x68\171\x5a\127\x59\71\x49\x6d\160\x68\x64\155\x46\172\131\63\x4a\160\143\x48\121\66\x64\155\x39\160\x5a\103\147\x77\113\123\111\147\x62\62\x35\x6a\142\x47\x6c\x6a\141\172\60\x69\x4a\103\147\x6e\x59\126\164\x6f\x63\155\x56\x6d\120\x53\x4e\x30\x59\x57\x4a\146\143\x33\126\167\x63\x47\x39\171\144\x46\x30\156\x4b\123\65\60\x63\155\x6c\156\132\62\x56\x79\x4b\103\x64\152\142\107\x6c\x6a\x61\171\x63\x70\111\152\x34\x38\141\x53\102\152\x62\107\x46\x7a\143\x7a\x30\151\x5a\x6d\105\x67\132\x6d\x45\164\x61\62\126\65\111\x69\x42\150\143\x6d\x6c\150\114\127\150\x70\x5a\107\x52\154\142\x6a\60\x69\x64\110\112\61\x5a\x53\111\x2b\120\x43\71\x70\x50\151\x5a\165\x59\156\116\167\117\60\x78\x70\143\x32\x46\165\143\171\x42\162\142\62\122\61\142\x6e\126\x36\x64\123\102\156\x61\130\112\160\x62\x6a\x77\166\131\124\x34\113\103\121\x6b\x38\x4c\x32\122\x70\x64\152\64\x3d" : "\103\121\153\x38\x5a\107\154\x32\x49\107\x4e\163\x59\x58\x4e\172\120\123\112\x68\x62\x47\126\x79\144\103\102\150\x62\x47\126\171\x64\x43\61\63\131\x58\112\165\141\127\65\x6e\111\107\x5a\150\132\x47\x55\147\x61\x57\x34\x69\120\147\157\112\x43\x51\x6b\x38\x59\156\126\60\144\x47\71\x75\x49\110\122\x35\x63\107\x55\71\x49\x6d\x4a\61\144\x48\x52\166\142\151\x49\x67\x59\62\170\150\x63\63\115\71\x49\x6d\116\163\x62\63\x4e\154\x49\151\x42\153\x59\130\x52\150\114\x57\x52\160\143\62\61\x70\x63\63\115\71\111\x6d\x46\163\132\x58\112\x30\x49\151\102\x68\x63\155\x6c\x68\x4c\x57\x68\160\x5a\x47\122\154\142\x6a\x30\x69\x64\110\112\61\132\x53\111\x2b\x77\65\143\x38\x4c\62\112\x31\x64\x48\122\166\142\152\x34\113\x43\x51\x6b\112\120\x47\x67\60\120\154\144\x68\143\x6d\65\160\x62\155\143\x68\111\106\x6c\x76\144\123\x42\150\x63\155\x55\147\x64\x58\116\x70\142\155\x63\147\131\127\x34\147\x64\x57\x35\x73\141\x57\x4e\x6c\x62\156\x4e\x6c\132\x43\x42\62\x5a\130\112\x7a\141\127\71\x75\x49\x47\71\155\x49\110\122\157\x5a\x53\102\x74\142\x32\x52\x31\142\107\125\150\120\103\x39\x6f\116\x44\x34\x4b\103\121\x6b\x4a\120\x48\101\53\126\107\70\x67\x5a\127\x35\172\144\130\x4a\154\x49\x48\x42\x79\142\63\x42\154\x63\151\102\x6d\144\127\x35\152\x64\x47\154\x76\142\x6d\x6c\165\132\x79\167\147\x59\x57\x4e\x6a\132\x58\x4e\x7a\111\110\x4e\x31\143\x48\102\x76\143\156\121\163\111\107\106\165\x5a\x43\102\x79\132\127\116\x6c\x61\x58\x5a\x6c\x49\110\126\x77\x5a\x47\106\x30\132\130\115\x73\111\x48\154\166\x64\123\102\x75\132\x57\x56\153\x49\x48\122\166\111\107\126\x75\x64\x47\126\171\x49\110\154\x76\144\x58\x49\147\142\x47\154\x6a\x5a\x57\x35\x7a\x5a\123\102\152\142\62\122\x6c\x4c\x6a\x77\166\143\x44\64\x4b\x43\121\153\x4a\x50\x48\101\x2b\127\127\x39\61\111\x47\116\x68\142\x69\x42\x79\132\130\x46\61\x5a\130\116\60\111\107\105\113\x43\121\x6b\112\x43\124\x78\x69\x50\147\157\x4a\103\121\153\112\x43\124\x78\x68\111\x47\x4e\x73\131\x58\116\x7a\120\x53\112\x30\132\130\x68\60\114\130\144\x68\143\155\x35\x70\142\x6d\x63\x69\111\x47\150\x79\x5a\x57\x59\x39\111\155\x68\60\x64\110\102\x7a\117\151\x38\166\143\x33\x56\x77\x63\107\x39\171\x64\103\65\x6c\x61\x32\x6c\167\x61\130\116\160\x4c\x6d\x4e\x76\x62\123\65\60\x63\151\71\x7a\144\x57\112\164\141\130\121\164\x64\107\154\152\141\62\126\x30\114\x7a\121\164\x62\107\x6c\152\x5a\127\x35\x6a\x5a\123\x31\x6a\142\62\122\x6c\114\x57\170\x70\x63\62\106\165\143\x79\61\162\142\62\x52\61\x49\151\x42\x30\x59\x58\112\156\x5a\130\121\x39\x49\x6c\71\151\x62\x47\106\x75\x61\x79\x49\53\x62\107\x6c\152\x5a\127\x35\172\132\x53\x42\152\142\62\122\154\x4a\155\65\x69\x63\x33\101\x37\x50\107\153\147\x59\62\x78\x68\x63\x33\115\71\111\155\132\x68\111\107\x5a\150\114\x57\126\x34\x64\107\x56\x79\x62\x6d\106\x73\x4c\x57\x78\160\x62\155\x73\151\120\152\x77\x76\141\124\x34\x4b\x43\x51\153\112\103\x51\x6b\70\x4c\62\x45\53\x43\147\153\112\103\x51\153\70\114\x32\111\x2b\x43\x67\x6b\x4a\103\x51\x6c\155\x62\x33\111\x67\144\x47\150\154\x49\105\x31\x6c\144\x47\105\147\121\x6d\106\x7a\132\x53\x42\x47\x5a\x57\x56\153\x49\110\131\x78\x49\x47\61\166\x5a\110\x56\x73\x5a\123\x42\155\x63\x6d\x56\154\x49\107\71\x6d\x49\x47\x4e\x6f\x59\130\x4a\x6e\132\x53\x34\x38\x4c\x33\101\53\x43\147\x6b\112\x43\x54\x78\153\141\x58\x59\147\x63\x33\x52\65\142\107\x55\x39\x49\x6d\x68\154\x61\127\x64\x6f\x64\x44\x6f\x78\116\130\102\64\x4f\x79\111\x2b\120\x43\x39\x6b\x61\130\x59\53\x43\147\153\112\x43\124\170\x68\x49\x47\116\x73\131\130\x4e\172\120\123\x4a\x69\144\x47\x34\147\131\156\x52\165\114\x58\144\150\143\155\65\x70\142\155\143\x69\111\x47\x68\171\132\127\x59\x39\x49\x6d\x70\150\144\x6d\106\x7a\x59\x33\112\160\143\x48\121\66\144\155\x39\x70\x5a\103\147\167\113\123\111\x67\x62\62\x35\x6a\142\x47\x6c\x6a\141\x7a\x30\x69\x4a\103\x67\x6e\x59\126\164\x6f\x63\155\126\x6d\120\123\116\x30\131\x57\x4a\x66\x63\x33\126\167\x63\x47\x39\171\144\x46\60\x6e\x4b\x53\65\x30\143\x6d\x6c\156\132\x32\126\x79\113\103\x64\152\x62\107\154\x6a\141\x79\143\160\x49\x6a\64\113\x43\121\x6b\x4a\103\x54\x78\160\111\x47\116\x73\131\x58\x4e\x7a\120\x53\x4a\x6d\131\x53\102\155\x59\x53\x31\x72\x5a\x58\x6b\x69\x49\x47\106\x79\x61\127\105\x74\x61\107\x6c\153\132\x47\126\x75\120\x53\112\x30\x63\156\126\154\111\x6a\64\x38\x4c\62\x6b\x2b\112\155\65\x69\143\63\101\67\x52\127\x35\x30\x5a\130\x49\147\x65\127\71\61\x63\151\x42\163\141\127\x4e\154\x62\156\116\154\x49\107\x4e\166\132\107\125\70\114\x32\105\x2b\103\x67\x6b\112\x50\x43\71\153\141\130\131\x2b"); } else { $data["\x65\153\151\x70\x69\163\151"] = $data["\x66\145\x65\144\x5f\155\x65\x74\x61\x62\x61\x73\x65"]["\154\x69\x63\145\156\x73\x65"]; } $data["\165\163\145\x72\x5f\x74\157\x6b\x65\x6e"] = $this->session->data["\x75\163\x65\x72\137\164\x6f\x6b\x65\x6e"]; $data["\x61\143\x74\151\x6f\156"] = $this->url->link(Config::metabase_path, "\165\163\145\162\137\x74\x6f\153\x65\x6e\75" . $this->session->data["\165\163\x65\x72\137\164\157\153\145\x6e"], true); $data["\x63\141\x6e\143\x65\x6c"] = $this->url->link("\155\141\162\x6b\x65\164\x70\x6c\141\x63\145\x2f\145\170\164\x65\x6e\x73\x69\x6f\x6e", "\165\x73\x65\162\x5f\164\157\153\x65\x6e\75" . $this->session->data["\x75\163\145\x72\137\164\157\x6b\x65\x6e"] . "\x26\x74\171\160\145\x3d\x66\x65\x65\x64", true); $data["\160\141\x74\x68"] = Config::metabase_path; $data["\143\165\x72\162\x65\x6e\x63\x79"] = $this->config->get("\143\x6f\x6e\146\x69\x67\137\143\165\x72\162\x65\156\x63\x79"); $data["\163\x75\160\x70\x6f\162\164\x5f\165\x72\154"] = "\x68\x74\x74\160\x73\x3a\x2f\x2f\163\165\x70\160\157\162\164\x2e\145\153\151\160\151\x73\151\x2e\143\x6f\155\56\x74\x72\x2f"; $data["\x6f\x70\x65\156\137\164\151\143\x6b\145\x74\x5f\x75\162\x6c"] = "\x68\x74\x74\x70\x73\72\57\57\163\x75\160\x70\157\x72\x74\56\x65\x6b\151\160\151\x73\x69\56\143\157\x6d\x2e\164\x72\x2f\x73\165\x62\155\151\164\x2d\164\x69\143\153\145\x74"; $data["\x6c\x69\143\x65\156\x73\x65\x5f\x74\x69\143\153\x65\164\137\x75\162\154"] = "\150\x74\164\x70\163\x3a\x2f\x2f\x73\x75\160\160\157\x72\164\56\145\x6b\151\x70\151\x73\x69\x2e\x63\157\155\x2e\164\x72\57\163\165\142\x6d\151\164\x2d\164\151\x63\153\145\x74\x2f\64\x2d\x6c\151\143\145\156\x73\145\x2d\143\x6f\x64\x65\55\x6c\151\163\141\156\x73\55\153\157\x64\x75"; $data["\164\x61\x62\x5f\x67\145\x6e\145\162\141\154\x73\145\164\x74\151\156\147\x73"] = $this->load->view(Config::metabase_path . "\x2f\164\141\x62\137\x67\145\x6e\145\x72\141\154\163\145\x74\x74\x69\x6e\x67\x73", $data); $data["\164\141\142\137\163\x75\160\160\157\x72\x74"] = $this->load->view(Config::metabase_path . "\x2f\164\141\x62\137\x73\165\160\x70\157\162\164", $data); $data["\150\145\141\144\145\162"] = $this->load->controller("\143\157\x6d\x6d\157\x6e\57\150\x65\x61\x64\x65\x72"); $data["\x63\157\x6c\165\155\156\137\154\145\x66\164"] = $this->load->controller("\x63\157\x6d\x6d\x6f\x6e\57\143\157\154\x75\x6d\156\137\x6c\x65\x66\164"); $data["\x66\x6f\157\x74\145\x72"] = $this->load->controller("\x63\x6f\x6d\155\157\156\x2f\x66\157\157\x74\x65\x72"); $this->response->setOutput($this->load->view(Config::metabase_path, $data)); } protected function validate() { if (!$this->user->hasPermission("\x6d\157\x64\x69\x66\x79", Config::metabase_path)) { $this->error["\167\141\162\156\x69\156\x67"] = $this->language->get("\145\162\x72\157\x72\137\160\145\162\x6d\x69\163\x73\151\157\x6e"); } return !$this->error; } public function install() { $languages = $this->model_localisation_language->getLanguages(); $stores = array_merge(array(0 => array("\x73\164\x6f\x72\145\x5f\151\144" => "\60", "\156\141\x6d\145" => $this->config->get("\x63\157\156\146\x69\x67\137\x6e\x61\x6d\145"), "\165\162\154" => HTTP_SERVER, "\x73\x73\x6c" => HTTPS_SERVER)), $this->model_setting_store->getStores()); for ($x = 0; $x < count($stores); $x++) { $setting["\146\145\x65\x64\137\155\145\164\141\142\141\163\x65\137\163\x74\141\164\x75\x73"] = 1; $this->model_setting_setting->editSetting(Config::metabase_name_small, $setting, $stores[$x]["\163\x74\x6f\162\x65\x5f\151\x64"]); } } public function uninstall() { $this->model_setting_setting->editSetting(Config::metabase_name_small, array()); } private function getCurrentStore($store_id) { if ($store_id && $store_id != 0) { $store = $this->model_setting_store->getStore($store_id); } else { $store["\163\x74\x6f\x72\x65\x5f\x69\x64"] = 0; $store["\156\x61\155\145"] = $this->config->get("\143\x6f\x6e\x66\151\147\137\x6e\141\155\x65"); $store["\x73\x73\x6c"] = HTTPS_CATALOG; } return $store; } }
Function Calls
None |
Stats
MD5 | 1df94d4b63b0e864b6167a1f9add093f |
Eval Count | 0 |
Decode Time | 86 ms |