| @@ 1133-1143 (lines=11) @@ | ||
| 1130 | $allowed_time = api_strtotime($date_session_start); |
|
| 1131 | } |
|
| 1132 | ||
| 1133 | if (!isset($_GET['history'])) { |
|
| 1134 | if (!empty($date_session_end) && |
|
| 1135 | $date_session_end != '0000-00-00 00:00:00' |
|
| 1136 | ) { |
|
| 1137 | $endSessionToTms = api_strtotime($date_session_end); |
|
| 1138 | if ($session_now > $endSessionToTms) { |
|
| 1139 | $dif_time_after = $session_now - $endSessionToTms; |
|
| 1140 | $dif_time_after = round($dif_time_after / 86400); |
|
| 1141 | } |
|
| 1142 | } |
|
| 1143 | } |
|
| 1144 | } |
|
| 1145 | ||
| 1146 | if ( |
|
| @@ 1266-1278 (lines=13) @@ | ||
| 1263 | if ($date_session_start != '0000-00-00 00:00:00') { |
|
| 1264 | $allowed_time = api_strtotime($coachAccessStartDate); |
|
| 1265 | } |
|
| 1266 | if (!isset($_GET['history'])) { |
|
| 1267 | if ($date_session_end != '0000-00-00 00:00:00') { |
|
| 1268 | $endSessionToTms = api_strtotime( |
|
| 1269 | $date_session_end |
|
| 1270 | ); |
|
| 1271 | if ($session_now > $endSessionToTms) { |
|
| 1272 | $dif_time_after = $session_now - $endSessionToTms; |
|
| 1273 | $dif_time_after = round( |
|
| 1274 | $dif_time_after / 86400 |
|
| 1275 | ); |
|
| 1276 | } |
|
| 1277 | } |
|
| 1278 | } |
|
| 1279 | } else { |
|
| 1280 | $allowed_time = api_strtotime( |
|
| 1281 | $date_session_start |
|