| <?php |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| if (!defined('PUN')) |
| exit; |
| |
| $tpl_temp = trim(ob_get_contents()); |
| $tpl_main = str_replace('<pun_main>', $tpl_temp, $tpl_main); |
| ob_end_clean(); |
| |
| |
| |
| |
| ob_start(); |
| |
| ?> |
| <div id="brdfooter" class="block"> |
| <h2><span><?php echo $lang_common['Board footer'] ?></span></h2> |
| <div class="box"> |
| <div class="inbox"> |
| <?php |
| |
| |
| $footer_style = isset($footer_style) ? $footer_style : NULL; |
| |
| if ($footer_style == 'index' || $footer_style == 'search') |
| { |
| if (!$pun_user['is_guest']) |
| { |
| echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt>'."\n\t\t\t\t".'<dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n"; |
| echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n"; |
| |
| if ($pun_config['o_subscriptions'] == '1') |
| echo "\t\t\t\t".'<dd><a href="search.php?action=show_subscriptions">'.$lang_common['Show subscriptions'].'</a></dd>'."\n"; |
| |
| echo "\t\t\t\t".'<dd><a href="search.php?action=show_user&user_id='.$pun_user['id'].'">'.$lang_common['Show your posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n"; |
| } |
| else |
| { |
| if ($pun_user['g_search'] == '1') |
| { |
| echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt><dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n"; |
| echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n"; |
| } |
| } |
| } |
| else if ($footer_style == 'viewforum' || $footer_style == 'viewtopic') |
| { |
| echo "\n\t\t\t".'<div class="conl">'."\n"; |
| |
| |
| if ($pun_config['o_quickjump'] == '1') |
| { |
| |
| @include PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php'; |
| if (!defined('PUN_QJ_LOADED')) |
| { |
| require_once PUN_ROOT.'include/cache.php'; |
| generate_quickjump_cache($pun_user['g_id']); |
| require PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php'; |
| } |
| } |
| |
| if ($footer_style == 'viewforum' && $is_admmod) |
| echo "\t\t\t".'<p id="modcontrols"><a href="moderate.php?fid='.$forum_id.'&p='.$p.'">'.$lang_common['Moderate forum'].'</a></p>'."\n"; |
| else if ($footer_style == 'viewtopic' && $is_admmod) |
| { |
| echo "\t\t\t".'<dl id="modcontrols"><dt><strong>'.$lang_topic['Mod controls'].'</strong></dt><dd><a href="moderate.php?fid='.$forum_id.'&tid='.$id.'&p='.$p.'">'.$lang_common['Delete posts'].'</a></dd>'."\n"; |
| echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&move_topics='.$id.'">'.$lang_common['Move topic'].'</a></dd>'."\n"; |
| |
| if ($cur_topic['closed'] == '1') |
| echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&open='.$id.'">'.$lang_common['Open topic'].'</a></dd>'."\n"; |
| else |
| echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&close='.$id.'">'.$lang_common['Close topic'].'</a></dd>'."\n"; |
| |
| if ($cur_topic['sticky'] == '1') |
| echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n"; |
| else |
| echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd></dl>'."\n"; |
| } |
| |
| echo "\t\t\t".'</div>'."\n"; |
| } |
| |
| ?> |
| <?php |
| |
| |
| if (defined('PUN_DEBUG')) |
| { |
| |
| list($usec, $sec) = explode(' ', microtime()); |
| $time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start); |
| echo "\t\t\t".'<p class="conr">[ Generated in '.$time_diff.' seconds, '.$db->get_num_queries().' queries executed ]</p>'."\n"; |
| } |
| |
| ?> |
| <div class="clearer"></div> |
| </div> |
| </div> |
| <div class="brdmenu" class="inbox"><?php echo "\n\t\t\t" . generate_navlinks() . "\n\t\t" ?> </div> |
| <div class="pageline"></div> |
| <div class="credits">Powered by <a href="http://punbb.informer.com/">PunBB</a><?php if ($pun_config['o_show_version'] == '1') echo ' '.$pun_config['o_cur_version']; ?><br />© Copyright 2002–2008 PunBB</div> |
| </div> |
| <?php |
| |
| |
| |
| $db->end_transaction(); |
| |
| |
| if (defined('PUN_SHOW_QUERIES')) |
| display_saved_queries(); |
| |
| $tpl_temp = trim(ob_get_contents()); |
| $tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main); |
| ob_end_clean(); |
| |
| |
| |
| |
| $db->close(); |
| |
| |
| exit($tpl_main); |
| |