WordPress.org

Forums

[resolved] themes with "eval(base64_decode" (7 posts)

  1. goldmember
    Member
    Posted 5 years ago #

    the beginning of the footer.php code from the theme i downloaded started with <?php eval(base64_decode(

    someone mentioned in another thread that "I wouldn't recommend using any theme with this cr@p in it."

    how come? what does this code mean? i'm a newbie to wordpress and know nothing about php.

    please advise. thanks!

  2. MichaelH
    Member
    Posted 5 years ago #

    how come? what does this code mean?

    Never know what might be lurking in that code unless you decode it.

    Related:
    How to get rid of encoding in a theme's footer?

  3. goldmember
    Member
    Posted 5 years ago #

    oy. can you please be a little more specific? is this really a common issue that themes with this code could cause some sort of critical problem? what sort of problem? on the theme homepage (http://wordpress.org/extend/themes/wp-andreas01), it gets a 3.5 out of 5 rating, based on 31 votes.

    i'm not too keen on the idea of abandoning this theme right now. this is my first wordpress site and i've spent a lot of time trying to customize it and i'm so close to the finished product i want.

    i could really use some direction here. please advise. thanks!

  4. MichaelH
    Member
    Posted 5 years ago #

    Decode what's in the theme and determine if you feel it's a problem.

    For example, I don't like 'encoded' links...and it can hide malicious code. [edit]

    But review some of these:
    http://www.google.com/search?q=wordpress+what+problems+with+encoded+footers

  5. goldmember
    Member
    Posted 5 years ago #

    is it possible to simply delete all of the code in my footer.php file that includes <?php eval(base64_decode(..........));?>

    and just replace it with i what i want the footer to say (see below)??????

    <div id="footer">
    
    <h5>The GCCC is a not-for-profit 501(c) (6) non-government membership organization. Member of CIANJ, Member ICC, affiliated with<br /> NJAWBO Bergen Chapter, affiliated with Bergen Community College small business development center.</h5><br />
    
    © 2009 Gold Coast Chamber of Commerce<br /> Designed by <a href="http://www.adfgadfgadfg.com" target="blank">adfgadfgadfg.com</a>
    </div>
    
    </body>
    </html>
  6. MichaelH
    Member
    Posted 5 years ago #

  7. goldmember
    Member
    Posted 5 years ago #

    so here's a weird twist. i rechecked the original footer.php file and it doesn't include any code that says <?php eval(base64_decode(..........));?>. See the original footer.php code below. i suspect that somewhere along the line, i mistakenly opened another theme file in my themes folder (perhaps Classic or Default) and maybe of their footer.php files that this. so anyway, i'm taking it all out and starting fresh with the original footer.php file (again, seen below).

    my only problem now is that for some reason (probably/maybe) having to do with my "wrapper divs" which are located in my header.php file, being closed in the wrong place???? any idea? my header.php file is also at the bottom of this post. thanks!

    originaly and current footer.php

    <div id="footer">
    <p><span class="credits">&copy; <?php echo date('Y'); ?> <a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a> - <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> - <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a> - <?php wp_loginout(); ?></span><br />Powered by <a href="http://wordpress.org/">WordPress</a> - <a href="http://andreasviklund.com/wordpress-themes/">Theme design</a> by <a href="http://andreasviklund.com/" title="Original theme design by Andreas Viklund">Andreas Viklund</a></p>
    </div>
    <?php do_action('wp_footer'); ?>
    </div>
    </body>
    </html>

    current header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head profile="http://gmpg.org/xfn/11">
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <meta name="distribution" content="global" />
    <meta name="language" content="en" />
    
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <title><?php bloginfo('name'); wp_title(); ?></title>
    <?php wp_head(); ?>
    </head>
    
    <body>
    <div id="outer_wrapper">
    <div id="wrap">
    
    <img id="frontphoto" src="<?php bloginfo('template_directory'); ?>/img/front.jpg" alt="" />
    <div id="leftside">
    
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
    
    <h2 class="hide">Main menu:</h2>
    <ul class="page">
    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
    <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('exclude=19&sort_column=menu_order&depth=1&title_li='); ?>
    </ul>
    
    <?php endif; ?>
    
    </div><!-- end outer_wrapper div -->
    </div><!-- end outer_wrapper div -->

Topic Closed

This topic has been closed to new replies.

About this Topic