mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixing changeIt.php
This commit is contained in:
@@ -10,6 +10,9 @@
|
|||||||
{
|
{
|
||||||
$file = file_get_contents("oldFiles/".$list);
|
$file = file_get_contents("oldFiles/".$list);
|
||||||
$data = json_decode($file);
|
$data = json_decode($file);
|
||||||
|
if(count($data) > 0)
|
||||||
|
{
|
||||||
|
$array = array("nowPlaying" => array(), "songs" => array(), "conf" => array("startTime" => time(), "views" => 0, "skips" => array()));
|
||||||
for($i = 0; $i < count($data[0]); $i++)
|
for($i = 0; $i < count($data[0]); $i++)
|
||||||
{
|
{
|
||||||
if($i > 0)
|
if($i > 0)
|
||||||
@@ -28,6 +31,7 @@
|
|||||||
echo $list."\n";
|
echo $list."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user