| @@ 190-194 (lines=5) @@ | ||
| 187 | } |
|
| 188 | } |
|
| 189 | ||
| 190 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
| 191 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
| 192 | continue; |
|
| 193 | } |
|
| 194 | } |
|
| 195 | ||
| 196 | $temp[$count]['cell'] = array( |
|
| 197 | $date, |
|
| @@ 326-330 (lines=5) @@ | ||
| 323 | $week_data = ''; |
|
| 324 | } |
|
| 325 | ||
| 326 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
| 327 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
| 328 | continue; |
|
| 329 | } |
|
| 330 | } |
|
| 331 | ||
| 332 | $temp[$count]['cell'] = array($week_data, $date, $item['title'], Display::url($icons.' '.$lp_item['lp_name'], $lp_url, array('target'=>SESSION_LINK_TARGET))); |
|
| 333 | $temp[$count]['course'] = strip_tags($item['title']); |
|
| @@ 449-453 (lines=5) @@ | ||
| 446 | continue; |
|
| 447 | } |
|
| 448 | } |
|
| 449 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
| 450 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
| 451 | continue; |
|
| 452 | } |
|
| 453 | } |
|
| 454 | $temp[$count]['cell'] = array( |
|
| 455 | $date, |
|
| 456 | $item['title'], |
|
| @@ 2360-2367 (lines=8) @@ | ||
| 2357 | // Also check the time availability of the LP |
|
| 2358 | if ($is_visible) { |
|
| 2359 | // Adding visibility restrictions |
|
| 2360 | if (!empty($row['publicated_on']) && |
|
| 2361 | $row['publicated_on'] != '0000-00-00 00:00:00' |
|
| 2362 | ) { |
|
| 2363 | if ($now < api_strtotime($row['publicated_on'], 'UTC')) { |
|
| 2364 | //api_not_allowed(); |
|
| 2365 | $is_visible = false; |
|
| 2366 | } |
|
| 2367 | } |
|
| 2368 | ||
| 2369 | // Blocking empty start times see BT#2800 |
|
| 2370 | global $_custom; |
|
| @@ 2380-2385 (lines=6) @@ | ||
| 2377 | } |
|
| 2378 | } |
|
| 2379 | ||
| 2380 | if (!empty($row['expired_on']) && $row['expired_on'] != '0000-00-00 00:00:00') { |
|
| 2381 | if ($now > api_strtotime($row['expired_on'], 'UTC')) { |
|
| 2382 | //api_not_allowed(); |
|
| 2383 | $is_visible = false; |
|
| 2384 | } |
|
| 2385 | } |
|
| 2386 | } |
|
| 2387 | ||
| 2388 | // Check if the subscription users/group to a LP is ON |
|