| @@ 74-79 (lines=6) @@ | ||
| 71 | $coords = explode('/', $_GET['hotspot']); |
|
| 72 | ||
| 73 | if (is_array($coords) && count($coords) > 0) { |
|
| 74 | foreach ($coords as $coord) { |
|
| 75 | if (!empty($coord)) { |
|
| 76 | list($x, $y) = explode(';', $coord); |
|
| 77 | $user_array .= round($x).';'.round($y).'/'; |
|
| 78 | } |
|
| 79 | } |
|
| 80 | } |
|
| 81 | } |
|
| 82 | ||
| @@ 34-37 (lines=4) @@ | ||
| 31 | //round-up the coordinates |
|
| 32 | $coords = explode('/',$coordinates); |
|
| 33 | $coordinates = ''; |
|
| 34 | foreach ($coords as $coord) { |
|
| 35 | list($x,$y) = explode(';',$coord); |
|
| 36 | $coordinates .= round($x).';'.round($y).'/'; |
|
| 37 | } |
|
| 38 | $coordinates = substr($coordinates,0,-1); |
|
| 39 | ||
| 40 | $TBL_TRACK_E_HOTSPOT = Database::get_main_table(TABLE_STATISTIC_TRACK_E_HOTSPOT); |
|
| @@ 38-41 (lines=4) @@ | ||
| 35 | //round-up the coordinates |
|
| 36 | $coords = explode('/',$coordinates); |
|
| 37 | $coordinates = ''; |
|
| 38 | foreach ($coords as $coord) { |
|
| 39 | list($x,$y) = explode(';',$coord); |
|
| 40 | $coordinates .= round($x).';'.round($y).'/'; |
|
| 41 | } |
|
| 42 | $coordinates = substr($coordinates,0,-1); |
|
| 43 | ||
| 44 | $TBL_TRACK_E_HOTSPOT = Database::get_main_table(TABLE_STATISTIC_TRACK_E_HOTSPOT); |
|
| @@ 4174-4177 (lines=4) @@ | ||
| 4171 | // round-up the coordinates |
|
| 4172 | $coords = explode('/',$user_answer); |
|
| 4173 | $user_array = ''; |
|
| 4174 | foreach ($coords as $coord) { |
|
| 4175 | list($x,$y) = explode(';',$coord); |
|
| 4176 | $user_array .= round($x).';'.round($y).'/'; |
|
| 4177 | } |
|
| 4178 | $user_array = substr($user_array,0,-1); |
|
| 4179 | } else { |
|
| 4180 | if (!empty($studentChoice)) { |
|
| @@ 4330-4333 (lines=4) @@ | ||
| 4327 | //round-up the coordinates |
|
| 4328 | $coords = explode('/',$user_answer); |
|
| 4329 | $user_array = ''; |
|
| 4330 | foreach ($coords as $coord) { |
|
| 4331 | list($x,$y) = explode(';',$coord); |
|
| 4332 | $user_array .= round($x).';'.round($y).'/'; |
|
| 4333 | } |
|
| 4334 | $user_array = substr($user_array,0,-1); |
|
| 4335 | ||
| 4336 | if ($next) { |
|