diff --git a/php/activechannels.php b/php/activechannels.php index 8b1ad46c..abf7765d 100755 --- a/php/activechannels.php +++ b/php/activechannels.php @@ -6,13 +6,13 @@ $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){ + if(time() - filemtime('../lists/'.$files) < $time){ array_push($channels, ucfirst(str_replace(".json", "", $files))); } array_push($all_channels, ucfirst(str_replace(".json", "", $files))); } } -print_r(json_encode($all_channels)); +print_r(json_encode($channels)); ?>