|
|
|
@ -2,12 +2,12 @@ |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* This script displays the Chamilo header. |
|
|
|
|
* This script displays the Chamilo header. |
|
|
|
|
* |
|
|
|
|
* @package chamilo.include |
|
|
|
|
* @package chamilo.include |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/* HEADERS SECTION */ |
|
|
|
|
/* HEADERS SECTION */ |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
* HTTP HEADER |
|
|
|
@ -15,13 +15,13 @@ |
|
|
|
|
|
|
|
|
|
// Server mode indicator. |
|
|
|
|
if (api_is_platform_admin()) { |
|
|
|
|
if (api_get_setting('server_type') == 'test') { |
|
|
|
|
$mtime = microtime(); |
|
|
|
|
$mtime = explode(" ",$mtime); |
|
|
|
|
$mtime = $mtime[1] + $mtime[0]; |
|
|
|
|
$starttime = $mtime; |
|
|
|
|
$_SESSION['page_start_time_execution'] = $starttime; |
|
|
|
|
} |
|
|
|
|
if (api_get_setting('server_type') == 'test') { |
|
|
|
|
$mtime = microtime(); |
|
|
|
|
$mtime = explode(" ",$mtime); |
|
|
|
|
$mtime = $mtime[1] + $mtime[0]; |
|
|
|
|
$starttime = $mtime; |
|
|
|
|
$_SESSION['page_start_time_execution'] = $starttime; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
header('Content-Type: text/html; charset='.api_get_system_encoding()); |
|
|
|
@ -29,13 +29,13 @@ header('Content-Type: text/html; charset='.api_get_system_encoding()); |
|
|
|
|
$navigator_info = api_get_navigator(); |
|
|
|
|
//ie6 fix |
|
|
|
|
if ($navigator_info['name'] == 'Internet Explorer' && $navigator_info['version'] == '6') { |
|
|
|
|
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/iepngfix/iepngfix_tilebg.js" type="text/javascript" language="javascript"></script>'; |
|
|
|
|
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/iepngfix/iepngfix_tilebg.js" type="text/javascript" language="javascript"></script>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (isset($httpHeadXtra) && $httpHeadXtra) { |
|
|
|
|
foreach ($httpHeadXtra as & $thisHttpHead) { |
|
|
|
|
header($thisHttpHead); |
|
|
|
|
} |
|
|
|
|
foreach ($httpHeadXtra as & $thisHttpHead) { |
|
|
|
|
header($thisHttpHead); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Get language iso-code for this page - ignore errors |
|
|
|
@ -61,7 +61,7 @@ $title_list[] = $_course['official_code']; |
|
|
|
|
$title_string = ''; |
|
|
|
|
for($i=0; $i<count($title_list);$i++) { |
|
|
|
|
if (!empty($title_list[$i])) { |
|
|
|
|
$title_string .=$title_list[$i]; |
|
|
|
|
$title_string .=$title_list[$i]; |
|
|
|
|
|
|
|
|
|
if (isset($title_list[$i+1])) { |
|
|
|
|
$title_string .=' - '; |
|
|
|
@ -83,16 +83,16 @@ $my_style = api_get_visual_theme(); |
|
|
|
|
global $show_learn_path; |
|
|
|
|
|
|
|
|
|
if ($show_learn_path) { |
|
|
|
|
$htmlHeadXtra[] = '<link rel="stylesheet" type="text/css" href="'.api_get_path(WEB_CSS_PATH).$my_style.'/learnpath.css"/>'; |
|
|
|
|
$htmlHeadXtra[] = '<link rel="stylesheet" type="text/css" href="dtree.css" />'; //will be moved |
|
|
|
|
$htmlHeadXtra[] = '<script src="dtree.js" type="text/javascript"></script>'; //will be moved |
|
|
|
|
} |
|
|
|
|
$htmlHeadXtra[] = '<link rel="stylesheet" type="text/css" href="'.api_get_path(WEB_CSS_PATH).$my_style.'/learnpath.css"/>'; |
|
|
|
|
$htmlHeadXtra[] = '<link rel="stylesheet" type="text/css" href="dtree.css" />'; //will be moved |
|
|
|
|
$htmlHeadXtra[] = '<script src="dtree.js" type="text/javascript"></script>'; //will be moved |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '@import "'.api_get_path(WEB_CSS_PATH).$my_style.'/default.css";'."\n"; |
|
|
|
|
echo '@import "'.api_get_path(WEB_CSS_PATH).$my_style.'/course.css";'."\n"; |
|
|
|
|
|
|
|
|
|
if ($navigator_info['name']=='Internet Explorer' && $navigator_info['version']=='6') { |
|
|
|
|
echo 'img, div { behavior: url('.api_get_path(WEB_LIBRARY_PATH).'javascript/iepngfix/iepngfix.htc) } '; |
|
|
|
|
echo 'img, div { behavior: url('.api_get_path(WEB_LIBRARY_PATH).'javascript/iepngfix/iepngfix.htc) } '; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
?> |
|
|
|
@ -104,6 +104,7 @@ if ($navigator_info['name']=='Internet Explorer' && $navigator_info['version']= |
|
|
|
|
echo '@import "'.api_get_path(WEB_CSS_PATH).$my_style.'/print.css";'."\n"; |
|
|
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
|
|
/*]]>*/ |
|
|
|
|
</style> |
|
|
|
|
<script src="<?php echo api_get_path(WEB_LIBRARY_PATH);?>javascript/jquery.js" type="text/javascript" ></script>
|
|
|
|
@ -118,22 +119,12 @@ if ($navigator_info['name']=='Internet Explorer' && $navigator_info['version']= |
|
|
|
|
<link rel="shortcut icon" href="<?php echo api_get_path(WEB_PATH); ?>favicon.ico" type="image/x-icon" />
|
|
|
|
|
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo api_get_system_encoding(); ?>" />
|
|
|
|
|
<script src= "<?php echo api_get_path(WEB_LIBRARY_PATH);?>javascript/mmenu.js" type="text/javascript"></script>
|
|
|
|
|
<script src= "<?php echo api_get_path(WEB_LIBRARY_PATH);?>javascript/jquery.menu.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
<?php if (!empty($help)) { ?> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
//One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended): |
|
|
|
|
menu[3] = { |
|
|
|
|
id:'menu-slide-right', //use unique quoted id (quoted) REQUIRED!! |
|
|
|
|
bartext: '<img src="/main/img/help.png">', |
|
|
|
|
menupos:'right', |
|
|
|
|
kviewtype:'fixed', |
|
|
|
|
menuItems:[ // REQUIRED!! |
|
|
|
|
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header |
|
|
|
|
["Help", "<?php echo api_get_path(WEB_CODE_PATH); ?>help/help.php?open=Home&height=400&width=600", "", "thickbox"],
|
|
|
|
|
]}; // REQUIRED!! do not edit or remove |
|
|
|
|
make_menus(); |
|
|
|
|
</script> |
|
|
|
|
<ul id="navigation"> |
|
|
|
|
<li class="help"><a href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/help.php?open=Home&height=400&width=600", class="thickbox" title="<?php echo get_lang('Help'); ?>"></a> </li>
|
|
|
|
|
</ul> |
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
@ -141,24 +132,24 @@ if ($navigator_info['name']=='Internet Explorer' && $navigator_info['version']= |
|
|
|
|
// This is a patch for the "__flash__removeCallback" bug, see FS#4378. |
|
|
|
|
if ( ( navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) ) |
|
|
|
|
{ |
|
|
|
|
window.attachEvent( 'onunload', function() |
|
|
|
|
{ |
|
|
|
|
window['__flash__removeCallback'] = function ( instance, name ) |
|
|
|
|
{ |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
if ( instance ) |
|
|
|
|
{ |
|
|
|
|
instance[name] = null ; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
catch ( flashEx ) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} ; |
|
|
|
|
} |
|
|
|
|
) ; |
|
|
|
|
window.attachEvent( 'onunload', function() |
|
|
|
|
{ |
|
|
|
|
window['__flash__removeCallback'] = function ( instance, name ) |
|
|
|
|
{ |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
if ( instance ) |
|
|
|
|
{ |
|
|
|
|
instance[name] = null ; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
catch ( flashEx ) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} ; |
|
|
|
|
} |
|
|
|
|
) ; |
|
|
|
|
} |
|
|
|
|
//]]> |
|
|
|
|
|
|
|
|
@ -168,14 +159,14 @@ if ( ( navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) && ( navigator. |
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
if (isset($htmlHeadXtra) && $htmlHeadXtra) { |
|
|
|
|
foreach ($htmlHeadXtra as & $this_html_head) { |
|
|
|
|
echo $this_html_head; |
|
|
|
|
} |
|
|
|
|
foreach ($htmlHeadXtra as & $this_html_head) { |
|
|
|
|
echo $this_html_head; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (isset($htmlIncHeadXtra) && $htmlIncHeadXtra) { |
|
|
|
|
foreach ($htmlIncHeadXtra as & $this_html_head) { |
|
|
|
|
include($this_html_head); |
|
|
|
|
} |
|
|
|
|
foreach ($htmlIncHeadXtra as & $this_html_head) { |
|
|
|
|
include($this_html_head); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// The following include might be subject to a setting proper to the course or platform. |
|
|
|
|
include api_get_path(LIBRARY_PATH).'javascript/email_links.lib.js.php'; |
|
|
|
|