1<?php 2 /** 3 * Closes out interface and db connections 4 * @author Dan Kuykendall <seek3r@phpgroupware.org> 5 * @author Joseph Engo <jengo@phpgroupware.org> 6 * @copyright Copyright (C) 2000-2004 Free Software Foundation, Inc. http://www.fsf.org/ 7 * @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General Public License 8 * @package phpgwapi 9 * @subpackage utilities 10 * @version $Id: footer.inc.php 16200 2005-11-17 22:51:25Z skwashd $ 11 */ 12 13 $d1 = strtolower(substr(PHPGW_APP_INC,0,3)); 14 if($d1 == 'htt' || $d1 == 'ftp') 15 { 16 echo "Failed attempt to break in via an old Security Hole!<br />\n"; 17 exit; 18 } unset($d1); 19 20 /**************************************************************************\ 21 * Include the apps footer files if it exists * 22 \**************************************************************************/ 23 if ( PHPGW_APP_INC != '' 24 && PHPGW_APP_INC != PHPGW_API_INC // this prevents an endless inclusion on the homepage (some apps set currentapp in hook_home => it's not reliable) 25 && (file_exists (PHPGW_APP_INC . '/footer.inc.php') || isset($GLOBALS['phpgw_info']['menuaction'])) 26 && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' 27 && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' 28 && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' 29 && ( !isset($GLOBALS['phpgw_info']['flags']['noappfooter']) || $GLOBALS['phpgw_info']['flags']['noappfooter']) ) 30 { 31 if ($GLOBALS['phpgw_info']['menuaction']) 32 { 33 list($app,$class,$method) = explode('.',$GLOBALS['phpgw_info']['menuaction']); 34 if (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['footer']) 35 { 36// eval("\$GLOBALS[$class]->footer();"); 37 $GLOBALS[$class]->footer(); 38 } 39 elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php')) 40 { 41 include(PHPGW_APP_INC . '/footer.inc.php'); 42 } 43 } 44 elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php')) 45 { 46 include(PHPGW_APP_INC . '/footer.inc.php'); 47 } 48 } 49 if(function_exists('parse_navbar_end')) 50 { 51 parse_navbar_end(); 52 } 53 if (DEBUG_TIMER) 54 { 55 $GLOBALS['debug_timer_stop'] = perfgetmicrotime(); 56 echo 'Page loaded in ' . ($GLOBALS['debug_timer_stop'] - $GLOBALS['debug_timer_start']) . ' seconds.'; 57 } 58?> 59</BODY> 60</HTML> 61