Fixed shitty bug I just created

This commit is contained in:
KasperRT
2015-03-24 11:17:08 +01:00
parent d50f193426
commit 2f5f86cb40
2 changed files with 4 additions and 3 deletions

View File

@@ -41,7 +41,8 @@ function submitAdmin(form)
type: "POST",
url: "php/change.php",
async: false,
data: "conf=start&vote="+voting+"&addsongs="+addsongs+"&longsongs="+longsongs+"&frontpage="+frontpage+"&allvideos="+allvideos+"&removeplay="+removeplay+"&pass="+adminpass+"&skip="+skipping+"&shuffle="+shuffling,
data: "conf=start&vote="+voting+"&addsongs="+addsongs+"&longsongs="+longsongs+"&frontpage="+frontpage+
"&allvideos="+allvideos+"&removeplay="+removeplay+"&pass="+adminpass+"&skip="+skipping+"&shuffling="+shuffling,
success: function() {
console.log("configurations response: "+response);

View File

@@ -254,7 +254,7 @@ else if(isset($_GET['skip'])){ //skip,
$data["conf"]["allvideos"] = $_POST['allvideos'];
$data["conf"]["removeplay"] = $_POST['removeplay'];
$data["conf"]["skip"] = $_POST['skip'];
$data["conf"]["shuffle"] = $_POST['shuffle'];
$data["conf"]["shuffle"] = $_POST['shuffling'];
$pass = htmlspecialchars($_POST['pass']);
if($pass != ""){
$x = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));