@@ 2352-2359 (lines=8) @@ | ||
2349 | // Also check the time availability of the LP |
|
2350 | if ($is_visible) { |
|
2351 | // Adding visibility restrictions |
|
2352 | if (!empty($row['publicated_on']) && |
|
2353 | $row['publicated_on'] != '0000-00-00 00:00:00' |
|
2354 | ) { |
|
2355 | if ($now < api_strtotime($row['publicated_on'], 'UTC')) { |
|
2356 | //api_not_allowed(); |
|
2357 | $is_visible = false; |
|
2358 | } |
|
2359 | } |
|
2360 | ||
2361 | // Blocking empty start times see BT#2800 |
|
2362 | global $_custom; |
|
@@ 2372-2377 (lines=6) @@ | ||
2369 | } |
|
2370 | } |
|
2371 | ||
2372 | if (!empty($row['expired_on']) && $row['expired_on'] != '0000-00-00 00:00:00') { |
|
2373 | if ($now > api_strtotime($row['expired_on'], 'UTC')) { |
|
2374 | //api_not_allowed(); |
|
2375 | $is_visible = false; |
|
2376 | } |
|
2377 | } |
|
2378 | } |
|
2379 | ||
2380 | // Check if the subscription users/group to a LP is ON |
@@ 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'], |