You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							1.0 KiB
						
					
					
				<?php
 | 
						|
/* For licensing terms, see /license.txt */
 | 
						|
 | 
						|
/**
 | 
						|
*	Code library for HotPotatoes integration.
 | 
						|
*	@package chamilo.exercise
 | 
						|
* 	@author Istvan Mandak
 | 
						|
*/
 | 
						|
require '../inc/global.inc.php';
 | 
						|
 | 
						|
require_once(api_get_path(SYS_CODE_PATH).'exercice/hotpotatoes.lib.php');
 | 
						|
$documentPath= api_get_path(SYS_COURSE_PATH).$_course['path']."/document";
 | 
						|
$my_file = Security::remove_XSS($_GET['file']);
 | 
						|
$my_file=str_replace(array('../','\\..','\\0','..\\'),array('','','',''),urldecode($my_file));
 | 
						|
$title = GetQuizName($my_file,$documentPath);
 | 
						|
if ($title =='') {
 | 
						|
	$title = basename($my_file);
 | 
						|
}
 | 
						|
$nameTools = $title;
 | 
						|
$noPHP_SELF=true;
 | 
						|
if (isset($_SESSION['gradebook'])){
 | 
						|
	$gradebook=	$_SESSION['gradebook'];
 | 
						|
}
 | 
						|
 | 
						|
if (!empty($gradebook) && $gradebook=='view') {
 | 
						|
	$interbreadcrumb[]= array (
 | 
						|
		'url' => '../gradebook/'.$_SESSION['gradebook_dest'],
 | 
						|
		'name' => get_lang('ToolGradebook')
 | 
						|
	);
 | 
						|
}
 | 
						|
$interbreadcrumb[]= array ("url"=>"./exercice.php", "name"=> get_lang('Exercices'));
 | 
						|
Display::display_header($nameTools,"Exercise");
 | 
						|
echo "<a name='TOP'></a>";
 | 
						|
 |