$to) { clearstatcache(); $size = filesize('./lists/'.$files); if($size < 200){ unlink("./lists/".$files); $size; } } if($time_lasted < $time){ $file = file_get_contents('./lists/'.$files); //Checking if the channel has the setting for showing on the frontpage set to true. $data = json_decode($file, TRUE); $conf = $data['conf']['frontpage']; if($conf == "true"){ //If it is true, the channelname will be shown on the frontpage array_push($channels, ucfirst(str_replace(".json", "", $files))); } } array_push($all_channels, ucfirst(str_replace(".json", "", $files))); } } $bg = array('bg1.jpg', 'bg2.jpg', 'bg3.jpg', 'bg4.jpg', 'bg5.jpg' ); // array of filenames $i = rand(0, count($bg)-1); // generate random number size of the array $selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen ?>
Zöff
";} ?>
Active Channels
".htmlspecialchars(urldecode($channel))."";} ?>