X-Git-Url: http://git.joshuawise.com/patchfork.git/blobdiff_plain/3f2daf5196ab280e4e5aeeecb4e7c8736ba86432..f8fb3735ae5063d8589a2d85eda35452592726c8:/player/config.php?ds=inline
diff --git a/player/config.php b/player/config.php
index 7146eed..7b74547 100644
--- a/player/config.php
+++ b/player/config.php
@@ -44,6 +44,7 @@
$title = "";
@ob_start();
+ $need_rw = true;
require_once("../inc/base.php");
require_once("../lang/master.php");
header("Content-Type: text/html; charset=UTF-8");
@@ -104,7 +105,7 @@
$config = simplexml_load_string("\n\n\n");
}
if(isset($_POST['submit'])) {
- $vars = array( 'mpd_host', 'mpd_port', 'mpd_pass', 'login_pass', 'update_delay',
+ $vars = array( 'mpd_host', 'mpd_port', 'mpd_pass', 'login_pass', 'ro_pass', 'update_delay',
'metadata_disable', 'theme', 'stop_button', 'shout_url', 'pagination', 'lang',
'aws_keyid', 'aws_secret');
foreach ($vars as $var) {
@@ -117,7 +118,7 @@
$add = 0;
else $add = intval($add);
}
- else if($var=="login_pass"&&strlen($add)>0) {
+ else if(($var=="login_pass" || $var == "ro_pass") &&strlen($add)>0) {
if($add== HASH_PASS)
continue;
$add = generate_hash($add);
@@ -206,6 +207,18 @@
}
?>' name='login_pass' />
+
+ | ' name='ro_pass' /> |
|
|