Browse Source

Deleting unused header/footers scripts

Julio Montoya 13 years ago
parent
commit
969710366f
4 changed files with 0 additions and 272 deletions
  1. 0 98
      main/inc/banner.inc.php
  2. 0 4
      main/inc/footer.inc.php
  3. 0 8
      main/inc/header.inc.php
  4. 0 162
      main/inc/reduced_header.inc.php

+ 0 - 98
main/inc/banner.inc.php

@@ -1,98 +0,0 @@
-<?php
-/* This page is now unused check the template.lib.php and main/template/ files  */
-exit;
-
-
-
-require_once api_get_path(LIBRARY_PATH).'banner.lib.php';
-
-global $my_session_id;
-$session_id     = api_get_session_id();
-$session_name   = api_get_session_name($my_session_id);
-echo '<div id="wrapper">';
-
-echo '<ul id="navigation">';
-
-if (api_get_setting('enable_help_link') == 'true') { 
-    if (!empty($help)) { 
-        $help = Security::remove_XSS($help);
-    ?>
-        <li class="help">                   
-            <a href="<?php echo api_get_path(WEB_CODE_PATH); ?>help/help.php?open=<?php echo $help; ?>&height=400&width=600" class="thickbox" title="<?php echo get_lang('Help'); ?>">
-            <img src="<?php echo api_get_path(WEB_IMG_PATH);?>help.large.png" alt="<?php echo get_lang('Help');?>" title="<?php echo get_lang('Help');?>" />
-            </a>
-        </li>
-    <?php } 
-}
-if (api_get_setting('show_link_bug_notification') == 'true') { 
-?>
-    <li class="report">
-        <a href="http://support.chamilo.org/projects/chamilo-18/wiki/How_to_report_bugs" target="_blank">
-        <img src="<?php echo api_get_path(WEB_IMG_PATH) ?>bug.large.png" style="vertical-align: middle;" alt="<?php echo get_lang('ReportABug') ?>" title="<?php echo get_lang('ReportABug');?>"/></a>
-    </li>
-<?php
-}
-
-echo'</ul>';
-echo '<div id="header">';
-
-show_header_1($language_file, $nameTools);
-show_header_2();
-
-echo '<div id="header3">';
-echo '<div id="subnav">';
-echo show_header_3();
-echo '</div>';
-echo '</div>';
-    
-
-echo '</div>'; // <!-- end of the whole #header section -->
-  
-if (api_get_setting('show_toolshortcuts') == 'true') {        
-    require_once api_get_path(INCLUDE_PATH).'tool_navigation_menu.inc.php';
-    show_navigation_tool_shortcuts();        
-}
-
-echo '<div id="main">';
-
-echo show_header_4($interbreadcrumb, $language_file, $nameTools);
-
-echo '<div id="submain">';
-
-
-/*  "call for chat" module section */
-
-$chat = strpos(api_get_self(), 'chat_banner.php');
-if (!$chat) {
-    include_once api_get_path(LIBRARY_PATH).'online.inc.php';
-    //echo $accept;
-    $chatcall = chatcall();
-    if ($chatcall) {
-        Display :: display_normal_message($chatcall);
-    }
-}
-
-/*  Navigation menu section */
-
-if (api_get_setting('show_navigation_menu') != 'false' && api_get_setting('show_navigation_menu') != 'icons') {
-    Display::show_course_navigation_menu($_GET['isHidden']);
-    $course_id = api_get_course_id();
-    if (!empty($course_id) && ($course_id != -1)) {
-        echo '<div id="menuButton">';
-        echo $output_string_menu;
-        echo '</div>';
-        if (isset($_SESSION['hideMenu'])) {
-            if ($_SESSION['hideMenu'] == 'shown') {
-                if (isset($_cid)) {
-                    echo '<div id="centerwrap">'; // <!-- start of #centerwrap -->
-                    echo '<div id="center">'; // <!-- start of #center -->
-                }
-            }
-        } else {
-            if (isset($_cid)) {
-                echo '<div id="centerwrap">'; // <!-- start of #centerwrap -->
-                echo '<div id="center">'; //<!-- start of #center -->
-            }
-        }
-    }
-}

+ 0 - 4
main/inc/footer.inc.php

@@ -1,4 +0,0 @@
-<?php
-/* For licensing terms, see /license.txt */
-
-echo $global_tpl->show_footer();

+ 0 - 8
main/inc/header.inc.php

@@ -1,8 +0,0 @@
-<?php
-/* For licensing terms, see /license.txt */
-
-/**
- *  This script displays the Chamilo header.
- *  @package chamilo.include
- */
-

+ 0 - 162
main/inc/reduced_header.inc.php

@@ -1,162 +0,0 @@
-<?php
-/* For licensing terms, see /license.txt */
-
-/**
- *	This script displays the Dokeos header up to the </head> tag
- *   IT IS A COPY OF header.inc.php EXCEPT that it doesn't start the body
- *   output.
- *
- *	@package chamilo.include
- */
-
-/*  HEADERS SECTION */
-
-/*
- * HTTP HEADER
- */
-
-header('Content-Type: text/html; charset='.api_get_system_encoding());
-
-// Include here the script ASCIIMathML.js if you want to show mathematical formulas and graphics
-// not only in the "Documents" tool, but elsewhere in the system. This setting is related to the
-// online editor's plugins 'asciimath' and 'asciisvg'.
-if (api_get_setting('include_asciimathml_script') == 'true') {
-    $htmlHeadXtra[] = api_get_js('asciimath/ASCIIMathML.js');
-}
-
-if (isset($httpHeadXtra) && $httpHeadXtra) {
-    foreach ($httpHeadXtra as & $thisHttpHead) {
-        header($thisHttpHead);
-    }
-}
-
-// Get language iso-code for this page - ignore errors
-$document_language = api_get_language_isocode();
-
-/*
- * HTML HEADER
- */
-
-?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $document_language; ?>" lang="<?php echo $document_language; ?>">
-<head>
-<title>
-<?php
-if (!empty($nameTools)) {
-    echo $nameTools.' - ';
-}
-
-if (!empty($_course['official_code'])) {
-    echo $_course['official_code'].' - ';
-}
-
-echo api_get_setting('siteName');
-?>
-</title>
-
-<?php
-
-/*
- * Choose CSS style platform's, user's, course's, or Learning path CSS
- */
-
-$platform_theme = api_get_setting('stylesheets');
-$my_style = api_get_visual_theme();
-
-// Sets the css reference it is call from lp_nav.php, lp_toc.php, lp_message, lp_log.php
-if (!empty($scorm_css_header)) {
-    if (!empty($my_style)) {
-        $scorm_css = api_get_path(WEB_CSS_PATH).$my_style.'/scorm.css';
-        $scormfs_css = api_get_path(WEB_CSS_PATH).$my_style.'/scormfs.css';
-    } else {
-        $scorm_css = 'scorm.css';
-        $scormfs_css = 'scormfs.css';
-    }
-
-    if (!empty($display_mode) && $display_mode == 'fullscreen') {
-        $htmlHeadXtra[] = '<style type="text/css" media="screen, projection">
-                            /*<![CDATA[*/
-                            @import "'.$scormfs_css.'";
-                            /*]]>*/
-                            </style>';
-    } else {
-        $htmlHeadXtra[] = '<style type="text/css" media="screen, projection">
-                            /*<![CDATA[*/
-                            @import "'.$scorm_css.'";
-                            /*]]>*/
-                            </style>';
-    }
-}
-
-
-if ($my_style != '') {
-	?>
-	<style type="text/css" media="screen, projection">
-	/*<![CDATA[*/
-	<?php 
-	//Base CSS
-	echo '@import "'.api_get_path(WEB_CSS_PATH).'base.css";';
-	
-	//Default CSS
-	echo '@import "'.api_get_path(WEB_CSS_PATH).$my_style.'/default.css";';
-	?>
-	/*]]>*/
-	</style>
-	<?php
-}
-?>
-<script src="<?php echo api_get_path(WEB_LIBRARY_PATH);?>javascript/jquery.min.js" type="text/javascript" ></script>
-<script src="<?php echo api_get_path(WEB_LIBRARY_PATH);?>javascript/thickbox.js" type="text/javascript" ></script>
-<link rel="stylesheet" href="<?php echo api_get_path(WEB_LIBRARY_PATH);?>javascript/thickbox.css" type="text/css" media="projection, screen" />
-
-<link rel="top" href="<?php echo api_get_path(WEB_PATH); ?>index.php" title="" />
-<link rel="courses" href="<?php echo api_get_path(WEB_CODE_PATH) ?>auth/courses.php" title="<?php echo api_htmlentities(get_lang('OtherCourses'),ENT_QUOTES,$charset); ?>" />
-<link rel="profil" href="<?php echo api_get_path(WEB_CODE_PATH) ?>auth/profile.php"  title="<?php echo api_htmlentities(get_lang('ModifyProfile'),ENT_QUOTES,$charset); ?>" />
-<link href="http://www.chamilo.org/documentation.php" rel="Help" />
-<link href="http://www.chamilo.org/team.php" rel="Author" />
-<link href="http://www.chamilo.org" rel="Copyright" />
-<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 type="text/javascript">
-//<![CDATA[
-// 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 )
-                {
-
-                }
-            } ;
-        }
-    ) ;
-}
-//]]>
-</script>
-<?php
-if (isset($htmlHeadXtra) && $htmlHeadXtra) {
-    foreach ($htmlHeadXtra as & $this_html_head) {
-        echo $this_html_head;
-    }
-}
-
-if (!api_is_platform_admin()) {
-	$extra_header = trim(api_get_setting('header_extra_content'));
-	if (!empty($extra_header)) {
-		echo $extra_header;
-	}		
-}
-
-?>
-</head>