1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need Some Help in Removing Credit Links

Discussion in 'Web Design' started by leontran, Mar 24, 2013.

  1. leontran

    leontran Newbie

    Joined:
    Aug 16, 2012
    Messages:
    18
    Likes Received:
    4
    Hello,

    Can some one help me in removing theme credit links on my site? I tried to do it but when ever i remove the links my site will crash and i have to add the links again to make site work.

    here is the encoded script in Function.php

    PHP:
    // WARNING: THE THEME WILL DEACTIVATE IF BELOW CODE ARE REMOVED //

    eval(base64_decode('JHRoZXRoZW1lID0gJ1BpbmtzdGVyJzsNCiR0aGVlcnJtZXNzYWdlID0gIjxkaXYgc3R5bGU9XCJmb250LXNpemU6MTNweDtsaW5lLWhlaWdodDoxOXB4O1wiPjxhIGhyZWY9JyIgLiBhZG1pbl91cmwoKSAuICInPiZsYXF1bzsgQmFjayBUbyBBZG1pbiBEYXNoYm9hcmQ8L2E+PGJyIC8+IiAuICI8Yj5PcHBzcyEgTG9va3MgbGlrZSB5b3UgaGF2ZSByZW1vdmVkIG9yIGNoYW5nZWQgdGhlIHRoZW1lIGNyZWRpdCBsaW5rcy4gV2VsbCwgd2UgZGlkIHB1dCBhIDxzcGFuIHN0eWxlPVwiY29sb3I6I0NDMzMwMFwiPldBUk5JTkcgU0lHTjwvc3Bhbj4gdGhlcmUuIFRoZSB0aGVtZSBpcyBub3cgZGVhY3RpdmF0ZWQuPC9iPjwvZGl2PjxiciAvPjxkaXYgc3R5bGU9XCJmb250LXNpemU6MTlweDsgcGFkZGluZy10b3A6MjBweDtcIj48Yj5QbGVhc2UgRm9sbG93IFRoZXNlIFN0ZXBzIFRvIFJlc3RvcmUgVGhlIFRoZW1lOjwvYj48L2Rpdj48b2wgc3R5bGU9XCJtYXJnaW46MDsgcGFkZGluZzoyMHB4OyB0ZXh0LWFsaWduOmxlZnQ7XCI+PGxpPlBsZWFzZSByZWRvd25sb2FkIDxhIGhyZWY9XCJodHRwOi8vd3d3Lm1hZ3ByZXNzLmNvbS9kb3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Y3RvcnkoKSAuICIvc2lkZWJhci5waHAiOw0KJGZkID0gZm9wZW4oJGYsICJyIik7DQokYyA9IGZyZWFkKCRmZCwgZmlsZXNpemUoJGYpKTsNCmZjbG9zZSgkZmQpOyBpZiAoIHN0cnBvcyggJGMsICc8P3BocCAnIC4gJ2VjaG8gY2NjX2Zvb3Rlcl9saWNlbnNlKCk7ID8+JyApID09IDApIHsNCnRoZW1lX3VzYWdlX21lc3NhZ2UoKTsgZGllOw0KfX0NCg0KZnVuY3Rpb24gY2NjX2Zvb3Rlcl9saWNlbnNlKCkgew0KZ2xvYmFsICR0aGV0aGVtZSwgJHRleHRsaW5rLCAkdGV4dGxpbmttcDsNCiR0ZXh0bGluayA9IGdldF90aGVtZV9vcHRpb24oJ2xpbmtfYXJyYXknKTsNCiR0ZXh0bGlua21wID0gZ2V0X3RoZW1lX29wdGlvbignbGlua21wX2FycmF5Jyk7DQpyZXR1cm4gJHRleHRsaW5rbXAgLiAnIEJ5ICcgLiAkdGV4dGxpbms7DQp9DQoNCmFkZF9maWx0ZXIoJ2dldF9oZWFkZXInLCdjaGVja190aGVtZV9mb290ZXInKTs='));?>
    Im still a noob in php, so any help in this regard is very much appreciated.

    Thanks and Regards,
     
  2. jeanlance

    jeanlance Power Member

    Joined:
    Mar 5, 2009
    Messages:
    796
    Likes Received:
    109
    Occupation:
    Web Designer, VCC supplier
    Location:
    Some where between heaven and hell
    Home Page:
    send me the site link
     
    • Thanks Thanks x 1
  3. leontran

    leontran Newbie

    Joined:
    Aug 16, 2012
    Messages:
    18
    Likes Received:
    4
    Still looking for some one to help
     
  4. ID Internet Marketer

    ID Internet Marketer Senior Member

    Joined:
    Jan 22, 2013
    Messages:
    938
    Likes Received:
    1,442
    Occupation:
    Blackhatworld Member
    Location:
    My Private ***
    send me the url site, maybe i can help you
     
  5. cyber.surfer

    cyber.surfer Regular Member

    Joined:
    Feb 27, 2012
    Messages:
    253
    Likes Received:
    102
    Which theme are you using?
     
  6. tmedocianis

    tmedocianis Registered Member

    Joined:
    Mar 25, 2008
    Messages:
    75
    Likes Received:
    55
    It decodes to this:
    Have fun!

    Code:
    
    
    $thetheme = 'Pinkster';
    $theerrmessage = "<div style=\"font-size:13px;line-height:19px;\"><a href='" . admin_url() . "'>« Back To Admin Dashboard</a><br />" . "<b>Oppss! Looks like you have removed or changed the theme credit links. Well, we did put a <span style=\"color:#CC3300\">WARNING SIGN</span> there. The theme is now deactivated.</b></div><br /><div style=\"font-size:19px; padding-top:20px;\"><b>Please Follow These Steps To Restore The Theme:</b></div><ol style=\"margin:0; padding:20px; text-align:left;\"><li>Please redownload <a href=\"http://www.magpress.com/download/" . strtolower($thetheme) . ".zip\" target=\"_blank\">" . $thetheme . " WP Theme</a>.</li><li>Extract and FTP upload/replace/overwrite <strong>sidebar.php</strong> inside the " . strtolower($thetheme) . " theme folder</li><li>Finally, refresh your page to activate the theme again.</li></ol></div><br /><div style=\"font-size:13px;line-height:19px;\">If you want to use a <strong>no sponsored link version</strong> of this theme. Please consider purchasing its developer license:<br /><a href=\"http://www.magpress.com/developer-license\" target=\"_blank\">http://www.magpress.com/developer-license</a></div>";
    
    function init_admin_link_array() {
    global $shortname, $thetheme;
    
    $arraylink = array(
    '<a href="http://www.koreanfashionclothing.com/">KoreanFashionClothing.com</a>',
    '<a href="http://www.koreanfashionclothing.com/">www.koreanfashionclothing.com</a>',
    '<a href="http://www.koreanfashionclothing.com/">Korean Clothing</a> from http://www.koreanfashionclothing.com/',
    '<a href="http://www.koreanfashionclothing.com/">Korean Fashion</a> from http://www.koreanfashionclothing.com/',
    '<a href="http://www.koreanfashionclothing.com/">Korean Fashion Clothing</a> from http://www.koreanfashionclothing.com/',
    '<a href="http://www.koreanfashionclothing.com/">Online Korean Fashion</a> from http://www.koreanfashionclothing.com/',
    '<a href="http://www.koreanfashionclothing.com/">Online Korean Clothing</a> from http://www.koreanfashionclothing.com/',
    '<a href="http://www.koreanfashionclothing.com/store/">Korean Models</a> from KoreanFashionClothing.com',
    '<a href="http://www.koreanfashionclothing.com/store/">KPop Fashion</a> from KoreanFashionClothing.com',
    '<a href="http://www.koreanfashionclothing.com/online-asian-clothing/">Asian Clothing Websites</a> from KoreanFashionClothing.com',
    '<a href="http://www.koreanfashionclothing.com/online-asian-clothing/">Online Asian Clothing</a> from KoreanFashionClothing.com'
    
    );
    
    $arraylinkmp = array(
    '<a href="http://www.magpress.com/wordpress-themes/pinkster.html">Pinkster WordPress Theme</a>',
    'Pinkster <a href="http://www.magpress.com">WordPress Theme</a>',
    'Pinkster <a href="http://www.magpress.com">WordPress Template</a>',
    'Pinkster <a href="http://www.magpress.com">WP Theme</a>',
    'Pinkster <a href="http://www.magpress.com">WP Template</a>'
    );
    
    $inputlink = array_rand($arraylink,1);
    $thetextlink = $arraylink[$inputlink];
    $inputlinkmp = array_rand($arraylinkmp,1);
    $thetextlinkmp = $arraylinkmp[$inputlinkmp];
    if('themes.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
    if($_REQUEST['activated']=='true') {
    if( get_option($shortname.'_link_array') == "" ):
    update_option($shortname.'_link_array',$thetextlink);
    endif;
    if( get_option($shortname.'_linkmp_array') == "" ):
    update_option($shortname.'_linkmp_array',$thetextlinkmp);
    endif;
    }}}
    add_action('admin_menu','init_admin_link_array');
    
    function check_theme_valid() {
    global $theerrmessage;
    if(!function_exists('init_error_message_form')): wp_die( $theerrmessage  ); endif; }
    add_filter('get_header','check_theme_valid');
    function theme_usage_message() {
    global $theerrmessage;
    wp_die( $theerrmessage ); }
    function check_theme_footer() {
    $f = get_template_directory() . "/sidebar.php";
    $fd = fopen($f, "r");
    $c = fread($fd, filesize($f));
    fclose($fd); if ( strpos( $c, '<?php ' . 'echo ccc_footer_license(); ?>' ) == 0) {
    theme_usage_message(); die;
    }}
    
    function ccc_footer_license() {
    global $thetheme, $textlink, $textlinkmp;
    $textlink = get_theme_option('link_array');
    $textlinkmp = get_theme_option('linkmp_array');
    return $textlinkmp . ' By ' . $textlink;
    }
    
    add_filter('get_header','check_theme_footer');
    
     
    Last edited: Mar 25, 2013
  7. imaplya

    imaplya Registered Member Premium Member

    Joined:
    Mar 25, 2013
    Messages:
    76
    Likes Received:
    11
    If you ever want to do this again yourself, for an encryption like this at least, just replace eval with echo and you'll be able to see the actual content.
     
  8. leontran

    leontran Newbie

    Joined:
    Aug 16, 2012
    Messages:
    18
    Likes Received:
    4
    Hey, I knew how decode it, but i'm not able to remove those links, if at all i remove it, site crashes.
     
  9. leontran

    leontran Newbie

    Joined:
    Aug 16, 2012
    Messages:
    18
    Likes Received:
    4
    Its a 3 coumn magazine theme from magpress
    link: www . magpress . com/wordpress-themes/pinkster.html
     
  10. MattLeGrand

    MattLeGrand Newbie

    Joined:
    Aug 22, 2014
    Messages:
    1
    Likes Received:
    0
    I know I'm very late for your specific need but I'll probably help some people with this...

    Basically the decoded function expect to see this code, somewhere in sidebar.php (How it does that is a fucking mystery at this point but whatever.)

    PHP:
    <?php echo ccc_footer_license(); ?>
    I succeeded in disabling it by tricking it into beleiving it is there...

    PHP:
    <?php // <?php echo ccc_footer_license(); ?>
    Cheers