public function postProcess() { if (Tools::isSubmit("submitReplyMessage")) { $uhjmcjjh = "org_message"; ${${"GLOBALS"}["okghspi"]} = new AgileSellerMessage(Tools::getValue("id_agile_sellermessage")); if (!Validate::isLoadedObject(${$uhjmcjjh})) { $this->_errors[] = Tools::displayError("Invalid message id"); return; } if (empty($this->_errors)) { $this->_errors = AgileSellerMessenger::sendSellerReply($this->context->customer->firstname . " " . $this->context->customer->lastname); } if (empty($this->_errors)) { Tools::redirect(self::$link->getModuleLink("agilesellermessenger", "sellermessages", array(), true)); } } }
public function renderView() { $wucsbhfmgn = "attachments"; global $cookie; ${"GLOBALS"}["jhgmum"] = "product"; ${"GLOBALS"}["zzymivhfx"] = "token_customer"; if (!(${${"GLOBALS"}["ptwoeyrfnrc"]} = $this->loadObject())) { return; } ${${"GLOBALS"}["rfvzmfktr"]} = AgileSellerMessenger::prepareAttFolder(intval($obj->id_seller)); $kmosrdjmm = "obj"; ${"GLOBALS"}["fxbwhkf"] = "customer"; ${${"GLOBALS"}["dmlrlbkzxy"]} = ""; $zuonusz = "folder"; if (!empty($obj->attpsname1) and file_exists(${${"GLOBALS"}["rfvzmfktr"]} . $obj->attpsname1)) { ${$wucsbhfmgn} .= "<a href=\"index.php?controller=AgileSellerMessages&id_agile_sellermessage=" . $obj->id . "&viewagile_sellermessage" . "&token=" . $this->token . "&filename=" . $obj->attpsname1 . "&id_seller=" . $obj->id_seller . "\" title=\"" . $this->l('View file') . "\">" . $obj->attshname1 . "</a>   "; } ${"GLOBALS"}["wfbwnbuigg"] = "attachments"; $ifbpmef = "product"; if (!empty($obj->attpsname2) and file_exists(${${"GLOBALS"}["rfvzmfktr"]} . $obj->attpsname2)) { ${${"GLOBALS"}["wfbwnbuigg"]} .= "<a href=\"index.php?controller=AgileSellerMessages&id_agile_sellermessage=" . $obj->id . "&viewagile_sellermessage" . "&token=" . $this->token . "&filename=" . $obj->attpsname2 . "&id_seller=" . $obj->id_seller . "\" title=\"" . $this->l('View file') . "\">" . $obj->attshname2 . "</a>   "; } $uouvtcjcp = "token_customer"; if (!empty($obj->attpsname3) and file_exists(${$zuonusz} . $obj->attpsname3)) { ${${"GLOBALS"}["dmlrlbkzxy"]} .= "<a href=\"index.php?controller=AgileSellerMessages&id_agile_sellermessage=" . $obj->id . "&viewagile_sellermessage" . "&token=" . $this->token . "&filename=" . $obj->attpsname3 . "&id_seller=" . $obj->id_seller . "\" title=\"" . $this->l('View file') . "\">" . $obj->attshname3 . "</a>   "; } ${${"GLOBALS"}["jhgmum"]} = new Product($obj->id_product, false, $cookie->id_lang); ${${"GLOBALS"}["unijnuf"]} = Tools::getAdminToken("AdminProducts" . (int) Tab::getIdFromClassName("AdminProducts") . (int) $this->context->employee->id); if ($obj->id_customer > 0) { $nqjepkbzgqw = "customer"; ${$nqjepkbzgqw} = new Customer($obj->id_customer); ${"GLOBALS"}["wathklt"] = "token_customer"; ${${"GLOBALS"}["wathklt"]} = Tools::getAdminToken("AdminCustomers" . (int) Tab::getIdFromClassName("AdminCustomers") . (int) $this->context->employee->id); } $this->tpl_view_vars = array("is_seller" => $this->is_seller, "the_message" => ${$kmosrdjmm}, "customer" => isset(${${"GLOBALS"}["bcfmhhzd"]}) ? ${${"GLOBALS"}["fxbwhkf"]} : null, "product" => ${$ifbpmef}, "tokenCustomer" => isset(${$uouvtcjcp}) ? ${${"GLOBALS"}["zzymivhfx"]} : null, "tokenProduct" => isset(${${"GLOBALS"}["unijnuf"]}) ? ${${"GLOBALS"}["unijnuf"]} : null, "hide_email" => intval(Configuration::get("ASMGER_HIDE_EMAIL")), "attachments" => ${${"GLOBALS"}["dmlrlbkzxy"]}); return parent::renderView(); }
public static function openUploadedFile($id_seller, $filename) { $ztknyndgun = "filename"; ${${"GLOBALS"}["girgpmiuqrs"]} = array(".txt" => "text/plain", ".rtf" => "application/rtf", ".doc" => "application/msword", ".docx" => "application/msword", ".pdf" => "application/pdf", ".zip" => "multipart/x-zip", ".png" => "image/png", ".jpeg" => "image/jpeg", ".gif" => "image/gif", ".jpg" => "image/jpeg"); ${"GLOBALS"}["whoxfnlw"] = "val"; ${${"GLOBALS"}["djxpyvughv"]} = ""; foreach (${${"GLOBALS"}["girgpmiuqrs"]} as ${${"GLOBALS"}["hpfxlp"]} => ${${"GLOBALS"}["whoxfnlw"]}) { $rlsekunnrbb = "filename"; $uurpsdskfa = "key"; $rphukwte = "filename"; if (substr(${$rlsekunnrbb}, -4) == ${$uurpsdskfa} or substr(${$rphukwte}, -5) == ${${"GLOBALS"}["hpfxlp"]}) { $wujsdk = "val"; ${"GLOBALS"}["lqmgvemsfp"] = "extension"; ${${"GLOBALS"}["lqmgvemsfp"]} = ${$wujsdk}; break; } } ${${"GLOBALS"}["vnqkvnmfbf"]} = AgileSellerMessenger::prepareAttFolder(intval(${${"GLOBALS"}["ihicvjpboh"]})); ob_end_clean(); $ytvgqoqnel = "folder"; header("Content-Type: " . ${${"GLOBALS"}["djxpyvughv"]}); header("Content-Disposition:attachment;filename=\"" . ${$ztknyndgun} . "\""); readfile(${$ytvgqoqnel} . ${${"GLOBALS"}["ibxfbgp"]}); die; }
${"GLOBALS"}["ylnsjqsqwmx"] = "translations"; ${${"GLOBALS"}["ylnsjqsqwmx"]} = array("Invalid key." => Tools::displayError("Invalid key."), "This product doesn't exists in our store." => Tools::displayError("This product doesn't exists in our store."), "This product has been deleted." => Tools::displayError("This product has been deleted."), "This file no more exists." => Tools::displayError("This file no more exists."), "The product deadline is in the past." => Tools::displayError("The product deadline is in the past."), "Dear customer, you exceed the expiration date." => Tools::displayError("Dear customer, you exceed the expiration date."), "You reach the maximum number of allowed downloads." => Tools::displayError("You reach the maximum number of allowed downloads.")); echo "<script type=\"text/javascript\">\n<!--\nalert(\""; echo html_entity_decode(${$avvtpywgk}[${${"GLOBALS"}["trvuxjkodke"]}], ENT_QUOTES, "utf-8"); echo "\");\nwindow.location.href = '"; echo __PS_BASE_URI__; echo "';\n-->\n</script>\n"; exit; } $wktgrk = "mime_type"; $dhrgidmbesv = "mime_type"; if (!isset($_GET["filename"])) { return true; } ${$zcqdlm} = $_GET["filename"]; ${${"GLOBALS"}["vsoeseyqs"]} = AgileSellerMessenger::prepareAttFolder(intval($_GET["id_seller"])); ${${"GLOBALS"}["fwisviso"]} = ${${"GLOBALS"}["augcsware"]} . ${$nybwvjkfa}; if (!file_exists(${${"GLOBALS"}["fwisviso"]})) { Tools::redirect("index.php"); } ${$yzvoxcmpqgg} = false; ${"GLOBALS"}["bgyuekyi"] = "mime_type"; if (function_exists("finfo_open")) { $jkjhslgt = "file"; ${${"GLOBALS"}["jedoniwguyh"]} = @finfo_open(FILEINFO_MIME); ${${"GLOBALS"}["lyslkyb"]} = @finfo_file(${${"GLOBALS"}["jedoniwguyh"]}, ${$jkjhslgt}); @finfo_close(${${"GLOBALS"}["jedoniwguyh"]}); } elseif (function_exists("mime_content_type")) { ${$dhrgidmbesv} = @mime_content_type(${${"GLOBALS"}["fwisviso"]}); } elseif (function_exists("exec")) { ${${"GLOBALS"}["bgyuekyi"]} = trim(@exec("file -bi " . escapeshellarg(${${"GLOBALS"}["fwisviso"]})));
<?php /* ///-build_id: 2014101516.3953 /// This source file is subject to the Software License Agreement that is bundled with this /// package in the file license.txt, or you can get it here /// http://addons-modules.com/store/en/content/3-terms-and-conditions-of-use /// /// @copyright 2009-2012 Addons-Modules.com /// */ ${"GLOBALS"}["jufwrvugnngo"] = "ret"; require_once dirname(__FILE__) . "/../../config/config.inc.php"; require_once dirname(__FILE__) . "/../../init.php"; require_once dirname(__FILE__) . "/agilesellermessenger.php"; header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); ${${"GLOBALS"}["jufwrvugnngo"]} = AgileSellerMessenger::activate_message_front(Tools::getValue("id_agile_sellermessage"), Tools::getValue("status")); die(${${"GLOBALS"}["jufwrvugnngo"]});