From b0744aae93665af651ef927025aa1fb04d58ee4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 10 Feb 2015 11:54:36 +0100 Subject: [PATCH] Removed shuffling when no admin pass --- php/change.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/change.php b/php/change.php index 750a18a8..4048ceeb 100755 --- a/php/change.php +++ b/php/change.php @@ -28,7 +28,7 @@ if(isset($_REQUEST['shuffle'])){ //shuffle songs in list $pass = htmlspecialchars($_GET['pass']); $x = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"]))); $pass=crypt($pass, '$6$rounds=9001$'.$x[1].'Fuck0ffuSn34kyn!ggerzZ$'); - if($pass == $data["conf"]["adminpass"] || $q == -1) { + if($pass == $data["conf"]["adminpass"]) { //shuffle($data["songs"]); foreach($data["songs"] as $k=>$v) {