Merge pull request #46 from nixolas1/filebranch

Filebranch
This commit is contained in:
KasperRT
2014-12-14 02:38:33 +01:00
2 changed files with 19 additions and 1 deletions

18
php/activechannels.php Executable file
View File

@@ -0,0 +1,18 @@
<?php
$dir = scandir('../lists');
$channels = array();
$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)));
}
}
print_r(json_encode($channels));
?>

View File

@@ -1 +1 @@
ssh root@zoff.no '/var/www/getnew.sh'
ssh -p 1911 root@zoff.no '/var/www/getnew.sh'