mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
18
php/activechannels.php
Executable file
18
php/activechannels.php
Executable 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));
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -1 +1 @@
|
|||||||
ssh root@zoff.no '/var/www/getnew.sh'
|
ssh -p 1911 root@zoff.no '/var/www/getnew.sh'
|
||||||
|
|||||||
Reference in New Issue
Block a user