mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
temp limit on number of channels
This commit is contained in:
@@ -10,6 +10,7 @@ $channels = array();
|
|||||||
$all_channels = array();
|
$all_channels = array();
|
||||||
$time = 60*60*24*4; //4 dager
|
$time = 60*60*24*4; //4 dager
|
||||||
$to = 60*60*24*2;
|
$to = 60*60*24*2;
|
||||||
|
$i = 0;
|
||||||
foreach($dir as $files){
|
foreach($dir as $files){
|
||||||
if(strpos($files, '.json') !== FALSE){
|
if(strpos($files, '.json') !== FALSE){
|
||||||
$time_lasted = time() - filemtime('./lists/'.$files);
|
$time_lasted = time() - filemtime('./lists/'.$files);
|
||||||
@@ -28,7 +29,10 @@ foreach($dir as $files){
|
|||||||
array_push($channels, ucfirst(str_replace(".json", "", $files)));
|
array_push($channels, ucfirst(str_replace(".json", "", $files)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$i++;
|
||||||
array_push($all_channels, ucfirst(str_replace(".json", "", $files)));
|
array_push($all_channels, ucfirst(str_replace(".json", "", $files)));
|
||||||
|
if($i > 13)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user