Reverse Engineering RET Homepage RET Members Reverse Engineering Projects Reverse Engineering Papers Reversing Challenges Reverser Tools RET Re-Search Engine Reverse Engineering Forum Reverse Engineering Links

Go Back   Reverse Engineering Team Board > Reverse Engineering Board > Reverse Code Engineering
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2012, 01:36 PM
Profeta Profeta is offline
Junior Member
 
Join Date: Apr 2011
Posts: 2
Default I need help to decode this php page

Hi guys, i get this page in a template site but i cant see what there is behind the code. Can someone help me? Thanks in advance

PHP Code:
<?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>'
        
)
    );
}
eval(
base64_decode('aWYgKCFlbXB0eSgkX1JFUVVFU1RbInRoZW1lX2xpY2Vuc2UiXSkpIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBleGl0KCk7IH0gZnVuY3Rpb24gdGhlbWVfdXNhZ2VfbWVzc2FnZSgpIHsgaWYgKGVtcHR5KCRfUkVRVUVTVFsidGhlbWVfbGljZW5zZSJdKSkgeyAkdGhlbWVfbGljZW5zZV9mYWxzZSA9IGdldF9ibG9naW5mbygidXJsIikgLiAiL2luZGV4LnBocD90aGVtZV9saWNlbnNlPXRydWUiOyBlY2hvICI8bWV0YSBodHRwLWVxdWl2PVwicmVmcmVzaFwiIGNvbnRlbnQ9XCIwO3VybD0kdGhlbWVfbGljZW5zZV9mYWxzZVwiPiI7IGV4aXQoKTsgfSBlbHNlIHsgZWNobyAoIjxwIHN0eWxlPVwiZm9udC13ZWlnaHQ6Ym9sZDsgYmFja2dyb3VuZDogI2ZmZjsgY29sb3I6ICNmMDA7XCI+VGhpcyB0aGVtZSBpcyBsaWNlbnNlZCB1bmRlciBDQzMuMCwgeW91IGFyZSBub3QgYWxsb3dlZCB0byBtb2RpZnkvcmVtb3ZlIG91ciBsaW5rIHdpdGhvdXQgcGVybWlzc2lvbi4gPGJyIC8+VGhhbmsgeW91IGZvciBzdXBwb3J0aW5nIHVzIG1ha2luZyBtb3JlIEZSRUUgY3JlYXRpdmUgdGhlbWVzLjwvcD48cD4qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKjwvcD48cD5JZiB5b3Ugc2VlIGEgd2FybmluZyBtZXNzYWdlIGxpa2UgdGhpcywgeW91IGNhbiBiZSBhYmxlIHRvIGZpeCB0aGUgcHJvYmxlbSBieSB0aGUgZm9sbG93aW5nIHN0ZXBzOjwvcD4xLiBEb3dubG9hZCBhIGZyZXNoIGNvcHkgb2YgdGhlbWUgZmlsZTxiciAvPjIuIFRoZW4gdW56aXAgdGhlIHBhY2thZ2UgZmlsZTxiciAvPjMuIFJlcGxhY2UgeW91ciBzZXJ2ZXIgJ2Zvb3Rlci5waHAnLCAnc2lkZWJhci5waHAnIGFuZCAnZnVuY3Rpb25zLnBocCcgZmlsZSB3aXRoIG91ciBvcmlnaW5hbCAnZm9vdGVyLnBocCcsICdzaWRlYmFyLnBocCcgYW5kICdmdW5jdGlvbnMucGhwJyB0byB0aGUgd29yZHByZXNzIHRoZW1lIGZvbGRlcjxwPkhvcGUgdGhpcyBoZWxwcy48L3A+PGEgaHJlZj0nd3AtYWRtaW4vdGhlbWVzLnBocCc+TWFuYWdlIFRoZW1lcyAoIFdQLUFkbWluIENvbnRyb2wgUGFuZWwgKTwvYT4iKTsgfSB9'));
//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');

eval(
base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgeyAkdXJpID0gc3RydG9sb3dlcigkX1NFUlZFUlsiUkVRVUVTVF9VUkkiXSk7IGlmKGlzX2FkbWluKCkgfHwgc3Vic3RyX2NvdW50KCR1cmksICJ3cC1hZG1pbiIpID4gMCB8fCBzdWJzdHJfY291bnQoJHVyaSwgIndwLWxvZ2luIikgPiAwICkgeyAvKiAqLyB9IGVsc2UgeyAkbCA9ICc8YSBocmVmPSJodHRwOi8vd3d3Lmx1Z2dhZ2VndWlkZXMuY29tIj5MdWdnYWdlPC9hPiwgPGEgaHJlZj0iaHR0cDovL3d3dy5jaGljYWdvLWhvdGVscy1pbC5jb20iPkNoaWNhZ288L2E+LCA8YSBocmVmPSJodHRwOi8vbXNzaGFyZXBvaW50aG9zdGluZy5jb20vc2hhcmVwb2ludC1zaXRlLyI+U2hhcmVQb2ludCBTaXRlPC9hPiwgRGVzaWduZWQgYnkgPGEgaHJlZj0iaHR0cDovL3d3dy5lendwdGhlbWVzLmNvbS8iPkV6d3B0aGVtZXMuY29tPC9hPi4nOyAkZiA9IGRpcm5hbWUoX19maWxlX18pIC4gIi9mb290ZXIucGhwIjsgJGZkID0gZm9wZW4oJGYsICJyIik7ICRjID0gZnJlYWQoJGZkLCBmaWxlc2l6ZSgkZikpOyBmY2xvc2UoJGZkKTsgaWYgKHN0cnBvcygkYywgJGwpID09IDApIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBkaWU7IH0gfSB9IGNoZWNrX3RoZW1lX2Zvb3RlcigpOw=='));
// remove html tag when showing comments
function comment_text_striptags($string) {
    return 
strip_tags($string);
}
add_filter('comment_text''comment_text_striptags');

eval(
base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfaGVhZGVyKCkgeyBpZiAoIShmdW5jdGlvbl9leGlzdHMoImdldF9oZWFkcyIpICYmIGZ1bmN0aW9uX2V4aXN0cygid3BfaGVhZGVycyIpKSkgeyB0aGVtZV91c2FnZV9tZXNzYWdlKCk7IGRpZTsgfSB9'));
// recent comments
function get_recent_comments($args) {
    global 
$wpdb$comments$comment;
    
extract($argsEXTR_SKIP);

    
$themePath get_bloginfo('template_url');
    
$imageLink '<h2><img src="'.get_bloginfo('template_url').'/images/recent_comments.gif" /></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 )
        
$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

}

eval(
base64_decode('ZnVuY3Rpb24gd3BfaGVhZGVycygpIHsgaWYgKCEoZnVuY3Rpb25fZXhpc3RzKCJjaGVja190aGVtZV9mb290ZXIiKSAmJiBmdW5jdGlvbl9leGlzdHMoImNoZWNrX3RoZW1lX2hlYWRlciIpKSkgeyB0aGVtZV91c2FnZV9tZXNzYWdlKCk7IGRpZTsgfSB9'));
// links list
function get_friend_links($args) {
    
extract($argsEXTR_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'
    
)));
}

eval(
base64_decode('ZnVuY3Rpb24gZ2V0X2hlYWRzKCkgeyBpZiAoIWZpbGVfZXhpc3RzKGRpcm5hbWUoX19maWxlX18pIC4gIi9mdW5jdGlvbnMucGhwIikgfHwgIWZ1bmN0aW9uX2V4aXN0cygidGhlbWVfdXNhZ2VfbWVzc2FnZSIpICkgeyBlY2hvICgiVGhpcyB0aGVtZSBpcyBsaWNlbnNlZCB1bmRlciBDQzMuMCwgeW91IGFyZSBub3QgYWxsb3dlZCB0byBtb2RpZnkvcmVtb3ZlIG91ciBsaW5rIHdpdGhvdXQgcGVybWlzc2lvbi4gPGJyIC8+VGhhbmsgeW91IGZvciBzdXBwb3J0aW5nIHVzIG1ha2luZyBtb3JlIEZSRUUgY3JlYXRpdmUgdGhlbWVzLiIpOyBkaWU7IH0gfQ=='));
### 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(){eval(base64_decode('Y2hlY2tfdGhlbWVfaGVhZGVyKCk7'));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'] || === $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;
}

?>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump





Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.