while (preg_match('##', $tpl_main, $cur_include)) { if (!file_exists(PUN_ROOT.'include/user/'.$cur_include[1].'.'.$cur_include[2])) error('Unable to process user include '.htmlspecialchars($cur_include[0]).' from template main.tpl. There is no such file in folder /include/user/'); ob_start(); include PUN_ROOT.'include/user/'.$cur_include[1].'.'.$cur_include[2]; $tpl_temp = ob_get_contents(); $tpl_main = str_replace($cur_include[0], $tpl_temp, $tpl_main); ob_end_clean(); } // END SUBST - // START SUBST - $tpl_main = str_replace('', $lang_common['lang_direction'], $tpl_main); // END SUBST - // START SUBST - $tpl_main = str_replace('', $lang_common['lang_encoding'], $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"; ?> <?php echo $page_title ?>
24-7GT Forums
Chat | Off Topic | Community
Chat | Off Topic | Community
'.$lang_common['Show your posts'].''."\n\t\t\t".''."\n"; echo "\t\t\t\t".''.$lang_common['Show unanswered posts'].''."\n\t\t\t".''."\n"; echo "\t\t\t\t".'Topic Tracker'."\n"; echo "\n\t\t\t".''.$lang_common['Show recent posts'].''."\n"; ?>
'; if (defined('PUN_ADMIN_CONSOLE')) echo ''."\n"; if (isset($required_fields)) { // Output JavaScript to validate form (make sure required fields are filled out) ?> '; $tpl_temp = trim(ob_get_contents()); $tpl_main = str_replace('', $tpl_temp, $tpl_main); ob_end_clean(); // END SUBST - // START SUBST - if (isset($focus_element)) { $tpl_main = str_replace('', '', $tpl_main); } // END SUBST - // START SUBST - $tpl_main = str_replace('', htmlspecialchars(basename($_SERVER['PHP_SELF'], '.php')), $tpl_main); // END SUBST - // START SUBST - $tpl_main = str_replace('','
'."\n\t\t\t". generate_navlinks()."\n\t\t".'
', $tpl_main); // END SUBST - // START SUBST - if ($pun_user['is_guest']) $tpl_temp = ''."\n\t\t\t".''.$lang_common['Not logged in'].''."\n\t\t".''; else { $tpl_temp = ''."\n\t\t\t".' '."\n\t\t\t\t".''.$lang_common['Logged in as'].' '.pun_htmlspecialchars($pun_user['username']).''."\n\t\t\t\t".''.$lang_common['Last visit'].': '.format_time($pun_user['last_visit']).' '; if ($pun_user['g_id'] < PUN_GUEST) { $result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error()); if ($db->result($result_header)) $tpl_temp .= "\n\t\t\t\t".'There are new reports '; if ($pun_config['o_maintenance'] == '1') $tpl_temp .= "\n\t\t\t\t".'Maintenance mode is enabled!'; } require(PUN_ROOT.'include/pms/header_new_messages.php'); if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php'))) $tpl_temp .= ''."".''.''.$lang_common['Show new posts'].' '.''.$lang_common['Mark all as read'].''.''.''.''; else $tpl_temp .= "\n\t\t\t".''."\n\t\t\t".''."\n\t\t".''; } $tpl_main = str_replace('', $tpl_temp, $tpl_main); // END SUBST - // START SUBST - if ($pun_config['o_announcement'] == '1') { ob_start(); ?>

', $tpl_temp, $tpl_main); ob_end_clean(); } else $tpl_main = str_replace('', '', $tpl_main); // END SUBST - // START SUBST - ob_start(); define('PUN_HEADER', 1);