Изменил сбросил кэш и вот ошибка .
- Код: выделить все
Parse error: syntax error, unexpected '}' in /home/*********/public_html/cache/tpl_blackbox-red_overall_header.html.php on line 32
Сам файл tpl_blackbox-red_overall_header.html.php
Сделаю как код
- Код: выделить все
<?php if (!defined('IN_PHPBB')) exit; ?><p><?php echo (isset($this->_rootref['META'])) ? $this->_rootref['META'] : ''; ?> <?php echo (isset($this->_rootref['SITENAME'])) ? $this->_rootref['SITENAME'] : ''; ?> • <!-- IF S_IN_MCP --><?php echo ((isset($this->_rootref['L_MCP'])) ? $this->_rootref['L_MCP'] : ((isset($user->lang['MCP'])) ? $user->lang['MCP'] : '{ MCP }')); ?> • <!-- ELSEIF S_IN_UCP --><?php echo ((isset($this->_rootref['L_UCP'])) ? $this->_rootref['L_UCP'] : ((isset($user->lang['UCP'])) ? $user->lang['UCP'] : '{ UCP }')); ?> • <!-- ENDIF --><?php echo (isset($this->_rootref['PAGE_TITLE'])) ? $this->_rootref['PAGE_TITLE'] : ''; ?></p>
<?php if ($this->_rootref['S_ENABLE_FEEDS']) { if ($this->_rootref['S_ENABLE_FEEDS_OVERALL']) { ?>
<p> </p>
<?php } if ($this->_rootref['S_ENABLE_FEEDS_NEWS']) { ?>
<p> </p>
<?php } if ($this->_rootref['S_ENABLE_FEEDS_FORUMS']) { ?>
<p> </p>
<?php } if ($this->_rootref['S_ENABLE_FEEDS_TOPICS']) { ?>
<p> </p>
<?php } if ($this->_rootref['S_ENABLE_FEEDS_TOPICS_ACTIVE']) { ?>
<p> </p>
<?php } if ($this->_rootref['S_ENABLE_FEEDS_FORUM'] && $this->_rootref['S_FORUM_ID']) { ?>
<p> </p>
<?php } if ($this->_rootref['S_ENABLE_FEEDS_TOPIC'] && $this->_rootref['S_TOPIC_ID']) { ?>
<p> </p>
<?php } } ?>
<p>
<script type="text/javascript"><!--
<! IF S_USER_PM_POPUP -->
if (<?php echo (isset($this->_rootref['S_NEW_PM'])) ? $this->_rootref['S_NEW_PM'] : ''; ?>)
{
popup('<?php echo (isset($this->_rootref['UA_POPUP_PM'])) ? $this->_rootref['UA_POPUP_PM'] : ''; ?>', 400, 225, '_phpbbprivmsg');
}
<?php } ?>
function popup(url, width, height, name)
{
if (!name)
{
name = '_popup';
}
window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
return false;
}
function jumpto()
{
var page = prompt('<?php echo ((isset($this->_rootref['LA_JUMP_PAGE'])) ? $this->_rootref['LA_JUMP_PAGE'] : ((isset($this->_rootref['L_JUMP_PAGE'])) ? addslashes($this->_rootref['L_JUMP_PAGE']) : ((isset($user->lang['JUMP_PAGE'])) ? addslashes($user->lang['JUMP_PAGE']) : '{ JUMP_PAGE }'))); ?>:', '<?php echo (isset($this->_rootref['ON_PAGE'])) ? $this->_rootref['ON_PAGE'] : ''; ?>');
var per_page = '<?php echo (isset($this->_rootref['PER_PAGE'])) ? $this->_rootref['PER_PAGE'] : ''; ?>';
var base_url = '<?php echo (isset($this->_rootref['A_BASE_URL'])) ? $this->_rootref['A_BASE_URL'] : ''; ?>';
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
{
if (base_url.indexOf('?') == -1)
{
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
}
else
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
}
}
}
/**
* Find a member
*/
function find_username(url)
{
popup(url, 760, 570, '_usersearch');
return false;
}
/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
var parent = document.getElementById(id);
if (!parent)
{
eval('parent = document.' + id);
}
if (!parent)
{
return;
}
var rb = parent.getElementsByTagName('input');
for (var r = 0; r < rb.length; r++)
{
if (rb[r].name.substr(0, name.length) == name)
{
rb[r].checked = state;
}
}
}
<?php if (sizeof($this->_tpldata['_file'])) { ?>
/**
* Play quicktime file by determining it's width/height
* from the displayed rectangle area
*
* Only defined if there is a file block present.
*/
function play_qt_file(obj)
{
var rectangle = obj.GetRectangle();
if (rectangle)
{
rectangle = rectangle.split(',')
var x1 = parseInt(rectangle[0]);
var x2 = parseInt(rectangle[2]);
var y1 = parseInt(rectangle[1]);
var y2 = parseInt(rectangle[3]);
var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
}
else
{
var width = 200;
var height = 0;
}
obj.width = width;
obj.height = height + 16;
obj.SetControllerVisible(true);
obj.Play();
}
<?php } ?>
// --></script>
</p>
<?php $this->_tpl_include('ads/ads.js'); ?>
<p>
<script src="<?php echo (isset($this->_rootref['ROOT_PATH'])) ? $this->_rootref['ROOT_PATH'] : ''; ?>jquery_core_mini.js" type="text/javascript"></script>
<script src="<?php echo (isset($this->_rootref['ROOT_PATH'])) ? $this->_rootref['ROOT_PATH'] : ''; ?>jquery_cookie_mini.js" type="text/javascript"></script>
</p>
<?php if ($this->_rootref['ADS_2']) { ?>
<br />
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt><?php echo ((isset($this->_rootref['L_ADVERTISEMENT'])) ? $this->_rootref['L_ADVERTISEMENT'] : ((isset($user->lang['ADVERTISEMENT'])) ? $user->lang['ADVERTISEMENT'] : '{ ADVERTISEMENT }')); ?></dt>
</dl>
</li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #000000; margin: 0px auto; text-align: center;">
<?php echo (isset($this->_rootref['ADS_2'])) ? $this->_rootref['ADS_2'] : ''; ?>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<?php } ?>
<p><a name="top"></a></p>
<a href="<?php echo (isset($this->_rootref['U_INDEX'])) ? $this->_rootref['U_INDEX'] : ''; ?>"><img src="http://s016.radikal.ru/i334/1205/1f/177e7dc1cec2.png" border="0" /></a>
<div id="menubar"><?php echo (isset($this->_rootref['ADS_1'])) ? $this->_rootref['ADS_1'] : ''; ?>
<table style="width: 100%;" border="0" cellspacing="0">
<tbody>
<tr>
<td class="genmed"><?php if (! $this->_rootref['S_IS_BOT']) { ?><a href="<?php echo (isset($this->_rootref['U_LOGIN_LOGOUT'])) ? $this->_rootref['U_LOGIN_LOGOUT'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_login.gif" border="0" alt="*" width="12" height="13" /> <?php echo ((isset($this->_rootref['L_LOGIN_LOGOUT'])) ? $this->_rootref['L_LOGIN_LOGOUT'] : ((isset($user->lang['LOGIN_LOGOUT'])) ? $user->lang['LOGIN_LOGOUT'] : '{ LOGIN_LOGOUT }')); ?></a> <?php } if ($this->_rootref['U_RESTORE_PERMISSIONS']) { ?> <a href="<?php echo (isset($this->_rootref['U_RESTORE_PERMISSIONS'])) ? $this->_rootref['U_RESTORE_PERMISSIONS'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_login.gif" border="0" alt="*" width="12" height="13" /> <?php echo ((isset($this->_rootref['L_RESTORE_PERMISSIONS'])) ? $this->_rootref['L_RESTORE_PERMISSIONS'] : ((isset($user->lang['RESTORE_PERMISSIONS'])) ? $user->lang['RESTORE_PERMISSIONS'] : '{ RESTORE_PERMISSIONS }')); ?></a><?php } if ($this->_rootref['S_BOARD_DISABLED'] && $this->_rootref['S_USER_LOGGED_IN']) { ?> <span style="color: red;"><?php echo ((isset($this->_rootref['L_BOARD_DISABLED'])) ? $this->_rootref['L_BOARD_DISABLED'] : ((isset($user->lang['BOARD_DISABLED'])) ? $user->lang['BOARD_DISABLED'] : '{ BOARD_DISABLED }')); ?></span><?php } if (! $this->_rootref['S_IS_BOT']) { if ($this->_rootref['S_USER_LOGGED_IN']) { if ($this->_rootref['S_DISPLAY_PM']) { ?> <a href="<?php echo (isset($this->_rootref['U_PRIVATEMSGS'])) ? $this->_rootref['U_PRIVATEMSGS'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_message.gif" border="0" alt="*" width="12" height="13" /> <?php echo (isset($this->_rootref['PRIVATE_MESSAGE_INFO'])) ? $this->_rootref['PRIVATE_MESSAGE_INFO'] : ''; if ($this->_rootref['PRIVATE_MESSAGE_INFO_UNREAD']) { ?>, <?php echo (isset($this->_rootref['PRIVATE_MESSAGE_INFO_UNREAD'])) ? $this->_rootref['PRIVATE_MESSAGE_INFO_UNREAD'] : ''; } ?></a><?php } } else if ($this->_rootref['S_REGISTER_ENABLED'] && ! ( $this->_rootref['S_SHOW_COPPA'] || $this->_rootref['S_REGISTRATION'] )) { ?> <a href="<?php echo (isset($this->_rootref['U_REGISTER'])) ? $this->_rootref['U_REGISTER'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_register.gif" border="0" alt="*" width="12" height="13" /> <?php echo ((isset($this->_rootref['L_REGISTER'])) ? $this->_rootref['L_REGISTER'] : ((isset($user->lang['REGISTER'])) ? $user->lang['REGISTER'] : '{ REGISTER }')); ?></a> <?php } } ?></td>
<td class="genmed" align="<?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>"><?php if ($this->_rootref['U_ACP']) { ?><a href="<?php echo (isset($this->_rootref['U_ACP'])) ? $this->_rootref['U_ACP'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_admin.gif" border="0" alt="*" width="12" height="13" />ACP</a><?php } ?> <a href="<?php echo (isset($this->_rootref['U_FAQ'])) ? $this->_rootref['U_FAQ'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_faq.gif" border="0" alt="*" width="12" height="13" /> <?php echo ((isset($this->_rootref['L_FAQ'])) ? $this->_rootref['L_FAQ'] : ((isset($user->lang['FAQ'])) ? $user->lang['FAQ'] : '{ FAQ }')); ?></a> <a href="<?php echo (isset($this->_rootref['ROOT_PATH'])) ? $this->_rootref['ROOT_PATH'] : ''; ?>mchat.php" title="Чат"> ☼ Чат</a> <?php if ($this->_rootref['S_DISPLAY_SEARCH']) { ?> <a href="<?php echo (isset($this->_rootref['U_SEARCH'])) ? $this->_rootref['U_SEARCH'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_search.gif" border="0" alt="*" width="12" height="13" /> <?php echo ((isset($this->_rootref['L_SEARCH'])) ? $this->_rootref['L_SEARCH'] : ((isset($user->lang['SEARCH'])) ? $user->lang['SEARCH'] : '{ SEARCH }')); ?></a><?php } if (! $this->_rootref['S_IS_BOT']) { if ($this->_rootref['S_DISPLAY_MEMBERLIST']) { ?> <a href="<?php echo (isset($this->_rootref['U_MEMBERLIST'])) ? $this->_rootref['U_MEMBERLIST'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_members.gif" border="0" alt="*" width="12" height="13" /> <?php echo ((isset($this->_rootref['L_MEMBERLIST'])) ? $this->_rootref['L_MEMBERLIST'] : ((isset($user->lang['MEMBERLIST'])) ? $user->lang['MEMBERLIST'] : '{ MEMBERLIST }')); ?></a><?php } if ($this->_rootref['S_USER_LOGGED_IN']) { ?> <a href="<?php echo (isset($this->_rootref['U_PROFILE'])) ? $this->_rootref['U_PROFILE'] : ''; ?>"><img src="<?php echo (isset($this->_rootref['T_THEME_PATH'])) ? $this->_rootref['T_THEME_PATH'] : ''; ?>/images/icon_mini_profile.gif" border="0" alt="*" width="12" height="13" /> <?php echo ((isset($this->_rootref['L_PROFILE'])) ? $this->_rootref['L_PROFILE'] : ((isset($user->lang['PROFILE'])) ? $user->lang['PROFILE'] : '{ PROFILE }')); ?></a><?php } } ?></td>
</tr>
</tbody>
</table>
</div>
<div id="datebar">
<table style="width: 100%;" border="0" cellspacing="0">
<tbody>
<tr>
<td class="gensmall"><?php if ($this->_rootref['S_USER_LOGGED_IN']) { echo (isset($this->_rootref['LAST_VISIT_DATE'])) ? $this->_rootref['LAST_VISIT_DATE'] : ''; } ?></td>
<td class="gensmall" align="<?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>"><?php echo (isset($this->_rootref['CURRENT_TIME'])) ? $this->_rootref['CURRENT_TIME'] : ''; ?><br /></td>
</tr>
</tbody>
</table>
</div>
<div id="wrapcentre"><?php if ($this->_rootref['S_DISPLAY_SEARCH']) { ?>
<p class="searchbar"><span style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_BEGIN'])) ? $this->_rootref['S_CONTENT_FLOW_BEGIN'] : ''; ?>;"><a href="<?php echo (isset($this->_rootref['U_SEARCH_UNANSWERED'])) ? $this->_rootref['U_SEARCH_UNANSWERED'] : ''; ?>"><?php echo ((isset($this->_rootref['L_SEARCH_UNANSWERED'])) ? $this->_rootref['L_SEARCH_UNANSWERED'] : ((isset($user->lang['SEARCH_UNANSWERED'])) ? $user->lang['SEARCH_UNANSWERED'] : '{ SEARCH_UNANSWERED }')); ?></a> | <a href="<?php echo (isset($this->_rootref['U_SEARCH_ACTIVE_TOPICS'])) ? $this->_rootref['U_SEARCH_ACTIVE_TOPICS'] : ''; ?>"><?php echo ((isset($this->_rootref['L_SEARCH_ACTIVE_TOPICS'])) ? $this->_rootref['L_SEARCH_ACTIVE_TOPICS'] : ((isset($user->lang['SEARCH_ACTIVE_TOPICS'])) ? $user->lang['SEARCH_ACTIVE_TOPICS'] : '{ SEARCH_ACTIVE_TOPICS }')); ?></a></span> <?php if ($this->_rootref['S_USER_LOGGED_IN']) { ?> <span style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;"><a href="<?php echo (isset($this->_rootref['U_SEARCH_UNREAD'])) ? $this->_rootref['U_SEARCH_UNREAD'] : ''; ?>"><?php echo ((isset($this->_rootref['L_SEARCH_UNREAD'])) ? $this->_rootref['L_SEARCH_UNREAD'] : ((isset($user->lang['SEARCH_UNREAD'])) ? $user->lang['SEARCH_UNREAD'] : '{ SEARCH_UNREAD }')); ?></a> | <a href="<?php echo (isset($this->_rootref['U_SEARCH_NEW'])) ? $this->_rootref['U_SEARCH_NEW'] : ''; ?>"><?php echo ((isset($this->_rootref['L_SEARCH_NEW'])) ? $this->_rootref['L_SEARCH_NEW'] : ((isset($user->lang['SEARCH_NEW'])) ? $user->lang['SEARCH_NEW'] : '{ SEARCH_NEW }')); ?></a> | <a href="<?php echo (isset($this->_rootref['U_SEARCH_SELF'])) ? $this->_rootref['U_SEARCH_SELF'] : ''; ?>"><?php echo ((isset($this->_rootref['L_SEARCH_SELF'])) ? $this->_rootref['L_SEARCH_SELF'] : ((isset($user->lang['SEARCH_SELF'])) ? $user->lang['SEARCH_SELF'] : '{ SEARCH_SELF }')); ?></a></span> <?php } ?></p>
<?php } ?> <br style="clear: both;" /> <?php if ($this->_rootref['ADS_4']) { ?> <br />
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header"> <dl class="icon"> <dt><?php echo ((isset($this->_rootref['L_ADVERTISEMENT'])) ? $this->_rootref['L_ADVERTISEMENT'] : ((isset($user->lang['ADVERTISEMENT'])) ? $user->lang['ADVERTISEMENT'] : '{ ADVERTISEMENT }')); ?></dt> </dl> </li>
</ul>
<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #000000; margin: 0px auto; text-align: center;"><?php echo (isset($this->_rootref['ADS_4'])) ? $this->_rootref['ADS_4'] : ''; ?></div>
<span class="corners-bottom"><span></span></span></div>
</div>
<br /> <?php } $this->_tpl_include('breadcrumbs.html'); if (( $this->_rootref['ADS_5'] && $_postrow_val['S_FIRST_ROW'] ) || ( $this->_rootref['ADS_6'] && ! $_postrow_val['S_FIRST_ROW'] )) { ?>
<div class="post bg3">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="postbody" style="width: 100%;">
<h3><?php echo ((isset($this->_rootref['L_ADVERTISEMENT'])) ? $this->_rootref['L_ADVERTISEMENT'] : ((isset($user->lang['ADVERTISEMENT'])) ? $user->lang['ADVERTISEMENT'] : '{ ADVERTISEMENT }')); ?></h3>
<div style="font-size: 1.1em; margin: 0px auto; text-align: center;"><?php if ($_postrow_val['S_FIRST_ROW']) { echo (isset($this->_rootref['ADS_5'])) ? $this->_rootref['ADS_5'] : ''; } else { echo (isset($this->_rootref['ADS_6'])) ? $this->_rootref['ADS_6'] : ''; } ?></div>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<?php } ?> <br /></div>