mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed shitty bug I just created
This commit is contained in:
@@ -36,12 +36,13 @@ function submitAdmin(form)
|
||||
adminpass = form.pass.value;
|
||||
skipping = form.skip.value;
|
||||
shuffling = form.shuffle.value;
|
||||
|
||||
|
||||
confRes = $.ajax({
|
||||
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);
|
||||
|
||||
@@ -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"])));
|
||||
|
||||
Reference in New Issue
Block a user