Remove error_log

1.10.x
Julio Montoya 10 years ago
parent 1633c222cd
commit d07f685968
  1. 60
      main/exercice/hotspot_actionscript_admin.as.php

@ -2,16 +2,14 @@
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* This file generates the ActionScript variables code used by the HotSpot .swf * This file generates the ActionScript variables code used by the HotSpot .swf
* @package chamilo.exercise * @package chamilo.exercise
* @author Toon Keppens * @author Toon Keppens
* @version $Id: admin.php 10680 2007-01-11 21:26:23Z pcool $
*/ */
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
// set vars // set vars
$questionId = intval($_GET['modifyAnswers']); $questionId = intval($_GET['modifyAnswers']);
error_log($questionId);
$objQuestion = Question::read($questionId); $objQuestion = Question::read($questionId);
$_course = api_get_course_info(); $_course = api_get_course_info();
@ -37,35 +35,35 @@ $answers = $_SESSION['tmp_answers'];
$nbrAnswers = count($answers['answer']); $nbrAnswers = count($answers['answer']);
for ($i=1;$i <= $nbrAnswers; $i++) { for ($i=1;$i <= $nbrAnswers; $i++) {
$output .= "&hotspot_".$i."=true"; $output .= "&hotspot_".$i."=true";
$output .= "&hotspot_".$i."_answer=".$answers['answer'][$i]; $output .= "&hotspot_".$i."_answer=".$answers['answer'][$i];
if ($answer_type == HOT_SPOT_DELINEATION) { if ($answer_type == HOT_SPOT_DELINEATION) {
if ($i==1) { if ($i==1) {
$output .= "&hotspot_".$i."_type=delineation"; $output .= "&hotspot_".$i."_type=delineation";
} else } else
{$output .= "&hotspot_".$i."_type=oar";} {$output .= "&hotspot_".$i."_type=oar";}
} else { } else {
// Square or rectancle // Square or rectancle
if ($answers['hotspot_type'][$i] == 'square') { if ($answers['hotspot_type'][$i] == 'square') {
$output .= "&hotspot_".$i."_type=square"; $output .= "&hotspot_".$i."_type=square";
} }
// Circle or ovale // Circle or ovale
if ($answers['hotspot_type'][$i] == 'circle') { if ($answers['hotspot_type'][$i] == 'circle') {
$output .= "&hotspot_".$i."_type=circle"; $output .= "&hotspot_".$i."_type=circle";
} }
// Polygon // Polygon
if ($answers['hotspot_type'][$i] == 'poly') { if ($answers['hotspot_type'][$i] == 'poly') {
$output .= "&hotspot_".$i."_type=poly"; $output .= "&hotspot_".$i."_type=poly";
} }
/*// Delineation /*// Delineation
if ($answers['hotspot_type'][$i] == 'delineation') if ($answers['hotspot_type'][$i] == 'delineation')
{ {
$output .= "&hotspot_".$i."_type=delineation"; $output .= "&hotspot_".$i."_type=delineation";
}*/ }*/
} }
// This is a good answer, count + 1 for nmbr of clicks // This is a good answer, count + 1 for nmbr of clicks
if ($answers['weighting'][$i] > 0) { if ($answers['weighting'][$i] > 0) {

Loading…
Cancel
Save