Location: PHPKode > projects > Netjukebox - the flexible media share > netjukebox/include/footer.inc.php
<?php
//  +------------------------------------------------------------------------+
//  | netjukebox, Copyright © 2001-2013 Willem Bartels                       |
//  |                                                                        |
//  | http://www.netjukebox.nl                                               |
//  | http://forum.netjukebox.nl                                             |
//  |                                                                        |
//  | This program is free software: you can redistribute it and/or modify   |
//  | it under the terms of the GNU General Public License as published by   |
//  | the Free Software Foundation, either version 3 of the License, or      |
//  | (at your option) any later version.                                    |
//  |                                                                        |
//  | This program is distributed in the hope that it will be useful,        |
//  | but WITHOUT ANY WARRANTY; without even the implied warranty of         |
//  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          |
//  | GNU General Public License for more details.                           |
//  |                                                                        |
//  | You should have received a copy of the GNU General Public License      |
//  | along with this program.  If not, see <http://www.gnu.org/licenses/>.  |
//  +------------------------------------------------------------------------+




//  +------------------------------------------------------------------------+
//  | footer.inc.php                                                         |
//  +------------------------------------------------------------------------+
if (isset($cfg['footer']) && $cfg['footer'] == 'close') {
	echo '<script type="text/javascript">document.getElementById(\'execution_time\').innerHTML=\'' . executionTime() . '\';</script>' . "\n";
	echo '</body>' . "\n";
	echo '</html>';
	exit();
}

$footer = '<ul id="footer">' . "\n\t";
$footer .= ($cfg['username'] != '') ? '<li><a href="index.php?authenticate=logout">Logout: ' . html($cfg['username']) . '</a></li>' : '';
$footer .= '<li><a href="about.php">netjukebox ' . html(NJB_VERSION) . '</a></li>';
$footer .= '<li><span class="text">Script execution time: <span id="execution_time">' . executionTime() . '</span></span></li>' . "\n";
$footer .= '</ul>' . "\n";

require_once(NJB_HOME_DIR . 'skin/' . $cfg['skin'] . '/template.footer.php');

if (isset($cfg['footer']) && $cfg['footer'] == 'dynamic') {
	echo '<script type="text/javascript">init(); sessionCookie(); window.onbeforeunload = sessionCookie;</script>' . "\n";
	echo '<!-- dynamic content -->' . "\n";
	@ob_flush();
	flush();
}
else {
	echo '<script type="text/javascript">' . (cookie('netjukebox_sid') ? 'init(); sessionCookie(); window.onbeforeunload = sessionCookie;' : 'init();') . '</script>' . "\n";
	echo '</body>' . "\n";
	echo '</html>';
	exit();
}
Return current item: Netjukebox - the flexible media share