| @@ 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); |
|
| @@ 4321-4324 (lines=4) @@ | ||
| 4318 | //round-up the coordinates |
|
| 4319 | $coords = explode('/',$user_answer); |
|
| 4320 | $user_array = ''; |
|
| 4321 | foreach ($coords as $coord) { |
|
| 4322 | list($x,$y) = explode(';',$coord); |
|
| 4323 | $user_array .= round($x).';'.round($y).'/'; |
|
| 4324 | } |
|
| 4325 | $user_array = substr($user_array,0,-1); |
|
| 4326 | ||
| 4327 | if ($next) { |
|
| @@ 4138-4141 (lines=4) @@ | ||
| 4135 | // round-up the coordinates |
|
| 4136 | $coords = explode('/',$user_answer); |
|
| 4137 | $user_array = ''; |
|
| 4138 | foreach ($coords as $coord) { |
|
| 4139 | list($x,$y) = explode(';',$coord); |
|
| 4140 | $user_array .= round($x).';'.round($y).'/'; |
|
| 4141 | } |
|
| 4142 | $user_array = substr($user_array,0,-1); |
|
| 4143 | } else { |
|
| 4144 | if (!empty($studentChoice)) { |
|
| @@ 63-68 (lines=6) @@ | ||
| 60 | if (isset($_GET['hotspot'])) { |
|
| 61 | $coords = explode('/', $_GET['hotspot']); |
|
| 62 | if (is_array($coords) && count($coords) > 0) { |
|
| 63 | foreach ($coords as $coord) { |
|
| 64 | if (!empty($coord)) { |
|
| 65 | list($x, $y) = explode(';', $coord); |
|
| 66 | $user_array .= round($x).';'.round($y).'/'; |
|
| 67 | } |
|
| 68 | } |
|
| 69 | } |
|
| 70 | } |
|
| 71 | ||