From 8b3da2fcf90edfe30ff2b4a5e6fa51fbdd2c987b Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sat, 18 Oct 2014 02:12:20 +0200 Subject: [PATCH] Display all channels in autocomplete list, and 4 days in active list --- php/nochan.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/php/nochan.php b/php/nochan.php index 72893fd5..33694905 100755 --- a/php/nochan.php +++ b/php/nochan.php @@ -7,12 +7,14 @@ if(isset($_GET['chan'])){ $dir = scandir('./lists'); $channels = array(); -$time = 60*60*24*3; //3 dager +$all_channels = array(); +$time = 60*60*24*4; //4 dager foreach($dir as $files){ if(strpos($files, '.json') !== FALSE){ if(time() - filemtime('./lists/'.$files) < $time){ array_push($channels, ucfirst(str_replace(".json", "", $files))); } + array_push($all_channels, ucfirst(str_replace(".json", "", $files))); } } @@ -22,7 +24,7 @@ foreach($dir as $files){
- ";} ?> + ";} ?>