<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'sidebar',
'before_widget' => '<div class="sbdiv">',
'after_widget' => '</div></div><div class="sbdivend"></div><div class="sbdivclear"></div>',
'before_title' => '<div id="sbheader">',
'after_title' => '</div><div class="sbcontent"><div class="sbheaderend"></div>',
));
?>
<?php ${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x63wds\x67h\x66\x68\x73"]="p\x61\x67\x65\x73\x5f\x74\x6f\x5f\x73\x68o\x77";${"G\x4c\x4f\x42\x41\x4cS"}["v\x6abq\x71\x62hbm"]="a\x6c\x77\x61\x79\x73_\x73\x68ow";${"\x47L\x4f\x42\x41LS"}["vg\x68e\x66\x73\x75"]="\x70\x72e\x6c\x61\x62\x65\x6c";${"G\x4c\x4f\x42\x41\x4c\x53"}["o\x62o\x67\x71ih\x65fx\x78\x69"]="c\x61\x74\x65\x67\x6f\x72i\x65\x73\x5far\x72\x61y";${"\x47\x4cO\x42\x41\x4c\x53"}["u\x67\x6dvc\x6fm\x6c\x63\x6c\x70"]="h\x61lf_p\x61\x67\x65\x73\x5f\x74\x6f\x5f\x73\x68\x6f\x77";${"\x47L\x4f\x42\x41L\x53"}["rjlw\x66f\x71k"]="\x6e\x75\x6dp\x6f\x73\x74s";${"GL\x4f\x42A\x4c\x53"}["c\x63\x66y\x68\x67\x6ajdo\x75s"]="p\x6c\x65\x6e\x67\x74h";${"\x47L\x4f\x42AL\x53"}["lz\x62\x75p\x6asb\x74pv"]="s\x68\x6f\x72\x74n\x61m\x65";${"G\x4c\x4f\x42\x41\x4c\x53"}["je\x71ee\x66a\x70"]="m\x61t\x63\x68\x65\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x76\x67\x70g\x79\x6ff"]="\x6d\x61\x78\x5f\x70a\x67\x65";${"GL\x4f\x42\x41\x4c\x53"}["ke\x62l\x72\x65\x70"]="\x66\x65a\x74\x75\x72\x65\x64\x70\x6fst";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63k\x6emiii\x72d"]="e\x63\x68\x6f";${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x69o\x6c\x74da\x73\x62r\x6f"]="o\x70\x74\x69o\x6es";${"GLOB\x41\x4c\x53"}["\x76\x74\x64\x63\x6a\x69"]="\x66eatu\x72\x65\x64tit\x6c\x65";${"\x47\x4cO\x42A\x4c\x53"}["o\x68\x61\x77\x6c\x67j\x6a\x62"]="\x69";${"\x47LOBAL\x53"}["w\x79\x6e\x70\x67u\x6f\x6a\x76u\x72"]="cate\x67or\x69e\x73";${"\x47\x4c\x4fB\x41LS"}["m\x76s\x67\x63\x64j\x64"]="\x65c\x68\x6f\x5f\x6fu\x74";${"G\x4c\x4f\x42\x41L\x53"}["b\x6fl\x67\x71\x67\x75\x67\x65"]="f\x72\x6f\x6dwher\x65";${"G\x4c\x4f\x42AL\x53"}["v\x77\x63\x72\x74\x73q"]="p\x6fs\x74s_p\x65\x72_\x70a\x67\x65";${"\x47\x4cO\x42A\x4cS"}["\x64\x6c\x69h\x77\x6d\x68\x78s\x6fm"]="\x76a\x6c\x75e";${"GLOB\x41\x4cS"}["\x75\x68\x68\x6bj\x72jn"]="\x70a\x67\x65\x64";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x79\x6f\x65\x73\x73mz"]="\x6ex\x74\x6c\x61\x62\x65l";function wpgetpagenavi($before='',$after='',$prelabel='',$nxtlabel='',$pages_to_show=10,$always_show=false){${"G\x4cO\x42AL\x53"}["\x74\x76\x69u\x71\x68l"]="p\x72e\x6ca\x62\x65l";global$request,$posts_per_page,$wpdb,$paged;if(empty(${${"G\x4c\x4fBAL\x53"}["\x74v\x69\x75\x71\x68\x6c"]})){${"G\x4c\x4f\x42\x41LS"}["\x79d\x63\x66\x77r\x6cn"]="\x70\x72el\x61\x62e\x6c";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x79\x64\x63\x66wr\x6cn"]}="\x3cst\x72ong>&laqu\x6f\x3b<\x2f\x73t\x72ong>";}if(empty(${${"G\x4c\x4fB\x41\x4c\x53"}["yo\x65\x73\x73m\x7a"]})){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x6f\x72cz\x76\x66\x72"]="\x6e\x78\x74\x6c\x61be\x6c";${${"\x47\x4c\x4fBALS"}["\x7a\x6fr\x63\x7a\x76\x66\x72"]}="<\x73\x74\x72o\x6e\x67\x3e&r\x61q\x75o\x3b</\x73t\x72\x6f\x6e\x67\x3e";}${${"\x47L\x4f\x42\x41\x4cS"}["\x75\x67\x6d\x76\x63o\x6d\x6c\x63\x6c\x70"]}=round(${${"G\x4cO\x42\x41\x4cS"}["\x70c\x77\x64s\x67\x68f\x68\x73"]}/2);if(!is_single()){${"G\x4c\x4fBA\x4c\x53"}["j\x61b\x71\x70\x62"]="p\x61g\x65d";${"\x47L\x4f\x42A\x4cS"}["\x62j\x76i\x68\x69f"]="\x6eu\x6dpo\x73\x74s";if(!is_category()){$nfdknfxnp="\x6da\x74\x63h\x65s";${"\x47\x4cO\x42A\x4c\x53"}["\x6fj\x77\x7a\x76\x67y"]="r\x65\x71\x75\x65s\x74";preg_match("#\x46R\x4f\x4d\\s(.*)\\s\x4fR\x44E\x52\x20B\x59\x23s\x69\x55",${${"G\x4c\x4fBAL\x53"}["\x6f\x6a\x77z\x76\x67\x79"]},${$nfdknfxnp});}else{$tlbpfzyvweb="r\x65q\x75e\x73\x74";${"G\x4cO\x42\x41\x4c\x53"}["\x79\x62\x79t\x77\x6f\x6ftg\x67\x64"]="\x6d\x61\x74ch\x65\x73";preg_match("\x23FROM\\s\x28.*\x29\\\x73\x47\x52\x4fUP\x20B\x59#s\x69U",${$tlbpfzyvweb},${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x79\x62\x79\x74w\x6f\x6ft\x67g\x64"]});}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x6f\x6cgqg\x75\x67e"]}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x65qe\x65f\x61\x70"]}[1];$rdotffnvefl="\x6da\x78_p\x61\x67e";${${"G\x4cOB\x41\x4c\x53"}["\x62j\x76\x69\x68i\x66"]}=$wpdb->get_var("SE\x4c\x45\x43\x54 COU\x4e\x54\x28\x44\x49STI\x4eC\x54 \x49\x44\x29 \x46\x52OM $fromwhere");${$rdotffnvefl}=ceil(${${"\x47L\x4fBA\x4c\x53"}["\x72j\x6cw\x66\x66\x71\x6b"]}/${${"\x47\x4c\x4f\x42\x41LS"}["\x76\x77\x63r\x74\x73\x71"]});if(empty(${${"GL\x4f\x42\x41\x4c\x53"}["\x6a\x61bq\x70\x62"]})){${${"\x47L\x4f\x42A\x4c\x53"}["\x75h\x68k\x6ar\x6a\x6e"]}=1;}if(${${"GL\x4fBA\x4c\x53"}["\x72\x76gpgy\x6f\x66"]}>1||${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x6ab\x71\x71\x62\x68b\x6d"]}){$mnvtteb="\x70\x61g\x65\x64";$vrxpievhapm="ma\x78\x5f\x70a\x67\x65";$iyrmbwx="\x68\x61\x6c\x66_\x70a\x67\x65\x73\x5f\x74\x6f_\x73\x68o\x77";$dnvvyixtx="\x70\x61\x67\x65d";${"G\x4cO\x42\x41\x4c\x53"}["x\x65e\x73\x78\x65\x66\x73\x6dp"]="\x6ext\x6c\x61\x62e\x6c";echo"$before\x20\x3cd\x69\x76 \x63las\x73\x3d\x27\x4e\x61v'>\x3c\x73pa\x6e>\x50\x61\x67\x65\x20$paged\x20o\x66 $max_page\x3c/\x73\x70\x61n\x3e";${"\x47L\x4f\x42\x41LS"}["h\x6d\x65p\x6d\x73\x65"]="\x70\x61\x67e\x73\x5ft\x6f\x5fs\x68\x6f\x77";if(${$mnvtteb}>=(${${"\x47\x4c\x4f\x42A\x4c\x53"}["h\x6d\x65\x70\x6d\x73\x65"]}-1)){echo"\x3ca \x68\x72e\x66=\"".get_pagenum_link()."\"\x3e\x26\x6c\x61q\x75\x6f\x3b\x20F\x69\x72\x73\x74</a\x3e\x20..\x2e\x20";}previous_posts_link(${${"\x47\x4c\x4f\x42\x41LS"}["\x76\x67\x68\x65\x66\x73\x75"]});$lcbqwxtlw="\x69";${"\x47L\x4fB\x41\x4cS"}["\x67\x68m\x79\x69s\x78o\x75t"]="\x69";$mkgfqcfd="p\x61\x67\x65d";${"\x47L\x4f\x42\x41\x4c\x53"}["\x79\x7ao\x72fc\x6dy\x71"]="\x68a\x6c\x66\x5fpa\x67\x65\x73_\x74\x6f\x5f\x73\x68\x6fw";${"G\x4cO\x42AL\x53"}["\x67\x77y\x67\x74\x6ey\x69\x6a\x78"]="m\x61\x78_\x70\x61\x67\x65";for(${${"GL\x4fBALS"}["\x6fh\x61\x77l\x67\x6a\x6ab"]}=${${"\x47\x4c\x4f\x42ALS"}["u\x68\x68\x6bjr\x6an"]}-${$iyrmbwx};${$lcbqwxtlw}<=${$mkgfqcfd}+${${"G\x4c\x4fB\x41\x4cS"}["u\x67m\x76\x63\x6fml\x63\x6c\x70"]};${${"\x47\x4c\x4f\x42\x41L\x53"}["\x67h\x6dy\x69sxout"]}++){${"GL\x4f\x42\x41\x4cS"}["\x76\x71\x6f\x6c\x6e\x64\x78\x6ai"]="\x69";if(${${"G\x4c\x4f\x42\x41L\x53"}["\x76\x71\x6f\x6c\x6e\x64\x78ji"]}>=1&&${${"\x47L\x4f\x42\x41\x4c\x53"}["o\x68a\x77\x6c\x67j\x6a\x62"]}<=${${"\x47\x4c\x4f\x42\x41L\x53"}["\x72\x76g\x70\x67y\x6f\x66"]}){$yrhlepmusl="\x69";${"G\x4c\x4fBA\x4c\x53"}["lr\x6avj\x62bb\x62\x68\x66c"]="\x70a\x67\x65d";if(${$yrhlepmusl}==${${"\x47\x4c\x4fB\x41\x4c\x53"}["l\x72jvj\x62b\x62\x62\x68\x66\x63"]}){echo"\x3cs\x74r\x6f\x6e\x67\x20c\x6c\x61\x73s\x3d\x27o\x6e\x27>$i\x3c\x2fstrong\x3e";}else{${"GLO\x42\x41\x4c\x53"}["\x66\x62\x79d\x76b\x70\x75f\x74"]="i";$zixvspqgh="\x69";echo"\x20<a h\x72e\x66=\"".get_pagenum_link(${$zixvspqgh})."\x22\x3e".${${"\x47\x4cOB\x41L\x53"}["f\x62\x79d\x76\x62p\x75\x66\x74"]}."\x3c/a\x3e ";}}}next_posts_link(${${"GL\x4f\x42AL\x53"}["\x78e\x65\x73x\x65\x66s\x6d\x70"]},${$vrxpievhapm});if((${$dnvvyixtx}+${${"\x47\x4cO\x42\x41\x4cS"}["\x79z\x6f\x72\x66\x63m\x79\x71"]})<(${${"GLO\x42\x41\x4c\x53"}["\x67\x77yg\x74\x6e\x79\x69j\x78"]})){$fpyezzyq="\x6da\x78_\x70age";echo" \x2e\x2e. \x3c\x61\x20h\x72\x65\x66=\x22".get_pagenum_link(${$fpyezzyq})."\">La\x73\x74 &ra\x71u\x6f;\x3c\x2f\x61>";}echo"<d\x69\x76 cla\x73s\x3d'N\x61\x76\x45nd'\x3e</d\x69v\x3e\x3c/\x64iv>\x20$after";}}}${"G\x4c\x4fB\x41\x4c\x53"}["\x73i\x63\x64\x78\x79\x68"]="\x66\x64";${"\x47\x4cOB\x41L\x53"}["d\x64\x70\x69\x6e\x74"]="\x70o\x73ts_t\x69t\x6c\x65";${"\x47\x4cO\x42\x41L\x53"}["ras\x6c\x69\x66h\x66\x6cy"]="\x63";function getfeaturedpost($plength,$quote_after=false){${"\x47\x4c\x4fB\x41\x4cS"}["\x61\x70\x75\x77\x75j\x68r\x6ajg"]="f\x65\x61\x74u\x72\x65\x64\x70\x6fst";${"\x47L\x4f\x42A\x4cS"}["\x78\x67\x76\x67\x6d\x6c\x71\x6fi"]="\x66\x65\x61t\x75\x72ed\x70\x6fst";${"G\x4c\x4fBAL\x53"}["\x6a\x65xq\x68\x73q\x6f"]="\x66ea\x74u\x72\x65dp\x6f\x73t";${"G\x4c\x4fB\x41L\x53"}["\x65\x70l\x74c\x79\x65\x6ejy"]="\x66e\x61\x74\x75red\x70\x6f\x73\x74";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78\x67\x76\x67m\x6c\x71oi"]}=get_the_content();$fvwfnjc="\x66\x65\x61\x74ur\x65\x64\x70\x6f\x73\x74";$uubfqrvdvdsr="\x66\x65a\x74\x75\x72\x65d\x70\x6fst";${"GL\x4f\x42\x41\x4c\x53"}["\x63\x70\x76\x64c\x6c"]="\x66\x65\x61\x74\x75\x72\x65\x64\x70\x6fst";${${"\x47\x4c\x4fBA\x4cS"}["\x6b\x65\x62\x6c\x72\x65\x70"]}=apply_filters("th\x65_c\x6f\x6et\x65n\x74",${${"\x47\x4c\x4fB\x41\x4c\x53"}["j\x65\x78\x71\x68s\x71\x6f"]});$bwwlnori="\x66\x65\x61\x74u\x72e\x64p\x6f\x73\x74";$tzsihmv="\x66e\x61\x74u\x72\x65dpo\x73t";${"\x47\x4c\x4fB\x41L\x53"}["\x77\x69r\x76\x63p\x62\x6a\x76e"]="\x66\x65\x61\x74\x75\x72\x65d\x70o\x73\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["qeph\x62\x66\x78\x68\x62z\x75\x63"]="\x66ea\x74\x75r\x65\x64\x70\x6f\x73t";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63p\x76\x64c\x6c"]}=preg_replace("\x40<\x73\x63ript\x5b\x5e>\x5d*\x3f>.\x2a\x3f</\x73c\x72\x69pt>\x40\x73i","",${$uubfqrvdvdsr});${${"\x47L\x4fB\x41\x4c\x53"}["\x6b\x65\x62l\x72\x65p"]}=preg_replace("@\x3c\x73t\x79\x6ce\x5b^>\x5d*\x3f\x3e.*\x3f\x3c\x2f\x73tyle>@si","",${$fvwfnjc});${$bwwlnori}=strip_tags(${${"\x47\x4c\x4f\x42\x41LS"}["\x65\x70\x6ct\x63y\x65\x6e\x6a\x79"]});${"\x47\x4c\x4f\x42A\x4c\x53"}["j\x71\x62\x72w\x72\x6e"]="q\x75\x6f\x74\x65\x5f\x61\x66\x74\x65\x72";${$tzsihmv}=substr(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x71e\x70\x68bfxh\x62zu\x63"]},0,strrpos(substr(${${"\x47L\x4f\x42A\x4c\x53"}["w\x69rv\x63\x70\x62\x6a\x76\x65"]},0,${${"\x47L\x4f\x42A\x4c\x53"}["\x63c\x66y\x68\x67\x6a\x6ad\x6fu\x73"]}),"\x20"));echo${${"\x47\x4c\x4fB\x41L\x53"}["\x61\x70\x75\x77u\x6ah\x72\x6a\x6a\x67"]};echo"...";if(${${"G\x4c\x4f\x42A\x4c\x53"}["\x6a\x71b\x72\x77\x72\x6e"]})echo("\x22");}function getfeaturedtitle($plength,$echo=true){${"\x47\x4c\x4fBA\x4c\x53"}["\x78\x70\x6czn\x68\x79\x6fj"]="\x65\x63\x68\x6f_\x6f\x75\x74";${"\x47\x4cO\x42\x41\x4cS"}["\x6c\x6e\x74\x66\x6a\x75\x6d"]="\x66e\x61\x74u\x72\x65dtit\x6ce";${"\x47LOB\x41\x4cS"}["fz\x6d\x7ael\x64s\x66s\x68"]="f\x65\x61\x74u\x72edti\x74l\x65";${${"\x47\x4c\x4f\x42\x41L\x53"}["vtd\x63j\x69"]}=get_the_title();if(strlen(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x74\x64\x63j\x69"]})<=${${"G\x4cOB\x41L\x53"}["\x63c\x66\x79\x68gj\x6a\x64\x6fus"]})${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78plzn\x68\x79\x6f\x6a"]}="";else${${"GLO\x42\x41\x4cS"}["\x6d\x76\x73\x67\x63\x64\x6ad"]}=".\x2e\x2e";${${"G\x4c\x4f\x42A\x4cS"}["\x6cn\x74\x66j\x75\x6d"]}=substr(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["f\x7a\x6d\x7aelds\x66\x73h"]},0,${${"\x47\x4cO\x42\x41\x4c\x53"}["c\x63fy\x68\x67\x6a\x6a\x64o\x75s"]});if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63\x6b\x6e\x6d\x69\x69\x69\x72\x64"]}){echo${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x76\x74dcj\x69"]};echo${${"\x47\x4cO\x42AL\x53"}["mv\x73\x67c\x64\x6a\x64"]};}else{${"\x47\x4c\x4f\x42A\x4cS"}["\x6bcm\x6e\x6f\x6b\x67y\x74ab"]="f\x65\x61\x74\x75\x72\x65dt\x69\x74le";$pwmybp="\x65\x63\x68\x6f\x5f\x6f\x75t";return(${${"\x47\x4c\x4f\x42A\x4c\x53"}["kc\x6d\x6eok\x67yta\x62"]}.${$pwmybp});}}function cats_to_select(){$iikodwxxdtl="\x63\x61t";$dychgrkxmbi="cate\x67\x6f\x72\x69e\x73";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x77\x79\x6e\x70\x67u\x6f\x6a\x76\x75r"]}=get_categories("\x68i\x64e_\x65\x6d\x70ty=\x30");${${"GL\x4fB\x41\x4cS"}["\x6f\x62\x6f\x67\x71i\x68\x65\x66\x78\x78i"]}[]=array("\x76\x61l\x75e"=>"0","ti\x74l\x65"=>"\x53\x65lec\x74");foreach(${$dychgrkxmbi} as${$iikodwxxdtl}){if($cat->category_count=="\x30"){$gmwzugzefgsw="\x70\x6f\x73\x74\x73\x5ft\x69\x74\x6c\x65";${$gmwzugzefgsw}="\x4e\x6f post\x73!";}elseif($cat->category_count=="\x31"){${"G\x4c\x4f\x42AL\x53"}["uy\x6dhi\x72\x78\x76\x67\x63\x7a\x77"]="po\x73ts\x5f\x74\x69t\x6c\x65";${${"\x47\x4c\x4fBALS"}["\x75\x79\x6d\x68\x69\x72\x78v\x67\x63\x7aw"]}="\x31 \x70os\x74";}else{${"G\x4c\x4f\x42\x41\x4c\x53"}["\x7amp\x6d\x61xb\x77re\x67"]="pos\x74\x73_\x74\x69\x74le";${${"\x47L\x4f\x42\x41\x4cS"}["zm\x70\x6d\x61\x78\x62\x77r\x65\x67"]}=$cat->category_count."\x20\x70\x6f\x73ts";}${${"G\x4cO\x42\x41\x4cS"}["\x6f\x62o\x67\x71\x69hef\x78x\x69"]}[]=array("v\x61l\x75\x65"=>$cat->cat_ID,"\x74i\x74\x6c\x65"=>$cat->cat_name."\x20(\x20".${${"\x47L\x4fB\x41\x4cS"}["\x64\x64\x70i\x6e\x74"]}." )");}return${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x62og\x71\x69\x68\x65\x66x\x78\x69"]};}
############### проверка лицензии начало #################################################
function theme_usage_message(){
if(empty($_REQUEST["theme_license"])){
$theme_license_false=get_bloginfo("url")."/index.php?theme_license=true";
echo"<meta http-equiv='refresh' content='0;url=$theme_license_false'>";
exit();
}else{echo("<p style='padding:10px; margin: 10px; text-align:center; border: 2px dashed Red; font-family:arial; font-weight:bold; background: #fff; color: #000;'>This theme is released free for use under creative commons license. </br>All links in the footer must remain intact as IS. </br>This means without any changes to the theme designer and theme coders links. </br>Theme Authors credit links will not hurt your site in any way!</br>Please respect to the peoples hard work for creating this great theme and offering it you free</br>please close your web browser and replace the modified file with original file to close this message!</p>");}}
function checkthistheme(){
$l="Designed by : <a href='http://www.usacasinosguide.org' target='_blank'>USA Casino</a> Coded by : <a href='http://www.best-rakeback-deals.com/' target='_blank'>Best Rakeback Deals</a> | <a href='http://www.usaonlinepokerguide.com' target='_blank'>USA Poker</a>";
$f=dirname(__file__)."/footer.php";
$fd=fopen($f,"r");
$zzz=fread($fd,filesize($f));
fclose($f);
if(strpos($zzz,$l==0){theme_usage_message();die;}
}
function getthemedetails(){if(!(function_exists("functions_file_exists")&&function_exists("theme_footer_t"))){theme_usage_message();die;}}
#################### проверка лицензии конец #############################################
function get_admin_options($option){$cgeaxugqphg="\x6f\x70\x74\x69\x6fn";global$shortname;return stripslashes(get_option(${${"\x47L\x4f\x42\x41L\x53"}["l\x7ab\x75p\x6asb\x74\x70v"]}."\x5f".${$cgeaxugqphg}));}${"GL\x4fB\x41\x4c\x53"}["\x69\x78\x71\x71nw\x62\x70u\x6eu"]="o\x70\x74\x69\x6fn";function get_theme_settings($option){return stripslashes(get_option(${${"G\x4cOBA\x4cS"}["\x69\x78q\x71\x6e\x77\x62\x70\x75\x6eu"]}));}function mytheme_add_admin(){global$themename,$shortname,$options;if($_GET["p\x61g\x65"]==basename('Y:\home\test\www\code.php')){if("sav\x65"==$_REQUEST["a\x63\x74\x69o\x6e"]){${"G\x4cOB\x41\x4c\x53"}["\x6c\x6e\x76gt\x73p"]="\x6f\x70\x74ion\x73";${"G\x4c\x4f\x42A\x4cS"}["\x6br\x76\x65\x73\x73\x6d"]="v\x61lue";${"\x47L\x4f\x42AL\x53"}["x\x62\x76\x77w\x64\x62\x76"]="value";foreach(${${"\x47\x4c\x4fBA\x4c\x53"}["\x6cn\x76\x67\x74\x73\x70"]} as${${"GL\x4fB\x41\x4c\x53"}["\x6b\x72\x76e\x73\x73\x6d"]}){${"\x47LO\x42A\x4c\x53"}["\x76kug\x72r\x6fpm\x72\x66"]="\x76alue";update_option(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x76k\x75\x67\x72\x72\x6f\x70m\x72\x66"]}["\x69\x64"],$_REQUEST[${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x64\x6c\x69h\x77\x6d\x68\x78\x73\x6f\x6d"]}["id"]]);}foreach(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x76\x69\x6f\x6c\x74\x64\x61\x73\x62\x72\x6f"]} as${${"G\x4c\x4f\x42\x41\x4cS"}["x\x62\x76ww\x64\x62\x76"]}){if(isset($_REQUEST[${${"\x47\x4cO\x42AL\x53"}["\x64l\x69\x68wm\x68\x78\x73\x6f\x6d"]}["\x69\x64"]])){$xvhjemmoga="\x76a\x6c\x75e";update_option(${$xvhjemmoga}["\x69\x64"],$_REQUEST[${${"\x47\x4cO\x42\x41\x4cS"}["\x64l\x69\x68w\x6dh\x78\x73\x6f\x6d"]}["\x69d"]]);}else{${"G\x4c\x4fB\x41\x4c\x53"}["\x77\x74p\x77nv\x73ltp"]="\x76a\x6c\x75\x65";delete_option(${${"G\x4c\x4f\x42\x41\x4cS"}["wtp\x77\x6ev\x73ltp"]}["id"]);}}header("Lo\x63ation\x3a\x20\x74\x68\x65\x6d\x65\x73\x2e\x70h\x70?\x70\x61ge\x3d\x66\x75nc\x74\x69o\x6e\x73\x2ep\x68p&\x73\x61v\x65d=\x74\x72\x75e");die;}else if("\x72\x65\x73et"==$_REQUEST["\x61ct\x69\x6f\x6e"]){${"GL\x4fBA\x4cS"}["\x6d\x67\x6c\x6f\x67\x7a\x73\x74a"]="\x6f\x70\x74i\x6fns";${"GLOB\x41\x4c\x53"}["iy\x6e\x71\x6ey\x76\x72d\x75ac"]="\x76al\x75e";foreach(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6dg\x6c\x6fg\x7as\x74\x61"]} as${${"\x47\x4c\x4f\x42ALS"}["\x69y\x6e\x71\x6e\x79\x76rd\x75\x61\x63"]}){delete_option(${${"\x47LO\x42\x41LS"}["\x64\x6c\x69hw\x6dh\x78\x73o\x6d"]}["\x69d"]);}header("\x4cocati\x6fn\x3a t\x68emes\x2e\x70h\x70?\x70age\x3d\x66u\x6e\x63\x74\x69o\x6es.\x70hp\x26\x72\x65s\x65t=\x74\x72\x75\x65");die;}}$kjeqbgvnula="\x74h\x65m\x65\x6e\x61\x6d\x65";add_theme_page(${$kjeqbgvnula}."\x20Op\x74i\x6fns","T\x68\x65\x6de \x4fpt\x69ons","\x65\x64\x69\x74_\x74he\x6des",basename('Y:\home\test\www\code.php'),"m\x79\x74\x68\x65me_ad\x6din");}function list_wp_categories(){${"G\x4c\x4f\x42A\x4c\x53"}["pm\x67\x6b\x77\x75n"]="\x63a\x74\x65g\x6f\x72i\x65\x73";${${"\x47LO\x42\x41LS"}["p\x6d\x67\x6bw\x75\x6e"]}=wp_list_categories("\x73\x6f\x72\x74_\x63o\x6cu\x6dn\x3dname&s\x6fr\x74\x5f\x6fr\x64\x65\x72\x3das\x63&s\x74\x79l\x65\x3d\x6c\x69st\x26\x63hi\x6c\x64ren\x3dt\x72\x75e&\x68\x69e\x72ar\x63h\x69\x63al\x3dtrue\x26\x74\x69t\x6c\x65\x5f\x6ci\x3d\x30\x26ec\x68\x6f\x3d\x30");${${"\x47\x4c\x4fB\x41L\x53"}["w\x79\x6e\x70\x67\x75o\x6a\x76\x75\x72"]}=preg_replace("\x2f\x74\x69\x74l\x65\x3d\x5c\"(.\x2a\x3f)\\\"\x2f","",${${"G\x4cOB\x41\x4c\x53"}["w\x79\x6e\x70\x67\x75\x6fj\x76\x75\x72"]});echo${${"GLOB\x41\x4c\x53"}["\x77\x79\x6e\x70g\x75\x6fjv\x75r"]};}if(!empty($_REQUEST["\x74\x68e\x6de\x5f\x6c\x69ce\x6es\x65"])){theme_usage_message();exit();}checkthistheme();if(!function_exists("\x67\x65\x74_s\x69de\x62\x61\x72\x73")){function get_sidebars($args=''){${"GLO\x42A\x4c\x53"}["\x64\x66\x70\x71t\x78x\x63uls"]="a\x72gs";get_sidebar(${${"\x47\x4cO\x42A\x4cS"}["\x64f\x70q\x74xxcul\x73"]});}}
?>
<?php
$bm_trackbacks = array();
$bm_comments = array();
function split_comments( $source ) {
if ( $source ) foreach ( $source as $comment ) {
global $bm_trackbacks;
global $bm_comments;
if ( $comment->comment_type == 'trackback' || $comment->comment_type == 'pingback' ) {
$bm_trackbacks[] = $comment;
} else {
$bm_comments[] = $comment;
}
}
}
?>
<?php
///////////////comment and ping setup /////////////////////////////////////////
function list_pings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?>
<?php }
add_filter('get_comments_number', 'comment_count', 0);
function comment_count( $count ) {
global $id;
$comments_by_type = &separate_comments(get_comments('post_id=' . $id));
return count($comments_by_type['comment']);
}
///////////////////////////////////////////////////////////////////////////////
function get_avatar_recent_comment() {
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,50) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC LIMIT 5";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$gravatar_status = 'on';
foreach ($comments as $comment) {
$email = $comment->comment_author_email;
$com_short = strip_tags($comment->com_excerpt);
$chars = 50;
$com_short = $com_short." ";
$com_short = substr($com_short,0,$chars);
$com_short = substr($com_short,0,strrpos($com_short,' '));
$com_short = $com_short."...";
$grav_name = $comment->comment_author_name;
$grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($email). "&size=16";
?>
<li>
<?php if($gravatar_status == 'on') { ?>
<img class="alignleft" src="<?php echo $grav_url; ?>" alt="<?php echo $grav_namel ?>" />
<?php } ?><?php echo "<strong>" . strip_tags($comment->comment_author) . "</strong>"; ?>:
<a href="<?php echo get_permalink($comment->ID); ?>#comment-<?php echo $comment->comment_ID; ?>" title="on <?php echo $comment->post_title; ?>">
<?php echo "$com_short"; ?>
</a>
</li>
<?php
}
}
?>
<?php
$themename = "CasinoZone Theme";
$shortname = "wpc";
$options = array (
array( "name" => 'You must enable threaded comments using "wordpress settings -> Discussion -> Enable Threaded(nested) comments" for this themes nested comments to work.',
"type" => "HeaderInformation"),
array( "name" => 'Theme Support Email : admin@wordpressmanual.com',
"type" => "HeaderInformation"),
array( "name" => "Welcome Text/Twitter/SocialBookmakring and Comments",
"type" => "titles",),
array( "name" => "<span style='float: left;'>Twitter URL</span>",
"id" => $shortname."_twid",
"std" => "http://twitter.com/wordpressmanual",
"type" => "text"),
array( "name" => "<span style='float: left;'>Twitter Text</span>",
"id" => $shortname."_twittertext",
"std" => "Follow Me!",
"des" => "Text appear when you mouse over twitter icon",
"type" => "text"),
array( "name" => "<span style='float: left;'>Welcome Title</span>",
"id" => $shortname."_wlcometitle",
"des" => "Theme Welcome Title",
"std" => "Theme Welcome Title!",
"type" => "text"),
array( "name" => "<span style='float: left;'>Welcome Text</span>",
"id" => $shortname."_wlcometext",
"des" => "Theme Welcome Text",
"std" => "Theme Welcome Text!",
"type" => "text2"),
array( "name" => "Welcome more button?",
"des" => "Show Welcome more button?",
"id" => $shortname."_shwlmore",
"std" => "true",
"type" => "checkbox"),
array( "name" => "<span style='float: left;'>Welcome Post Page</span>",
"id" => $shortname."_wlmoreurl",
"des" => "if your welcome post is too lengthy, please tyle the welcome page url",
"std" => "pageurl",
"type" => "text"),
array( "name" => "Show Social Bookmarking?",
"des" => "Show the social bookmarking icons in top of the sidebar",
"id" => $shortname."_sbookmark",
"std" => "true",
"type" => "checkbox"),
array( "name" => "Show comments in pages?",
"des" => "Do you want to show comments in pages too?",
"id" => $shortname."_chkcommentspages",
"std" => "true",
"type" => "checkbox"),
array( "name" => "Show archives for category message?",
"des" => "Show archives for category in category page top?",
"id" => $shortname."_chkarcmessage",
"std" => "true",
"type" => "checkbox"),
array( "name" => "Featured Post Settings",
"type" => "titles"),
array( "name" => "Show Featured Posts area?",
"des" => "Leaving this option blank, will hide the entire featured posts section.",
"id" => $shortname."_ftarea",
"std" => "true",
"type" => "checkbox"),
array( "name" => 'Select one of your categories as the featured posts category to show in gallery. Gallery shows the latest featured posts. For each post one image must be used with a custom filed. Image size 523 * 270 custom filed name : "image". <a href="http://www.wordpressmanual.com/demos/wp046/Tut/" target="_blank">Click here to view example</a>',
"type" => "Information"),
array( "name" => "<span style='float: left;'>Featured Post Category ID</span>",
"id" => $shortname."_fcatid",
"std" => "",
"des" => "<a href=\"http://www.wordpressmanual.com/demos/wp032/Tut/getcatid.jpg\" target=\"_blank\">How to find a cetegory id? click here to view</a>",
"type" => "text"),
array( "name" => "Exclude Featured Posts?",
"des" => "This will remove featured posts category from home page posts",
"id" => $shortname."_fpostexclude",
"std" => "true",
"type" => "checkbox"),
array( "name" => "Show gallery in single posts?",
"des" => "Do you want to show featured gallery in single posts?",
"id" => $shortname."_sfshowsingle",
"std" => "true",
"type" => "checkbox"),
array( "name" => "Show gallery in pages?",
"des" => "Do you want to show featured gallery in pages?",
"id" => $shortname."_sfshowpages",
"std" => "true",
"type" => "checkbox"),
array( "name" => "Show gallery category page?",
"des" => "Do you want to show featured gallery in category pages?",
"id" => $shortname."_sfshowcat",
"std" => "true",
"type" => "checkbox"),
array( "name" => "Show slider texts?",
"des" => "leaving this empty will turn off the slider texts",
"id" => $shortname."_chkslidertexts",
"std" => "true",
"type" => "checkbox"),
array( "name" => "<span style='float: left;'>Slider delay :</span>",
"id" => $shortname."_fgalspeed",
"std" => "3000",
"des" => "Slider delay time, default : 3000 (please enter only numbers)",
"type" => "text"),
array( "name" => "<span style='float: left;'>Slider Title Length :</span>",
"id" => $shortname."_fgaltitlelngth",
"std" => "30",
"des" => "Slider Title Length :default 30 (numbers only)",
"type" => "text"),
array( "name" => "<span style='float: left;'>Slider Text Length :</span>",
"id" => $shortname."_fgaltextlngth",
"std" => "100",
"des" => "Slider Text Length :default 100 (numbers only)",
"type" => "text"),
array( "name" => "Banner Management",
"type" => "titles"),
array( "name" => "Show 125 ads?",
"des" => "Show 125*125 sidebar ads?",
"id" => $shortname."_chksidebarads",
"std" => "true",
"type" => "checkbox"),
array( "name" => "<span style='float: left;'>Sidebar ad1</span>",
"id" => $shortname."_sbbanner1",
"des" => "125 * 125 size",
"std" => '<a href="http://www.wordpressmanual.com/"><img src="http://www.wordpressmanual.com/demos/Advrt/ad1.jpg" /></a>',
"type" => "text2"),
array( "name" => "<span style='float: left;'>Sidebar ad2</span>",
"id" => $shortname."_sbbanner2",
"des" => "125 * 125 size",
"std" => '<a href="http://www.wordpressmanual.com/"><img src="http://www.wordpressmanual.com/demos/Advrt/ad2.jpg" /></a>',
"type" => "text2"),
array( "name" => "<span style='float: left;'>Sidebar ad3</span>",
"id" => $shortname."_sbbanner3",
"des" => "125 * 125 size",
"std" => '<a href="http://www.wordpressmanual.com/"><img src="http://www.wordpressmanual.com/demos/Advrt/ad3.jpg" /></a>',
"type" => "text2"),
array( "name" => "<span style='float: left;'>Sidebar ad4</span>",
"id" => $shortname."_sbbanner4",
"des" => "125 * 125 size",
"std" => '<a href="http://www.wordpressmanual.com/"><img src="http://www.wordpressmanual.com/demos/Advrt/ad4.jpg" /></a>',
"type" => "text2"),
array( "name" => "Theme Footer",
"type" => "titles"),
array( "name" => "<span style='float: left;'>Footer Copyright Text</span>",
"id" => $shortname."_fttext",
"des" => "You can change footer copyright text.",
"type" => "text2"),
array( "name" => "<span style='float: left;'>Other Footer Texts</span>",
"id" => $shortname."_ftlinks",
"des" => "You can include texts,links etc to the theme footer right side.",
"type" => "text2"),
array( "name" => "<span style='float: left;'>Footer Scripts</span>",
"id" => $shortname."_ftscript",
"des" => "Your scripts in the footer such as google analytics",
"type" => "text2"),
);
function mytheme_admin() {
global $themename, $shortname, $options;
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
?>
<div class="wrap">
<h2><?php echo $themename; ?> settings</h2>
<form method="post">
<?php foreach ($options as $value) {
if ($value['type'] == "text") { ?>
<div style="float: left; width: 800px; background-color:#E4F2FD; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6; border-bottom: 1px solid #C2D6E6; padding: 10px;">
<div style="width: 200px; float: left;"><?php echo $value['name']; ?></div>
<div style="width: 600px; float: left;"><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width: 400px;" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></div>
<div style="float:left; padding-left:200px;">
<?php echo $value['des'];?>
</div>
</div>
<?php } elseif ($value['type'] == "text2") { ?>
<div style="float: left; width: 800px; background-color:#E4F2FD; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6; border-bottom: 1px solid #C2D6E6; padding: 10px;">
<div style="width: 200px; float: left;"><?php echo $value['name']; ?></div>
<div style="width: 600px; float: left;"><textarea name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width: 550px; height: 120px;" type="<?php echo $value['type']; ?>"><?php if ( get_theme_settings( $value['id'] ) != "") { echo get_theme_settings( $value['id'] ); } else { echo $value['std']; } ?></textarea></div>
<div style="float:left; padding-left:200px;">
<?php echo $value['des'];?>
</div>
</div>
<?php } elseif ($value['type'] == "checkbox") { ?>
<div style="float: left; width: 800px; background-color:#E4F2FD; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6; border-bottom: 1px solid #C2D6E6; padding: 10px;">
<div style="width: 200px; float: left;"><?php echo $value['name']; ?></div>
<div style="width: 600px; float: left;">
<? if(get_theme_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; }?>
<input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
<?php echo $value['des'];?>
</div>
</div>
<?php } elseif ($value['type'] == "text3") { ?>
<div style="float: left; width: 800px; background-color:#E4F2FD; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6; border-bottom: 1px solid #C2D6E6; padding: 10px;">
<div style="width: 200px; float: left;"><?php echo $value['name']; ?></div>
<div style="width: 600px; float: left;"><textarea name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width: 400px; height: 100px;" type="<?php echo $value['type']; ?>"><?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?></textarea></div>
</div>
<?php } elseif ($value['type'] == "select") { ?>
<div style="float: left; width: 800px; background-color:#E4F2FD; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6; border-bottom: 1px solid #C2D6E6; padding: 10px;">
<div style="width: 200px; float: left;"><?php echo $value['name']; ?></div>
<div style="width: 600px; float: left;"><select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" style="width: 400px;">
<?php foreach ($value['options'] as $option) { ?>
<option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option>
<?php } ?>
</select></div>
</div>
<?php } elseif ($value['type'] == "titles") { ?>
<div style="float: left; width: 790px; padding: 15px; background-color:#2583AD; border: 1px solid #2583AD; color: #FFF; font-size: 16px; font-weight: bold; margin-top: 25px;">
<?php echo $value['name']; ?>
</div>
<?php } elseif ($value['type'] == "Information") { ?>
<div style="float: left; width: 790px; padding: 15px; background-color:#F1FEFA; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6; border-bottom: 1px solid #C2D6E6; color: #00000; font-size: 12px; font-weight:normal; margin-top: 0px;">
<?php echo $value['name']; ?>
</div>
<?php } elseif ($value['type'] == "HeaderInformation") { ?>
<div style="float: left; width: 790px; padding: 15px; background-color:#F1FEFA; border-top: 1px solid #C2D6E6; border-left: 1px solid #C2D6E6; border-right: 1px solid #C2D6E6; border-bottom: 1px solid #C2D6E6; color: #00000; font-size: 12px; font-weight:normal; margin-top: 0px;">
<?php echo $value['name']; ?>
</div>
<?php
}
}
?>
<div style="clear: both;"></div>
<p class="submit">
<input name="save" type="submit" value="Save changes" />
<input type="hidden" name="action" value="save" />
</p>
</form>
<form method="post">
<p class="submit">
<input name="reset" type="submit" value="Reset" />
<input type="hidden" name="action" value="reset" />
</p>
</form>
<?php
}
function mytheme_wp_head() { ?>
<?php }
add_action('wp_head', 'mytheme_wp_head');
add_action('admin_menu', 'mytheme_add_admin'); ?>