class ControllerExtensionModuleMassTranslate extends Controller
{
const MODULE = "mass_translate";
const PREFIX = "mass_translate";
const MOD_FILE = "mass_translate";
const LINK = "module/mass_translate";
const OCID = 41729;
const EXT_PATH = "extension/mass_translate/";
static $EXT_PATH = '';
static $MODEL_PATH = "model_";
static $LINK = "module/mass_translate";
static $LINK_SEP = "module/mass_translate/";
static $ASSET_PATH = "view/gkd/mass_translate/";
static $MODULE_DIR = DIR_APPLICATION;
private $error = array();
private $OC_V2;
private $token;
private $tool;
private $translate_api;
private $langIdToCode;
private $start_time;
public function __construct($I7jbB)
{
goto C0opG;
jpL9f:
self::$LINK = self::EXT_PATH . self::LINK;
goto rqG2k;
Aj38F:
if (version_compare(VERSION, "4", ">=")) {
goto FuwLF;
}
goto qTP46;
C0opG:
parent::__construct($I7jbB);
goto Aj38F;
lZC83:
self::$ASSET_PATH = "../extension/mass_translate/admin/" . self::$ASSET_PATH;
goto Gh0Py;
axQWv:
self::$MODEL_PATH = "model_extension_" . self::MODULE . "_";
goto lZC83;
sUl32:
v1zMQ:
goto xpbML;
IUpmM:
self::$LINK_SEP = "extension/" . self::$LINK_SEP;
goto IZFrQ;
PIFjJ:
if (defined("GKD_CRON")) {
goto VzlgH;
}
goto UKGVw;
n7j5_:
goto v1zMQ;
goto N11S1;
N11S1:
FuwLF:
goto jpL9f;
xpbML:
$this->load->language(self::$LINK);
goto PIFjJ;
qTP46:
if (!version_compare(VERSION, "2.3", ">=")) {
goto qdSxi;
}
goto Y9DUP;
IZFrQ:
qdSxi:
goto n7j5_;
Gh0Py:
self::$MODULE_DIR = DIR_EXTENSION . "/mass_translate/admin/";
goto sUl32;
UKGVw:
$this->token = isset($this->session->data["user_token"]) ? "user_token=" . $this->session->data["user_token"] : "token=" . $this->session->data["token"];
goto NPgJI;
Y9DUP:
self::$LINK = "extension/" . self::LINK;
goto IUpmM;
rqG2k:
self::$LINK_SEP = self::$LINK . (version_compare(VERSION, "4", "<") ? "/" : "|");
goto Be7hn;
Be7hn:
self::$EXT_PATH = "extension/mass_translate/";
goto axQWv;
NPgJI:
VzlgH:
goto RfYXt;
RfYXt:
}
public function index()
{
goto kOwhB;
wRLBa:
goto BuJ0n;
goto Hw1l7;
tAUqb:
$this->model_setting_setting->editSetting("mass_translate", $this->request->post, $b6KIt);
goto RLhgZ;
AATpd:
$data["categories"] = $this->model_catalog_category->getCategories(array());
goto DGlkB;
uTyiS:
goto HVcvU;
goto IQn3q;
tb28_:
$this->document->addScript($FOW83 . "bootstrap.min.js");
goto IjGZL;
BnKSA:
curl_close($UZIYi);
goto kbbn_;
ga41l:
$data["cli_log"] = $data["cli_log_link"] = '';
goto Lm0Zt;
y3Kym:
goto XSgis;
goto Tgf2i;
Jb2MF:
foreach ($data["translate_apis"] as $amK9k => $m6cbZ) {
$data["api_option_list"][] = array("name" => $m6cbZ["name"], "val" => $amK9k, "img" => $amK9k);
rpd__:
}
goto pFL44;
Fe18F:
$data["breadcrumbs"] = array();
goto IOGY1;
bwmkh:
pbejP:
goto Gk4En;
oUWKX:
YmmjQ:
goto Kjpiu;
xGKSO:
xkLM6:
goto LmBFS;
PE53N:
goto v7fM5;
goto Ffw5n;
le_CN:
goto F7leC;
goto hPi2O;
Pp2oA:
DbWIT:
goto ATmY7;
uJTc0:
if (version_compare(VERSION, "2", ">=")) {
goto TjOdf;
}
goto vgg34;
A2DXd:
goto kCCw5;
goto l7qJT;
PmSYh:
n624J:
goto fN9VA;
RqtBs:
$this->document->setTitle(strip_tags($this->language->get("heading_title")));
goto tBAg1;
ilxiS:
$data["store_id"] = $b6KIt = (int) $this->request->get["store_id"];
goto J6F0y;
rFlaF:
if (!false) {
goto I63cA;
}
goto AZfGZ;
gAuw1:
Ss6pf:
goto ZEGmB;
DZPPZ:
if (version_compare(VERSION, 4, "<") && !is_file(DIR_TEMPLATE . "tool/gkd_license.tpl")) {
goto anOVb;
}
goto ZnF7i;
bL3Y6:
M0o_o:
goto QUqWQ;
fZsVh:
yaZqM:
goto lmIEl;
eyuHN:
goto sEW2r;
goto lpxFR;
IrL87:
curl_setopt($UZIYi, CURLOPT_RETURNTRANSFER, 1);
goto z6e5z;
RLhgZ:
$this->session->data["success"] = $this->language->get("text_success");
goto Kug_i;
avdV6:
unset($this->session->data["error"]);
goto T99Zb;
mvi67:
xkJal:
goto so7Fv;
OhbHK:
if (!empty($data["license_info"]["website"]) && strpos($_SERVER["HTTP_HOST"], $data["license_info"]["website"]) !== false) {
goto l18xc;
}
goto rIy2k;
tQNgy:
$ufcse = '';
goto FAHGv;
eV52G:
unset($this->session->data["showTab"]);
goto j6okH;
lH2Do:
goto c2zDh;
goto G0lkY;
vrQG_:
QDqYA:
goto O8HTv;
ayVii:
goto NSF3Y;
goto HQVRl;
yiqKL:
y0Ge3:
goto MD68c;
lWuFC:
Dkal0:
goto wVMjN;
miR2P:
$data["cli_log"] = $this->readLogFile($Na08i, 10000);
goto lqNuh;
dCXcz:
goto lxn9M;
goto GyqCx;
RvmcG:
foreach ($_ as $Nc4vO => $GIDGR) {
goto ztPxT;
ztPxT:
$q1y7t++;
goto Nm4uX;
Zktkf:
echo "$_['" . $Nc4vO . "'] = '" . str_replace("'", "\'", $GIDGR) . "';\xa";
goto bYuP4;
Nm4uX:
$GIDGR = $this->model_mass_translate_tool->translate($GIDGR, "en", "zh");
goto Zktkf;
bYuP4:
uno4T:
goto taMr4;
taMr4:
}
goto fy4X0;
NTrMb:
$this->error["error"] = $this->language->get("error_permission");
goto spwy3;
XCX4n:
goto pF5Dh;
goto KTrv5;
B8aGU:
$data["mass_translate_source_language"] = $this->config->get("mass_translate_source_language");
goto eOOcq;
Y97bI:
goto ahhud;
goto ex05O;
N1HFq:
if (version_compare(VERSION, "2", ">=")) {
goto nWgOQ;
}
goto bqVof;
GpTqe:
$UZIYi = curl_init();
goto YBplc;
ptgjv:
$data["mass_translate_deepl_glossary"] = $this->request->post["mass_translate_deepl_glossary"];
goto V6eRl;
F7043:
AQi4L:
goto vrQG_;
XsUqR:
TlGrc:
goto w7OcE;
BfQLg:
$data["module_version"] = simplexml_load_file(DIR_SYSTEM . "../vqmod/xml/" . $ym3Xi . ".xml")->version;
goto jelGw;
hdO7u:
oR7GW:
goto Psj0G;
XJR7b:
goto ne10O;
goto cs2vW;
ip1tt:
NdP1D:
goto n2XWn;
nZ4xG:
cLA15:
goto oNQTH;
B1D51:
if (version_compare(VERSION, "3", ">=")) {
goto oRo4s;
}
goto zalhx;
jbpvL:
$this->document->addStyle($FOW83 . "prettyCheckable.css");
goto PGtRb;
DILnF:
h0wsN:
goto dCXcz;
yuxBL:
iwNr8:
goto mQ2il;
bqVof:
$this->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto UvV1D;
vgg34:
$this->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto D2EP8;
bi_E6:
$data["button_cancel"] = $this->language->get("button_cancel");
goto CO8Qk;
hSiRX:
goto WXj4H;
goto vwdty;
gW0e3:
goto q3mXM;
goto YD25T;
zfYuL:
$data["mass_translate_log"] = $this->request->post["mass_translate_log"];
goto BCI4o;
k9cBJ:
ahhud:
goto TuJ6e;
mQ2il:
curl_setopt($UZIYi, CURLOPT_USERAGENT, "Mozilla/5p (Windows NT 10.0; WOW64) AppleWebKit/5.36 (KHTML, like Gecko) Chrome/51.0.24.3 Safari/537s6");
goto EIjbQ;
Tgf2i:
v7fM5:
goto vchLD;
w3gra:
dY1z9:
goto EbgJg;
noer1:
if (!($this->request->server["REQUEST_METHOD"] == "POST" && $this->validate())) {
goto qdOPp;
}
goto dYXQl;
eEq_n:
$this->document->addStyle($FOW83 . "animate.min.css");
goto G3ldm;
HXfnd:
$this->document->addStyle($FOW83 . "bootstrap.min.css");
goto aIB3f;
Pu5ru:
goto yaZqM;
goto KmlmP;
G3ldm:
$data["demo_mode"] = !$this->user->hasPermission("modify", self::$LINK);
goto RqtBs;
AWt3Y:
$this->redirect($this->url->link(self::$LINK, $this->token, "SSL"));
goto shqjw;
rqf3o:
goto frHiO;
goto xCejd;
PGtRb:
$this->document->addScript($FOW83 . "prettyCheckable.js");
goto kcRSj;
vchLD:
goto n624J;
goto lnVsd;
y3bJg:
goto g1OmK;
goto PrTlF;
qObsN:
curl_setopt($UZIYi, CURLOPT_REFERER, "http://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}");
goto l1Kj9;
Psj0G:
$data["mass_translate_status"] = $this->request->post["mass_translate_status"];
goto nZ4xG;
hcPlg:
$WNSq8 = $WNSq8 / 1024;
goto dQIuI;
WTYmJ:
$data["info"] = $this->language->get("text_demo_mode");
goto bhrAO;
G1t4B:
require $Na08i;
goto KMry9;
MbsM_:
$this->response->setOutput($this->render());
goto ngY5e;
XTRpD:
$FOW83 = "view/gkd/mass_translate/";
goto p9yb0;
ex05O:
gy0UK:
goto dEx1Z;
cU96P:
if (!(in_array($_SERVER["REMOTE_ADDR"], array("127.0p.1", "::1", "192.8.0.1")) || !$this->user->hasPermission("modify", self::$LINK))) {
goto hA0sU;
}
goto hYUAo;
KGdQe:
bYxCK:
goto BFazY;
F0Y21:
wig5K:
goto tZpoq;
FLc3z:
u8lxy:
goto Y6v_8;
scMfw:
goto pbejP;
goto C61tc;
ZEGmB:
vJjOA:
goto drncD;
ZWjQx:
if (!$JMhOh) {
goto ZbPig;
}
goto A2DXd;
ZFoRQ:
$this->response->setOutput($this->load->view("extension/" . self::MODULE . "/tool/gkd_license", $data));
goto w8ENi;
bYc51:
Tmz_t:
goto GI8by;
KHJsG:
goto sKWVG;
goto HAEWd;
eOOcq:
goto Wy7ey;
goto FI9Ut;
mlREp:
d6L3R:
goto VIe4w;
w7OcE:
curl_setopt($UZIYi, CURLOPT_SSL_VERIFYPEER, 0);
goto L1P_t;
Gk4En:
goto JJqsH;
goto Q7Ck9;
DhdzS:
if (!($WNSq8 / 1024 > 1)) {
goto JVHbQ;
}
goto hcPlg;
QobkH:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto ANKjb;
}
goto WTYmJ;
LdUlU:
unlink(DIR_LOGS . "mass_translate.log");
goto zUxAN;
R4Q_b:
EsHWq:
goto PUj65;
Kjpiu:
goto WQ00i;
goto xZrW1;
WGQt7:
$data["module_type"] = "ocmod";
goto Dv9AM;
Xr7B6:
fOHi8:
goto zPr0e;
wOtpx:
BGpcI:
goto yZ8tR;
BFazY:
return 0;
goto qJqwH;
sjDOR:
HWj91:
goto DILnF;
h3tWl:
nTWlb:
goto ZX0mF;
aGXbf:
$data["column_left"] = $this->load->controller("common/column_left");
goto C6a4a;
yeB_N:
$data["error_warning"] = $this->error["warning"];
goto D5tPZ;
GyqCx:
c6SyB:
goto Pm_Zj;
xFSgB:
Mn8sD:
goto yeB_N;
YD25T:
SDUK9:
goto pApMP;
pWOg2:
WEwMY:
goto B4wWB;
AtWKN:
goto HUMfh;
goto h3tWl;
D9K51:
$data["mass_translate_add"] = (array) $this->config->get("mass_translate_add");
goto yxfGz;
GsxVk:
goto otT6f;
goto sw8pS;
cd5EF:
eUNSL:
goto iscee;
K5JIA:
gDAbM:
goto Cp00Y;
xZrW1:
grxUj:
goto bKsGA;
mJ98e:
$this->load->model("localisation/language");
goto RYQ7M;
RxVgR:
goto WwzFA;
goto xFSgB;
KgNwB:
goto vJjOA;
goto cwImm;
eIur8:
goto ZR7YW;
goto LlJ0e;
qUIxE:
if (isset($this->error["error"])) {
goto RLAem;
}
goto ixFLk;
IDBr9:
die;
goto ip1tt;
Cp00Y:
goto Ozol2;
goto fZsVh;
ra2yA:
if (!isset($this->session->data["showTab"])) {
goto rfufn;
}
goto mdf1F;
vJ0vP:
goto XYe2v;
goto sjDOR;
LbHs2:
$data["column_left"] = '';
goto A1EvR;
UJ3qs:
if (isset($this->request->post["mass_translate_log"])) {
goto Ng_A0;
}
goto NMHTZ;
nXIQb:
$this->response->setOutput($this->load->view("tool/gkd_license.tpl", $data));
goto PE53N;
p9wGM:
$Wy0d3 = 1;
goto lNJtr;
k09ao:
lTibQ:
goto IhtxO;
Xto5Y:
$UccLG = $this->model_setting_modification->getModificationByCode($ym3Xi);
goto rzk2y;
X28nU:
goto Yc182;
goto rwRwn;
PUj65:
fsJHu:
goto c6SsS;
ldSWD:
I63cA:
goto VvQIK;
Hw1l7:
aiHV_:
goto oI5vi;
My5yC:
bM7hS:
goto Pu5ru;
sHj6_:
A4f_w:
goto EG8n5;
xOr2H:
$data["mass_translate_status"] = $this->config->get("mass_translate_status");
goto IS7f5;
x3Kd8:
goto kD8OF;
goto o8V0H;
lmwaY:
goto z8p_W;
goto PXQlr;
NlvSb:
XSgis:
goto tO6LO;
ItY0s:
goto yNxiU;
goto gAuw1;
Dv9AM:
niHUu:
goto bS0LA;
a8MPF:
if (isset($this->request->post["mass_translate_test_file"])) {
goto lslao;
}
goto MdMy8;
KJjbS:
QVHjQ:
goto t6hDb;
ixFLk:
$data["error"] = '';
goto RyFiB;
eDo4r:
goto Owqly;
goto U2d78;
iscee:
$data["mass_translate_add"] = $this->request->post["mass_translate_add"];
goto JI6rM;
aIB3f:
$this->document->addStyle($FOW83 . "bootstrap-theme.min.css");
goto tb28_;
LLCbr:
$data["mass_translate_deepl_glossary"] = $this->config->get("mass_translate_deepl_glossary");
goto rzvGs;
cdlVa:
goto NxDW4;
goto gD6qm;
YxjEm:
goto niHUu;
goto xoReu;
X3ELi:
$data["module_version"] = "not found";
goto Ss9lb;
w8Czb:
goto h0wsN;
goto K5JIA;
P9VNt:
goto iUP6M;
goto oJ4W5;
Kug_i:
$qORV3 = '';
goto x0x5C;
A6GVw:
$ZFYvi = $this->model_setting_store->getStores();
goto qaOHY;
v7fwR:
if (empty($data["error"])) {
goto gdI4E;
}
goto w_Qze;
nV3zE:
$data["mass_translate_edit"] = $this->request->post["mass_translate_edit"];
goto n2_KO;
pscn9:
if (isset($this->request->post["mass_translate_ignore"])) {
goto yrugH;
}
goto zzvFc;
Wo1Kl:
$data["module"] = self::MODULE;
goto rB_Ck;
prEx0:
goto ry9Wx;
goto s3ADC;
nrNw6:
goto peZwj;
goto uI3hP;
Fr2XN:
ivw_p:
goto JF1Pw;
kb8ay:
$data["success"] = '';
goto UZUJ1;
RkGtn:
if (isset($this->request->post["mass_translate_api"])) {
goto DbWIT;
}
goto uFTcK;
y_ZXd:
if (version_compare(VERSION, "3", ">=")) {
goto s_Bqm;
}
goto HHPkJ;
G03st:
wIJRl:
goto XOIG8;
R9AbW:
X5DNO:
goto DBoCE;
jjQa4:
jzm1K:
goto DqXFJ;
u1El8:
$data["footer"] = $this->load->controller("common/footer");
goto tCgMV;
UGibA:
$data["mass_translate_overwrite"] = $this->config->get("mass_translate_overwrite");
goto RFcHe;
a2uHl:
R6pkt:
goto KgNwB;
zdA1h:
$this->load->model("catalog/manufacturer");
goto ABq2d;
c_D4p:
TjOdf:
goto DMrSG;
uI3hP:
RpLVC:
goto uTyiS;
FHaYd:
if (isset($this->request->post["mass_translate_overwrite"])) {
goto d6L3R;
}
goto UGibA;
ID95m:
goto Tktvl;
goto s_yXs;
dijhp:
ZUw1_:
goto hSiRX;
rB_Ck:
$data["process_types"] = array("product", "category", "information", "attribute", "option", "filter", "language", "language_admin");
goto RTviv;
XOIG8:
goto xlb1G;
goto Sba0j;
rfGbC:
goto CClwY;
goto a2uHl;
KmlmP:
cVgmm:
goto gT1oI;
qvhme:
$qORV3 = "&store_id=" . $b6KIt;
goto za68H;
CZld7:
goto uslt2;
goto liUhq;
hkFcI:
$data["mass_translate_ignore"] = $this->request->post["mass_translate_ignore"];
goto KISUb;
AX4WB:
$data["heading_title"] = $this->language->get("module_title");
goto DMH0A;
GKDia:
orjhe:
goto ItY0s;
drncD:
goto EsHWq;
goto QCsEu;
s5KRg:
$this->load->model("mass_translate/tool");
goto Ss00P;
Pi8FK:
ZYRX8:
goto NR1d9;
zalhx:
if (version_compare(VERSION, "2.3", ">=")) {
goto pp5HN;
}
goto KE89o;
MD68c:
$this->model_setting_setting->deleteSetting(md5(HTTP_SERVER . self::MODULE));
goto yx9N8;
rwRwn:
pp5HN:
goto c2nDA;
BbY32:
$this->session->data["success"] = $rDsbt["success"];
goto V1Esc;
LM2z4:
unset($this->session->data["success"]);
goto bYc51;
JF1Pw:
goto grxUj;
goto T1Svf;
MEsl5:
goto msLwd;
goto BbRQ2;
LdFpz:
$data["breadcrumbs"][] = array("text" => strip_tags($this->language->get("heading_title")), "href" => $this->url->link(self::$LINK, $this->token, "SSL"), "separator" => " :: ");
goto TZxqJ;
UvV1D:
goto h563y;
goto KG1tT;
nYYSc:
if (empty($Wy0d3) || $WgokZ) {
goto ivw_p;
}
goto gfLk1;
nAd6d:
oIAE9:
goto jLr0s;
sFezE:
$this->load->model("setting/setting");
goto f8OFA;
WoUHO:
CClwY:
goto zn6L0;
djaz5:
Taqnj:
goto nYYSc;
K14jX:
$data["cli_log_size"] = round(substr($WNSq8, 0, strpos($WNSq8, ) + 4), 2) . $kcEBN[$q1y7t];
goto JM1Pb;
Ffw5n:
ne10O:
goto ZWjQx;
IZmyG:
$this->document->addStyle($FOW83 . "awesome/css/font-awesome.min.css");
goto HXfnd;
aooli:
NF0sK:
goto qObsN;
wVMjN:
curl_setopt($UZIYi, CURLOPT_BINARYTRANSFER, true);
goto mC6WL;
FidvT:
if (version_compare(VERSION, "2", ">=")) {
goto DsZt1;
}
goto dRR0L;
t9jO_:
yNxiU:
goto Qrslw;
LCrvk:
$data["mass_translate_cron_key"] = $this->config->get("mass_translate_cron_key");
goto oyQQK;
liUhq:
DScjT:
goto TWFuv;
LOUXg:
Des_n:
goto hgZXX;
kcRSj:
$this->document->addScript($FOW83 . "itoggle.js");
goto d29x_;
XEV3z:
$q1y7t = 0;
goto nBdpI;
uaTzr:
s_Bqm:
goto Fncbw;
Txn9i:
if (empty($b6KIt)) {
goto NN8v1;
}
goto qvhme;
e8Igd:
goto itW6K;
goto GKDia;
rDu2j:
goto AQi4L;
goto IIQR3;
q_s8R:
goto HWj91;
goto upJqf;
EG8n5:
curl_setopt($UZIYi, CURLOPT_POSTFIELDS, http_build_query(array("sn" => $this->request->post["lic_number"], "tw" => !empty($this->request->post["lic_test"]), "ip" => isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : '', "md" => self::MODULE, "ws" => HTTP_SERVER, "rf" => $WgokZ)));
goto SEaq2;
oI5vi:
$data["mass_translate_samesource"] = $this->request->post["mass_translate_samesource"];
goto weQam;
ztQrd:
StTmw:
goto ayVii;
JM1Pb:
wyRd9:
goto pbLtK;
c7S20:
goto R6pkt;
goto t9jO_;
z6e5z:
goto TlGrc;
goto wbzIh;
xCejd:
W9O5y:
goto ECw0F;
HAEWd:
goto ugQJ2;
goto F0Y21;
KyObP:
PKvjB:
goto sFezE;
m2SH4:
$Na08i = DIR_LANGUAGE . "english/module/pro_email.php";
goto YtejX;
rbB7Y:
UTZ41:
goto BbY32;
l1Kj9:
goto SCmO8;
goto yuxBL;
tZpoq:
if (!version_compare(VERSION, "2", ">=")) {
goto YmmjQ;
}
goto fVZFo;
JUvdZ:
Ng_A0:
goto zfYuL;
X8735:
rEiXA:
goto Lxxgg;
Lxxgg:
goto ZUHkM;
goto moexf;
IOGY1:
$data["breadcrumbs"][] = array("text" => $this->language->get("text_home"), "href" => $this->url->link("common/home", $this->token, "SSL"), "separator" => false);
goto B1D51;
y0ifi:
goto f1Ckh;
goto doEPp;
frS_k:
$aJPBV = $this->url->link("marketplace/extension", "type=module&" . $this->token, "SSL");
goto LOUXg;
USwcv:
Wy7ey:
goto a8MPF;
FI9Ut:
XJ2YX:
goto nVbX4;
TadZA:
if (isset($this->request->post["mass_translate_status"])) {
goto oR7GW;
}
goto xOr2H;
PArir:
l18xc:
goto hcCld;
ElYWV:
k2kEJ:
goto uAOir;
vwdty:
WQ00i:
goto LbHs2;
TJY8s:
$WgokZ = false;
goto GsxVk;
dEmsO:
goto WEwMY;
goto NlvSb;
S6j1e:
goto DQnuL;
goto xzZcu;
PrTlF:
JnJRz:
goto qALXi;
dZp8t:
goto JGZJm;
goto WoUHO;
ngY5e:
goto kCTZk;
goto V3ktL;
ggwZW:
pbFHr:
goto c6rZu;
c6SsS:
goto BGpcI;
goto RUHX6;
Ey5rk:
WXj4H:
goto ZFoRQ;
puExq:
$this->load->model("setting/store");
goto dmwM5;
zdkq6:
WRCh0:
goto Znmca;
MdMy8:
$data["mass_translate_test_file"] = $this->config->get("mass_translate_test_file");
goto mIJU1;
I9ZC3:
JJqsH:
goto VZFUc;
f8OFA:
goto ax3DL;
goto GIOIi;
j3NTf:
Qw7fM:
goto J1cGR;
dRR0L:
$UccLG = false;
goto P9VNt;
FAHGv:
foreach ($data["translate_apis"] as $m6cbZ => $HrleY) {
goto re5yq;
I0yQ6:
vrBCc:
goto W6Bm8;
OjOoY:
rigN9:
goto xjd77;
xjd77:
$ufcse .= ", " . $HrleY["name"];
goto I0yQ6;
zyrKi:
echo "<div class="clearfix"></div>";
goto OjOoY;
AQEAA:
if (!(++$q1y7t % 2 == 0)) {
goto rigN9;
}
goto zyrKi;
re5yq:
echo "<div style="float:left; width50px; text-align:center;"><img class="img-responsive" style="padding:20px;vertical-align:middle" src="view/gkd/mass_translate/img/services/" . $m6cbZ . ".png"/></div>";
goto AQEAA;
W6Bm8:
}
goto ElYWV;
CeXNs:
goto q_peO;
goto o8mi_;
JCtAm:
$this->document->addStyle($FOW83 . "style.css");
goto eEq_n;
qe2at:
$this->response->redirect($this->url->link(self::$LINK, $this->token, "SSL"));
goto KVavA;
dMmG6:
$data["mass_translate_test"] = $this->config->get("mass_translate_test");
goto AtWKN;
p9yb0:
$data["_img_path"] = $FOW83 . "img/";
goto wHx_k;
Qrslw:
$data["error"] = "License number format is incorrect";
goto ECRkp;
FoJ9M:
goto tsHPw;
goto GuAvw;
j6okH:
rfufn:
goto AX4WB;
CgTXa:
Nq1F7:
goto w5Iy1;
pbLtK:
$data["stores"] = array();
goto U40vt;
pzETC:
Ozol2:
goto AZaj3;
mIJU1:
goto KnNME;
goto yt_bA;
fOnG4:
$UccLG = $this->model_extension_modification->getModificationByCode($ym3Xi);
goto njNeD;
zXJSg:
$this->load->model("setting/setting");
goto uocr3;
a4_nP:
if (isset($this->request->post["mass_translate_source_language"])) {
goto XJ2YX;
}
goto B8aGU;
nabR6:
goto aGIYP;
goto lH2Do;
u3MaA:
sJqH6:
goto HzcIg;
i_8eb:
goto PKvjB;
goto nAd6d;
u_L6s:
goto gy0UK;
goto Iqy9V;
HHPkJ:
$this->response->setOutput($this->load->view("gkd/mass_translate.tpl", $data));
goto gKHA9;
U40vt:
$data["stores"][] = array("store_id" => 0, "name" => $this->config->get("config_name"), "prefix" => $this->config->get("config_invoice_prefix"));
goto A6GVw;
GI8by:
if (isset($this->session->data["error"])) {
goto mYSmP;
}
goto NQo5w;
RFcHe:
goto Nq1F7;
goto mlREp;
VLsGs:
if (!version_compare(VERSION, 3, ">=")) {
goto pezpf;
}
goto p8XKH;
kI6Hd:
H2x6X:
goto Gz61m;
kOwhB:
if (!false) {
goto NdP1D;
}
goto m2SH4;
yt_bA:
lslao:
goto mj77O;
tO6LO:
HVcvU:
goto dZp8t;
IhtxO:
$this->response->setOutput($this->load->view("tool/gkd_license", $data));
goto FoJ9M;
BbRQ2:
NNkRG:
goto eIur8;
It8F5:
mB7gS:
goto ikf0g;
JauV6:
goto GgZ0S;
goto O3WSO;
CcOh4:
Xh0m8:
goto Ylwlw;
RUHX6:
frHiO:
goto aGXbf;
BCI4o:
ViC3l:
goto zYPud;
cEJ1h:
JVHbQ:
goto K14jX;
mdf1F:
$data["showTab"] = $this->session->data["showTab"];
goto eV52G;
d29x_:
$this->document->addScript($FOW83 . "selectize.js");
goto lN5Yj;
G0lkY:
BUV62:
goto u1El8;
TOZuj:
$this->request->post = array("lic_number" => $data["license_info"]["license"]);
goto nrNw6;
nBdpI:
tcPNw:
goto DhdzS;
Ss9lb:
$data["module_type"] = '';
goto YxjEm;
ECw0F:
$WgokZ = isset($this->request->get["refresh"]) ? 1 : rand(1, 12) == 2;
goto FNjZP;
Guac4:
$data["mass_translate_opt"] = $this->request->post["mass_translate_opt"];
goto vRvp_;
fy4X0:
tPDzj:
goto IDBr9;
V1Esc:
goto ZYRX8;
goto Pi8FK;
spwy3:
DQnuL:
goto KGLPN;
JWH46:
c2zDh:
goto w1kgG;
mQ7cZ:
R0QNh:
goto lwDNb;
jh5QT:
$data["token"] = $this->token;
goto nlIPj;
VIe4w:
$data["mass_translate_overwrite"] = $this->request->post["mass_translate_overwrite"];
goto CgTXa;
rgXdr:
$data["error_warning"] = '';
goto RxVgR;
doEPp:
k1j4C:
goto x3Kd8;
w5Iy1:
if (isset($this->request->post["mass_translate_samesource"])) {
goto aiHV_;
}
goto SPVIS;
fofwO:
ugQJ2:
goto dijhp;
Znmca:
goto UTZ41;
goto T_Ptz;
l4W1n:
goto WaDVC;
goto q_s8R;
qaOHY:
foreach ($ZFYvi as $XS4TR) {
goto NOT3l;
iU7oS:
$ZYqDc = $this->model_setting_setting->getSetting("config", $XS4TR["store_id"]);
goto KWbns;
KWbns:
$data["stores"][] = array("store_id" => $XS4TR["store_id"], "name" => $XS4TR["name"], "prefix" => isset($ZYqDc["config_invoice_prefix"]) ? $ZYqDc["config_invoice_prefix"] : $this->config->get("config_invoice_prefix"));
goto CFPN4;
CFPN4:
q5woX:
goto Tbzcu;
NOT3l:
$ZQlBZ = array();
goto iU7oS;
Tbzcu:
}
goto VoY3g;
IS7f5:
goto cLA15;
goto hdO7u;
GZVkv:
peZwj:
goto ikSAC;
zIbez:
zNNHP:
goto i_8eb;
lNJtr:
goto e_T_g;
goto R4Q_b;
V5V10:
x0s8t:
goto jxzcN;
wXaxq:
if (version_compare(VERSION, "3", ">=")) {
goto zsJ1g;
}
goto FidvT;
bw4J3:
goto tp2Me;
goto Vm_Wb;
J6F0y:
$yxEfn = $this->db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '" . $b6KIt . "'");
goto u7V6S;
B9xkq:
goto xoWwu;
goto MWBR5;
qCmtN:
M1PSK:
goto ID95m;
lpxFR:
ax3DL:
goto J372b;
CO8Qk:
$data["button_add_module"] = $this->language->get("button_add_module");
goto D21yM;
u7V6S:
foreach ($yxEfn->rows as $q1LHO) {
goto Pr1pO;
yT2MJ:
RTrfG:
goto TjrM2;
GoxWj:
$this->config->set($q1LHO["key"], $q1LHO["value"]);
goto yT2MJ;
Abfox:
zuvYN:
goto GoxWj;
wW9Qx:
Av7L2:
goto qfDyn;
TjrM2:
UJT28:
goto sBf8G;
bjLnW:
$this->config->set($q1LHO["key"], unserialize($q1LHO["value"]));
goto nGHLi;
Pr1pO:
if (!$q1LHO["serialized"]) {
goto zuvYN;
}
goto I_nIz;
nGHLi:
goto VMshE;
goto wW9Qx;
N3K2e:
goto RTrfG;
goto Abfox;
I_nIz:
if (version_compare(VERSION, "2.1", ">=")) {
goto Av7L2;
}
goto bjLnW;
qfDyn:
$this->config->set($q1LHO["key"], json_decode($q1LHO["value"], true));
goto mwkAT;
mwkAT:
VMshE:
goto N3K2e;
sBf8G:
}
goto IntB6;
tdeJk:
goto M1PSK;
goto Fejhp;
jLr0s:
$data["error"] = $rDsbt["error"];
goto bw4J3;
DuTrc:
goto W9O5y;
goto oOEsN;
Qc0km:
itW6K:
goto XCX4n;
pApMP:
v5VXr:
goto DuTrc;
Ss00P:
$q1y7t = 0;
goto RvmcG;
so7Fv:
$this->db_tables();
goto QAI1t;
enDnH:
goto XHdVY;
goto wxrKm;
axwFd:
$data["warning"] = "PHP version 7.3 is required in order to use google api, please make sure to upgrade to this php version, current version: " . phpversion();
goto XRuOI;
Avad2:
$data["_url"] =& $this->url;
goto jh5QT;
yZ8tR:
f1Ckh:
goto CZld7;
UIhfq:
RLAem:
goto A1cPF;
TZxqJ:
$data["action"] = $this->url->link(self::$LINK, $this->token . "&store_id=" . $b6KIt, "SSL");
goto kmqjk;
NQo5w:
$data["error"] = '';
goto JauV6;
OFkyV:
goto Taqnj;
goto xGKSO;
d8Ism:
$this->children = array("common/header", "common/footer");
goto le_CN;
Pm_Zj:
$Wy0d3 = 1;
goto HldRw;
RYQ7M:
$data["languages"] = $this->model_localisation_language->getLanguages();
goto noer1;
KI9FK:
aGIYP:
goto OFkyV;
tnM3p:
$this->document->addStyle($FOW83 . "gkd-theme.css");
goto JCtAm;
XolZY:
$data["error"] = $this->session->data["error"];
goto avdV6;
QpsRW:
goto fZ7Ud;
goto R9AbW;
c2nDA:
$aJPBV = $this->url->link("extension/extension", "type=module&" . $this->token, "SSL");
goto vcc2u;
qJqwH:
goto fXTLL;
goto E5SRC;
AZfGZ:
$q1y7t = 0;
goto tQNgy;
sdLj9:
$ym3Xi = "auto_translate_pro";
goto wXaxq;
yx9N8:
goto oIAE9;
goto QA4OE;
EIjbQ:
goto Dkal0;
goto rbB7Y;
TuJ6e:
$JMhOh = $this->config->get(md5(HTTP_SERVER . self::MODULE));
goto nSPgs;
W31RT:
if (!file_exists($Na08i)) {
goto wyRd9;
}
goto H4poh;
dQIuI:
$q1y7t++;
goto lNh2t;
nAdlY:
if (isset($this->request->post["mass_translate_test"])) {
goto nTWlb;
}
goto dMmG6;
KVavA:
goto fOHi8;
goto V5V10;
ZxwSY:
goto Y2ip6;
goto Xr7B6;
mAg8y:
$data["module_version"] = simplexml_load_file(DIR_SYSTEM . "../system/" . $ym3Xi . ".ocmod.xml")->version;
goto Aina4;
nSPgs:
goto bA44i;
goto pWOg2;
L1P_t:
goto t0jZR;
goto FLc3z;
r3OLl:
$this->load->model("extension/modification");
goto fOnG4;
ZX0mF:
$data["mass_translate_test"] = $this->request->post["mass_translate_test"];
goto P1LHb;
D21yM:
$data["button_remove"] = $this->language->get("button_remove");
goto qUIxE;
Iqy9V:
lxn9M:
goto zXJSg;
gKHA9:
goto mB7gS;
goto uaTzr;
U2d78:
hthaO:
goto fDumj;
stRJi:
XkRPK:
goto P6m6G;
moexf:
MGEfU:
goto GpTqe;
itas_:
zmXyh:
goto u3MaA;
kcnd7:
$this->load->model("catalog/category");
goto AATpd;
ocErc:
SCmO8:
goto IrL87;
TR0tB:
if (isset($this->request->post["mass_translate_deepl_glossary"])) {
goto TWJZC;
}
goto LLCbr;
TWFuv:
$this->config->set("template_engine", "template");
goto Hpf3L;
uFTcK:
$data["mass_translate_api"] = $this->config->get("mass_translate_api");
goto U4EMH;
QA4OE:
P6cpl:
goto ciXt8;
abzrb:
curl_setopt($UZIYi, CURLOPT_URL, "https://geekodev.com/license.php");
goto lMwRE;
VZFUc:
goto bYxCK;
goto lLf0m;
jelGw:
$data["module_type"] = "vqmod";
goto stRJi;
hL_EY:
goto Ob4ey;
goto djaz5;
nV6lP:
$data["column_left"] = $this->load->controller("common/column_left");
goto grqUX;
pFL44:
oSXGN:
goto QobkH;
GuAvw:
NxDW4:
goto MocQK;
gQ1Hr:
gdI4E:
goto v3c3j;
fN9VA:
goto JvUeH;
goto fzkOW;
gfLk1:
goto KuVBd;
goto Fr2XN;
zn6L0:
$data["error"] = "Error during activation process, please contact support";
goto B9xkq;
KMry9:
aPe4E:
goto s5KRg;
QUqWQ:
goto R0QNh;
goto fofwO;
SFNr1:
hJrj1:
goto uJTc0;
lnVsd:
goto rR44w;
goto Vqrnq;
xwiSt:
goto bM7hS;
goto lDT3C;
c6rZu:
if (version_compare(VERSION, "2", ">=")) {
goto THGXu;
}
goto ghPU1;
aIqNg:
goto hthaO;
goto jTLSa;
KISUb:
q_peO:
goto TR0tB;
MyaoE:
$data["journal3_active"] = is_dir(DIR_APPLICATION . "model/journal3");
goto Jps95;
L6V_M:
dIeod:
goto hqmLb;
PXQlr:
goto imG3F;
goto F7043;
NR1d9:
if (empty(self::$LINK)) {
goto PcRfF;
}
goto xwiSt;
NniYa:
$this->load->model("setting/modification");
goto Xto5Y;
jswYt:
goto Xh0m8;
goto zdkq6;
O3WSO:
mYSmP:
goto XolZY;
KTrv5:
CZYvf:
goto My5yC;
B4wWB:
if (!version_compare(VERSION, "2", ">=")) {
goto rEiXA;
}
goto OeqTk;
DGlkB:
if (!(isset($this->request->get["store_id"]) && $this->request->get["store_id"])) {
goto qjfSj;
}
goto ilxiS;
O8HTv:
goto wig5K;
goto JWH46;
hqmLb:
goto DScjT;
goto oDYm3;
lMoki:
Wc2LN:
goto vJ0vP;
VvQIK:
$data["api_option_list"] = array();
goto Jb2MF;
ToxUU:
qjfSj:
goto zdA1h;
sw8pS:
wWOde:
goto zIbez;
Gz61m:
$rDsbt = (array) @json_decode($MCq0K);
goto cfxPc;
DMrSG:
$this->response->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto yosnh;
A1cPF:
$data["error"] = $this->error["error"];
goto j3NTf;
Y0GAr:
goto tYa6i;
goto mQ7cZ;
Q7Ck9:
goto zmXyh;
goto yiqKL;
VoY3g:
LDpD8:
goto Y97bI;
LPeA0:
kD8OF:
goto eiy54;
D2EP8:
goto VyMzD;
goto c_D4p;
fyx71:
$data["module_version"] = $UccLG["version"];
goto WGQt7;
oDYm3:
uslt2:
goto smNiv;
ECRkp:
goto OKEPI;
goto lWuFC;
lN5Yj:
$this->document->addStyle($FOW83 . "selectize.css");
goto SPqbP;
T_Ptz:
Tktvl:
goto l4W1n;
Vm_Wb:
fXTLL:
goto ztQrd;
UZUJ1:
goto Tmz_t;
goto EsZXY;
YVDhF:
if (empty($rDsbt["success"])) {
//die('1');
goto M0o_o;
}
goto DGINa;
nlIPj:
$data["OC_V2"] = version_compare(VERSION, "2", ">=");
goto XTRpD;
ccKxc:
KuVBd:
goto Z9jBI;
ABq2d:
$data["manufacturers"] = $this->model_catalog_manufacturer->getManufacturers();
goto mJ98e;
IIQR3:
bA44i:
goto TJY8s;
p8XKH:
goto dIeod;
goto KnPTE;
PA8ai:
$this->data =& $data;
goto R_Fbe;
Ylwlw:
goto Ss6pf;
goto kI6Hd;
SPVIS:
$data["mass_translate_samesource"] = $this->config->get("mass_translate_samesource");
goto wRLBa;
mj77O:
$data["mass_translate_test_file"] = $this->request->post["mass_translate_test_file"];
goto cTmhU;
jxzcN:
goto aGIYP;
goto prEx0;
NMHTZ:
$data["mass_translate_log"] = $this->config->get("mass_translate_log");
goto JJ8Tb;
vcc2u:
Yc182:
goto k7WYm;
I84DK:
$data["header"] = $this->load->controller("common/header");
goto nV6lP;
oJ4W5:
DsZt1:
goto r3OLl;
Za9fM:
if ($this->request->server["REQUEST_METHOD"] == "POST" && isset($this->request->post["lic_number"])) {
goto k1j4C;
}
goto y0ifi;
wxrKm:
RicnI:
goto abzrb;
dEx1Z:
$this->request->server["REQUEST_METHOD"] = "GET";
goto vBe9K;
grqUX:
$data["footer"] = $this->load->controller("common/footer");
goto y_ZXd;
MocQK:
$this->template = "tool/gkd_license.tpl";
goto ZxwSY;
JI6rM:
bdcdb:
goto kdTWj;
HsAJS:
XYe2v:
goto DZPPZ;
kmqjk:
$data["cancel"] = $aJPBV;
goto TadZA;
bS0LA:
goto jzm1K;
goto pxlPT;
JCSxq:
if (is_file(DIR_SYSTEM . "../system/" . $ym3Xi . ".ocmod.xml")) {
goto JLIkj;
}
goto PYN1w;
o8V0H:
otT6f:
goto cU96P;
usUrH:
if (isset($this->request->post["mass_translate_sleep"])) {
goto X5DNO;
}
goto e62Fk;
Sjr7T:
vaALZ:
goto lmwaY;
n2_KO:
Yv3Vn:
goto RkGtn;
nGwnO:
$this->request->server["REQUEST_METHOD"] = "POST";
goto gW0e3;
DngJs:
if (!(!empty($this->request->get["clear_logs"]) && file_exists(DIR_LOGS . "mass_translate.log"))) {
goto Qz58f;
}
goto IQLLB;
qTWIn:
$data["mass_translate_opt"] = $this->config->get("mass_translate_opt");
goto H_e1d;
dmwM5:
$data["translate_apis"] = array("google" => array("name" => "Google Translate API", "dashboard" => "https://console.developers.google.com/apis/dashboard", "website" => "https://cloud.google.com/translate"), "deepl" => array("name" => "Deepl", "dashboard" => "https://www.deepl.com/", "website" => "https://www.deepl.com/"), "rapidapi" => array("name" => "Rapid API", "dashboard" => "https://rapidapi.com/login", "website" => "https://rapidapi.com/"), "microsoft" => array("name" => "Microsoft Translator", "dashboard" => "https://www.microsoft.com/en-us/translator/business/translator-api/", "website" => "https://www.microsoft.com/en-us/translator/business/translator-api/"), "systran" => array("name" => "Systran", "dashboard" => "https://www.systransoft.com", "website" => "https://www.systransoft.com"), "yandex" => array("name" => "Yandex Translate", "dashboard" => "https://yandex.com", "website" => "https://yandex.com"), "ibm" => array("name" => "IBM Watson Translator", "dashboard" => "https://www.ibm.com/watson/services/language-translator/", "website" => "https://www.ibm.com/watson/services/language-translator/"));
goto rFlaF;
rzvGs:
goto oFNqn;
goto LPQaW;
rDLGb:
$qORV3 = '';
goto Txn9i;
mC6WL:
goto A4f_w;
goto KJjbS;
w8ENi:
goto P6cpl;
goto aooli;
aBGzj:
$kcEBN = array("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB");
goto XEV3z;
LmBFS:
$this->data =& $data;
goto cdlVa;
UloYn:
goto jmPSq;
goto itas_;
lwDNb:
//if (isset($rDsbt["error"])) {
goto gDAbM;
//}
goto w8Czb;
eiy54:
if (!$this->request->post["lic_number"] || strlen(trim($this->request->post["lic_number"])) != 17) {
goto orjhe;
}
goto e8Igd;
Lm0Zt:
$Na08i = DIR_LOGS . "mass_translate.log";
goto W31RT;
lmIEl:
$this->response->redirect($this->url->link(self::$LINK, $this->token, "SSL"));
goto y3Kym;
za68H:
NN8v1:
goto N1HFq;
jZvVw:
oRo4s:
goto frS_k;
HldRw:
goto SDUK9;
goto LPeA0;
DMH0A:
$data["button_save"] = $this->language->get("button_save");
goto bi_E6;
rIy2k:
goto v5VXr;
goto PArir;
pxlPT:
JLIkj:
goto mAg8y;
IQLLB:
if (!$this->user->hasPermission("modify", self::$LINK)) {
goto afY2Y;
}
goto LdUlU;
Sba0j:
Ob4ey:
goto BnKSA;
lqNuh:
$WNSq8 = filesize($Na08i);
goto aBGzj;
LlJ0e:
g1OmK:
goto Za9fM;
uAOir:
echo $ufcse;
goto ldSWD;
wHx_k:
$data["OCID"] = self::OCID;
goto Wo1Kl;
s3ADC:
XHdVY:
goto OhbHK;
v3c3j:
goto MGEfU;
goto Vafut;
zzvFc:
$data["mass_translate_ignore"] = $this->config->get("mass_translate_ignore");
goto CeXNs;
ikSAC:
msLwd:
goto y3bJg;
ROs0t:
curl_setopt($UZIYi, CURLOPT_POST, 1);
goto SMXOw;
xzZcu:
afY2Y:
goto NTrMb;
w_Qze:
goto fsJHu;
goto gQ1Hr;
kdTWj:
if (isset($this->request->post["mass_translate_edit"])) {
goto MRmrD;
}
goto d4KZn;
hPi2O:
F7leC:
goto Pmyb4;
Vafut:
ry9Wx:
goto Tc3X_;
yxfGz:
goto bdcdb;
goto cd5EF;
cs2vW:
sEW2r:
goto nXIQb;
fVZFo:
goto sJqH6;
goto oUWKX;
EsZXY:
hdqiw:
goto duQSI;
xoReu:
lRWHi:
goto fyx71;
i2GW8:
$this->document->addScript($FOW83 . "toggler.js");
goto jbpvL;
P1LHb:
HUMfh:
goto a4_nP;
xUVoO:
i3brN:
goto oQmsk;
PYN1w:
if ($UccLG) {
goto lRWHi;
}
goto X3ELi;
ZnF7i:
goto QDqYA;
goto jxa9r;
bhrAO:
ANKjb:
goto RRiI6;
uocr3:
goto y0Ge3;
goto HsAJS;
SMXOw:
goto iwNr8;
goto KGdQe;
dYXQl:
$this->model_setting_setting->editSetting("module_mass_translate", array("module_mass_translate_status" => $this->request->post["mass_translate_status"]), $b6KIt);
goto tAUqb;
ATmY7:
$data["mass_translate_api"] = $this->request->post["mass_translate_api"];
goto xUVoO;
cwImm:
goto wWOde;
goto wOtpx;
vBe9K:
goto JnJRz;
goto mxcL2;
zYPud:
if (isset($this->request->post["mass_translate_cron_key"])) {
goto dY1z9;
}
goto LCrvk;
JJ8Tb:
goto ViC3l;
goto JUvdZ;
PH3zN:
$this->children = array("common/header", "common/footer");
goto MbsM_;
lDT3C:
PcRfF:
goto dEmsO;
QAI1t:
if (version_compare(VERSION, "2", ">=")) {
goto F1Q9_;
}
goto IZmyG;
upJqf:
tp2Me:
goto oL89y;
Vqrnq:
ZR7YW:
goto nGwnO;
k7WYm:
goto Des_n;
goto jZvVw;
lsbUa:
goto x0s8t;
goto bwmkh;
shqjw:
goto vaALZ;
goto sHj6_;
C6a4a:
goto BUV62;
goto GZVkv;
OeqTk:
goto hSw6K;
goto X8735;
A1EvR:
goto xkLM6;
goto Ey5rk;
cEKys:
tsHPw:
goto PmSYh;
IQn3q:
goto CZYvf;
goto KyObP;
R_Fbe:
$this->template = "gkd/mass_translate.tpl";
goto PH3zN;
N6wp3:
$data["journal2_active"] = is_dir(DIR_APPLICATION . "model/journal2");
goto MyaoE;
KGLPN:
Qz58f:
goto ga41l;
H_e1d:
goto MYSY7;
goto qDzEQ;
n2XWn:
$data["_language"] =& $this->language;
goto sF2yg;
C61tc:
rR44w:
goto L6V_M;
HzcIg:
goto u8lxy;
goto FVtjX;
lLf0m:
JGZJm:
goto CcOh4;
T99Zb:
GgZ0S:
goto ra2yA;
w1kgG:
kCCw5:
goto Y0GAr;
zUxAN:
$this->session->data["showTab"] = "tabj";
goto rDLGb;
fDumj:
die;
goto rDu2j;
yMsNn:
$this->response->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto N5O3M;
Jps95:
if (!$data["journal_active"]) {
goto xkJal;
}
goto pqqX1;
t6hDb:
if (!version_compare(VERSION, 4, ">=")) {
goto wIJRl;
}
goto LxbT3;
E5SRC:
Y2ip6:
goto d8Ism;
lMwRE:
goto NF0sK;
goto Sjr7T;
SEaq2:
goto cVgmm;
goto cEKys;
IntB6:
LWl4z:
goto ToxUU;
hgZXX:
$data["breadcrumbs"][] = array("text" => $this->language->get("text_module"), "href" => $aJPBV, "separator" => " :: ");
goto LdFpz;
l7qJT:
ZbPig:
goto lsbUa;
KG1tT:
nWgOQ:
goto yMsNn;
d4KZn:
$data["mass_translate_edit"] = (array) $this->config->get("mass_translate_edit");
goto O9lYR;
QCsEu:
NSF3Y:
goto ccKxc;
Pmyb4:
$this->response->setOutput($this->render());
goto scMfw;
duQSI:
$data["success"] = $this->session->data["success"];
goto LM2z4;
Y6v_8:
$data["header"] = $this->load->controller("common/header");
goto rqf3o;
DBoCE:
$data["mass_translate_sleep"] = $this->request->post["mass_translate_sleep"];
goto wDjwZ;
tCgMV:
goto QVHjQ;
goto MHMG2;
rzk2y:
F6pxT:
goto PVYvX;
HQVRl:
iLU_Q:
goto I9ZC3;
mxcL2:
e_T_g:
goto nabR6;
YBplc:
goto RicnI;
goto pzETC;
RyFiB:
goto Qw7fM;
goto UIhfq;
V4YRH:
zsJ1g:
goto NniYa;
DqXFJ:
goto XkRPK;
goto LAM0_;
V3ktL:
THGXu:
goto I84DK;
xaNnt:
goto F6pxT;
goto V4YRH;
kbbn_:
goto H2x6X;
goto k09ao;
Aina4:
$data["module_type"] = "ocmod";
goto jjQa4;
RTviv:
$data["journal_active"] = is_dir(DIR_APPLICATION . "model/journal2") || is_dir(DIR_APPLICATION . "model/journal3");
goto N6wp3;
Jb2PG:
MRmrD:
goto nV3zE;
ikf0g:
kCTZk:
goto uVk0c;
Tc3X_:
NKbsH:
goto eDo4r;
wZk4_:
goto StTmw;
goto lMoki;
oOEsN:
OKEPI:
goto Qc0km;
lNh2t:
goto tcPNw;
goto cEJ1h;
e62Fk:
$data["mass_translate_sleep"] = $this->config->get("mass_translate_sleep");
goto QpsRW;
U4EMH:
goto i3brN;
goto Pp2oA;
RRiI6:
if (!(version_compare(phpversion(), "7.3", "<") && $this->config->get("mass_translate_api") == "google")) {
goto Tb6ES;
}
goto axwFd;
ghPU1:
$data["column_left"] = '';
goto PA8ai;
yosnh:
VyMzD:
goto yWHQu;
oL89y:
WaDVC:
goto c7S20;
AZaj3:
//var_dump($WgokZ);die();
$WgokZ = true;
if (!$WgokZ) {
goto eV4S0;
}
goto tdeJk;
fzkOW:
q3mXM:
goto TOZuj;
N5O3M:
h563y:
goto S6j1e;
vRvp_:
MYSY7:
goto pscn9;
GIOIi:
t0jZR:
goto ROs0t;
oyQQK:
goto pbFHr;
goto w3gra;
bKsGA:
if ($WgokZ) {
goto NNkRG;
}
goto MEsl5;
LxbT3:
goto ZUw1_;
goto G03st;
cTmhU:
KnNME:
goto FHaYd;
KnPTE:
pezpf:
goto eyuHN;
pqqX1:
$data["process_types"][] = "journal_blog";
goto mvi67;
D5tPZ:
WwzFA:
goto Fe18F;
hcCld:
goto c6SyB;
goto vzmYI;
qDzEQ:
KSafV:
goto Guac4;
Fncbw:
$this->config->set("template_engine", "template");
goto gp3B6;
J372b:
$this->model_setting_setting->editSetting(md5(HTTP_SERVER . self::MODULE), array(md5(HTTP_SERVER . self::MODULE) => $rDsbt["info"]));
goto u_L6s;
sF2yg:
$data["_config"] =& $this->config;
goto Avad2;
ODNov:
vRceA:
goto KI9FK;
jxa9r:
anOVb:
goto aIqNg;
Z9jBI:
$data["store_id"] = $b6KIt = 0;
goto kcnd7;
J1cGR:
if (isset($this->error["warning"])) {
goto Mn8sD;
}
goto rgXdr;
O9lYR:
goto Yv3Vn;
goto Jb2PG;
LAM0_:
B94TC:
goto BfQLg;
Hpf3L:
goto lTibQ;
goto ODNov;
yWHQu:
qdOPp:
goto sdLj9;
MWBR5:
xlb1G:
goto VLsGs;
PVYvX:
if (is_file(DIR_SYSTEM . "../vqmod/xml/" . $ym3Xi . ".xml")) {
goto B94TC;
}
goto JCSxq;
gT1oI:
$MCq0K = curl_exec($UZIYi);
goto hL_EY;
Dvn2Y:
goto RpLVC;
goto XsUqR;
LPQaW:
TWJZC:
goto ptgjv;
jTLSa:
xoWwu:
goto qCmtN;
FVtjX:
Owqly:
goto p9wGM;
vzmYI:
imG3F:
goto L376S;
gD6qm:
tYa6i:
goto Wq4PG;
oQmsk:
if (isset($this->request->post["mass_translate_opt"])) {
goto KSafV;
}
goto qTWIn;
cfxPc:
goto KL7t0;
goto ocErc;
o8mi_:
yrugH:
goto hkFcI;
wDjwZ:
fZ7Ud:
goto nAdlY;
dQqdd:
$qORV3 = "&store_id=" . $b6KIt;
goto SFNr1;
oNQTH:
if (isset($this->request->post["mass_translate_add"])) {
goto eUNSL;
}
goto D9K51;
V6eRl:
oFNqn:
goto usUrH;
P6m6G:
if (isset($this->session->data["success"])) {
goto hdqiw;
}
goto kb8ay;
H4poh:
$data["cli_log_link"] = $this->url->link("extension/module/mass_translate/save_log", $this->token, "SSL");
goto miR2P;
zPr0e:
z8p_W:
goto Dvn2Y;
L376S:
hSw6K:
goto UloYn;
Wq4PG:
$data["license_info"] = json_decode(base64_decode($JMhOh), 1);
goto enDnH;
KE89o:
$aJPBV = $this->url->link("extension/module", $this->token, "SSL");
goto X28nU;
hYUAo:
goto NKbsH;
goto xUnCv;
x0x5C:
if (!$b6KIt) {
goto hJrj1;
}
goto dQqdd;
XRuOI:
Tb6ES:
goto DngJs;
YtejX:
if (!is_file($Na08i)) {
goto aPe4E;
}
goto G1t4B;
FNjZP:
goto vRceA;
goto NUbOa;
njNeD:
iUP6M:
goto xaNnt;
tBAg1:
$this->load->model("setting/setting");
goto puExq;
ciXt8:
sKWVG:
goto Hs6oI;
qALXi:
if (!$WgokZ || isset($this->request->get["refresh"])) {
goto WRCh0;
}
goto jswYt;
smNiv:
//var_dump($rDsbt);die();
$rDsbt["success"] = true;
if (empty($rDsbt["success"])) {
goto Wc2LN;
}
goto wZk4_;
gp3B6:
$this->response->setOutput($this->load->view("gkd/mass_translate", $data));
goto It8F5;
DGINa:
goto zNNHP;
goto bL3Y6;
EbgJg:
$data["mass_translate_cron_key"] = $this->request->post["mass_translate_cron_key"];
goto ggwZW;
s_yXs:
ZUHkM:
goto AWt3Y;
Hs6oI:
goto iLU_Q;
goto k9cBJ;
MHMG2:
pF5Dh:
goto v7fwR;
IjGZL:
F1Q9_:
goto i2GW8;
weQam:
BuJ0n:
goto UJ3qs;
NUbOa:
JvUeH:
goto KHJsG;
T1Svf:
KL7t0:
goto YVDhF;
xUnCv:
hA0sU:
goto XJR7b;
wbzIh:
jmPSq:
goto qe2at;
Fejhp:
eV4S0:
goto rfGbC;
SPqbP:
$this->document->addStyle($FOW83 . "selectize.bootstrap3.css");
goto tnM3p;
nVbX4:
$data["mass_translate_source_language"] = $this->request->post["mass_translate_source_language"];
goto USwcv;
uVk0c:
}
public function refresh_log()
{
goto Pdmdr;
Nabmz:
gAEan:
goto LqJMO;
VlRAv:
$data = $this->readLogFile($Na08i, 10000);
goto Nabmz;
LqJMO:
echo $data;
goto BCpzz;
Pdmdr:
$Na08i = DIR_LOGS . "mass_translate.log";
goto O9iga;
O9iga:
$data = '';
goto cuK0N;
BCpzz:
exit;
goto nq0aE;
cuK0N:
if (!file_exists($Na08i)) {
goto gAEan;
}
goto VlRAv;
nq0aE:
}
public function save_log()
{
goto hX584;
MXc3N:
header("Cache-Control: must-revalidate");
goto h0D52;
hX584:
$Na08i = DIR_LOGS . "mass_translate.log";
goto DjMSe;
mfVSW:
exit;
goto ncxGK;
h0D52:
header("Content-Length: " . filesize($Na08i));
goto LWyLl;
n3rW7:
header("Content-Type: text/plain");
goto MXc3N;
LWyLl:
readfile($Na08i);
goto mfVSW;
DjMSe:
header("Content-Description: File Transfer");
goto so3yh;
so3yh:
header("Content-Disposition: attachment; filename=mass_translate.log");
goto n3rW7;
ncxGK:
}
function readLogFile($t4wBV, $NHgnp, $vUgHH = false)
{
goto k3FwC;
EHI4q:
$EljtM--;
goto fZSiR;
PDXdl:
KobHw:
goto WHFgv;
kP6pK:
goto lBbOX;
goto OXdbG;
OuBL9:
YT8Z_:
goto VMgFG;
xIjbL:
$NVMSY = '';
goto rxUV3;
WHFgv:
if ($vUgHH) {
goto erVl6;
}
goto Ucs5L;
L16fB:
$w24iO[$q1y7t] = strrev($w24iO[$q1y7t]);
goto uLX18;
fZSiR:
goto zj2vC;
goto fsEWF;
Lj0JA:
fclose($tHgyQ);
goto FSDyI;
pYPZn:
bJMMM:
goto J9mkD;
OXdbG:
erVl6:
goto kzBLw;
J9mkD:
return implode('', $w24iO);
goto hrGg_;
DI__f:
if (!$vUgHH) {
goto UUCw0;
}
goto L16fB;
rxUV3:
$w24iO = '';
goto SuJHw;
BElyA:
UUCw0:
goto PDXdl;
FivD9:
goto bJMMM;
goto OuBL9;
Who5J:
if (!($NHgnp && fseek($tHgyQ, $EljtM, SEEK_END) >= 0)) {
goto XjQdF;
}
goto dNXph;
Ucs5L:
$w24iO .= $NVMSY;
goto kP6pK;
qC5yX:
zj2vC:
goto Who5J;
AFZY4:
if ($w24iO[$q1y7t] == "
" || $w24iO[$q1y7t] == "
") {
goto YT8Z_;
}
goto jGzh2;
uLX18:
$q1y7t++;
goto BElyA;
hrGg_:
i4Ees:
goto ajbwb;
xONu6:
$tHgyQ = @fopen($t4wBV, "r");
goto qC5yX;
kzBLw:
$w24iO[$q1y7t] .= $NVMSY;
goto Fflzu;
ajbwb:
return strrev(rtrim($w24iO, "
\xd"));
goto FIAEh;
Fflzu:
lBbOX:
goto EHI4q;
FSDyI:
if (!$vUgHH) {
goto i4Ees;
}
goto AFZY4;
dNXph:
$NVMSY = fgetc($tHgyQ);
goto Aevs1;
VMgFG:
array_pop($w24iO);
goto pYPZn;
k3FwC:
$EljtM = -1;
goto xIjbL;
jGzh2:
$w24iO[$q1y7t] = strrev($w24iO[$q1y7t]);
goto FivD9;
SuJHw:
$q1y7t = 0;
goto xONu6;
Vpwco:
$NHgnp--;
goto DI__f;
Aevs1:
if (!($NVMSY == "\xa" || $NVMSY == "
")) {
goto KobHw;
}
goto Vpwco;
fsEWF:
XjQdF:
goto Lj0JA;
FIAEh:
}
public function cron($zoGR9 = '')
{
goto RRDgG;
w5Nrp:
die;
goto yy7o_;
sWPrm:
if (!(false && $_GET["k"] !== $this->config->get(self::PREFIX . "_cron_key"))) {
goto Wjp2h;
}
goto P5K0f;
P5K0f:
$this->tool->cron_log("Incorrect secure key, process aborted - Input key:" . $_GET["k"], "error");
goto ClADn;
bPgY7:
$this->tool = $this->model_mass_translate_tool->getObject();
goto Y5lTz;
EXNJK:
die;
goto Rm08n;
VSF_y:
$this->request->post = $this->request->get;
goto igX3o;
THd9o:
die;
goto hPklw;
XzOXY:
if (isset($this->request->get["k"])) {
goto Ha31R;
}
goto DApV8;
Y5lTz:
$this->tool->cron_log(PHP_EOL . "##### Cron Request - " . (isset($this->request->get["type"]) ? $this->request->get["type"] : '') . " - " . date("d/m/Y H:i:s") . " #####" . PHP_EOL);
goto XzOXY;
yy7o_:
ttq7x:
goto sWPrm;
Rm08n:
Ha31R:
goto gMLrS;
Nn_8y:
$this->request->get["target_language"] = $this->tool->getLangIdByCode($this->request->get["target"]);
goto N0g_B;
DApV8:
$this->tool->cron_log("Missing secure key parameter.", "error");
goto nGlz1;
ClADn:
echo "Invalid request, check logs for details";
goto THd9o;
Wafi_:
echo "Invalid request, check logs for details";
goto w5Nrp;
kKYR2:
$this->request->get["filter-limit"] = 2;
goto VSF_y;
N0g_B:
$this->request->get["start"] = "cron";
goto kKYR2;
nGlz1:
echo "Invalid request, check logs for details";
goto EXNJK;
lvrwx:
$this->request->get["source_language"] = $this->tool->getLangIdByCode($this->request->get["source"]);
goto Nn_8y;
RRDgG:
$this->load->model("mass_translate/tool");
goto bPgY7;
igX3o:
$this->process($this->request->get);
goto Ia3HR;
hPklw:
Wjp2h:
goto lvrwx;
iRnQJ:
$this->tool->cron_log("Missing source or target parameter.", "error");
goto Wafi_;
gMLrS:
if (!(empty($this->request->get["source"]) || empty($this->request->get["target"]))) {
goto ttq7x;
}
goto iRnQJ;
Ia3HR:
}
public function process()
{
goto gsruv;
YZHlS:
if (defined("GKD_CRON")) {
goto ElX3F;
}
goto bi4Vv;
r8j3q:
echo "Process complete - total items: " . $jlIgJ;
goto NmlBZ;
YyD6m:
goto AcN_4;
goto bZpOs;
V4PYS:
$this->tool->log("###### End Mass Translate Process [SIMULATION] - " . date("d/m/Y H:i:s") . " ######
");
goto kmXHa;
R7Y04:
$this->request->get["admin"] = true;
goto kxy00;
JA4hl:
qJdKd:
goto GYJ50;
p_1G1:
if (!$mnd96) {
goto w80iX;
}
goto rW3iJ;
GPIOV:
EJ4OC:
goto VcBPw;
r3slK:
$ZYqDc = array_merge($IcEeA, $this->request->post);
goto O2_ub;
qvYEA:
$this->tool->log("###### End Mass Translate Process - " . date("d/m/Y H:i:s") . " ######\xa");
goto YyD6m;
ZY6Pf:
$this->start_time = microtime(true) * 1000;
goto ictoq;
jl76H:
$this->config->set("mass_translate_api", "simulate");
goto J89mo;
OHQwr:
$IcEeA = array("type" => "product", "overwrite" => '');
goto r3slK;
vpHwz:
tBIJZ:
goto LN00h;
SHIcf:
if (!isset($i2Oqs[$this->config->get("mass_translate_api")])) {
goto Emsnk;
}
goto C5tmz;
ANL3C:
echo json_encode(array("success" => 1, "processed" => $jlIgJ, "progress" => $LCitx, "finished" => $jlIgJ >= $XwNeF || !$Twv8K));
goto afcrL;
MhAV2:
header("Content-type: application/json");
goto ANL3C;
Ap9lR:
$ZYqDc["start"] = $sY836;
goto cn1_b;
Jb7uG:
die($this->language->get("text_demo_mode"));
goto O_i4V;
isLhX:
if (defined("GKD_CRON")) {
goto Hs506;
}
goto MhAV2;
O2_ub:
$this->load->model("mass_translate/" . $lZh_E);
goto zOAn7;
BrDtV:
if (!$this->config->get("mass_translate_log")) {
goto mPw0l;
}
goto hptQy;
tDKIV:
if (empty($ZYqDc["simulation"])) {
goto kj991;
}
goto jl76H;
vdeZ2:
if (!($dfqPQ and $sY836)) {
goto XAbHz;
}
goto Ap9lR;
VcBPw:
if (!($jlIgJ >= $XwNeF)) {
goto T27x4;
}
goto BrDtV;
UMUgc:
$dfqPQ = $this->request->get["start"] == "init" ? true : false;
goto RnIes;
IQKkB:
yU5_Y:
goto tDKIV;
oVOYK:
$data["type"] = $lZh_E = str_replace(array("..", "language_admin"), array('', "language"), $this->request->post["type"]);
goto OHQwr;
xcZep:
CrCkG:
goto n4iFy;
ReOOQ:
mPw0l:
goto o60R1;
o60R1:
T27x4:
goto piGEx;
C5tmz:
$i2Oqs = $i2Oqs[$this->config->get("mass_translate_api")];
goto BGd8W;
upnY3:
$ZYqDc["limit"] = (int) $this->config->get("mass_translate_batch");
goto JA4hl;
g_DYI:
if (!$dfqPQ) {
goto RfX9q;
}
goto EVlQp;
b89d1:
GJmTW:
goto vpHwz;
rW3iJ:
$XwNeF = $XwNeF > $sY836 + $mnd96 ? $sY836 + $mnd96 : $XwNeF;
goto I8QyC;
qLsEy:
$ZYqDc["limit"] = 9999999999;
goto zEZJo;
bZpOs:
CqqKb:
goto V4PYS;
bi4Vv:
$ZYqDc["limit"] = 200;
goto hEr8y;
BGd8W:
Emsnk:
goto rX5mP;
Dw40v:
die("Error: this api is not yet available");
goto IQKkB;
kxy00:
l0b8k:
goto oVOYK;
ULpOT:
$this->load->model("mass_translate/api_" . $this->config->get("mass_translate_api"));
goto APnZU;
MZmEi:
if (!empty($ZYqDc["simulation"])) {
goto Qg0wf;
}
goto d7nTf;
GYJ50:
goto wEeMr;
goto dYhlZ;
gsruv:
if (!(!defined("GKD_CRON") && !$this->user->hasPermission("modify", self::$LINK))) {
goto t6xcs;
}
goto Jb7uG;
LN00h:
RfX9q:
goto znDOl;
aMsP6:
xPjA7:
goto lm994;
NmlBZ:
die;
goto aMsP6;
ukk6H:
$this->load->model("mass_translate/tool");
goto m4Xcj;
AG6rD:
gFmz9:
goto isLhX;
FbF90:
Hs506:
goto r8j3q;
iGt7v:
goto gFmz9;
goto LZjR2;
pLpFe:
if (empty($this->request->get["start"])) {
goto kWRJJ;
}
goto WLR9G;
zEZJo:
wEeMr:
goto p_1G1;
qmY6h:
goto GJmTW;
goto OvT3t;
zOAn7:
if (is_file(DIR_APPLICATION . "model/mass_translate/api_" . $this->config->get("mass_translate_api") . ".php")) {
goto yU5_Y;
}
goto Dw40v;
dorLq:
ini_set("memory_limit", -1);
goto ZY6Pf;
LZjR2:
Gxp8R:
goto cm2_W;
afcrL:
goto xPjA7;
goto FbF90;
lm994:
kWRJJ:
goto qojdK;
cm2_W:
$LCitx = 100;
goto AG6rD;
kmXHa:
AcN_4:
goto ReOOQ;
dYhlZ:
ElX3F:
goto qLsEy;
WLR9G:
$XwNeF = $this->{"model_mass_translate_" . $lZh_E}->getTotalItems($ZYqDc);
goto UMUgc;
J1Qmv:
$this->translate_api->init($i2Oqs);
goto pLpFe;
nUUnQ:
if (!($jlIgJ > $XwNeF)) {
goto EJ4OC;
}
goto JoCoZ;
rX5mP:
$ZYqDc["api_options"] = $i2Oqs;
goto J1Qmv;
znDOl:
$Twv8K = $this->{"model_mass_translate_" . $lZh_E}->process($ZYqDc, $this->translate_api, false);
goto OI6QO;
EVlQp:
if (!$this->config->get("mass_translate_log")) {
goto tBIJZ;
}
goto MZmEi;
O_i4V:
t6xcs:
goto ukk6H;
nSz_W:
$LCitx = floor($jlIgJ / $XwNeF * 100);
goto iGt7v;
cn1_b:
XAbHz:
goto YZHlS;
wQopA:
$sY836 = !empty($this->request->post["filter-start"]) ? (int) $this->request->post["filter-start"] : 0;
goto y1XJW;
JoCoZ:
$jlIgJ = $XwNeF;
goto GPIOV;
hptQy:
if (!empty($ZYqDc["simulation"])) {
goto CqqKb;
}
goto qvYEA;
OI6QO:
$jlIgJ = $ZYqDc["start"] + $Twv8K;
goto nUUnQ;
Kkp_k:
$this->tool->log("###### Start Mass Translate Process [SIMULATION] - " . date("d/m/Y H:i:s") . " ######");
goto b89d1;
J89mo:
kj991:
goto ULpOT;
d7nTf:
$this->tool->log("###### Start Mass Translate Process - " . date("d/m/Y H:i:s") . " ######");
goto qmY6h;
APnZU:
$this->translate_api = $this->{"model_mass_translate_api_" . $this->config->get("mass_translate_api")}->getObject();
goto gLuPy;
RnIes:
$ZYqDc["start"] = (int) $this->request->get["start"];
goto wQopA;
y1XJW:
$mnd96 = !empty($this->request->post["filter-limit"]) ? (int) $this->request->post["filter-limit"] : 0;
goto vdeZ2;
m4Xcj:
$this->tool = $this->model_mass_translate_tool->getObject();
goto dorLq;
I8QyC:
if (!($ZYqDc["start"] + $ZYqDc["limit"] - $sY836 > $mnd96)) {
goto CrCkG;
}
goto hlpRH;
OvT3t:
Qg0wf:
goto Kkp_k;
piGEx:
if ($XwNeF == 0 || !$Twv8K) {
goto Gxp8R;
}
goto nSz_W;
gLuPy:
$i2Oqs = $this->config->get("mass_translate_opt");
goto SHIcf;
ictoq:
if (!($this->request->post["type"] == "language_admin")) {
goto l0b8k;
}
goto R7Y04;
r0Z9R:
$ZYqDc["init"] = $dfqPQ;
goto g_DYI;
hlpRH:
$ZYqDc["limit"] = $mnd96 - ($ZYqDc["start"] - $sY836);
goto xcZep;
n4iFy:
w80iX:
goto r0Z9R;
hEr8y:
if (!((int) $this->config->get("mass_translate_batch") > 0)) {
goto qJdKd;
}
goto upnY3;
qojdK:
}
public function get_lang_files()
{
goto KHgFL;
i8ta2:
echo json_encode($j9uoY);
goto gedAD;
qmadI:
header("Content-Type: application/json");
goto i8ta2;
mzPsq:
mfMoJ:
goto qmadI;
KHgFL:
$this->load->model("mass_translate/language");
goto r1Pya;
r1Pya:
$iKWAm = $this->model_mass_translate_language->getFileList($this->request->get);
goto Egt3D;
gedAD:
die;
goto a7X0L;
Egt3D:
$j9uoY = array();
goto wiTs_;
wiTs_:
foreach ($iKWAm as $Na08i) {
goto UTWcA;
zb_bZ:
WzAH9:
goto cQOW7;
vctQv:
$j9uoY[] = array("name" => str_replace(str_replace("/system", '', DIR_SYSTEM), '', $Na08i), "val" => str_replace(str_replace("/system", '', DIR_SYSTEM), '', $Na08i));
goto AReOP;
AReOP:
goto eHHdT;
goto sExoh;
bkjUE:
eHHdT:
goto zb_bZ;
sExoh:
U1en1:
goto QNmGm;
UTWcA:
if (empty($this->request->get["admin"])) {
goto U1en1;
}
goto vctQv;
QNmGm:
$j9uoY[] = array("name" => str_replace(DIR_SYSTEM . "../", '', $Na08i), "val" => str_replace(DIR_SYSTEM . "../", '', $Na08i));
goto bkjUE;
cQOW7:
}
goto mzPsq;
a7X0L:
}
public function get_value()
{
goto pAotZ;
XFcJY:
$GvG7J = $this->config->get("mass_translate_source_language");
goto Ns_KG;
ecMCa:
KlUkG:
goto exuKG;
on4I3:
goto oKise;
goto n56Uj;
pauPA:
if (!(!empty($this->request->get["lang"]) && $this->request->get["lang"] != "all")) {
goto ZBuLD;
}
goto OLNhV;
AgZ1x:
goto UFm32;
goto ecMCa;
nQRs1:
foreach ($this->request->post[$lZh_E . "_seo_url"] as $b6KIt => $Y7zEg) {
goto PaI0K;
lm3RS:
aTk4I:
goto jfZ9i;
jfZ9i:
SpVOa:
goto jbfQz;
PaI0K:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
goto qJ8FU;
qJ8FU:
if (in_array($lnk6c, array($GvG7J, $qQ9wJ))) {
goto Aq53E;
}
goto BJbEf;
slvfb:
MQq9v:
goto fnvXs;
Di1Mw:
Aq53E:
goto slvfb;
BJbEf:
unset($this->request->post[$lZh_E . "_seo_url"][$b6KIt][$lnk6c]);
goto Di1Mw;
fnvXs:
}
goto lm3RS;
jbfQz:
}
goto HToxv;
UtmlS:
$qB343 = (array) $this->config->get("mass_translate_edit");
goto Zx2FU;
Q8pEM:
if (isset($this->request->post["product_description"])) {
goto HNoDM;
}
goto Bei3M;
DkRLF:
goto u4qxn;
goto ODmMO;
vRkPd:
$h5xUV = $this->model_mass_translate_tool->translateDescription($this->request->post[$lZh_E . "_description"]);
goto V1nNU;
TUAUZ:
exit;
goto DkRLF;
Zc5vS:
goto akOoK;
goto WIM8f;
CatWK:
akOoK:
goto UtmlS;
GB90j:
echo json_encode($wxHbs);
goto OGj8N;
cb5pS:
if (in_array("seo_url", $qB343) && !empty($this->request->post["url_keyword"])) {
goto KlUkG;
}
goto obiBk;
TnEb0:
W42H6:
goto rINkR;
b1wZ_:
$this->load->model("mass_translate/tool");
goto vRkPd;
agKkv:
$lZh_E = "product";
goto CatWK;
eDGsN:
$h5xUV = $this->model_mass_translate_tool->translateAttributes($this->request->post["product_attribute"]);
goto G9PQ2;
G9PQ2:
foreach ($h5xUV as $ittYH => $lrhwF) {
goto An2g3;
An2g3:
foreach ($lrhwF["product_attribute_description"] as $qJ9fm => $NYo2L) {
$wxHbs["product_attribute[" . $ittYH . "][product_attribute_description][" . $qJ9fm . "][text]"] = html_entity_decode($NYo2L["text"], ENT_QUOTES, "UTF-8");
nVYpM:
}
goto ZhBW4;
rfY2j:
DA3dl:
goto a_GiM;
ZhBW4:
naFB2:
goto rfY2j;
a_GiM:
}
goto Sgawa;
u2TSO:
if (!(in_array("seo_url", $qB343) && !empty($this->request->post[$lZh_E . "_seo_url"]))) {
goto dFGZc;
}
goto nQRs1;
DIjs1:
if (isset($this->request->post["information_description"])) {
goto J1yI5;
}
goto vCy9M;
is0s1:
echo json_encode(["error" => "undefined type"]);
goto TUAUZ;
oIexS:
dFGZc:
goto OB0vn;
OLNhV:
$qQ9wJ = $this->request->get["lang"];
goto sXKlv;
Bei3M:
if (isset($this->request->post["category_description"])) {
goto hxMte;
}
goto DIjs1;
sXKlv:
foreach ($this->request->post[$lZh_E . "_description"] as $lnk6c => $eIAQa) {
goto r5wPt;
r5wPt:
if (in_array($lnk6c, array($GvG7J, $qQ9wJ))) {
goto qQpPl;
}
goto kjOex;
ptmuY:
qQpPl:
goto fFeMY;
kjOex:
unset($this->request->post[$lZh_E . "_description"][$lnk6c]);
goto ptmuY;
fFeMY:
WElfZ:
goto k4XZR;
k4XZR:
}
goto TnEb0;
pAotZ:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto AjbD9;
}
goto fwVar;
j1dA1:
ZBuLD:
goto sHs6f;
mvNbo:
nHolz:
goto i2fiU;
JFkcR:
u4qxn:
goto on4I3;
TGbc1:
$h5xUV = $this->model_mass_translate_tool->translateSeoUrls($this->request->post[$lZh_E . "_seo_url"]);
goto O8kBj;
ufZ5p:
$lZh_E = "category";
goto Ltxrl;
wDPUk:
e1RVv:
goto oF6P0;
F8_hb:
FeFxn:
goto cb5pS;
rINkR:
if (in_array("seo_url", $qB343) && !empty($this->request->post["url_keyword"])) {
goto p1sU7;
}
goto u2TSO;
fwVar:
die($this->language->get("text_demo_mode"));
goto D852E;
RL6Ub:
$lZh_E = "information";
goto JFkcR;
QkhrO:
foreach ($this->request->post["url_keyword"] as $b6KIt => $Y7zEg) {
goto RHkti;
RHkti:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
goto fEW5d;
YseXq:
wGvAw:
goto kp96o;
fEW5d:
if (in_array($lnk6c, array($GvG7J, $qQ9wJ))) {
goto wGvAw;
}
goto gl13c;
gl13c:
unset($this->request->post["url_keyword"][$b6KIt][$lnk6c]);
goto YseXq;
kp96o:
yDQyY:
goto FpPOu;
FpPOu:
}
goto QIw2q;
QIw2q:
fijhk:
goto IeS7I;
IeS7I:
NVJaE:
goto UOuFW;
UOuFW:
}
goto mvNbo;
OB0vn:
goto araSg;
goto hjmH9;
HToxv:
jp7wL:
goto oIexS;
gIKOs:
foreach ($h5xUV as $b6KIt => $Y7zEg) {
goto zL2Y9;
PDbHJ:
qJKYg:
goto AStF3;
zL2Y9:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
$wxHbs["url_keyword[" . $b6KIt . "][" . $lnk6c . "]"] = $NYo2L;
KamOH:
}
goto PDbHJ;
AStF3:
vpNY8:
goto Gp4PP;
Gp4PP:
}
goto wDPUk;
sPptK:
gFCc2:
goto hBQdK;
Sgawa:
ghxPY:
goto F8_hb;
oF6P0:
UFm32:
goto WdDS2;
X3ke1:
kWxIu:
goto k5wLz;
Zx2FU:
if ($this->config->get("mass_translate_source_language")) {
goto ySQr9;
}
goto A1_h7;
OGj8N:
exit;
goto gMNGr;
i2fiU:
araSg:
goto j1dA1;
V1nNU:
foreach ($h5xUV as $qJ9fm => $RtRdC) {
goto xvqyO;
xvqyO:
foreach ($RtRdC as $ittYH => $NYo2L) {
$wxHbs[$lZh_E . "_description[" . $qJ9fm . "][" . $ittYH . "]"] = html_entity_decode($NYo2L, ENT_QUOTES, "UTF-8");
L2cGW:
}
goto Ee26g;
Ee26g:
H7Xp4:
goto uT1VV;
uT1VV:
QzSP2:
goto QS2de;
QS2de:
}
goto sPptK;
k5wLz:
JohkO:
goto AgZ1x;
VYxBZ:
ySQr9:
goto XFcJY;
ODmMO:
J1yI5:
goto RL6Ub;
hBQdK:
if (!($lZh_E == "product" && !empty($this->request->post["product_attribute"]))) {
goto FeFxn;
}
goto eDGsN;
obiBk:
if (!(in_array("seo_url", $qB343) && !empty($this->request->post[$lZh_E . "_seo_url"]))) {
goto JohkO;
}
goto TGbc1;
exuKG:
$h5xUV = $this->model_mass_translate_tool->translateSeoUrls($this->request->post["url_keyword"]);
goto gIKOs;
WdDS2:
header("Content-Type: application/json");
goto GB90j;
Ltxrl:
oKise:
goto Zc5vS;
Ns_KG:
cuaHq:
goto pauPA;
sHs6f:
$wxHbs = [];
goto b1wZ_;
A1_h7:
$GvG7J = $this->db->query("SELECT language_id FROM " . DB_PREFIX . "language WHERE code = '" . $this->config->get("config_language") . "'")->row["language_id"];
goto YfzBd;
vCy9M:
header("Content-Type: application/json");
goto is0s1;
D852E:
AjbD9:
goto Q8pEM;
YfzBd:
goto cuaHq;
goto VYxBZ;
n56Uj:
hxMte:
goto ufZ5p;
WIM8f:
HNoDM:
goto agKkv;
O8kBj:
foreach ($h5xUV as $b6KIt => $Y7zEg) {
goto EeNuF;
oHM6J:
O4jZ5:
goto NSWBy;
NSWBy:
jLyAn:
goto bO9Hh;
EeNuF:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
$wxHbs[$lZh_E . "_seo_url[" . $b6KIt . "][" . $lnk6c . "]"] = $NYo2L;
jyaw9:
}
goto oHM6J;
bO9Hh:
}
goto X3ke1;
hjmH9:
p1sU7:
goto QkhrO;
gMNGr:
}
public function test()
{
goto AZFmY;
dTdc_:
$this->load->model("mass_translate/tool");
goto wkliO;
ibPhS:
exit;
goto UOCfh;
e3pdv:
Ay6wd:
goto dTdc_;
AZFmY:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto Ay6wd;
}
goto nqwU3;
O7mMf:
echo $h5xUV;
goto ibPhS;
wkliO:
$h5xUV = $this->model_mass_translate_tool->translate($_POST["mass_translate_test"], $this->request->post["source_language_test"], $this->request->post["target_language_test"], 0, true);
goto O7mMf;
nqwU3:
die($this->language->get("text_demo_mode"));
goto e3pdv;
UOCfh:
}
public function install()
{
goto JW4cH;
cCyY2:
$this->model_setting_setting->editSetting("mass_translate", array("mass_translate_api" => '', "mass_translate_log" => 1, "mass_translate_cron_key" => "cron_secure_key", "mass_translate_test" => "Hello, enter some text here to test the translation result.", "mass_translate_add" => array("name", "description", "meta_title", "meta_description", "meta_keyword", "tag"), "mass_translate_edit" => array("name", "description", "meta_title", "meta_description", "meta_keyword", "tag")));
goto BbBIi;
JW4cH:
$this->load->model("setting/setting");
goto cCyY2;
BbBIi:
$this->db_tables();
goto YGFP6;
YGFP6:
}
public function uninstall()
{
}
private function validate()
{
goto MRj7z;
MRj7z:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto SX6VT;
}
goto kRWDf;
PZjPD:
SX6VT:
goto c9rH2;
c9rH2:
if ($this->error) {
goto TnF9K;
}
goto p6Ru7;
p6Ru7:
return true;
goto aAeoa;
wCmUZ:
return false;
goto WVEwe;
aAeoa:
TnF9K:
goto wCmUZ;
kRWDf:
$this->error["error"] = $this->language->get("error_permission");
goto PZjPD;
WVEwe:
}
private function db_tables()
{
}
}
class ControllerExtensionModuleMassTranslate extends Controller
{
const MODULE = "mass_translate";
const PREFIX = "mass_translate";
const MOD_FILE = "mass_translate";
const LINK = "module/mass_translate";
const OCID = 41729;
const EXT_PATH = "extension/mass_translate/";
static $EXT_PATH = '';
static
static $LINK = "module/mass_translate";
static $LINK_SEP = "module/mass_translate/";
static $ASSET_PATH = "view/gkd/mass_translate/";
static $MODULE_DIR = DIR_APPLICATION;
private $error = array();
private $OC_V2;
private $token;
private $tool;
private $translate_api;
private $langIdToCode;
private $start_time;
public function __construct($I7jbB)
{
goto C0opG;
jpL9f:
self::$LINK = self::EXT_PATH . self::LINK;
goto rqG2k;
Aj38F:
if (version_compare(VERSION, "4", ">=")) {
goto FuwLF;
}
goto qTP46;
C0opG:
parent::__construct($I7jbB);
goto Aj38F;
lZC83:
self::$ASSET_PATH = "../extension/mass_translate/admin/" . self::$ASSET_PATH;
goto Gh0Py;
axQWv:
self::"model_" = "model_extension_" . self::MODULE . "_";
goto lZC83;
sUl32:
v1zMQ:
goto xpbML;
IUpmM:
self::$LINK_SEP = "extension/" . self::$LINK_SEP;
goto IZFrQ;
PIFjJ:
if (defined("GKD_CRON")) {
goto VzlgH;
}
goto UKGVw;
n7j5_:
goto v1zMQ;
goto N11S1;
N11S1:
FuwLF:
goto jpL9f;
xpbML:
$this->load->language(self::$LINK);
goto PIFjJ;
qTP46:
if (!version_compare(VERSION, "2.3", ">=")) {
goto qdSxi;
}
goto Y9DUP;
IZFrQ:
qdSxi:
goto n7j5_;
Gh0Py:
self::$MODULE_DIR = DIR_EXTENSION . "/mass_translate/admin/";
goto sUl32;
UKGVw:
$this->token = isset($this->session->data["user_token"]) ? "user_token=" . $this->session->data["user_token"] : "token=" . $this->session->data["token"];
goto NPgJI;
Y9DUP:
self::$LINK = "extension/" . self::LINK;
goto IUpmM;
rqG2k:
self::$LINK_SEP = self::$LINK . (version_compare(VERSION, "4", "<") ? "/" : "|");
goto Be7hn;
Be7hn:
self::$EXT_PATH = "extension/mass_translate/";
goto axQWv;
NPgJI:
VzlgH:
goto RfYXt;
RfYXt:
}
public function index()
{
goto kOwhB;
wRLBa:
goto BuJ0n;
goto Hw1l7;
tAUqb:
$this->model_setting_setting->editSetting("mass_translate", $this->request->post, $b6KIt);
goto RLhgZ;
AATpd:
$data["categories"] = $this->model_catalog_category->getCategories(array());
goto DGlkB;
uTyiS:
goto HVcvU;
goto IQn3q;
tb28_:
$this->document->addScript($FOW83 . "bootstrap.min.js");
goto IjGZL;
BnKSA:
curl_close($UZIYi);
goto kbbn_;
ga41l:
$data["cli_log"] = $data["cli_log_link"] = '';
goto Lm0Zt;
y3Kym:
goto XSgis;
goto Tgf2i;
Jb2MF:
foreach ($data["translate_apis"] as $amK9k => $m6cbZ) {
$data["api_option_list"][] = array("name" => $m6cbZ["name"], "val" => $amK9k, "img" => $amK9k);
rpd__:
}
goto pFL44;
Fe18F:
$data["breadcrumbs"] = array();
goto IOGY1;
bwmkh:
pbejP:
goto Gk4En;
oUWKX:
YmmjQ:
goto Kjpiu;
xGKSO:
xkLM6:
goto LmBFS;
PE53N:
goto v7fM5;
goto Ffw5n;
le_CN:
goto F7leC;
goto hPi2O;
Pp2oA:
DbWIT:
goto ATmY7;
uJTc0:
if (version_compare(VERSION, "2", ">=")) {
goto TjOdf;
}
goto vgg34;
A2DXd:
goto kCCw5;
goto l7qJT;
PmSYh:
n624J:
goto fN9VA;
RqtBs:
$this->document->setTitle(strip_tags($this->language->get("heading_title")));
goto tBAg1;
ilxiS:
$data["store_id"] = $b6KIt = (int) $this->request->get["store_id"];
goto J6F0y;
rFlaF:
if (!false) {
goto I63cA;
}
goto AZfGZ;
gAuw1:
Ss6pf:
goto ZEGmB;
DZPPZ:
if (version_compare(VERSION, 4, "<") && !is_file(DIR_TEMPLATE . "tool/gkd_license.tpl")) {
goto anOVb;
}
goto ZnF7i;
bL3Y6:
M0o_o:
goto QUqWQ;
fZsVh:
yaZqM:
goto lmIEl;
eyuHN:
goto sEW2r;
goto lpxFR;
IrL87:
curl_setopt($UZIYi, CURLOPT_RETURNTRANSFER, 1);
goto z6e5z;
RLhgZ:
$this->session->data["success"] = $this->language->get("text_success");
goto Kug_i;
avdV6:
unset($this->session->data["error"]);
goto T99Zb;
mvi67:
xkJal:
goto so7Fv;
OhbHK:
if (!empty($data["license_info"]["website"]) && strpos($_SERVER["HTTP_HOST"], $data["license_info"]["website"]) !== false) {
goto l18xc;
}
goto rIy2k;
tQNgy:
$ufcse = '';
goto FAHGv;
eV52G:
unset($this->session->data["showTab"]);
goto j6okH;
lH2Do:
goto c2zDh;
goto G0lkY;
vrQG_:
QDqYA:
goto O8HTv;
ayVii:
goto NSF3Y;
goto HQVRl;
yiqKL:
y0Ge3:
goto MD68c;
lWuFC:
Dkal0:
goto wVMjN;
miR2P:
$data["cli_log"] = $this->readLogFile($Na08i, 10000);
goto lqNuh;
dCXcz:
goto lxn9M;
goto GyqCx;
RvmcG:
foreach ($_ as $Nc4vO => $GIDGR) {
goto ztPxT;
ztPxT:
$q1y7t++;
goto Nm4uX;
Zktkf:
echo "$_['" . $Nc4vO . "'] = '" . str_replace("'", "\'", $GIDGR) . "';\xa";
goto bYuP4;
Nm4uX:
$GIDGR = $this->model_mass_translate_tool->translate($GIDGR, "en", "zh");
goto Zktkf;
bYuP4:
uno4T:
goto taMr4;
taMr4:
}
goto fy4X0;
NTrMb:
$this->error["error"] = $this->language->get("error_permission");
goto spwy3;
XCX4n:
goto pF5Dh;
goto KTrv5;
B8aGU:
$data["mass_translate_source_language"] = $this->config->get("mass_translate_source_language");
goto eOOcq;
Y97bI:
goto ahhud;
goto ex05O;
N1HFq:
if (version_compare(VERSION, "2", ">=")) {
goto nWgOQ;
}
goto bqVof;
GpTqe:
$UZIYi = curl_init();
goto YBplc;
ptgjv:
$data["mass_translate_deepl_glossary"] = $this->request->post["mass_translate_deepl_glossary"];
goto V6eRl;
F7043:
AQi4L:
goto vrQG_;
XsUqR:
TlGrc:
goto w7OcE;
BfQLg:
$data["module_version"] = simplexml_load_file(DIR_SYSTEM . "../vqmod/xml/auto_translate_pro.xml")->version;
goto jelGw;
hdO7u:
oR7GW:
goto Psj0G;
XJR7b:
goto ne10O;
goto cs2vW;
ip1tt:
NdP1D:
goto n2XWn;
nZ4xG:
cLA15:
goto oNQTH;
B1D51:
if (version_compare(VERSION, "3", ">=")) {
goto oRo4s;
}
goto zalhx;
jbpvL:
$this->document->addStyle($FOW83 . "prettyCheckable.css");
goto PGtRb;
DILnF:
h0wsN:
goto dCXcz;
yuxBL:
iwNr8:
goto mQ2il;
bqVof:
$this->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto UvV1D;
vgg34:
$this->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto D2EP8;
bi_E6:
$data["button_cancel"] = $this->language->get("button_cancel");
goto CO8Qk;
hSiRX:
goto WXj4H;
goto vwdty;
gW0e3:
goto q3mXM;
goto YD25T;
zfYuL:
$data["mass_translate_log"] = $this->request->post["mass_translate_log"];
goto BCI4o;
k9cBJ:
ahhud:
goto TuJ6e;
mQ2il:
curl_setopt($UZIYi, CURLOPT_USERAGENT, "Mozilla/5p (Windows NT 10.0; WOW64) AppleWebKit/5.36 (KHTML, like Gecko) Chrome/51.0.24.3 Safari/537s6");
goto EIjbQ;
Tgf2i:
v7fM5:
goto vchLD;
w3gra:
dY1z9:
goto EbgJg;
noer1:
if (!($this->request->server["REQUEST_METHOD"] == "POST" && $this->validate())) {
goto qdOPp;
}
goto dYXQl;
eEq_n:
$this->document->addStyle($FOW83 . "animate.min.css");
goto G3ldm;
HXfnd:
$this->document->addStyle($FOW83 . "bootstrap.min.css");
goto aIB3f;
Pu5ru:
goto yaZqM;
goto KmlmP;
G3ldm:
$data["demo_mode"] = !$this->user->hasPermission("modify", self::$LINK);
goto RqtBs;
AWt3Y:
$this->redirect($this->url->link(self::$LINK, $this->token, "SSL"));
goto shqjw;
rqf3o:
goto frHiO;
goto xCejd;
PGtRb:
$this->document->addScript($FOW83 . "prettyCheckable.js");
goto kcRSj;
vchLD:
goto n624J;
goto lnVsd;
y3bJg:
goto g1OmK;
goto PrTlF;
qObsN:
curl_setopt($UZIYi, CURLOPT_REFERER, "http://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}");
goto l1Kj9;
Psj0G:
$data["mass_translate_status"] = $this->request->post["mass_translate_status"];
goto nZ4xG;
hcPlg:
$WNSq8 = $WNSq8 / 1024;
goto dQIuI;
WTYmJ:
$data["info"] = $this->language->get("text_demo_mode");
goto bhrAO;
G1t4B:
require $Na08i;
goto KMry9;
MbsM_:
$this->response->setOutput($this->render());
goto ngY5e;
XTRpD:
$FOW83 = "view/gkd/mass_translate/";
goto p9yb0;
ex05O:
gy0UK:
goto dEx1Z;
cU96P:
if (!(in_array($_SERVER["REMOTE_ADDR"], array("127.0p.1", "::1", "192.8.0.1")) || !$this->user->hasPermission("modify", self::$LINK))) {
goto hA0sU;
}
goto hYUAo;
KGdQe:
bYxCK:
goto BFazY;
F0Y21:
wig5K:
goto tZpoq;
FLc3z:
u8lxy:
goto Y6v_8;
scMfw:
goto pbejP;
goto C61tc;
ZEGmB:
vJjOA:
goto drncD;
ZWjQx:
if (!$JMhOh) {
goto ZbPig;
}
goto A2DXd;
ZFoRQ:
$this->response->setOutput($this->load->view("extension/" . self::MODULE . "/tool/gkd_license", $data));
goto w8ENi;
bYc51:
Tmz_t:
goto GI8by;
KHJsG:
goto sKWVG;
goto HAEWd;
eOOcq:
goto Wy7ey;
goto FI9Ut;
mlREp:
d6L3R:
goto VIe4w;
w7OcE:
curl_setopt($UZIYi, CURLOPT_SSL_VERIFYPEER, 0);
goto L1P_t;
Gk4En:
goto JJqsH;
goto Q7Ck9;
DhdzS:
if (!($WNSq8 / 1024 > 1)) {
goto JVHbQ;
}
goto hcPlg;
QobkH:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto ANKjb;
}
goto WTYmJ;
LdUlU:
unlink(DIR_LOGS . "mass_translate.log");
goto zUxAN;
R4Q_b:
EsHWq:
goto PUj65;
Kjpiu:
goto WQ00i;
goto xZrW1;
WGQt7:
$data["module_type"] = "ocmod";
goto Dv9AM;
Xr7B6:
fOHi8:
goto zPr0e;
wOtpx:
BGpcI:
goto yZ8tR;
BFazY:
return 0;
goto qJqwH;
sjDOR:
HWj91:
goto DILnF;
h3tWl:
nTWlb:
goto ZX0mF;
aGXbf:
$data["column_left"] = $this->load->controller("common/column_left");
goto C6a4a;
yeB_N:
$data["error_warning"] = $this->error["warning"];
goto D5tPZ;
GyqCx:
c6SyB:
goto Pm_Zj;
xFSgB:
Mn8sD:
goto yeB_N;
YD25T:
SDUK9:
goto pApMP;
pWOg2:
WEwMY:
goto B4wWB;
AtWKN:
goto HUMfh;
goto h3tWl;
D9K51:
$data["mass_translate_add"] = (array) $this->config->get("mass_translate_add");
goto yxfGz;
GsxVk:
goto otT6f;
goto sw8pS;
cd5EF:
eUNSL:
goto iscee;
K5JIA:
gDAbM:
goto Cp00Y;
xZrW1:
grxUj:
goto bKsGA;
mJ98e:
$this->load->model("localisation/language");
goto RYQ7M;
RxVgR:
goto WwzFA;
goto xFSgB;
KgNwB:
goto vJjOA;
goto cwImm;
eIur8:
goto ZR7YW;
goto LlJ0e;
qUIxE:
if (isset($this->error["error"])) {
goto RLAem;
}
goto ixFLk;
IDBr9:
die;
goto ip1tt;
Cp00Y:
goto Ozol2;
goto fZsVh;
ra2yA:
if (!isset($this->session->data["showTab"])) {
goto rfufn;
}
goto mdf1F;
vJ0vP:
goto XYe2v;
goto sjDOR;
LbHs2:
$data["column_left"] = '';
goto A1EvR;
UJ3qs:
if (isset($this->request->post["mass_translate_log"])) {
goto Ng_A0;
}
goto NMHTZ;
nXIQb:
$this->response->setOutput($this->load->view("tool/gkd_license.tpl", $data));
goto PE53N;
p9wGM:
$Wy0d3 = 1;
goto lNJtr;
k09ao:
lTibQ:
goto IhtxO;
Xto5Y:
$UccLG = $this->model_setting_modification->getModificationByCode("auto_translate_pro");
goto rzk2y;
X28nU:
goto Yc182;
goto rwRwn;
PUj65:
fsJHu:
goto c6SsS;
ldSWD:
I63cA:
goto VvQIK;
Hw1l7:
aiHV_:
goto oI5vi;
My5yC:
bM7hS:
goto Pu5ru;
sHj6_:
A4f_w:
goto EG8n5;
xOr2H:
$data["mass_translate_status"] = $this->config->get("mass_translate_status");
goto IS7f5;
x3Kd8:
goto kD8OF;
goto o8V0H;
lmwaY:
goto z8p_W;
goto PXQlr;
NlvSb:
XSgis:
goto tO6LO;
ItY0s:
goto yNxiU;
goto gAuw1;
Dv9AM:
niHUu:
goto bS0LA;
a8MPF:
if (isset($this->request->post["mass_translate_test_file"])) {
goto lslao;
}
goto MdMy8;
KJjbS:
QVHjQ:
goto t6hDb;
ixFLk:
$data["error"] = '';
goto RyFiB;
eDo4r:
goto Owqly;
goto U2d78;
iscee:
$data["mass_translate_add"] = $this->request->post["mass_translate_add"];
goto JI6rM;
aIB3f:
$this->document->addStyle($FOW83 . "bootstrap-theme.min.css");
goto tb28_;
LLCbr:
$data["mass_translate_deepl_glossary"] = $this->config->get("mass_translate_deepl_glossary");
goto rzvGs;
cdlVa:
goto NxDW4;
goto gD6qm;
YxjEm:
goto niHUu;
goto xoReu;
X3ELi:
$data["module_version"] = "not found";
goto Ss9lb;
w8Czb:
goto h0wsN;
goto K5JIA;
P9VNt:
goto iUP6M;
goto oJ4W5;
Kug_i:
$qORV3 = '';
goto x0x5C;
A6GVw:
$ZFYvi = $this->model_setting_store->getStores();
goto qaOHY;
v7fwR:
if (empty($data["error"])) {
goto gdI4E;
}
goto w_Qze;
nV3zE:
$data["mass_translate_edit"] = $this->request->post["mass_translate_edit"];
goto n2_KO;
pscn9:
if (isset($this->request->post["mass_translate_ignore"])) {
goto yrugH;
}
goto zzvFc;
Wo1Kl:
$data["module"] = self::MODULE;
goto rB_Ck;
prEx0:
goto ry9Wx;
goto s3ADC;
nrNw6:
goto peZwj;
goto uI3hP;
Fr2XN:
ivw_p:
goto JF1Pw;
kb8ay:
$data["success"] = '';
goto UZUJ1;
RkGtn:
if (isset($this->request->post["mass_translate_api"])) {
goto DbWIT;
}
goto uFTcK;
y_ZXd:
if (version_compare(VERSION, "3", ">=")) {
goto s_Bqm;
}
goto HHPkJ;
G03st:
wIJRl:
goto XOIG8;
R9AbW:
X5DNO:
goto DBoCE;
jjQa4:
jzm1K:
goto DqXFJ;
u1El8:
$data["footer"] = $this->load->controller("common/footer");
goto tCgMV;
UGibA:
$data["mass_translate_overwrite"] = $this->config->get("mass_translate_overwrite");
goto RFcHe;
a2uHl:
R6pkt:
goto KgNwB;
zdA1h:
$this->load->model("catalog/manufacturer");
goto ABq2d;
c_D4p:
TjOdf:
goto DMrSG;
uI3hP:
RpLVC:
goto uTyiS;
FHaYd:
if (isset($this->request->post["mass_translate_overwrite"])) {
goto d6L3R;
}
goto UGibA;
ID95m:
goto Tktvl;
goto s_yXs;
dijhp:
ZUw1_:
goto hSiRX;
rB_Ck:
$data["process_types"] = array("product", "category", "information", "attribute", "option", "filter", "language", "language_admin");
goto RTviv;
XOIG8:
goto xlb1G;
goto Sba0j;
rfGbC:
goto CClwY;
goto a2uHl;
KmlmP:
cVgmm:
goto gT1oI;
qvhme:
$qORV3 = "&store_id=" . $b6KIt;
goto za68H;
CZld7:
goto uslt2;
goto liUhq;
hkFcI:
$data["mass_translate_ignore"] = $this->request->post["mass_translate_ignore"];
goto KISUb;
AX4WB:
$data["heading_title"] = $this->language->get("module_title");
goto DMH0A;
GKDia:
orjhe:
goto ItY0s;
drncD:
goto EsHWq;
goto QCsEu;
s5KRg:
$this->load->model("mass_translate/tool");
goto Ss00P;
Pi8FK:
ZYRX8:
goto NR1d9;
zalhx:
if (version_compare(VERSION, "2.3", ">=")) {
goto pp5HN;
}
goto KE89o;
MD68c:
$this->model_setting_setting->deleteSetting(md5(HTTP_SERVER . self::MODULE));
goto yx9N8;
rwRwn:
pp5HN:
goto c2nDA;
BbY32:
$this->session->data["success"] = $rDsbt["success"];
goto V1Esc;
LM2z4:
unset($this->session->data["success"]);
goto bYc51;
JF1Pw:
goto grxUj;
goto T1Svf;
MEsl5:
goto msLwd;
goto BbRQ2;
LdFpz:
$data["breadcrumbs"][] = array("text" => strip_tags($this->language->get("heading_title")), "href" => $this->url->link(self::$LINK, $this->token, "SSL"), "separator" => " :: ");
goto TZxqJ;
UvV1D:
goto h563y;
goto KG1tT;
nYYSc:
if (empty($Wy0d3) || $WgokZ) {
goto ivw_p;
}
goto gfLk1;
nAd6d:
oIAE9:
goto jLr0s;
sFezE:
$this->load->model("setting/setting");
goto f8OFA;
WoUHO:
CClwY:
goto zn6L0;
djaz5:
Taqnj:
goto nYYSc;
K14jX:
$data["cli_log_size"] = round(substr($WNSq8, 0, strpos($WNSq8, ) + 4), 2) . $kcEBN[$q1y7t];
goto JM1Pb;
Ffw5n:
ne10O:
goto ZWjQx;
IZmyG:
$this->document->addStyle($FOW83 . "awesome/css/font-awesome.min.css");
goto HXfnd;
aooli:
NF0sK:
goto qObsN;
wVMjN:
curl_setopt($UZIYi, CURLOPT_BINARYTRANSFER, true);
goto mC6WL;
FidvT:
if (version_compare(VERSION, "2", ">=")) {
goto DsZt1;
}
goto dRR0L;
t9jO_:
yNxiU:
goto Qrslw;
LCrvk:
$data["mass_translate_cron_key"] = $this->config->get("mass_translate_cron_key");
goto oyQQK;
liUhq:
DScjT:
goto TWFuv;
LOUXg:
Des_n:
goto hgZXX;
kcRSj:
$this->document->addScript($FOW83 . "itoggle.js");
goto d29x_;
XEV3z:
$q1y7t = 0;
goto nBdpI;
uaTzr:
s_Bqm:
goto Fncbw;
Txn9i:
if (empty($b6KIt)) {
goto NN8v1;
}
goto qvhme;
e8Igd:
goto itW6K;
goto GKDia;
rDu2j:
goto AQi4L;
goto IIQR3;
q_s8R:
goto HWj91;
goto upJqf;
EG8n5:
curl_setopt($UZIYi, CURLOPT_POSTFIELDS, http_build_query(array("sn" => $this->request->post["lic_number"], "tw" => !empty($this->request->post["lic_test"]), "ip" => isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : '', "md" => self::MODULE, "ws" => HTTP_SERVER, "rf" => $WgokZ)));
goto SEaq2;
oI5vi:
$data["mass_translate_samesource"] = $this->request->post["mass_translate_samesource"];
goto weQam;
ztQrd:
StTmw:
goto ayVii;
JM1Pb:
wyRd9:
goto pbLtK;
c7S20:
goto R6pkt;
goto t9jO_;
z6e5z:
goto TlGrc;
goto wbzIh;
xCejd:
W9O5y:
goto ECw0F;
HAEWd:
goto ugQJ2;
goto F0Y21;
KyObP:
PKvjB:
goto sFezE;
m2SH4:
$Na08i = DIR_LANGUAGE . "english/module/pro_email.php";
goto YtejX;
rbB7Y:
UTZ41:
goto BbY32;
l1Kj9:
goto SCmO8;
goto yuxBL;
tZpoq:
if (!version_compare(VERSION, "2", ">=")) {
goto YmmjQ;
}
goto fVZFo;
JUvdZ:
Ng_A0:
goto zfYuL;
X8735:
rEiXA:
goto Lxxgg;
Lxxgg:
goto ZUHkM;
goto moexf;
IOGY1:
$data["breadcrumbs"][] = array("text" => $this->language->get("text_home"), "href" => $this->url->link("common/home", $this->token, "SSL"), "separator" => false);
goto B1D51;
y0ifi:
goto f1Ckh;
goto doEPp;
frS_k:
$aJPBV = $this->url->link("marketplace/extension", "type=module&" . $this->token, "SSL");
goto LOUXg;
USwcv:
Wy7ey:
goto a8MPF;
FI9Ut:
XJ2YX:
goto nVbX4;
TadZA:
if (isset($this->request->post["mass_translate_status"])) {
goto oR7GW;
}
goto xOr2H;
PArir:
l18xc:
goto hcCld;
ElYWV:
k2kEJ:
goto uAOir;
vwdty:
WQ00i:
goto LbHs2;
TJY8s:
$WgokZ = false;
goto GsxVk;
dEmsO:
goto WEwMY;
goto NlvSb;
S6j1e:
goto DQnuL;
goto xzZcu;
PrTlF:
JnJRz:
goto qALXi;
dZp8t:
goto JGZJm;
goto WoUHO;
ngY5e:
goto kCTZk;
goto V3ktL;
ggwZW:
pbFHr:
goto c6rZu;
c6SsS:
goto BGpcI;
goto RUHX6;
Ey5rk:
WXj4H:
goto ZFoRQ;
puExq:
$this->load->model("setting/store");
goto dmwM5;
zdkq6:
WRCh0:
goto Znmca;
MdMy8:
$data["mass_translate_test_file"] = $this->config->get("mass_translate_test_file");
goto mIJU1;
I9ZC3:
JJqsH:
goto VZFUc;
f8OFA:
goto ax3DL;
goto GIOIi;
j3NTf:
Qw7fM:
goto J1cGR;
dRR0L:
$UccLG = false;
goto P9VNt;
FAHGv:
foreach ($data["translate_apis"] as $m6cbZ => $HrleY) {
goto re5yq;
I0yQ6:
vrBCc:
goto W6Bm8;
OjOoY:
rigN9:
goto xjd77;
xjd77:
$ufcse .= ", " . $HrleY["name"];
goto I0yQ6;
zyrKi:
echo "<div class="clearfix"></div>";
goto OjOoY;
AQEAA:
if (!(++$q1y7t % 2 == 0)) {
goto rigN9;
}
goto zyrKi;
re5yq:
echo "<div style="float:left; width50px; text-align:center;"><img class="img-responsive" style="padding:20px;vertical-align:middle" src="view/gkd/mass_translate/img/services/" . $m6cbZ . ".png"/></div>";
goto AQEAA;
W6Bm8:
}
goto ElYWV;
CeXNs:
goto q_peO;
goto o8mi_;
JCtAm:
$this->document->addStyle($FOW83 . "style.css");
goto eEq_n;
qe2at:
$this->response->redirect($this->url->link(self::$LINK, $this->token, "SSL"));
goto KVavA;
dMmG6:
$data["mass_translate_test"] = $this->config->get("mass_translate_test");
goto AtWKN;
p9yb0:
$data["_img_path"] = $FOW83 . "img/";
goto wHx_k;
Qrslw:
$data["error"] = "License number format is incorrect";
goto ECRkp;
FoJ9M:
goto tsHPw;
goto GuAvw;
j6okH:
rfufn:
goto AX4WB;
CgTXa:
Nq1F7:
goto w5Iy1;
pbLtK:
$data["stores"] = array();
goto U40vt;
pzETC:
Ozol2:
goto AZaj3;
mIJU1:
goto KnNME;
goto yt_bA;
fOnG4:
$UccLG = $this->model_extension_modification->getModificationByCode("auto_translate_pro");
goto njNeD;
zXJSg:
$this->load->model("setting/setting");
goto uocr3;
a4_nP:
if (isset($this->request->post["mass_translate_source_language"])) {
goto XJ2YX;
}
goto B8aGU;
nabR6:
goto aGIYP;
goto lH2Do;
u3MaA:
sJqH6:
goto HzcIg;
i_8eb:
goto PKvjB;
goto nAd6d;
u_L6s:
goto gy0UK;
goto Iqy9V;
HHPkJ:
$this->response->setOutput($this->load->view("gkd/mass_translate.tpl", $data));
goto gKHA9;
U40vt:
$data["stores"][] = array("store_id" => 0, "name" => $this->config->get("config_name"), "prefix" => $this->config->get("config_invoice_prefix"));
goto A6GVw;
GI8by:
if (isset($this->session->data["error"])) {
goto mYSmP;
}
goto NQo5w;
RFcHe:
goto Nq1F7;
goto mlREp;
VLsGs:
if (!version_compare(VERSION, 3, ">=")) {
goto pezpf;
}
goto p8XKH;
kI6Hd:
H2x6X:
goto Gz61m;
kOwhB:
if (!false) {
goto NdP1D;
}
goto m2SH4;
yt_bA:
lslao:
goto mj77O;
tO6LO:
HVcvU:
goto dZp8t;
IhtxO:
$this->response->setOutput($this->load->view("tool/gkd_license", $data));
goto FoJ9M;
BbRQ2:
NNkRG:
goto eIur8;
It8F5:
mB7gS:
goto ikf0g;
JauV6:
goto GgZ0S;
goto O3WSO;
CcOh4:
Xh0m8:
goto Ylwlw;
RUHX6:
frHiO:
goto aGXbf;
BCI4o:
ViC3l:
goto zYPud;
cEJ1h:
JVHbQ:
goto K14jX;
mdf1F:
$data["showTab"] = $this->session->data["showTab"];
goto eV52G;
d29x_:
$this->document->addScript($FOW83 . "selectize.js");
goto lN5Yj;
G0lkY:
BUV62:
goto u1El8;
TOZuj:
$this->request->post = array("lic_number" => $data["license_info"]["license"]);
goto nrNw6;
nBdpI:
tcPNw:
goto DhdzS;
Ss9lb:
$data["module_type"] = '';
goto YxjEm;
ECw0F:
$WgokZ = isset($this->request->get["refresh"]) ? 1 : rand(1, 12) == 2;
goto FNjZP;
Guac4:
$data["mass_translate_opt"] = $this->request->post["mass_translate_opt"];
goto vRvp_;
fy4X0:
tPDzj:
goto IDBr9;
V1Esc:
goto ZYRX8;
goto Pi8FK;
spwy3:
DQnuL:
goto KGLPN;
JWH46:
c2zDh:
goto w1kgG;
mQ7cZ:
R0QNh:
goto lwDNb;
jh5QT:
$data["token"] = $this->token;
goto nlIPj;
VIe4w:
$data["mass_translate_overwrite"] = $this->request->post["mass_translate_overwrite"];
goto CgTXa;
rgXdr:
$data["error_warning"] = '';
goto RxVgR;
doEPp:
k1j4C:
goto x3Kd8;
w5Iy1:
if (isset($this->request->post["mass_translate_samesource"])) {
goto aiHV_;
}
goto SPVIS;
fofwO:
ugQJ2:
goto dijhp;
Znmca:
goto UTZ41;
goto T_Ptz;
l4W1n:
goto WaDVC;
goto q_s8R;
qaOHY:
foreach ($ZFYvi as $XS4TR) {
goto NOT3l;
iU7oS:
$ZYqDc = $this->model_setting_setting->getSetting("config", $XS4TR["store_id"]);
goto KWbns;
KWbns:
$data["stores"][] = array("store_id" => $XS4TR["store_id"], "name" => $XS4TR["name"], "prefix" => isset($ZYqDc["config_invoice_prefix"]) ? $ZYqDc["config_invoice_prefix"] : $this->config->get("config_invoice_prefix"));
goto CFPN4;
CFPN4:
q5woX:
goto Tbzcu;
NOT3l:
$ZQlBZ = array();
goto iU7oS;
Tbzcu:
}
goto VoY3g;
IS7f5:
goto cLA15;
goto hdO7u;
GZVkv:
peZwj:
goto ikSAC;
zIbez:
zNNHP:
goto i_8eb;
lNJtr:
goto e_T_g;
goto R4Q_b;
V5V10:
x0s8t:
goto jxzcN;
wXaxq:
if (version_compare(VERSION, "3", ">=")) {
goto zsJ1g;
}
goto FidvT;
bw4J3:
goto tp2Me;
goto Vm_Wb;
J6F0y:
$yxEfn = $this->db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '" . $b6KIt . "'");
goto u7V6S;
B9xkq:
goto xoWwu;
goto MWBR5;
qCmtN:
M1PSK:
goto ID95m;
lpxFR:
ax3DL:
goto J372b;
CO8Qk:
$data["button_add_module"] = $this->language->get("button_add_module");
goto D21yM;
u7V6S:
foreach ($yxEfn->rows as $q1LHO) {
goto Pr1pO;
yT2MJ:
RTrfG:
goto TjrM2;
GoxWj:
$this->config->set($q1LHO["key"], $q1LHO["value"]);
goto yT2MJ;
Abfox:
zuvYN:
goto GoxWj;
wW9Qx:
Av7L2:
goto qfDyn;
TjrM2:
UJT28:
goto sBf8G;
bjLnW:
$this->config->set($q1LHO["key"], unserialize($q1LHO["value"]));
goto nGHLi;
Pr1pO:
if (!$q1LHO["serialized"]) {
goto zuvYN;
}
goto I_nIz;
nGHLi:
goto VMshE;
goto wW9Qx;
N3K2e:
goto RTrfG;
goto Abfox;
I_nIz:
if (version_compare(VERSION, "2.1", ">=")) {
goto Av7L2;
}
goto bjLnW;
qfDyn:
$this->config->set($q1LHO["key"], json_decode($q1LHO["value"], true));
goto mwkAT;
mwkAT:
VMshE:
goto N3K2e;
sBf8G:
}
goto IntB6;
tdeJk:
goto M1PSK;
goto Fejhp;
jLr0s:
$data["error"] = $rDsbt["error"];
goto bw4J3;
DuTrc:
goto W9O5y;
goto oOEsN;
Qc0km:
itW6K:
goto XCX4n;
pApMP:
v5VXr:
goto DuTrc;
Ss00P:
$q1y7t = 0;
goto RvmcG;
so7Fv:
$this->db_tables();
goto QAI1t;
enDnH:
goto XHdVY;
goto wxrKm;
axwFd:
$data["warning"] = "PHP version 7.3 is required in order to use google api, please make sure to upgrade to this php version, current version: " . phpversion();
goto XRuOI;
Avad2:
$data["_url"] =& $this->url;
goto jh5QT;
yZ8tR:
f1Ckh:
goto CZld7;
UIhfq:
RLAem:
goto A1cPF;
TZxqJ:
$data["action"] = $this->url->link(self::$LINK, $this->token . "&store_id=" . $b6KIt, "SSL");
goto kmqjk;
NQo5w:
$data["error"] = '';
goto JauV6;
OFkyV:
goto Taqnj;
goto xGKSO;
d8Ism:
$this->children = array("common/header", "common/footer");
goto le_CN;
Pm_Zj:
$Wy0d3 = 1;
goto HldRw;
RYQ7M:
$data["languages"] = $this->model_localisation_language->getLanguages();
goto noer1;
KI9FK:
aGIYP:
goto OFkyV;
tnM3p:
$this->document->addStyle($FOW83 . "gkd-theme.css");
goto JCtAm;
XolZY:
$data["error"] = $this->session->data["error"];
goto avdV6;
QpsRW:
goto fZ7Ud;
goto R9AbW;
c2nDA:
$aJPBV = $this->url->link("extension/extension", "type=module&" . $this->token, "SSL");
goto vcc2u;
qJqwH:
goto fXTLL;
goto E5SRC;
AZfGZ:
$q1y7t = 0;
goto tQNgy;
sdLj9:
goto wXaxq;
yx9N8:
goto oIAE9;
goto QA4OE;
EIjbQ:
goto Dkal0;
goto rbB7Y;
TuJ6e:
$JMhOh = $this->config->get(md5(HTTP_SERVER . self::MODULE));
goto nSPgs;
W31RT:
if (!file_exists($Na08i)) {
goto wyRd9;
}
goto H4poh;
dQIuI:
$q1y7t++;
goto lNh2t;
nAdlY:
if (isset($this->request->post["mass_translate_test"])) {
goto nTWlb;
}
goto dMmG6;
KVavA:
goto fOHi8;
goto V5V10;
ZxwSY:
goto Y2ip6;
goto Xr7B6;
mAg8y:
$data["module_version"] = simplexml_load_file(DIR_SYSTEM . "../system/auto_translate_pro.ocmod.xml")->version;
goto Aina4;
nSPgs:
goto bA44i;
goto pWOg2;
L1P_t:
goto t0jZR;
goto FLc3z;
r3OLl:
$this->load->model("extension/modification");
goto fOnG4;
ZX0mF:
$data["mass_translate_test"] = $this->request->post["mass_translate_test"];
goto P1LHb;
D21yM:
$data["button_remove"] = $this->language->get("button_remove");
goto qUIxE;
Iqy9V:
lxn9M:
goto zXJSg;
gKHA9:
goto mB7gS;
goto uaTzr;
U2d78:
hthaO:
goto fDumj;
stRJi:
XkRPK:
goto P6m6G;
moexf:
MGEfU:
goto GpTqe;
itas_:
zmXyh:
goto u3MaA;
kcnd7:
$this->load->model("catalog/category");
goto AATpd;
ocErc:
SCmO8:
goto IrL87;
TR0tB:
if (isset($this->request->post["mass_translate_deepl_glossary"])) {
goto TWJZC;
}
goto LLCbr;
TWFuv:
$this->config->set("template_engine", "template");
goto Hpf3L;
uFTcK:
$data["mass_translate_api"] = $this->config->get("mass_translate_api");
goto U4EMH;
QA4OE:
P6cpl:
goto ciXt8;
abzrb:
curl_setopt($UZIYi, CURLOPT_URL, "https://geekodev.com/license.php");
goto lMwRE;
VZFUc:
goto bYxCK;
goto lLf0m;
jelGw:
$data["module_type"] = "vqmod";
goto stRJi;
hL_EY:
goto Ob4ey;
goto djaz5;
nV6lP:
$data["column_left"] = $this->load->controller("common/column_left");
goto grqUX;
pFL44:
oSXGN:
goto QobkH;
GuAvw:
NxDW4:
goto MocQK;
gQ1Hr:
gdI4E:
goto v3c3j;
fN9VA:
goto JvUeH;
goto fzkOW;
gfLk1:
goto KuVBd;
goto Fr2XN;
zn6L0:
$data["error"] = "Error during activation process, please contact support";
goto B9xkq;
KMry9:
aPe4E:
goto s5KRg;
QUqWQ:
goto R0QNh;
goto fofwO;
SFNr1:
hJrj1:
goto uJTc0;
lnVsd:
goto rR44w;
goto Vqrnq;
xwiSt:
goto bM7hS;
goto lDT3C;
c6rZu:
if (version_compare(VERSION, "2", ">=")) {
goto THGXu;
}
goto ghPU1;
aIqNg:
goto hthaO;
goto jTLSa;
KISUb:
q_peO:
goto TR0tB;
MyaoE:
$data["journal3_active"] = is_dir(DIR_APPLICATION . "model/journal3");
goto Jps95;
L6V_M:
dIeod:
goto hqmLb;
PXQlr:
goto imG3F;
goto F7043;
NR1d9:
if (empty(self::$LINK)) {
goto PcRfF;
}
goto xwiSt;
NniYa:
$this->load->model("setting/modification");
goto Xto5Y;
jswYt:
goto Xh0m8;
goto zdkq6;
O3WSO:
mYSmP:
goto XolZY;
KTrv5:
CZYvf:
goto My5yC;
B4wWB:
if (!version_compare(VERSION, "2", ">=")) {
goto rEiXA;
}
goto OeqTk;
DGlkB:
if (!(isset($this->request->get["store_id"]) && $this->request->get["store_id"])) {
goto qjfSj;
}
goto ilxiS;
O8HTv:
goto wig5K;
goto JWH46;
hqmLb:
goto DScjT;
goto oDYm3;
lMoki:
Wc2LN:
goto vJ0vP;
VvQIK:
$data["api_option_list"] = array();
goto Jb2MF;
ToxUU:
qjfSj:
goto zdA1h;
sw8pS:
wWOde:
goto zIbez;
Gz61m:
$rDsbt = (array) @json_decode($MCq0K);
goto cfxPc;
DMrSG:
$this->response->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto yosnh;
A1cPF:
$data["error"] = $this->error["error"];
goto j3NTf;
Y0GAr:
goto tYa6i;
goto mQ7cZ;
Q7Ck9:
goto zmXyh;
goto yiqKL;
VoY3g:
LDpD8:
goto Y97bI;
LPeA0:
kD8OF:
goto eiy54;
D2EP8:
goto VyMzD;
goto c_D4p;
fyx71:
$data["module_version"] = $UccLG["version"];
goto WGQt7;
oDYm3:
uslt2:
goto smNiv;
ECRkp:
goto OKEPI;
goto lWuFC;
lN5Yj:
$this->document->addStyle($FOW83 . "selectize.css");
goto SPqbP;
T_Ptz:
Tktvl:
goto l4W1n;
Vm_Wb:
fXTLL:
goto ztQrd;
UZUJ1:
goto Tmz_t;
goto EsZXY;
YVDhF:
if (empty($rDsbt["success"])) {
//die('1');
goto M0o_o;
}
goto DGINa;
nlIPj:
$data["OC_V2"] = version_compare(VERSION, "2", ">=");
goto XTRpD;
ccKxc:
KuVBd:
goto Z9jBI;
ABq2d:
$data["manufacturers"] = $this->model_catalog_manufacturer->getManufacturers();
goto mJ98e;
IIQR3:
bA44i:
goto TJY8s;
p8XKH:
goto dIeod;
goto KnPTE;
PA8ai:
$this->data =& $data;
goto R_Fbe;
Ylwlw:
goto Ss6pf;
goto kI6Hd;
SPVIS:
$data["mass_translate_samesource"] = $this->config->get("mass_translate_samesource");
goto wRLBa;
mj77O:
$data["mass_translate_test_file"] = $this->request->post["mass_translate_test_file"];
goto cTmhU;
jxzcN:
goto aGIYP;
goto prEx0;
NMHTZ:
$data["mass_translate_log"] = $this->config->get("mass_translate_log");
goto JJ8Tb;
vcc2u:
Yc182:
goto k7WYm;
I84DK:
$data["header"] = $this->load->controller("common/header");
goto nV6lP;
oJ4W5:
DsZt1:
goto r3OLl;
Za9fM:
if ($this->request->server["REQUEST_METHOD"] == "POST" && isset($this->request->post["lic_number"])) {
goto k1j4C;
}
goto y0ifi;
wxrKm:
RicnI:
goto abzrb;
dEx1Z:
$this->request->server["REQUEST_METHOD"] = "GET";
goto vBe9K;
grqUX:
$data["footer"] = $this->load->controller("common/footer");
goto y_ZXd;
MocQK:
$this->template = "tool/gkd_license.tpl";
goto ZxwSY;
JI6rM:
bdcdb:
goto kdTWj;
HsAJS:
XYe2v:
goto DZPPZ;
kmqjk:
$data["cancel"] = $aJPBV;
goto TadZA;
bS0LA:
goto jzm1K;
goto pxlPT;
JCSxq:
if (is_file(DIR_SYSTEM . "../system/auto_translate_pro.ocmod.xml")) {
goto JLIkj;
}
goto PYN1w;
o8V0H:
otT6f:
goto cU96P;
usUrH:
if (isset($this->request->post["mass_translate_sleep"])) {
goto X5DNO;
}
goto e62Fk;
Sjr7T:
vaALZ:
goto lmwaY;
n2_KO:
Yv3Vn:
goto RkGtn;
nGwnO:
$this->request->server["REQUEST_METHOD"] = "POST";
goto gW0e3;
DngJs:
if (!(!empty($this->request->get["clear_logs"]) && file_exists(DIR_LOGS . "mass_translate.log"))) {
goto Qz58f;
}
goto IQLLB;
qTWIn:
$data["mass_translate_opt"] = $this->config->get("mass_translate_opt");
goto H_e1d;
dmwM5:
$data["translate_apis"] = array("google" => array("name" => "Google Translate API", "dashboard" => "https://console.developers.google.com/apis/dashboard", "website" => "https://cloud.google.com/translate"), "deepl" => array("name" => "Deepl", "dashboard" => "https://www.deepl.com/", "website" => "https://www.deepl.com/"), "rapidapi" => array("name" => "Rapid API", "dashboard" => "https://rapidapi.com/login", "website" => "https://rapidapi.com/"), "microsoft" => array("name" => "Microsoft Translator", "dashboard" => "https://www.microsoft.com/en-us/translator/business/translator-api/", "website" => "https://www.microsoft.com/en-us/translator/business/translator-api/"), "systran" => array("name" => "Systran", "dashboard" => "https://www.systransoft.com", "website" => "https://www.systransoft.com"), "yandex" => array("name" => "Yandex Translate", "dashboard" => "https://yandex.com", "website" => "https://yandex.com"), "ibm" => array("name" => "IBM Watson Translator", "dashboard" => "https://www.ibm.com/watson/services/language-translator/", "website" => "https://www.ibm.com/watson/services/language-translator/"));
goto rFlaF;
rzvGs:
goto oFNqn;
goto LPQaW;
rDLGb:
$qORV3 = '';
goto Txn9i;
mC6WL:
goto A4f_w;
goto KJjbS;
w8ENi:
goto P6cpl;
goto aooli;
aBGzj:
$kcEBN = array("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB");
goto XEV3z;
LmBFS:
$this->data =& $data;
goto cdlVa;
UloYn:
goto jmPSq;
goto itas_;
lwDNb:
//if (isset($rDsbt["error"])) {
goto gDAbM;
//}
goto w8Czb;
eiy54:
if (!$this->request->post["lic_number"] || strlen(trim($this->request->post["lic_number"])) != 17) {
goto orjhe;
}
goto e8Igd;
Lm0Zt:
$Na08i = DIR_LOGS . "mass_translate.log";
goto W31RT;
lmIEl:
$this->response->redirect($this->url->link(self::$LINK, $this->token, "SSL"));
goto y3Kym;
za68H:
NN8v1:
goto N1HFq;
jZvVw:
oRo4s:
goto frS_k;
HldRw:
goto SDUK9;
goto LPeA0;
DMH0A:
$data["button_save"] = $this->language->get("button_save");
goto bi_E6;
rIy2k:
goto v5VXr;
goto PArir;
pxlPT:
JLIkj:
goto mAg8y;
IQLLB:
if (!$this->user->hasPermission("modify", self::$LINK)) {
goto afY2Y;
}
goto LdUlU;
Sba0j:
Ob4ey:
goto BnKSA;
lqNuh:
$WNSq8 = filesize($Na08i);
goto aBGzj;
LlJ0e:
g1OmK:
goto Za9fM;
uAOir:
echo $ufcse;
goto ldSWD;
wHx_k:
$data["OCID"] = self::OCID;
goto Wo1Kl;
s3ADC:
XHdVY:
goto OhbHK;
v3c3j:
goto MGEfU;
goto Vafut;
zzvFc:
$data["mass_translate_ignore"] = $this->config->get("mass_translate_ignore");
goto CeXNs;
ikSAC:
msLwd:
goto y3bJg;
ROs0t:
curl_setopt($UZIYi, CURLOPT_POST, 1);
goto SMXOw;
xzZcu:
afY2Y:
goto NTrMb;
w_Qze:
goto fsJHu;
goto gQ1Hr;
kdTWj:
if (isset($this->request->post["mass_translate_edit"])) {
goto MRmrD;
}
goto d4KZn;
hPi2O:
F7leC:
goto Pmyb4;
Vafut:
ry9Wx:
goto Tc3X_;
yxfGz:
goto bdcdb;
goto cd5EF;
cs2vW:
sEW2r:
goto nXIQb;
fVZFo:
goto sJqH6;
goto oUWKX;
EsZXY:
hdqiw:
goto duQSI;
xoReu:
lRWHi:
goto fyx71;
i2GW8:
$this->document->addScript($FOW83 . "toggler.js");
goto jbpvL;
P1LHb:
HUMfh:
goto a4_nP;
xUVoO:
i3brN:
goto oQmsk;
PYN1w:
if ($UccLG) {
goto lRWHi;
}
goto X3ELi;
ZnF7i:
goto QDqYA;
goto jxa9r;
bhrAO:
ANKjb:
goto RRiI6;
uocr3:
goto y0Ge3;
goto HsAJS;
SMXOw:
goto iwNr8;
goto KGdQe;
dYXQl:
$this->model_setting_setting->editSetting("module_mass_translate", array("module_mass_translate_status" => $this->request->post["mass_translate_status"]), $b6KIt);
goto tAUqb;
ATmY7:
$data["mass_translate_api"] = $this->request->post["mass_translate_api"];
goto xUVoO;
cwImm:
goto wWOde;
goto wOtpx;
vBe9K:
goto JnJRz;
goto mxcL2;
zYPud:
if (isset($this->request->post["mass_translate_cron_key"])) {
goto dY1z9;
}
goto LCrvk;
JJ8Tb:
goto ViC3l;
goto JUvdZ;
PH3zN:
$this->children = array("common/header", "common/footer");
goto MbsM_;
lDT3C:
PcRfF:
goto dEmsO;
QAI1t:
if (version_compare(VERSION, "2", ">=")) {
goto F1Q9_;
}
goto IZmyG;
upJqf:
tp2Me:
goto oL89y;
Vqrnq:
ZR7YW:
goto nGwnO;
k7WYm:
goto Des_n;
goto jZvVw;
lsbUa:
goto x0s8t;
goto bwmkh;
shqjw:
goto vaALZ;
goto sHj6_;
C6a4a:
goto BUV62;
goto GZVkv;
OeqTk:
goto hSw6K;
goto X8735;
A1EvR:
goto xkLM6;
goto Ey5rk;
cEKys:
tsHPw:
goto PmSYh;
IQn3q:
goto CZYvf;
goto KyObP;
R_Fbe:
$this->template = "gkd/mass_translate.tpl";
goto PH3zN;
N6wp3:
$data["journal2_active"] = is_dir(DIR_APPLICATION . "model/journal2");
goto MyaoE;
KGLPN:
Qz58f:
goto ga41l;
H_e1d:
goto MYSY7;
goto qDzEQ;
n2XWn:
$data["_language"] =& $this->language;
goto sF2yg;
C61tc:
rR44w:
goto L6V_M;
HzcIg:
goto u8lxy;
goto FVtjX;
lLf0m:
JGZJm:
goto CcOh4;
T99Zb:
GgZ0S:
goto ra2yA;
w1kgG:
kCCw5:
goto Y0GAr;
zUxAN:
$this->session->data["showTab"] = "tabj";
goto rDLGb;
fDumj:
die;
goto rDu2j;
yMsNn:
$this->response->redirect($this->url->link(self::$LINK, $this->token . $qORV3, "SSL"));
goto N5O3M;
Jps95:
if (!$data["journal_active"]) {
goto xkJal;
}
goto pqqX1;
t6hDb:
if (!version_compare(VERSION, 4, ">=")) {
goto wIJRl;
}
goto LxbT3;
E5SRC:
Y2ip6:
goto d8Ism;
lMwRE:
goto NF0sK;
goto Sjr7T;
SEaq2:
goto cVgmm;
goto cEKys;
IntB6:
LWl4z:
goto ToxUU;
hgZXX:
$data["breadcrumbs"][] = array("text" => $this->language->get("text_module"), "href" => $aJPBV, "separator" => " :: ");
goto LdFpz;
l7qJT:
ZbPig:
goto lsbUa;
KG1tT:
nWgOQ:
goto yMsNn;
d4KZn:
$data["mass_translate_edit"] = (array) $this->config->get("mass_translate_edit");
goto O9lYR;
QCsEu:
NSF3Y:
goto ccKxc;
Pmyb4:
$this->response->setOutput($this->render());
goto scMfw;
duQSI:
$data["success"] = $this->session->data["success"];
goto LM2z4;
Y6v_8:
$data["header"] = $this->load->controller("common/header");
goto rqf3o;
DBoCE:
$data["mass_translate_sleep"] = $this->request->post["mass_translate_sleep"];
goto wDjwZ;
tCgMV:
goto QVHjQ;
goto MHMG2;
rzk2y:
F6pxT:
goto PVYvX;
HQVRl:
iLU_Q:
goto I9ZC3;
mxcL2:
e_T_g:
goto nabR6;
YBplc:
goto RicnI;
goto pzETC;
RyFiB:
goto Qw7fM;
goto UIhfq;
V4YRH:
zsJ1g:
goto NniYa;
DqXFJ:
goto XkRPK;
goto LAM0_;
V3ktL:
THGXu:
goto I84DK;
xaNnt:
goto F6pxT;
goto V4YRH;
kbbn_:
goto H2x6X;
goto k09ao;
Aina4:
$data["module_type"] = "ocmod";
goto jjQa4;
RTviv:
$data["journal_active"] = is_dir(DIR_APPLICATION . "model/journal2") || is_dir(DIR_APPLICATION . "model/journal3");
goto N6wp3;
Jb2PG:
MRmrD:
goto nV3zE;
ikf0g:
kCTZk:
goto uVk0c;
Tc3X_:
NKbsH:
goto eDo4r;
wZk4_:
goto StTmw;
goto lMoki;
oOEsN:
OKEPI:
goto Qc0km;
lNh2t:
goto tcPNw;
goto cEJ1h;
e62Fk:
$data["mass_translate_sleep"] = $this->config->get("mass_translate_sleep");
goto QpsRW;
U4EMH:
goto i3brN;
goto Pp2oA;
RRiI6:
if (!(version_compare(phpversion(), "7.3", "<") && $this->config->get("mass_translate_api") == "google")) {
goto Tb6ES;
}
goto axwFd;
ghPU1:
$data["column_left"] = '';
goto PA8ai;
yosnh:
VyMzD:
goto yWHQu;
oL89y:
WaDVC:
goto c7S20;
AZaj3:
//var_dump($WgokZ);die();
$WgokZ = true;
if (!$WgokZ) {
goto eV4S0;
}
goto tdeJk;
fzkOW:
q3mXM:
goto TOZuj;
N5O3M:
h563y:
goto S6j1e;
vRvp_:
MYSY7:
goto pscn9;
GIOIi:
t0jZR:
goto ROs0t;
oyQQK:
goto pbFHr;
goto w3gra;
bKsGA:
if ($WgokZ) {
goto NNkRG;
}
goto MEsl5;
LxbT3:
goto ZUw1_;
goto G03st;
cTmhU:
KnNME:
goto FHaYd;
KnPTE:
pezpf:
goto eyuHN;
pqqX1:
$data["process_types"][] = "journal_blog";
goto mvi67;
D5tPZ:
WwzFA:
goto Fe18F;
hcCld:
goto c6SyB;
goto vzmYI;
qDzEQ:
KSafV:
goto Guac4;
Fncbw:
$this->config->set("template_engine", "template");
goto gp3B6;
J372b:
$this->model_setting_setting->editSetting(md5(HTTP_SERVER . self::MODULE), array(md5(HTTP_SERVER . self::MODULE) => $rDsbt["info"]));
goto u_L6s;
sF2yg:
$data["_config"] =& $this->config;
goto Avad2;
ODNov:
vRceA:
goto KI9FK;
jxa9r:
anOVb:
goto aIqNg;
Z9jBI:
$data["store_id"] = $b6KIt = 0;
goto kcnd7;
J1cGR:
if (isset($this->error["warning"])) {
goto Mn8sD;
}
goto rgXdr;
O9lYR:
goto Yv3Vn;
goto Jb2PG;
LAM0_:
B94TC:
goto BfQLg;
Hpf3L:
goto lTibQ;
goto ODNov;
yWHQu:
qdOPp:
goto sdLj9;
MWBR5:
xlb1G:
goto VLsGs;
PVYvX:
if (is_file(DIR_SYSTEM . "../vqmod/xml/auto_translate_pro.xml")) {
goto B94TC;
}
goto JCSxq;
gT1oI:
$MCq0K = curl_exec($UZIYi);
goto hL_EY;
Dvn2Y:
goto RpLVC;
goto XsUqR;
LPQaW:
TWJZC:
goto ptgjv;
jTLSa:
xoWwu:
goto qCmtN;
FVtjX:
Owqly:
goto p9wGM;
vzmYI:
imG3F:
goto L376S;
gD6qm:
tYa6i:
goto Wq4PG;
oQmsk:
if (isset($this->request->post["mass_translate_opt"])) {
goto KSafV;
}
goto qTWIn;
cfxPc:
goto KL7t0;
goto ocErc;
o8mi_:
yrugH:
goto hkFcI;
wDjwZ:
fZ7Ud:
goto nAdlY;
dQqdd:
$qORV3 = "&store_id=" . $b6KIt;
goto SFNr1;
oNQTH:
if (isset($this->request->post["mass_translate_add"])) {
goto eUNSL;
}
goto D9K51;
V6eRl:
oFNqn:
goto usUrH;
P6m6G:
if (isset($this->session->data["success"])) {
goto hdqiw;
}
goto kb8ay;
H4poh:
$data["cli_log_link"] = $this->url->link("extension/module/mass_translate/save_log", $this->token, "SSL");
goto miR2P;
zPr0e:
z8p_W:
goto Dvn2Y;
L376S:
hSw6K:
goto UloYn;
Wq4PG:
$data["license_info"] = json_decode(base64_decode($JMhOh), 1);
goto enDnH;
KE89o:
$aJPBV = $this->url->link("extension/module", $this->token, "SSL");
goto X28nU;
hYUAo:
goto NKbsH;
goto xUnCv;
x0x5C:
if (!$b6KIt) {
goto hJrj1;
}
goto dQqdd;
XRuOI:
Tb6ES:
goto DngJs;
YtejX:
if (!is_file($Na08i)) {
goto aPe4E;
}
goto G1t4B;
FNjZP:
goto vRceA;
goto NUbOa;
njNeD:
iUP6M:
goto xaNnt;
tBAg1:
$this->load->model("setting/setting");
goto puExq;
ciXt8:
sKWVG:
goto Hs6oI;
qALXi:
if (!$WgokZ || isset($this->request->get["refresh"])) {
goto WRCh0;
}
goto jswYt;
smNiv:
//var_dump($rDsbt);die();
$rDsbt["success"] = true;
if (empty($rDsbt["success"])) {
goto Wc2LN;
}
goto wZk4_;
gp3B6:
$this->response->setOutput($this->load->view("gkd/mass_translate", $data));
goto It8F5;
DGINa:
goto zNNHP;
goto bL3Y6;
EbgJg:
$data["mass_translate_cron_key"] = $this->request->post["mass_translate_cron_key"];
goto ggwZW;
s_yXs:
ZUHkM:
goto AWt3Y;
Hs6oI:
goto iLU_Q;
goto k9cBJ;
MHMG2:
pF5Dh:
goto v7fwR;
IjGZL:
F1Q9_:
goto i2GW8;
weQam:
BuJ0n:
goto UJ3qs;
NUbOa:
JvUeH:
goto KHJsG;
T1Svf:
KL7t0:
goto YVDhF;
xUnCv:
hA0sU:
goto XJR7b;
wbzIh:
jmPSq:
goto qe2at;
Fejhp:
eV4S0:
goto rfGbC;
SPqbP:
$this->document->addStyle($FOW83 . "selectize.bootstrap3.css");
goto tnM3p;
nVbX4:
$data["mass_translate_source_language"] = $this->request->post["mass_translate_source_language"];
goto USwcv;
uVk0c:
}
public function refresh_log()
{
goto Pdmdr;
Nabmz:
gAEan:
goto LqJMO;
VlRAv:
$data = $this->readLogFile($Na08i, 10000);
goto Nabmz;
LqJMO:
echo $data;
goto BCpzz;
Pdmdr:
$Na08i = DIR_LOGS . "mass_translate.log";
goto O9iga;
O9iga:
$data = '';
goto cuK0N;
BCpzz:
exit;
goto nq0aE;
cuK0N:
if (!file_exists($Na08i)) {
goto gAEan;
}
goto VlRAv;
nq0aE:
}
public function save_log()
{
goto hX584;
MXc3N:
header("Cache-Control: must-revalidate");
goto h0D52;
hX584:
$Na08i = DIR_LOGS . "mass_translate.log";
goto DjMSe;
mfVSW:
exit;
goto ncxGK;
h0D52:
header("Content-Length: " . filesize($Na08i));
goto LWyLl;
n3rW7:
header("Content-Type: text/plain");
goto MXc3N;
LWyLl:
readfile($Na08i);
goto mfVSW;
DjMSe:
header("Content-Description: File Transfer");
goto so3yh;
so3yh:
header("Content-Disposition: attachment; filename=mass_translate.log");
goto n3rW7;
ncxGK:
}
function readLogFile($t4wBV, $NHgnp, $vUgHH = false)
{
goto k3FwC;
EHI4q:
$EljtM--;
goto fZSiR;
PDXdl:
KobHw:
goto WHFgv;
kP6pK:
goto lBbOX;
goto OXdbG;
OuBL9:
YT8Z_:
goto VMgFG;
xIjbL:
$NVMSY = '';
goto rxUV3;
WHFgv:
if ($vUgHH) {
goto erVl6;
}
goto Ucs5L;
L16fB:
$w24iO[$q1y7t] = strrev($w24iO[$q1y7t]);
goto uLX18;
fZSiR:
goto zj2vC;
goto fsEWF;
Lj0JA:
fclose($tHgyQ);
goto FSDyI;
pYPZn:
bJMMM:
goto J9mkD;
OXdbG:
erVl6:
goto kzBLw;
J9mkD:
return implode('', $w24iO);
goto hrGg_;
DI__f:
if (!$vUgHH) {
goto UUCw0;
}
goto L16fB;
rxUV3:
$w24iO = '';
goto SuJHw;
BElyA:
UUCw0:
goto PDXdl;
FivD9:
goto bJMMM;
goto OuBL9;
Who5J:
if (!($NHgnp && fseek($tHgyQ, $EljtM, SEEK_END) >= 0)) {
goto XjQdF;
}
goto dNXph;
Ucs5L:
$w24iO .= $NVMSY;
goto kP6pK;
qC5yX:
zj2vC:
goto Who5J;
AFZY4:
if ($w24iO[$q1y7t] == "
" || $w24iO[$q1y7t] == "
") {
goto YT8Z_;
}
goto jGzh2;
uLX18:
$q1y7t++;
goto BElyA;
hrGg_:
i4Ees:
goto ajbwb;
xONu6:
$tHgyQ = @fopen($t4wBV, "r");
goto qC5yX;
kzBLw:
$w24iO[$q1y7t] .= $NVMSY;
goto Fflzu;
ajbwb:
return strrev(rtrim($w24iO, "
\xd"));
goto FIAEh;
Fflzu:
lBbOX:
goto EHI4q;
FSDyI:
if (!$vUgHH) {
goto i4Ees;
}
goto AFZY4;
dNXph:
$NVMSY = fgetc($tHgyQ);
goto Aevs1;
VMgFG:
array_pop($w24iO);
goto pYPZn;
k3FwC:
$EljtM = -1;
goto xIjbL;
jGzh2:
$w24iO[$q1y7t] = strrev($w24iO[$q1y7t]);
goto FivD9;
SuJHw:
$q1y7t = 0;
goto xONu6;
Vpwco:
$NHgnp--;
goto DI__f;
Aevs1:
if (!($NVMSY == "\xa" || $NVMSY == "
")) {
goto KobHw;
}
goto Vpwco;
fsEWF:
XjQdF:
goto Lj0JA;
FIAEh:
}
public function cron($zoGR9 = '')
{
goto RRDgG;
w5Nrp:
die;
goto yy7o_;
sWPrm:
if (!(false && $_GET["k"] !== $this->config->get(self::PREFIX . "_cron_key"))) {
goto Wjp2h;
}
goto P5K0f;
P5K0f:
$this->tool->cron_log("Incorrect secure key, process aborted - Input key:" . $_GET["k"], "error");
goto ClADn;
bPgY7:
$this->tool = $this->model_mass_translate_tool->getObject();
goto Y5lTz;
EXNJK:
die;
goto Rm08n;
VSF_y:
$this->request->post = $this->request->get;
goto igX3o;
THd9o:
die;
goto hPklw;
XzOXY:
if (isset($this->request->get["k"])) {
goto Ha31R;
}
goto DApV8;
Y5lTz:
$this->tool->cron_log(PHP_EOL . "##### Cron Request - " . (isset($this->request->get["type"]) ? $this->request->get["type"] : '') . " - " . date("d/m/Y H:i:s") . " #####" . PHP_EOL);
goto XzOXY;
yy7o_:
ttq7x:
goto sWPrm;
Rm08n:
Ha31R:
goto gMLrS;
Nn_8y:
$this->request->get["target_language"] = $this->tool->getLangIdByCode($this->request->get["target"]);
goto N0g_B;
DApV8:
$this->tool->cron_log("Missing secure key parameter.", "error");
goto nGlz1;
ClADn:
echo "Invalid request, check logs for details";
goto THd9o;
Wafi_:
echo "Invalid request, check logs for details";
goto w5Nrp;
kKYR2:
$this->request->get["filter-limit"] = 2;
goto VSF_y;
N0g_B:
$this->request->get["start"] = "cron";
goto kKYR2;
nGlz1:
echo "Invalid request, check logs for details";
goto EXNJK;
lvrwx:
$this->request->get["source_language"] = $this->tool->getLangIdByCode($this->request->get["source"]);
goto Nn_8y;
RRDgG:
$this->load->model("mass_translate/tool");
goto bPgY7;
igX3o:
$this->process($this->request->get);
goto Ia3HR;
hPklw:
Wjp2h:
goto lvrwx;
iRnQJ:
$this->tool->cron_log("Missing source or target parameter.", "error");
goto Wafi_;
gMLrS:
if (!(empty($this->request->get["source"]) || empty($this->request->get["target"]))) {
goto ttq7x;
}
goto iRnQJ;
Ia3HR:
}
public function process()
{
goto gsruv;
YZHlS:
if (defined("GKD_CRON")) {
goto ElX3F;
}
goto bi4Vv;
r8j3q:
echo "Process complete - total items: " . $jlIgJ;
goto NmlBZ;
YyD6m:
goto AcN_4;
goto bZpOs;
V4PYS:
$this->tool->log("###### End Mass Translate Process [SIMULATION] - " . date("d/m/Y H:i:s") . " ######
");
goto kmXHa;
R7Y04:
$this->request->get["admin"] = true;
goto kxy00;
JA4hl:
qJdKd:
goto GYJ50;
p_1G1:
if (!$mnd96) {
goto w80iX;
}
goto rW3iJ;
GPIOV:
EJ4OC:
goto VcBPw;
r3slK:
$ZYqDc = array_merge($IcEeA, $this->request->post);
goto O2_ub;
qvYEA:
$this->tool->log("###### End Mass Translate Process - " . date("d/m/Y H:i:s") . " ######\xa");
goto YyD6m;
ZY6Pf:
$this->start_time = microtime(true) * 1000;
goto ictoq;
jl76H:
$this->config->set("mass_translate_api", "simulate");
goto J89mo;
OHQwr:
$IcEeA = array("type" => "product", "overwrite" => '');
goto r3slK;
vpHwz:
tBIJZ:
goto LN00h;
SHIcf:
if (!isset($i2Oqs[$this->config->get("mass_translate_api")])) {
goto Emsnk;
}
goto C5tmz;
ANL3C:
echo json_encode(array("success" => 1, "processed" => $jlIgJ, "progress" => $LCitx, "finished" => $jlIgJ >= $XwNeF || !$Twv8K));
goto afcrL;
MhAV2:
header("Content-type: application/json");
goto ANL3C;
Ap9lR:
$ZYqDc["start"] = $sY836;
goto cn1_b;
Jb7uG:
die($this->language->get("text_demo_mode"));
goto O_i4V;
isLhX:
if (defined("GKD_CRON")) {
goto Hs506;
}
goto MhAV2;
O2_ub:
$this->load->model("mass_translate/product");
goto zOAn7;
BrDtV:
if (!$this->config->get("mass_translate_log")) {
goto mPw0l;
}
goto hptQy;
tDKIV:
if (empty($ZYqDc["simulation"])) {
goto kj991;
}
goto jl76H;
vdeZ2:
if (!($dfqPQ and $sY836)) {
goto XAbHz;
}
goto Ap9lR;
VcBPw:
if (!($jlIgJ >= $XwNeF)) {
goto T27x4;
}
goto BrDtV;
UMUgc:
$dfqPQ = $this->request->get["start"] == "init" ? true : false;
goto RnIes;
IQKkB:
yU5_Y:
goto tDKIV;
oVOYK:
$data["type"] = "product" = str_replace(array("..", "language_admin"), array('', "language"), $this->request->post["type"]);
goto OHQwr;
xcZep:
CrCkG:
goto n4iFy;
ReOOQ:
mPw0l:
goto o60R1;
o60R1:
T27x4:
goto piGEx;
C5tmz:
$i2Oqs = $i2Oqs[$this->config->get("mass_translate_api")];
goto BGd8W;
upnY3:
$ZYqDc["limit"] = (int) $this->config->get("mass_translate_batch");
goto JA4hl;
g_DYI:
if (!$dfqPQ) {
goto RfX9q;
}
goto EVlQp;
b89d1:
GJmTW:
goto vpHwz;
rW3iJ:
$XwNeF = $XwNeF > $sY836 + $mnd96 ? $sY836 + $mnd96 : $XwNeF;
goto I8QyC;
qLsEy:
$ZYqDc["limit"] = 9999999999;
goto zEZJo;
bZpOs:
CqqKb:
goto V4PYS;
bi4Vv:
$ZYqDc["limit"] = 200;
goto hEr8y;
BGd8W:
Emsnk:
goto rX5mP;
Dw40v:
die("Error: this api is not yet available");
goto IQKkB;
kxy00:
l0b8k:
goto oVOYK;
ULpOT:
$this->load->model("mass_translate/api_" . $this->config->get("mass_translate_api"));
goto APnZU;
MZmEi:
if (!empty($ZYqDc["simulation"])) {
goto Qg0wf;
}
goto d7nTf;
GYJ50:
goto wEeMr;
goto dYhlZ;
gsruv:
if (!(!defined("GKD_CRON") && !$this->user->hasPermission("modify", self::$LINK))) {
goto t6xcs;
}
goto Jb7uG;
LN00h:
RfX9q:
goto znDOl;
aMsP6:
xPjA7:
goto lm994;
NmlBZ:
die;
goto aMsP6;
ukk6H:
$this->load->model("mass_translate/tool");
goto m4Xcj;
AG6rD:
gFmz9:
goto isLhX;
FbF90:
Hs506:
goto r8j3q;
iGt7v:
goto gFmz9;
goto LZjR2;
pLpFe:
if (empty($this->request->get["start"])) {
goto kWRJJ;
}
goto WLR9G;
zEZJo:
wEeMr:
goto p_1G1;
qmY6h:
goto GJmTW;
goto OvT3t;
zOAn7:
if (is_file(DIR_APPLICATION . "model/mass_translate/api_" . $this->config->get("mass_translate_api") . ".php")) {
goto yU5_Y;
}
goto Dw40v;
dorLq:
ini_set("memory_limit", -1);
goto ZY6Pf;
LZjR2:
Gxp8R:
goto cm2_W;
afcrL:
goto xPjA7;
goto FbF90;
lm994:
kWRJJ:
goto qojdK;
cm2_W:
$LCitx = 100;
goto AG6rD;
kmXHa:
AcN_4:
goto ReOOQ;
dYhlZ:
ElX3F:
goto qLsEy;
WLR9G:
$XwNeF = $this->{"model_mass_translate_product"}->getTotalItems($ZYqDc);
goto UMUgc;
J1Qmv:
$this->translate_api->init($i2Oqs);
goto pLpFe;
nUUnQ:
if (!($jlIgJ > $XwNeF)) {
goto EJ4OC;
}
goto JoCoZ;
rX5mP:
$ZYqDc["api_options"] = $i2Oqs;
goto J1Qmv;
znDOl:
$Twv8K = $this->{"model_mass_translate_product"}->process($ZYqDc, $this->translate_api, false);
goto OI6QO;
EVlQp:
if (!$this->config->get("mass_translate_log")) {
goto tBIJZ;
}
goto MZmEi;
O_i4V:
t6xcs:
goto ukk6H;
nSz_W:
$LCitx = floor($jlIgJ / $XwNeF * 100);
goto iGt7v;
cn1_b:
XAbHz:
goto YZHlS;
wQopA:
$sY836 = !empty($this->request->post["filter-start"]) ? (int) $this->request->post["filter-start"] : 0;
goto y1XJW;
JoCoZ:
$jlIgJ = $XwNeF;
goto GPIOV;
hptQy:
if (!empty($ZYqDc["simulation"])) {
goto CqqKb;
}
goto qvYEA;
OI6QO:
$jlIgJ = $ZYqDc["start"] + $Twv8K;
goto nUUnQ;
Kkp_k:
$this->tool->log("###### Start Mass Translate Process [SIMULATION] - " . date("d/m/Y H:i:s") . " ######");
goto b89d1;
J89mo:
kj991:
goto ULpOT;
d7nTf:
$this->tool->log("###### Start Mass Translate Process - " . date("d/m/Y H:i:s") . " ######");
goto qmY6h;
APnZU:
$this->translate_api = $this->{"model_mass_translate_api_" . $this->config->get("mass_translate_api")}->getObject();
goto gLuPy;
RnIes:
$ZYqDc["start"] = (int) $this->request->get["start"];
goto wQopA;
y1XJW:
$mnd96 = !empty($this->request->post["filter-limit"]) ? (int) $this->request->post["filter-limit"] : 0;
goto vdeZ2;
m4Xcj:
$this->tool = $this->model_mass_translate_tool->getObject();
goto dorLq;
I8QyC:
if (!($ZYqDc["start"] + $ZYqDc["limit"] - $sY836 > $mnd96)) {
goto CrCkG;
}
goto hlpRH;
OvT3t:
Qg0wf:
goto Kkp_k;
piGEx:
if ($XwNeF == 0 || !$Twv8K) {
goto Gxp8R;
}
goto nSz_W;
gLuPy:
$i2Oqs = $this->config->get("mass_translate_opt");
goto SHIcf;
ictoq:
if (!($this->request->post["type"] == "language_admin")) {
goto l0b8k;
}
goto R7Y04;
r0Z9R:
$ZYqDc["init"] = $dfqPQ;
goto g_DYI;
hlpRH:
$ZYqDc["limit"] = $mnd96 - ($ZYqDc["start"] - $sY836);
goto xcZep;
n4iFy:
w80iX:
goto r0Z9R;
hEr8y:
if (!((int) $this->config->get("mass_translate_batch") > 0)) {
goto qJdKd;
}
goto upnY3;
qojdK:
}
public function get_lang_files()
{
goto KHgFL;
i8ta2:
echo json_encode($j9uoY);
goto gedAD;
qmadI:
header("Content-Type: application/json");
goto i8ta2;
mzPsq:
mfMoJ:
goto qmadI;
KHgFL:
$this->load->model("mass_translate/language");
goto r1Pya;
r1Pya:
$iKWAm = $this->model_mass_translate_language->getFileList($this->request->get);
goto Egt3D;
gedAD:
die;
goto a7X0L;
Egt3D:
$j9uoY = array();
goto wiTs_;
wiTs_:
foreach ($iKWAm as $Na08i) {
goto UTWcA;
zb_bZ:
WzAH9:
goto cQOW7;
vctQv:
$j9uoY[] = array("name" => str_replace(str_replace("/system", '', DIR_SYSTEM), '', $Na08i), "val" => str_replace(str_replace("/system", '', DIR_SYSTEM), '', $Na08i));
goto AReOP;
AReOP:
goto eHHdT;
goto sExoh;
bkjUE:
eHHdT:
goto zb_bZ;
sExoh:
U1en1:
goto QNmGm;
UTWcA:
if (empty($this->request->get["admin"])) {
goto U1en1;
}
goto vctQv;
QNmGm:
$j9uoY[] = array("name" => str_replace(DIR_SYSTEM . "../", '', $Na08i), "val" => str_replace(DIR_SYSTEM . "../", '', $Na08i));
goto bkjUE;
cQOW7:
}
goto mzPsq;
a7X0L:
}
public function get_value()
{
goto pAotZ;
XFcJY:
$GvG7J = $this->config->get("mass_translate_source_language");
goto Ns_KG;
ecMCa:
KlUkG:
goto exuKG;
on4I3:
goto oKise;
goto n56Uj;
pauPA:
if (!(!empty($this->request->get["lang"]) && $this->request->get["lang"] != "all")) {
goto ZBuLD;
}
goto OLNhV;
AgZ1x:
goto UFm32;
goto ecMCa;
nQRs1:
foreach ($this->request->post["product_seo_url"] as $b6KIt => $Y7zEg) {
goto PaI0K;
lm3RS:
aTk4I:
goto jfZ9i;
jfZ9i:
SpVOa:
goto jbfQz;
PaI0K:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
goto qJ8FU;
qJ8FU:
if (in_array($lnk6c, array($GvG7J, $qQ9wJ))) {
goto Aq53E;
}
goto BJbEf;
slvfb:
MQq9v:
goto fnvXs;
Di1Mw:
Aq53E:
goto slvfb;
BJbEf:
unset($this->request->post["product_seo_url"][$b6KIt][$lnk6c]);
goto Di1Mw;
fnvXs:
}
goto lm3RS;
jbfQz:
}
goto HToxv;
UtmlS:
$qB343 = (array) $this->config->get("mass_translate_edit");
goto Zx2FU;
Q8pEM:
if (isset($this->request->post["product_description"])) {
goto HNoDM;
}
goto Bei3M;
DkRLF:
goto u4qxn;
goto ODmMO;
vRkPd:
$h5xUV = $this->model_mass_translate_tool->translateDescription($this->request->post["product_description"]);
goto V1nNU;
TUAUZ:
exit;
goto DkRLF;
Zc5vS:
goto akOoK;
goto WIM8f;
CatWK:
akOoK:
goto UtmlS;
GB90j:
echo json_encode($wxHbs);
goto OGj8N;
cb5pS:
if (in_array("seo_url", $qB343) && !empty($this->request->post["url_keyword"])) {
goto KlUkG;
}
goto obiBk;
TnEb0:
W42H6:
goto rINkR;
b1wZ_:
$this->load->model("mass_translate/tool");
goto vRkPd;
agKkv:
goto CatWK;
eDGsN:
$h5xUV = $this->model_mass_translate_tool->translateAttributes($this->request->post["product_attribute"]);
goto G9PQ2;
G9PQ2:
foreach ($h5xUV as $ittYH => $lrhwF) {
goto An2g3;
An2g3:
foreach ($lrhwF["product_attribute_description"] as $qJ9fm => $NYo2L) {
$wxHbs["product_attribute[" . $ittYH . "][product_attribute_description][" . $qJ9fm . "][text]"] = html_entity_decode($NYo2L["text"], ENT_QUOTES, "UTF-8");
nVYpM:
}
goto ZhBW4;
rfY2j:
DA3dl:
goto a_GiM;
ZhBW4:
naFB2:
goto rfY2j;
a_GiM:
}
goto Sgawa;
u2TSO:
if (!(in_array("seo_url", $qB343) && !empty($this->request->post["product_seo_url"]))) {
goto dFGZc;
}
goto nQRs1;
DIjs1:
if (isset($this->request->post["information_description"])) {
goto J1yI5;
}
goto vCy9M;
is0s1:
echo json_encode(["error" => "undefined type"]);
goto TUAUZ;
oIexS:
dFGZc:
goto OB0vn;
OLNhV:
$qQ9wJ = $this->request->get["lang"];
goto sXKlv;
Bei3M:
if (isset($this->request->post["category_description"])) {
goto hxMte;
}
goto DIjs1;
sXKlv:
foreach ($this->request->post["product_description"] as $lnk6c => $eIAQa) {
goto r5wPt;
r5wPt:
if (in_array($lnk6c, array($GvG7J, $qQ9wJ))) {
goto qQpPl;
}
goto kjOex;
ptmuY:
qQpPl:
goto fFeMY;
kjOex:
unset($this->request->post["product_description"][$lnk6c]);
goto ptmuY;
fFeMY:
WElfZ:
goto k4XZR;
k4XZR:
}
goto TnEb0;
pAotZ:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto AjbD9;
}
goto fwVar;
j1dA1:
ZBuLD:
goto sHs6f;
mvNbo:
nHolz:
goto i2fiU;
JFkcR:
u4qxn:
goto on4I3;
TGbc1:
$h5xUV = $this->model_mass_translate_tool->translateSeoUrls($this->request->post["product_seo_url"]);
goto O8kBj;
ufZ5p:
"product" = "category";
goto Ltxrl;
wDPUk:
e1RVv:
goto oF6P0;
F8_hb:
FeFxn:
goto cb5pS;
rINkR:
if (in_array("seo_url", $qB343) && !empty($this->request->post["url_keyword"])) {
goto p1sU7;
}
goto u2TSO;
fwVar:
die($this->language->get("text_demo_mode"));
goto D852E;
RL6Ub:
"product" = "information";
goto JFkcR;
QkhrO:
foreach ($this->request->post["url_keyword"] as $b6KIt => $Y7zEg) {
goto RHkti;
RHkti:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
goto fEW5d;
YseXq:
wGvAw:
goto kp96o;
fEW5d:
if (in_array($lnk6c, array($GvG7J, $qQ9wJ))) {
goto wGvAw;
}
goto gl13c;
gl13c:
unset($this->request->post["url_keyword"][$b6KIt][$lnk6c]);
goto YseXq;
kp96o:
yDQyY:
goto FpPOu;
FpPOu:
}
goto QIw2q;
QIw2q:
fijhk:
goto IeS7I;
IeS7I:
NVJaE:
goto UOuFW;
UOuFW:
}
goto mvNbo;
OB0vn:
goto araSg;
goto hjmH9;
HToxv:
jp7wL:
goto oIexS;
gIKOs:
foreach ($h5xUV as $b6KIt => $Y7zEg) {
goto zL2Y9;
PDbHJ:
qJKYg:
goto AStF3;
zL2Y9:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
$wxHbs["url_keyword[" . $b6KIt . "][" . $lnk6c . "]"] = $NYo2L;
KamOH:
}
goto PDbHJ;
AStF3:
vpNY8:
goto Gp4PP;
Gp4PP:
}
goto wDPUk;
sPptK:
gFCc2:
goto hBQdK;
Sgawa:
ghxPY:
goto F8_hb;
oF6P0:
UFm32:
goto WdDS2;
X3ke1:
kWxIu:
goto k5wLz;
Zx2FU:
if ($this->config->get("mass_translate_source_language")) {
goto ySQr9;
}
goto A1_h7;
OGj8N:
exit;
goto gMNGr;
i2fiU:
araSg:
goto j1dA1;
V1nNU:
foreach ($h5xUV as $qJ9fm => $RtRdC) {
goto xvqyO;
xvqyO:
foreach ($RtRdC as $ittYH => $NYo2L) {
$wxHbs["product_description[" . $qJ9fm . "][" . $ittYH . "]"] = html_entity_decode($NYo2L, ENT_QUOTES, "UTF-8");
L2cGW:
}
goto Ee26g;
Ee26g:
H7Xp4:
goto uT1VV;
uT1VV:
QzSP2:
goto QS2de;
QS2de:
}
goto sPptK;
k5wLz:
JohkO:
goto AgZ1x;
VYxBZ:
ySQr9:
goto XFcJY;
ODmMO:
J1yI5:
goto RL6Ub;
hBQdK:
if (!("product" == "product" && !empty($this->request->post["product_attribute"]))) {
goto FeFxn;
}
goto eDGsN;
obiBk:
if (!(in_array("seo_url", $qB343) && !empty($this->request->post["product_seo_url"]))) {
goto JohkO;
}
goto TGbc1;
exuKG:
$h5xUV = $this->model_mass_translate_tool->translateSeoUrls($this->request->post["url_keyword"]);
goto gIKOs;
WdDS2:
header("Content-Type: application/json");
goto GB90j;
Ltxrl:
oKise:
goto Zc5vS;
Ns_KG:
cuaHq:
goto pauPA;
sHs6f:
$wxHbs = [];
goto b1wZ_;
A1_h7:
$GvG7J = $this->db->query("SELECT language_id FROM " . DB_PREFIX . "language WHERE code = '" . $this->config->get("config_language") . "'")->row["language_id"];
goto YfzBd;
vCy9M:
header("Content-Type: application/json");
goto is0s1;
D852E:
AjbD9:
goto Q8pEM;
YfzBd:
goto cuaHq;
goto VYxBZ;
n56Uj:
hxMte:
goto ufZ5p;
WIM8f:
HNoDM:
goto agKkv;
O8kBj:
foreach ($h5xUV as $b6KIt => $Y7zEg) {
goto EeNuF;
oHM6J:
O4jZ5:
goto NSWBy;
NSWBy:
jLyAn:
goto bO9Hh;
EeNuF:
foreach ($Y7zEg as $lnk6c => $NYo2L) {
$wxHbs["product_seo_url[" . $b6KIt . "][" . $lnk6c . "]"] = $NYo2L;
jyaw9:
}
goto oHM6J;
bO9Hh:
}
goto X3ke1;
hjmH9:
p1sU7:
goto QkhrO;
gMNGr:
}
public function test()
{
goto AZFmY;
dTdc_:
$this->load->model("mass_translate/tool");
goto wkliO;
ibPhS:
exit;
goto UOCfh;
e3pdv:
Ay6wd:
goto dTdc_;
AZFmY:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto Ay6wd;
}
goto nqwU3;
O7mMf:
echo $h5xUV;
goto ibPhS;
wkliO:
$h5xUV = $this->model_mass_translate_tool->translate($_POST["mass_translate_test"], $this->request->post["source_language_test"], $this->request->post["target_language_test"], 0, true);
goto O7mMf;
nqwU3:
die($this->language->get("text_demo_mode"));
goto e3pdv;
UOCfh:
}
public function install()
{
goto JW4cH;
cCyY2:
$this->model_setting_setting->editSetting("mass_translate", array("mass_translate_api" => '', "mass_translate_log" => 1, "mass_translate_cron_key" => "cron_secure_key", "mass_translate_test" => "Hello, enter some text here to test the translation result.", "mass_translate_add" => array("name", "description", "meta_title", "meta_description", "meta_keyword", "tag"), "mass_translate_edit" => array("name", "description", "meta_title", "meta_description", "meta_keyword", "tag")));
goto BbBIi;
JW4cH:
$this->load->model("setting/setting");
goto cCyY2;
BbBIi:
$this->db_tables();
goto YGFP6;
YGFP6:
}
public function uninstall()
{
}
private function validate()
{
goto MRj7z;
MRj7z:
if ($this->user->hasPermission("modify", self::$LINK)) {
goto SX6VT;
}
goto kRWDf;
PZjPD:
SX6VT:
goto c9rH2;
c9rH2:
if ($this->error) {
goto TnF9K;
}
goto p6Ru7;
p6Ru7:
return true;
goto aAeoa;
wCmUZ:
return false;
goto WVEwe;
aAeoa:
TnF9K:
goto wCmUZ;
kRWDf:
$this->error["error"] = $this->language->get("error_permission");
goto PZjPD;
WVEwe:
}
private function db_tables()
{
}
}
© 2023 Quttera Ltd. All rights reserved.