From edb5e88a9592b7994f889375b89abd8c963db54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 10 Feb 2015 00:11:57 +0100 Subject: [PATCH] No longer needed adminpass on channel without adminpass to shuffle --- php/change.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/change.php b/php/change.php index 4048ceeb..750a18a8 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"]) { + if($pass == $data["conf"]["adminpass"] || $q == -1) { //shuffle($data["songs"]); foreach($data["songs"] as $k=>$v) {