[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare * 4 * http://www.egroupware.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 \**************************************************************************/ 11 12 /* $Id: head.inc.php 17124 2004-09-29 08:37:52Z bgigon $ */ 13 14 if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time']) 15 { 16 $mtime = microtime(); 17 $mtime = explode(' ',$mtime); 18 $mtime = $mtime[1] + $mtime[0]; 19 $GLOBALS['page_start_time'] = $mtime; 20 } 21 22 // get used language code 23 $lang_code = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang']; 24 25 $bodyheader = ' bgcolor="' . $GLOBALS['phpgw_info']['theme']['bg_color'] . '" alink="' 26 . $GLOBALS['phpgw_info']['theme']['alink'] . '" link="' . $GLOBALS['phpgw_info']['theme']['link'] . '" vlink="' 27 . $GLOBALS['phpgw_info']['theme']['vlink'] . '"'; 28 29 if(!$GLOBALS['phpgw_info']['server']['htmlcompliant']) 30 { 31 $bodyheader .= ''; 32 } 33 34 #_debug_array($GLOBALS['phpgw_info']['user']['preferences']['common']); 35 $theme_css = '/phpgwapi/templates/prisma/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css'; 36 if(!file_exists(PHPGW_SERVER_ROOT.$theme_css)) 37 { 38 $theme_css = '/phpgwapi/templates/prisma/css/prisma.css'; 39 } 40 $theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . $theme_css; 41 42 //pngfix defaults to yes 43 if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_pngfix']) 44 { 45 $pngfix_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/prisma/js/pngfix.js'; 46 $pngfix ='<!-- This solves the Internet Explorer PNG-transparency bug, but only for IE 5.5 and higher --> 47 <!--[if gte IE 5.5000]> 48 <script src="'.$pngfix_src.'" type="text/javascript"> 49 </script> 50 <![endif]-->'; 51 } 52 53 if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_slider_effects']) 54 { 55 $slider_effects_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/prisma/js/slidereffects.js'; 56 $slider_effects = '<script src="'.$slider_effects_src.'" type="text/javascript"> 57 </script>'; 58 } 59 else 60 { 61 $simple_show_hide_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/prisma/js/simple_show_hide.js'; 62 $simple_show_hide = '<script src="'.$simple_show_hide_src.'" type="text/javascript"> 63 </script>'; 64 } 65 66 $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); 67 $tpl->set_unknowns('remove'); 68 $tpl->set_file(array('_head' => 'head.tpl')); 69 $tpl->set_block('_head','head'); 70 71 if ($GLOBALS['phpgw_info']['flags']['app_header']) 72 { 73 $app = $GLOBALS['phpgw_info']['flags']['app_header']; 74 } 75 else 76 { 77 $app = $GLOBALS['phpgw_info']['flags']['currentapp']; 78 $app = isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app); 79 } 80 81 82 if($app!='wiki') $robots ='<meta name="robots" content="none" />'; 83 84 $var = Array( 85 'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico', 86 'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico', 87 'pngfix' => $pngfix, 88 'slider_effects' => $slider_effects, 89 'simple_show_hide' => $simple_show_hide, 90 'lang_code' => $lang_code, 91 'charset' => $GLOBALS['phpgw']->translation->charset(), 92 'font_family' => $GLOBALS['phpgw_info']['theme']['font'], 93 'website_title' => strip_tags($GLOBALS['phpgw_info']['server']['site_title']. ($app ? " [$app]" : '')), 94 'body_tags' => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), 95 'theme_css' => $theme_css, 96 'css' => $GLOBALS['phpgw']->common->get_css(), 97 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), 98 'meta_robots' => $robots 99 ); 100 $tpl->set_var($var); 101 $tpl->pfp('out','head'); 102 unset($tpl); 103 ?>
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 |