mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed default only music setting
This commit is contained in:
@@ -197,7 +197,7 @@ else if(isset($_GET['skip'])){ //skip,
|
||||
$data["conf"]["addsongs"] = $_POST['addsongs'];
|
||||
$data["conf"]["longsongs"] = $_POST['longsongs'];
|
||||
$data["conf"]["frontpage"] = $_POST['frontpage'];
|
||||
$data["conf"]["onlymusic"] = $_POST['onlymusic'];
|
||||
$data["conf"]["allvideos"] = $_POST['allvideos'];
|
||||
$data["conf"]["removeplay"] = $_POST['removeplay'];
|
||||
$pass = htmlspecialchars($_POST['pass']);
|
||||
$x = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
|
||||
@@ -210,7 +210,7 @@ else if(isset($_GET['skip'])){ //skip,
|
||||
//$data["conf"]["addsongs"] = $addsongs;
|
||||
//$data["conf"]["longsongs"] = $longsongs;
|
||||
//$data["conf"]["frontpage"] = $frontpage;
|
||||
//$data["conf"]["onlymusic"] = $onlymusic;
|
||||
//$data["conf"]["allvideos"] = $allvideos;
|
||||
//$data["conf"]["removeplay"] = $removeplay;
|
||||
if($data["conf"]["adminpass"] == $pass || $q != 1) //if the password is the same as the one in the jsonfile, we are updating the settings (not in use yet)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<label>Only admin can add songs <input type="checkbox" name="addSongs" value="1"></label>
|
||||
<label>Allow long songs <input type="checkbox" name="longSongs" value="1"></label>
|
||||
<label>Show playlist on frontpage <input type="checkbox" name="frontPage" value="1"></label>
|
||||
<label>Only music <input type="checkbox" name="onlyMusic" value="1"></label>
|
||||
<label>All Videos <input type="checkbox" name="onlyMusic" value="1"></label>
|
||||
<label>Remove song after playing <input type="checkbox" name="removePlay" value="1"></label>
|
||||
<label>Admin Password <input type="password" name="pass"></label>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user