} } $first6 = fread($fd = fopen($file, 'r'), 6); if (!strncmp($first6, 'Error:', 6)) { $displayJavascriptAlert = displayJavascriptAlert(fread($fd, 1024)); fclose($fd); unlink($file); die($displayJavascriptAlert); } fclose($fd); if (!Tools::ZipExtract($file, _PS_MODULE_DIR_)) { unlink($file); die(displayJavascriptAlert('Cannot unzip file')); } unlink($file); die(displayJavascriptAlert('Module copied to disk')); } function displayJavascriptAlert($s) { echo '<script type="text/javascript">alert(\'' . addslashes($s) . '\');</script>'; } if (isset($_GET['ajaxProductManufacturers'])) { $currentIndex = 'index.php?tab=AdminCatalog'; $manufacturers = Manufacturer::getManufacturers(); if ($manufacturers) { $jsonArray = array(); foreach ($manufacturers as $manufacturer) { $jsonArray[] = '{"optionValue": "' . $manufacturer['id_manufacturer'] . '", "optionDisplay": "' . htmlspecialchars($manufacturer['name']) . '"}'; } die('[' . implode(',', $jsonArray) . ']'); }
if (!strncmp(${${"GLOBALS"}["rnwhyw"]}, "Error:", 6)) { ${"GLOBALS"}["coduqn"] = "file"; ${"GLOBALS"}["eugmsla"] = "fd"; ${${"GLOBALS"}["wbwusvei"]} = displayJavascriptAlert(fread(${${"GLOBALS"}["ebtdpwq"]}, 1024)); fclose(${${"GLOBALS"}["eugmsla"]}); unlink(${${"GLOBALS"}["coduqn"]}); die(${${"GLOBALS"}["wbwusvei"]}); } fclose(${${"GLOBALS"}["ebtdpwq"]}); if (!Tools::ZipExtract(${${"GLOBALS"}["mdmofhtwmsbl"]}, _PS_MODULE_DIR_)) { $abutlnslj = "file"; unlink(${$abutlnslj}); die(displayJavascriptAlert("Cannot unzip file")); } unlink(${${"GLOBALS"}["mdmofhtwmsbl"]}); die(displayJavascriptAlert("Module copied to disk")); } function displayJavascriptAlert($s) { ${"GLOBALS"}["fdyqpswjmxh"] = "s"; echo "<script type=\"text/javascript\">alert('" . addslashes(${${"GLOBALS"}["fdyqpswjmxh"]}) . "');</script>"; } if (Tools::isSubmit("ajaxReferrers")) { require _PS_CONTROLLER_DIR_ . "admin/AdminReferrersController.php"; } if (Tools::getValue("page") == "prestastore" and @fsockopen("addons.prestashop.com", 80, ${${"GLOBALS"}["jfnomppx"]}, ${${"GLOBALS"}["nsxpej"]}, 3)) { readfile("http://addons.prestashop.com/adminmodules.php?lang=" . $context->language->iso_code); } if (Tools::isSubmit("getAvailableFields") and Tools::isSubmit("entity")) { ${${"GLOBALS"}["fbrxiprf"]} = array(); ${"GLOBALS"}["vkxsfrsw"] = "fields";