$tpl_main = str_replace('', 'xml:lang="'.$lang_common['lang_identifier'].'" lang="'.$lang_common['lang_identifier'].'" dir="'.$lang_common['lang_direction'].'"', $tpl_main);
// END SUBST -
// START SUBST -
ob_start();
// Is this a page that we want search index spiders to index?
if (!defined('PUN_ALLOW_INDEX'))
echo ' '."\n";
else
echo ' '."\n";
// Should we output a MicroID? http://microid.org/
if (strpos(PUN_PAGE, 'profile') === 0)
echo ' '."\n";
?>
'."\n";
echo ' '."\n";
}
else if (PUN_PAGE == 'viewforum')
{
echo ' '."\n";
echo ' '."\n";
}
?>
2)
echo ' '."\n";
// If there are other page navigation links (first, next, prev and last)
if (!empty($pun_page['nav']))
echo implode("\n", $pun_page['nav'])."\n";
?>
', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST -
// START SUBST -
$tpl_main = str_replace('', 'id="pun-'.PUN_PAGE.'"', $tpl_main);
// END SUBST -
// START SUBST -
$tpl_main = str_replace('', ''."\n", $tpl_main);
// END SUBST -
// START SUBST -
$tpl_main = str_replace('', ''."\n\t".'
'.pun_htmlencode($pun_config['o_board_title']).'
'."\n".'
'."\n", $tpl_main);
// END SUBST -
// START SUBST -
if ($pun_config['o_board_desc'] != '')
$tpl_main = str_replace('', ''."\n\t".'
'.pun_htmlencode($pun_config['o_board_desc']).'
'."\n".'
'."\n", $tpl_main);
// END SUBST -
// START SUBST -
$tpl_main = str_replace('', ''."\n\t".'
'."\n\t\t".generate_navlinks()."\n\t".' '."\n".'
'."\n", $tpl_main);
// END SUBST -
// START SUBST -
$tpl_main = str_replace('', ''."\n\t".'
'.generate_crumbs(false).'
'."\n".'
'."\n", $tpl_main);
// END SUBST -
// START SUBST -
ob_start();
if ($pun_user['is_guest'])
{
$visit_msg = array(
''.$lang_common['Not logged in'].' ',
''.$lang_common['Login nag'].' '
);
}
else
{
$visit_msg = array(
''.sprintf($lang_common['Logged in as'], ''.pun_htmlencode($pun_user['username']).' ').' ',
''.sprintf($lang_common['Last visit'], ''.format_time($pun_user['last_visit']).' ').' '
);
$visit_links = array();
if ($pun_user['g_search'] == '1')
$visit_links[] = ''.$lang_common['New posts'].' ';
$visit_links[] = ''.$lang_common['Mark all as read'].' ';
if ($pun_user['is_admmod'])
{
$query = array(
'SELECT' => 'COUNT(r.id)',
'FROM' => 'reports AS r',
'WHERE' => 'r.zapped IS NULL',
);
($hook = get_hook('hd_qr_get_unread_reports_count')) ? eval($hook) : null;
$result_header = $pun_db->query_build($query) or error(__FILE__, __LINE__);
if ($pun_db->result($result_header))
$visit_links[] = ''.$lang_common['New reports'].' ';
}
}
($hook = get_hook('hd_visit')) ? eval($hook) : null;
?>
', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST -
// START SUBST -
$alert_items = array();
if ($pun_user['g_id'] == PUN_ADMIN)
{
if ($pun_config['o_check_for_updates'] == '1')
{
if ($pun_updates['fail'])
$alert_items[] = ''.$lang_common['Updates'].' '.$lang_common['Updates failed'].'
';
else if (isset($pun_updates['version']) && isset($pun_updates['hotfix']))
$alert_items[] = ''.$lang_common['Updates'].' '.sprintf($lang_common['Updates version n hf'], $pun_updates['version']).'
';
else if (isset($pun_updates['version']))
$alert_items[] = ''.$lang_common['Updates'].' '.sprintf($lang_common['Updates version'], $pun_updates['version']).'
';
else if (isset($pun_updates['hotfix']))
$alert_items[] = ''.$lang_common['Updates'].' '.$lang_common['Updates hf'].'
';
}
// Warn the admin that maintenance mode is enabled
if ($pun_config['o_maintenance'] == '1')
$alert_items[] = ''.$lang_common['Maintenance mode'].' '.$lang_common['Maintenance alert'].'
';
// Warn the admin that the install script is accessible
if (file_exists(PUN_ROOT.'install.php'))
$alert_items[] = ''.$lang_common['Install script'].' '.$lang_common['Install script alert'].'
';
// Warn the admin that the database update script is accessible
if (file_exists(PUN_ROOT.'db_update.php'))
$alert_items[] = ''.$lang_common['Update script'].' '.$lang_common['Update script alert'].'
';
// Warn the admin that the script to disable maintenance mode is accessible
if (file_exists(PUN_ROOT.'turn_off_maintenance_mode.php'))
$alert_items[] = ''.$lang_common['Maint script'].' '.$lang_common['Maint script alert'].'
';
}
($hook = get_hook('hd_alert')) ? eval($hook) : null;
if (!empty($alert_items))
{
ob_start();
?>
', $tpl_temp, $tpl_main);
ob_end_clean();
}
// END SUBST -
// START SUBST -
if ($pun_config['o_announcement'] == '1')
$tpl_main = str_replace('', ''."\n\t".'
'.($pun_config['o_announcement_heading'] != '' ? "\n\t\t".'
'.$pun_config['o_announcement_heading'].' ' : '')."\n\t\t".$pun_config['o_announcement_message']."\n\t".''."\n".'
'."\n", $tpl_main);
// END SUBST -
// START SUBST -
ob_start();
($hook = get_hook('hd_end')) ? eval($hook) : null;
define('PUN_HEADER', 1);