Blame Artworks/Webenv/Punbb/footer.php

Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
/***********************************************************************
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
  Copyright (C) 2002-2008  PunBB
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
  This file is part of PunBB.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
  PunBB is free software; you can redistribute it and/or modify it
Alain Reguera Delgado 46de3c
  under the terms of the GNU General Public License as published
Alain Reguera Delgado 46de3c
  by the Free Software Foundation; either version 2 of the License,
Alain Reguera Delgado 46de3c
  or (at your option) any later version.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
  PunBB is distributed in the hope that it will be useful, but
Alain Reguera Delgado 46de3c
  WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado 46de3c
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Alain Reguera Delgado 46de3c
  GNU General Public License for more details.
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
  You should have received a copy of the GNU General Public License
Alain Reguera Delgado 46de3c
  along with this program; if not, write to the Free Software
Alain Reguera Delgado 46de3c
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
Alain Reguera Delgado 46de3c
  MA  02111-1307  USA
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
************************************************************************/
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// Make sure no one attempts to run this script "directly"
Alain Reguera Delgado 46de3c
if (!defined('PUN'))
Alain Reguera Delgado 46de3c
	exit;
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
$tpl_temp = trim(ob_get_contents());
Alain Reguera Delgado 46de3c
$tpl_main = str_replace('<pun_main>', $tpl_temp, $tpl_main);
Alain Reguera Delgado 46de3c
ob_end_clean();
Alain Reguera Delgado 46de3c
// END SUBST - <pun_main>
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// START SUBST - <pun_footer>
Alain Reguera Delgado 46de3c
ob_start();
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
?>
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
	

Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
		
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// If no footer style has been specified, we use the default (only copyright/debug info)
Alain Reguera Delgado 46de3c
$footer_style = isset($footer_style) ? $footer_style : NULL;
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
if ($footer_style == 'index' || $footer_style == 'search')
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	if (!$pun_user['is_guest'])
Alain Reguera Delgado 46de3c
	{
Alain Reguera Delgado 46de3c
		echo "\n\t\t\t".'
'."\n\t\t\t\t".'
'.$lang_common['Search links'].'
'."\n\t\t\t\t".'
'.$lang_common['Show recent posts'].'
'."\n";
Alain Reguera Delgado 46de3c
		echo "\t\t\t\t".'
'.$lang_common['Show unanswered posts'].'
'."\n";
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
		if ($pun_config['o_subscriptions'] == '1')
Alain Reguera Delgado 46de3c
			echo "\t\t\t\t".'
'.$lang_common['Show subscriptions'].'
'."\n";
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
		echo "\t\t\t\t".'
'.$lang_common['Show your posts'].'
'."\n\t\t\t".''."\n";
Alain Reguera Delgado 46de3c
	}
Alain Reguera Delgado 46de3c
	else
Alain Reguera Delgado 46de3c
	{
Alain Reguera Delgado 46de3c
		if ($pun_user['g_search'] == '1')
Alain Reguera Delgado 46de3c
		{
Alain Reguera Delgado 46de3c
			echo "\n\t\t\t".'
'."\n\t\t\t\t".'
'.$lang_common['Search links'].'
'.$lang_common['Show recent posts'].'
'."\n";
Alain Reguera Delgado 46de3c
			echo "\t\t\t\t".'
'.$lang_common['Show unanswered posts'].'
'."\n\t\t\t".''."\n";
Alain Reguera Delgado 46de3c
		}
Alain Reguera Delgado 46de3c
	}
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c
else if ($footer_style == 'viewforum' || $footer_style == 'viewtopic')
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	echo "\n\t\t\t".'
'."\n";
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
	// Display the "Jump to" drop list
Alain Reguera Delgado 46de3c
	if ($pun_config['o_quickjump'] == '1')
Alain Reguera Delgado 46de3c
	{
Alain Reguera Delgado 46de3c
		// Load cached quickjump
Alain Reguera Delgado 46de3c
		@include PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
Alain Reguera Delgado 46de3c
		if (!defined('PUN_QJ_LOADED'))
Alain Reguera Delgado 46de3c
		{
Alain Reguera Delgado 46de3c
			require_once PUN_ROOT.'include/cache.php';
Alain Reguera Delgado 46de3c
			generate_quickjump_cache($pun_user['g_id']);
Alain Reguera Delgado 46de3c
			require PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
Alain Reguera Delgado 46de3c
		}
Alain Reguera Delgado 46de3c
	}
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
	if ($footer_style == 'viewforum' && $is_admmod)
Alain Reguera Delgado 46de3c
		echo "\t\t\t".'

'.$lang_common['Moderate forum'].'

'."\n";
Alain Reguera Delgado 46de3c
	else if ($footer_style == 'viewtopic' && $is_admmod)
Alain Reguera Delgado 46de3c
	{
Alain Reguera Delgado 46de3c
		echo "\t\t\t".'
'.$lang_topic['Mod controls'].'
'.$lang_common['Delete posts'].'
'."\n";
Alain Reguera Delgado 46de3c
		echo "\t\t\t".'
'.$lang_common['Move topic'].'
'."\n";
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
		if ($cur_topic['closed'] == '1')
Alain Reguera Delgado 46de3c
			echo "\t\t\t".'
'.$lang_common['Open topic'].'
'."\n";
Alain Reguera Delgado 46de3c
		else
Alain Reguera Delgado 46de3c
			echo "\t\t\t".'
'.$lang_common['Close topic'].'
'."\n";
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
		if ($cur_topic['sticky'] == '1')
Alain Reguera Delgado 46de3c
			echo "\t\t\t".'
'.$lang_common['Unstick topic'].'
'."\n";
Alain Reguera Delgado 46de3c
		else
Alain Reguera Delgado 46de3c
			echo "\t\t\t".'
'.$lang_common['Stick topic'].'
'."\n";
Alain Reguera Delgado 46de3c
	}
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
	echo "\t\t\t".''."\n";
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
?>
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// Display debug info (if enabled/defined)
Alain Reguera Delgado 46de3c
if (defined('PUN_DEBUG'))
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	// Calculate script generation time
Alain Reguera Delgado 46de3c
	list($usec, $sec) = explode(' ', microtime());
Alain Reguera Delgado 46de3c
	$time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);
Alain Reguera Delgado 46de3c
	echo "\t\t\t".'

[ Generated in '.$time_diff.' seconds, '.$db->get_num_queries().' queries executed ]

'."\n";
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
?>
Alain Reguera Delgado 46de3c
			
Alain Reguera Delgado 46de3c
		
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Powered by PunBB
© Copyright 2002–2008 PunBB
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// End the transaction
Alain Reguera Delgado 46de3c
$db->end_transaction();
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// Display executed queries (if enabled)
Alain Reguera Delgado 46de3c
if (defined('PUN_SHOW_QUERIES'))
Alain Reguera Delgado 46de3c
	display_saved_queries();
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
$tpl_temp = trim(ob_get_contents());
Alain Reguera Delgado 46de3c
$tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main);
Alain Reguera Delgado 46de3c
ob_end_clean();
Alain Reguera Delgado 46de3c
// END SUBST - <pun_footer>
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// Close the db connection (and free up any result data)
Alain Reguera Delgado 46de3c
$db->close();
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
// Spit out the page
Alain Reguera Delgado 46de3c
exit($tpl_main);