From bdb40bfc7ea0a612738ec369be12dc88a8d08cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Thu, 12 Feb 2015 19:03:29 +0100 Subject: [PATCH] Is this cool? --- php/nochan.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/php/nochan.php b/php/nochan.php index f0cafd3c..5555583e 100755 --- a/php/nochan.php +++ b/php/nochan.php @@ -11,6 +11,7 @@ $all_channels = array(); $time = 60*60*24*4; //4 dager $to = 60*60*24*2; $i = 0; +$tooMany = false; $dir = "./lists"; chdir($dir); @@ -37,7 +38,10 @@ foreach($fil as $files){ $i++; array_push($all_channels, ucfirst(str_replace(".json", "", $files))); if($i > 13) + { + $tooMany = true; break; + } } } @@ -65,7 +69,7 @@ foreach($fil as $files){
Active Channels
- ".htmlspecialchars($channel)."";} ?> + ".htmlspecialchars($channel)."";} if($tooMany) echo "..."; ?>