@@ 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 |
@@ 187-191 (lines=5) @@ | ||
184 | } |
|
185 | } |
|
186 | ||
187 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
188 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
189 | continue; |
|
190 | } |
|
191 | } |
|
192 | ||
193 | $temp[$count]['cell'] = array( |
|
194 | $date, |
|
@@ 325-329 (lines=5) @@ | ||
322 | $week_data = ''; |
|
323 | } |
|
324 | ||
325 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
326 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
327 | continue; |
|
328 | } |
|
329 | } |
|
330 | ||
331 | $temp[$count]['cell'] = array( |
|
332 | $week_data, |
|
@@ 454-458 (lines=5) @@ | ||
451 | continue; |
|
452 | } |
|
453 | } |
|
454 | if (!empty($lp_item['expired_on']) && $lp_item['expired_on'] != '0000-00-00 00:00:00') { |
|
455 | if ($now > api_strtotime($lp_item['expired_on'], 'UTC')) { |
|
456 | continue; |
|
457 | } |
|
458 | } |
|
459 | $temp[$count]['cell'] = array( |
|
460 | $date, |
|
461 | $item['title'], |