Hello, I'm using a theme on my WP website, www.randomlive.com but i have some erros in posts, I need to correct them and add osme more extra funtions to it. But in package the post.php and page.php files are decoded. I used some base 64 online decoders but that dint help. Please help me decode these files. I will be very happy. Single.php Here is page.php file. I will be very helpfull. Thank you
This is going to be a pain. One level deep, this is what you've got. $lll=0;eval(base64_decode("JGxsbGxsbGxsbGxsPSdiYXNlNjRfZGVjb2RlJzs="));$ll=0;eval($lllllllllll("JGxsbGxsbGxsbGw9J29yZCc7"));$llll=0;$lllll=3;eval($lllllllllll("JGw9JGxsbGxsbGxsbGxsKCRvKTs="));$lllllll=0;$llllll=($llllllllll($l[1])<<8)+$llllllllll($l[2]);eval($lllllllllll("JGxsbGxsbGxsbGxsbGw9J3N0cmxlbic7"));$lllllllll=16;$llllllll="";for(;$lllll<$lllllllllllll($l);){if($lllllllll==0){$llllll=($llllllllll($l[$lllll++])<<8);$llllll+=$llllllllll($l[$lllll++]);$lllllllll=16;}if($llllll&0x8000){$lll=($llllllllll($l[$lllll++])<<4);$lll+=($llllllllll($l[$lllll])>>4);if($lll){$ll=($llllllllll($l[$lllll++])&0x0f)+3;for($llll=0;$llll<$ll;$llll++)$llllllll[$lllllll+$llll]=$llllllll[$lllllll-$lll+$llll];$lllllll+=$ll;}else{$ll=($llllllllll($l[$lllll++])<<8);$ll+=$llllllllll($l[$lllll++])+16;for($llll=0;$llll<$ll;$llllllll[$lllllll+$llll++]=$llllllllll($l[$lllll]));$lllll++;$lllllll+=$ll;}}else$llllllll[$lllllll++]=$llllllllll($l[$lllll++]);$llllll<<=1;$lllllllll--;}eval($lllllllllll("JGxsbGxsbGxsbGxsbD0nY2hyJzs="));$lllll=0;eval($lllllllllll("JGxsbGxsbGxsbD0iPyIuJGxsbGxsbGxsbGxsbCg2Mik7"));$llllllllll="";for(;$lllll<$lllllll;){$llllllllll.=$llllllllllll($llllllll[$lllll++]^0x07);}eval($lllllllllll("JGxsbGxsbGxsbC49JGxsbGxsbGxsbGwuJGxsbGxsbGxsbGxsbCg2MCkuIj8iOw=="));eval($lllllllll); PHP: Most likely it includes a link and/or script to make sure you don't modify anything. Probably the "Wordpress plugin" link in your footer. My advice, find a script that doesn't include this crap. Depending on what's in there, this script could be inadvertently used to allow the owner to take over your website or server. People usually put this stuff in their templates or scripts to try and game the search engines or to get recognition. If their product was that good, nobody would have any problem giving them credit.
That's not always true, some folks are plain a-holes and it doesn't matter how good something is there's always gonna be folk wanting it for free or trying to break it.
It's really simple. All you do is view source the page, find the html code that this produces and copy and paste it in the file in place of it. It's much easier than all this decoding crap. You can edit out the link in the html instead
If that's the case then what's the point in adding this stuff. It wouldn't take much to get through all of it. Might as well put all your cards on the table because people are going to use it the same way no matter what. Also, putting eval(base64(filegetcontents and other scripts that pull php from a remote location is a huge liability. If your server gets hacked, that person just got control of every site using your script. That whole no liability clause in a license goes out the window if the script relies on something you continuously provide in order for it to work. If what you provide takes over their site, you're completely liable for actual and punitive damages.
This is my exact reasoning for using the html. You don't get any php code running before it outputs the html. The only thing that you will need is the blog info and blog url php if you want it to be dynamic rather than the static HTML, although that's not really hard to add back in
single.php: <?php get_header(); $urlHome = get_bloginfo('template_directory'); if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="box post" id="post-<?php the_ID(); ?>"> <div class="content"> <?php $postimageurl = get_post_meta($post->ID, 'post-img', true); if ($postimageurl) { ?> <div class="pic fl"><img src="<?php echo $postimageurl; ?>" alt="Post Pic" width="200" height="200" /></div> <?php } ?> <div class="post-title"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> </div> <!--/post-title --> <div class="post-date"><em>On <?php the_time('m.d.y') ?>, In <?php the_category(', ') ?>, by <?php the_author_posts_link(); ?></em></div> <div class="post-excerpt"><?php the_excerpt(); ?></div> <!--/post-excerpt --> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> </div> <!--/content --> <div class="hl"></div> <div class="content"> <div class="pic fl"><?php echo get_avatar(get_the_author_email(), $size = '80', $default = $urlHome . '/images/default_avatar_author.gif' ); ?></div> <div class="post-author"> <div class="author-descr"> <h3><?php the_author(); ?></h3> <p><?php the_author_description(); ?></p> <div class="author-details"><a href="<?php the_author_url(); ?>" target="_blank">Visit Authors Website</a> | <a href="<?php bloginfo('url'); ?>/author/<?php echo strtolower(get_the_author_nickname()); ?>">All Articles From This Author</a></div> </div> <!--/author-descr --> <br class="fix" /> </div> <!--/post-author --> </div> <!--/content --> <div class="hl"></div> <div class="social-links"> <div class="fl">If you enjoyed this article, please consider sharing it!</div> <div class="fr"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at Delicious" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc1.gif" alt="Icon" /></a> <a href="http://www.mixx.com/submit?page_url=<?php the_permalink() ?>" title="Bookmark at Mixx" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc2.gif" alt="Icon" /></a> <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at StumbleUpon" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc3.gif" alt="" /></a> <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at Digg" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc4.gif" alt="Icon" /></a> </div> <br class="fix" /> </div> <!--/social-links --> </div> <!--/box --> <div class="box post-rel"> <div class="content"> <div class="subcols"> <div class="col1"> <h2>Related Posts</h2> <?php $results = $wpdb->get_results(yarpp_sql(array('post'),array())); foreach ( (array) $results as $_post ) : ?> <div class="th fl"><a href="<?php echo get_permalink($_post->ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div> <div><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo $_post->post_title; ?></a></div> <div class="hl2"></div> <?php endforeach; ?> </div> <!--/col1 --> <div class="col2"> <h2>Popular Posts</h2> <?php foreach ( (array) convergence_popular_posts() as $_post ) : ?> <div class="th fl"><a href="<?php echo get_permalink($_post->ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div> <div><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo $_post->post_title; ?></a></div> <div class="hl2"></div> <?php endforeach; ?> </div> <!--/col1 --> <br class="fix" /> </div> <!--/subcols --> </div> <!--/content --> </div> <!--/box --> <?php comments_template(); endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; get_sidebar() ; get_footer(); ?> PHP: page.php: <?php get_header(); if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="box post" id="post-<?php the_ID(); ?>"> <div class="content"> <div class="post-title"> <h2><?php the_title(); ?></h2> </div> <!--/post-title --> <!--/post-excerpt --> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> </div> <!--/content --> </div> <!--/box --> <?php endwhile; endif; get_sidebar(); get_footer(); ?> Code (markup):