Dokeos PHP Cross Reference Learning Management Systems

Source: /main/document/headerpage.php - 41 lines - 1532 bytes - Summary - Text - Print

   1  <?php
   2  
   3  /* For licensing terms, see /dokeos_license.txt */
   4  
   5  /**
   6  ==============================================================================
   7  *    @package dokeos.document
   8  ==============================================================================
   9  */
  10  
  11  // name of the language file that needs to be included
  12  $language_file = 'document';
  13  
  14  // include the global Dokeos file
  15  require_once  '../inc/global.inc.php';
  16  
  17  
  18  $noPHP_SELF=true;
  19  $header_file= Security::remove_XSS($_GET['file']);
  20  $path_array=explode('/',str_replace('\\','/',$header_file));
  21  $path_array = array_map('urldecode',$path_array);
  22  $header_file=implode('/',$path_array);
  23  $nameTools = $header_file;
  24  
  25  if(isset($_SESSION['_gid']) && $_SESSION['_gid']!='') {
  26      $req_gid = '&amp;gidReq='.$_SESSION['_gid'];
  27      $interbreadcrumb[]= array ("url"=>"../group/group_space.php?gidReq=".$_SESSION['_gid'], "name"=> get_lang('GroupSpace'));
  28  }
  29  
  30  $this_section=SECTION_COURSES;
  31  
  32  $interbreadcrumb[]= array ("url"=>"./document.php?curdirpath=".dirname($header_file).$req_gid, "name"=> get_lang('Documents'));
  33  $interbreadcrumb[]= array ("url"=>"showinframes.php?file=".$header_file, "name"=>$header_file);
  34  $file_url_sys=api_get_path(SYS_COURSE_PATH).'document'.$header_file;
  35  $path_info= pathinfo($file_url_sys);
  36  
  37  Display::display_tool_header(null,"Doc");
  38  /*echo "<div align=\"center\">";
  39  $file_url_web=api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$header_file."?".api_get_cidreq();
  40  echo "<a href='".$file_url_web."' target='blank'>".get_lang('_cut_paste_link')."</a></div>";*/
  41  ?>

title

Description

title

Description

title

Description

title

title

Body