testheaderpage.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /*
  3. DOKEOS - elearning and course management software
  4. For a full list of contributors, see documentation/credits.html
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. See "documentation/licence.html" more details.
  10. Contact:
  11. Dokeos
  12. Rue des Palais 44 Paleizenstraat
  13. B-1030 Brussels - Belgium
  14. Tel. +32 (2) 211 34 56
  15. */
  16. /**
  17. * Code library for HotPotatoes integration.
  18. * @package dokeos.exercise
  19. * @author Istvan Mandak
  20. * @version $Id: testheaderpage.php 20451 2009-05-10 12:02:22Z ivantcholakov $
  21. */
  22. // name of the language file that needs to be included
  23. $language_file='exercice';
  24. include('../inc/global.inc.php');
  25. require_once(api_get_path(SYS_CODE_PATH).'exercice/hotpotatoes.lib.php');
  26. $documentPath= api_get_path(SYS_COURSE_PATH).$_course['path']."/document";
  27. $my_file = Security::remove_XSS($_GET['file']);
  28. $title = GetQuizName($my_file,$documentPath);
  29. if ($title =='') {
  30. $title = GetFileName($my_file);
  31. }
  32. $nameTools = $title;
  33. $noPHP_SELF=true;
  34. if (isset($_SESSION['gradebook'])){
  35. $gradebook= $_SESSION['gradebook'];
  36. }
  37. if (!empty($gradebook) && $gradebook=='view') {
  38. $interbreadcrumb[]= array (
  39. 'url' => '../gradebook/'.$_SESSION['gradebook_dest'],
  40. 'name' => get_lang('Gradebook')
  41. );
  42. }
  43. $interbreadcrumb[]= array ("url"=>"./exercice.php", "name"=> get_lang('Exercices'));
  44. Display::display_header($nameTools,"Exercise");
  45. echo "<a name='TOP'></a>";
  46. ?>