Shortened active channel time-window

This commit is contained in:
Nicolas A. Tonne
2014-10-14 12:33:47 +02:00
parent bdadf0afec
commit aae8ccebeb

View File

@@ -7,7 +7,7 @@ if(isset($_GET['chan'])){
$dir = scandir('./lists'); $dir = scandir('./lists');
$channels = array(); $channels = array();
$time = 60*60*24*7*1; //1 uke $time = 60*60*24*3; //3 dager
foreach($dir as $files){ foreach($dir as $files){
if(strpos($files, '.json') !== FALSE){ if(strpos($files, '.json') !== FALSE){
if(time() - filemtime('./lists/'.$files) < $time){ if(time() - filemtime('./lists/'.$files) < $time){