Fixed default only music setting

This commit is contained in:
Kasper Rynning-Tønnesen
2014-10-23 20:24:54 +02:00
parent e98c34892e
commit bc4d461bb1
5 changed files with 7 additions and 7 deletions

View File

@@ -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)
{

View File

@@ -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>