Activity Stream
48,167 MEMBERS
6827 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

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

    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
    TechSmart Reviewed by TechSmart on . Please help me about this php code of wp [ I may loose my job because of this] 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 <?php if ( function_exists('register_sidebar') ) { register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    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.

  4.     
    #3
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    The functions file you pasted only has 66 lines, how are we supposed to help?

  5.     
    #4
    Member
    Website's:
    MechoDDL.com Leaserver.com
    Yeah and the error is on line 85
    || Leaserver : Virtual Server Solutions
    || Leaserver.com - Virtual servers | Netherlands
    || 99.9% server uptime guaranteed
    || www.leaserver.com | email : sales@leaserver.com

  6.     
    #5
    Member
    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

  7.     
    #6
    Member
    Please help


    Cant even login now ... .. just that error

  8.     
    #7
    Member
    anyways problem solved ..
    Please close the topic

  9.     
    #8
    Member
    maybe next time you won't forget to back up before modifying live sites..

  10.     
    #9
    Member
    Website's:
    GFXWebHosting.com WarezJobs.com
    so you saved your job?

  11.     
    #10
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by Whoo View Post
    The functions file you pasted only has 66 lines, how are we supposed to help?
    PHP Code: 
    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 Code: 
    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 Code: 
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 3rd Apr 2012, 09:50 AM
  2. Kinda at a loose end...
    By GeeZus in forum Webmaster Discussion
    Replies: 14
    Last Post: 15th Dec 2011, 02:53 AM
  3. KWWH Loose its PR now its 2
    By BounceR in forum General Discussion
    Replies: 6
    Last Post: 4th Aug 2010, 06:05 AM
  4. [HELP] Am I going to loose my files from RS?
    By gfxguru in forum General Discussion
    Replies: 4
    Last Post: 2nd Jul 2010, 01:30 PM
  5. Loose
    By loose in forum Introductions
    Replies: 7
    Last Post: 20th Nov 2009, 07:48 AM

Tags for this Thread

BE SOCIAL