[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare API - phpgwapi footer * 4 * This file written by Dan Kuykendall <seek3r@phpgroupware.org> * 5 * and Joseph Engo <jengo@phpgroupware.org> * 6 * Closes out interface and db connections * 7 * Copyright (C) 2000, 2001 Dan Kuykendall * 8 * -------------------------------------------------------------------------* 9 * This library is part of the eGroupWare API * 10 * http://www.egroupware.org/api * 11 * ------------------------------------------------------------------------ * 12 * This library is free software; you can redistribute it and/or modify it * 13 * under the terms of the GNU Lesser General Public License as published by * 14 * the Free Software Foundation; either version 2.1 of the License, * 15 * or any later version. * 16 * This library is distributed in the hope that it will be useful, but * 17 * WITHOUT ANY WARRANTY; without even the implied warranty of * 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * 19 * See the GNU Lesser General Public License for more details. * 20 * You should have received a copy of the GNU Lesser General Public License * 21 * along with this library; if not, write to the Free Software Foundation, * 22 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 23 \**************************************************************************/ 24 25 /* $Id: footer.inc.php 20295 2006-02-15 12:31:25Z $ */ 26 27 $d1 = strtolower(substr(PHPGW_APP_INC,0,3)); 28 if($d1 == 'htt' || $d1 == 'ftp') 29 { 30 echo "Failed attempt to break in via an old Security Hole!<br>\n"; 31 exit; 32 } unset($d1); 33 34 /**************************************************************************\ 35 * Include the apps footer files if it exists * 36 \**************************************************************************/ 37 if (PHPGW_APP_INC != PHPGW_API_INC && // this prevents an endless inclusion on the homepage 38 // (some apps set currentapp in hook_home => it's not releyable) 39 (file_exists (PHPGW_APP_INC . '/footer.inc.php') || isset($_GET['menuaction'])) && 40 $GLOBALS['egw_info']['flags']['currentapp'] != 'home' && 41 $GLOBALS['egw_info']['flags']['currentapp'] != 'login' && 42 $GLOBALS['egw_info']['flags']['currentapp'] != 'logout' && 43 !@$GLOBALS['egw_info']['flags']['noappfooter']) 44 { 45 if ($_GET['menuaction']) 46 { 47 list($app,$class,$method) = explode('.',$_GET['menuaction']); 48 if (is_array($GLOBALS[$class]->public_functions) && isset($GLOBALS[$class]->public_functions['footer'])) 49 { 50 // eval("\$GLOBALS[$class]->footer();"); 51 $GLOBALS[$class]->footer(); 52 } 53 elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php')) 54 { 55 include (PHPGW_APP_INC . '/footer.inc.php'); 56 } 57 } 58 elseif(file_exists(PHPGW_APP_INC.'/footer.inc.php')) 59 { 60 include (PHPGW_APP_INC . '/footer.inc.php'); 61 } 62 } 63 if ($GLOBALS['egw_info']['flags']['need_footer']) 64 { 65 echo $GLOBALS['egw_info']['flags']['need_footer']; 66 } 67 if(function_exists('parse_navbar_end')) 68 { 69 parse_navbar_end(); 70 } 71 if (DEBUG_TIMER) 72 { 73 $totaltime = sprintf('%4.2lf',perfgetmicrotime() - $GLOBALS['egw_info']['flags']['page_start_time']); 74 75 echo lang('Page was generated in %1 seconds',$totaltime); 76 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |