Please help me about this php code of wp [ I may loose my job because of this]

Status
Not open for further replies.

TechSmart

Active Member
40
2011
0
10
I am getting this error
Parse error: syntax error, unexpected T_FUNCTION in /home/wwwcont/public_html/blog/wp-content/themes/BlueMin/functions.php on line 85

Function.php file code

Code:
<?php
if ( function_exists('register_sidebar') )
{
    register_sidebar(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
    register_sidebar(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));    
}
eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'<n uers="uggc://jjj.nfxtencuvpf.pbz/">Jro Qrfvta</n> ol NfxTencuvpf.pbz | <n uers="uggc://jjj.fxvacerff.pbz/">Jbeqcerff Gurzrf</n> ol Fxvacerff.pbz\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\';qvr;}}purpx_sbbgre();'));

function get_sidebar_right() {
    do_action( 'get_sidebar' );
    if ( file_exists( TEMPLATEPATH . '/sidebar_right.php') )
        load_template( TEMPLATEPATH . '/sidebar_right.php');
    else
        load_template( ABSPATH . 'wp-content/themes/default/sidebar.php');
}


function wp_list_pages2($limit=NULL) {

    check_header();
    
    $defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'),
        'child_of' => 0, 'exclude' => '', 'title_li' =>'', 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title');
    $r = array_merge((array)$defaults, (array)$r);

    $output = '';
    $current_page = 0;

    // sanitize, mostly to keep spaces out
    $r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);

    // Allow plugins to filter an array of excluded pages
    $r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));

    // Query pages.
    $pages = get_pages($r);

    if ( !empty($pages) ) {

        for($i=0;$i<count($pages);$i++)
        {
            $output .='|<a href="'.get_page_link($pages[$i]->ID).'">'.strtoupper($pages[$i]->post_title).'</a>';
            if($limit!=NULL)
            {
                break;
            }
        }
    }

    $output = apply_filters('wp_list_pages', $output);

    echo $output;
}
eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));

?>

Please help .. its urgent
 
9 comments
This is most likely an unsupported theme, have you recently updated WP?

Your best bet as a temp solution is to disable that theme and switch to somthing
which you're sure will run fine.
 
Last edited:
dude the problem is that i added some code then i got this error .
Now after getting the error I removed those codes .
And this is the default code for function.php
I dont have ftp access.
Only wp login accesss
dont know why it is keep saying error at line 85
 
The functions file you pasted only has 66 lines, how are we supposed to help?

PHP:
eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));
encoded code

Try decrypting the code and you will get the php functions file to line 85 to

I guess its some problem in that encoded function only

PHP:
str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}');
Equals to:

PHP:
if(!(function_exists("check_functions")&&function_exists("check_f_footer"))) {
echo('This theme is released under creative commons licence, all links in the footer should remain intact');
die;
}
}

Edit: Saw u had already fixed problem, NVM then
 
Last edited:
Status
Not open for further replies.
Back
Top