headerpage.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. ==============================================================================
  4. * @package dokeos.document
  5. ==============================================================================
  6. */
  7. // name of the language file that needs to be included
  8. $language_file = 'document';
  9. include('../inc/global.inc.php');
  10. $noPHP_SELF=true;
  11. $path_array=explode('/',str_replace('\\','/',$_GET['file']));
  12. $path_array = array_map('urlencode',$path_array);
  13. $_GET['file']=implode('/',$path_array);
  14. $nameTools = $_GET['file'];
  15. if(isset($_SESSION['_gid']) && $_SESSION['_gid']!='')
  16. {
  17. $req_gid = '&amp;gidReq='.$_SESSION['_gid'];
  18. $interbreadcrumb[]= array ("url"=>"../group/group_space.php?gidReq=".$_SESSION['_gid'], "name"=> get_lang('GroupSpace'));
  19. }
  20. $interbreadcrumb[]= array ("url"=>"./document.php?curdirpath=".dirname($_GET['file']).$req_gid, "name"=> $langDocuments);
  21. $interbreadcrumb[]= array ("url"=>"showinframes.php?file=".$_GET['file'], "name"=> $_GET['file']);
  22. Display::display_header(null,"Doc");
  23. echo "<div align=\"center\">";
  24. echo "<a href='".api_get_path('WEB_COURSE_PATH').$_course['path'].'/document'.$_GET['file']."?".api_get_cidreq()."' target='blank'>".$lang_cut_paste_link."</a></div>";
  25. ?>