mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
added rewrite script
This commit is contained in:
@@ -63,8 +63,8 @@ if(isset($_REQUEST['thisUrl'])){
|
||||
echo $newPlaying[0]["id"];
|
||||
}
|
||||
else if(isset($_GET['v'])){ //add
|
||||
$video = htmlspecialchars($_GET['v']);
|
||||
$name = htmlspecialchars($_GET['n']);
|
||||
$video = htmlspecialchars($_GET['v']);
|
||||
$name = htmlspecialchars($_GET['n']);
|
||||
if(!in_array($video, $data["songs"]))
|
||||
{
|
||||
//$arrayAdd = array("id" => array("id" => $video, "title" => $name, "votes" => array()));
|
||||
@@ -154,6 +154,11 @@ else if(isset($_GET['skip'])){ //skip song request
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
function addSong($name, $id, $title)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function nextSong(){
|
||||
global $data;
|
||||
array_push($data[0], $data[0][0]);
|
||||
|
||||
Reference in New Issue
Block a user