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:
@@ -41,7 +41,8 @@ function submitAdmin(form)
|
|||||||
type: "POST",
|
type: "POST",
|
||||||
url: "php/change.php",
|
url: "php/change.php",
|
||||||
async: false,
|
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() {
|
success: function() {
|
||||||
console.log("configurations response: "+response);
|
console.log("configurations response: "+response);
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ else if(isset($_GET['skip'])){ //skip,
|
|||||||
$data["conf"]["allvideos"] = $_POST['allvideos'];
|
$data["conf"]["allvideos"] = $_POST['allvideos'];
|
||||||
$data["conf"]["removeplay"] = $_POST['removeplay'];
|
$data["conf"]["removeplay"] = $_POST['removeplay'];
|
||||||
$data["conf"]["skip"] = $_POST['skip'];
|
$data["conf"]["skip"] = $_POST['skip'];
|
||||||
$data["conf"]["shuffle"] = $_POST['shuffle'];
|
$data["conf"]["shuffle"] = $_POST['shuffling'];
|
||||||
$pass = htmlspecialchars($_POST['pass']);
|
$pass = htmlspecialchars($_POST['pass']);
|
||||||
if($pass != ""){
|
if($pass != ""){
|
||||||
$x = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
|
$x = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
|
||||||
|
|||||||
Reference in New Issue
Block a user