Visualizzazione risultati 1 fino 3 di 3

Discussione: Parse error: syntax error, unexpected $end in footer.php

  1. #1
    Guest

    Predefinito Parse error: syntax error, unexpected $end in footer.php

    Ciao a tutti,
    ho installato un tema wordpress e nello spazio del footer (che non compare) viene visualizzata la scritta

    Parse error: syntax error, unexpected $end in footer.php on line 109


    la line 109 corrisponde a

    109 <?php $_F=__FILE__;$_X=
    'Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwyY2siPjw0bWcgY2wxc 3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbmw1ZnQiIHNyYz0iPD9 waHAgNWNoMiBibDJnNG5mMigndDVtcGwxdDVfM3JsJyk7ID8+L zRtMWc1cy9zazRuNi80bmYyX2IzdHQybl9vYS5wbmciIDFsdD0 iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBCeTogPDEgaHI1Zj0ia HR0cDovL3d3dy5pdGg1bTVzLmMybS8iPlcycmRQcjVzcyBUaDV tNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwxIGhyNWY9Imh0dHA6L y93d3cuaDJzdHN0MnI1LmMybSI+RDVkNGMxdDVkIFM1cnY1cnM 8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9waHANCgl9DQp9DQoNC g0KPz4=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZ GUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2F vdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX 18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyR fWD0wOw=='));?>

    Qualcuno sa dirmi qual'è il problema?
    Mi pare non manchi nessuna chiusura o parentesi graffa, in ogni caso riporto tutto il codice del footer.php. Grazie

    <?php global $k_option; ?>

    <!-- ################################################## #################### -->
    </div><!-- end main -->
    <!-- ################################################## #################### -->

    <!-- ################################################## #################### -->
    </div><!-- end contentwrap -->
    <!-- ################################################## #################### -->


    <!-- Footer ################################################## ######### -->
    <div id="footerwrap">
    <div id="footer">
    <!-- ################################################## #################### -->

    <?php
    $columns = 1;
    foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas
    {
    echo '<div class="column column'.$columns.'">';
    if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - '.$footer_widget) ) : $default_widget[$footer_widget] = true; endif;

    if(!isset($default_widget[$footer_widget]) && $k_option['includes']['dummy_footer'] != 2)
    {
    //calling the placeholding content defined at the bottom of this file
    display_placeholder($footer_widget);
    }
    echo '</div>';
    $columns++;
    }

    ?>

    <!-- ################################################## #################### -->
    </div><!-- end footer -->
    </div><!-- end footerwrap -->
    <!-- ################################################## #################### -->
    <?php wp_footer();

    if($k_option['general']['analytics']) echo $k_option['general']['analytics'];
    ?>
    </body>
    </html>













    <?php
    ################################################## ################################################## ############
    // these are the placeholder that get displayed if nothing is put into a footer widget areas in your
    // wordpress backend at appearance->widgets
    ################################################## ################################################## ############
    $exclude = '';

    if($k_option['mainpage']['blog_widget_exclude'] == 1)
    {
    $exclude = '&exclude='.$k_option['blog']['blog_cat_final'];
    }


    function display_placeholder($whichone)
    {
    if($whichone == 'left')
    { ?>
    <div class='box box_small'>
    <h3>Pages</h3>
    <ul>
    <?php wp_list_pages('title_li=' ); ?>
    </ul>
    </div>
    <?php
    }

    if($whichone == 'center')
    { ?>
    <div class='box box_small'>
    <h3>Categories</h3>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=0&hiera rchical=0'.$exclude); ?>
    </ul>
    </div>
    <div class='box box_small'>
    <h3>Archive</h3>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </div>
    <?php
    }

    if($whichone == 'right')
    { ?>
    <div class="box box_small">
    <h3>Contribute to our Site!</h3>
    <p>Consectetur adipisicing elit tempor incididunt ut labore. Sed do eiusmod tempor incididunt ut labore. Consectetur adipisicing elit.</p>
    <p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/newspaper_add_32.png" alt="" />If you want to contribute tutorials, news or other stuff please contact us. We pay 150 for each approved article.</p>
    <p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/lightbulb_32.png" alt="" />Consectetur adipisicing elit. Sed do eiusmod tempor incididunt ut labore.</p>
    <p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/rss_32.png" alt="" />If you like what we do, please don't hestitate and subscribe to our <a href="<?php bloginfo('rss2_url'); ?>">RSS Feed.</a></p>
    <?php $_F=__FILE__;$_X='Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwy Y2siPjw0bWcgY2wxc3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbm w1ZnQiIHNyYz0iPD9waHAgNWNoMiBibDJnNG5mMigndDVtcGwx dDVfM3JsJyk7ID8+LzRtMWc1cy9zazRuNi80bmYyX2IzdHQybl 9vYS5wbmciIDFsdD0iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBC eTogPDEgaHI1Zj0iaHR0cDovL3d3dy5pdGg1bTVzLmMybS8iPl cycmRQcjVzcyBUaDVtNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwx IGhyNWY9Imh0dHA6Ly93d3cuaDJzdHN0MnI1LmMybSI+RDVkNG MxdDVkIFM1cnY1cnM8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9w aHANCgl9DQp9DQoNCg0KPz4=';eval(base64_decode('JF9Y PWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMj M0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVw bGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbC gkX1IpOyRfUj0wOyRfWD0wOw=='));?>

  2. #2
    Guest

    Predefinito

    Adesso ci si diverte =S... eeehm... adesso ti trovo la soluzione. Aspetta un attimo che la faccio in barba all'eval

    >> EDIT1 di una lunga serie:

    Ti posso solo dire che questo è uno stronzo che sa come difendersi... che emerita testolina di ***** -.-' xD
    Allora... JF9Y PWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMj M0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVw bGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbC gkX1IpOyRfUj0wOyRfWD0wOw== in realtà è questo:

    $_X=base64_decode($_X);$_X=strtr($_X,'123456aouie' ,'aouie123456');$_R=ereg_replace('__FILE__',"'".$_ F."'",$_X);eval($_R);$_R=0;$_X=0;

    indovina un po? altri decode -.-''' ed eval -.-#

    $_X dovrebbe essere:
    Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwy Y2siPjw0bWcgY2wxc3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbm w1ZnQiIHNyYz0iPD9waHAgNWNoMiBibDJnNG5mMigndDVtcGwx dDVfM3JsJyk7ID8+LzRtMWc1cy9zazRuNi80bmYyX2IzdHQybl 9vYS5wbmciIDFsdD0iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBC eTogPDEgaHI1Zj0iaHR0cDovL3d3dy5pdGg1bTVzLmMybS8iPl cycmRQcjVzcyBUaDVtNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwx IGhyNWY9Imh0dHA6Ly93d3cuaDJzdHN0MnI1LmMybSI+RDVkNG MxdDVkIFM1cnY1cnM8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9w aHANCgl9DQp9DQoNCg0KPz4=

    questo:
    ?>

    <4mg cl1ss="45ef4x n2b2rd5r 1l4gnl5ft" src="/4m1g5s/sk4n6/4nf2_b3tt2n_oa.png" 1lt="" />&c2py; a060. Th5m5 By: <1 hr5f="http://www.ith5m5s.c2m/">W2rdPr5ss Th5m5s Sp2ns2r5d By: <1 hr5f="http://www.h2stst2r5.c2m">D5d4c1t5d S5rv5rs.

    ora reversiamo il strtr e dovremmo ottenere la stringa già più leggibile:

    Codice PHP:
    ?> <p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/info_button_32.png" alt="" />&copy; 2010. Theme By: <a href="http://www.5themes.com/">WordPress Themes</a> Sponsored By: <a href="http://www.hoststore.com">Dedicated Servers</a>.</p>
    </div>
    <?php
    }
    }


    ?>
    Non credo che ti serva più sapere altro ad ogni modo... se vuoi cambiare il footer ora sei liberissimo di farlo. Hai identificato il punto da modificare. Se è solo per l'errore ti posso dire che adesso capire come funziona è molto più semplice...
    Ultima modifica di provaphpprova : 19-08-2010 alle ore 11.52.27

  3. #3
    Guest

    Predefinito

    grazie, giusta intuizione.
    ho decodificato eval e parse come da tue indicazioni, e sostituendole il codice è questo giusto?


    <?php $_F=__FILE__;$_X=?>
    <p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/info_button_32.png" alt="" />© 2010. Theme By: <a href="http://www.5themes.com/">WordPress Themes</a> Sponsored By: <a href="http://www.hoststore.com">Dedicated Servers</a>.</p>
    </div>
    <?php
    }
    }


    ?>;eval(base64_decode($_X=b2s61i_d6c3d6($_X);$_X=s trtr($_X,'aouie123456','23456aouie1');$_R=6r6g_r6p l2c6('__FILE__',"'".$_F."'",$_X);6v2l($_R);$_R=0;$ _X=0;));?>

    Il risultato sullo schermo del tema però è un

    Parse error: syntax error, unexpected ';' in riga 111: <?php $_F=__FILE__;$_X=?> etc


    Tolta la ";" dalla stringa <?php $_F=__FILE__;$_X=?> mi dà a sua volta:

    Parse error: syntax error, unexpected T_VARIABLE

    Hai qualche idea su cosa manchi?

    grazie della disponibilità!

Tags for this Thread

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •