X-Git-Url: http://git.joshuawise.com/patchfork.git/blobdiff_plain/964dd0bc22ff252711b1190854923d5cd5382f9f..HEAD:/player/config.php?ds=sidebyside
diff --git a/player/config.php b/player/config.php
index da8e021..7b74547 100644
--- a/player/config.php
+++ b/player/config.php
@@ -44,8 +44,10 @@
$title = "";
@ob_start();
+ $need_rw = true;
require_once("../inc/base.php");
require_once("../lang/master.php");
+ header("Content-Type: text/html; charset=UTF-8");
?>
@@ -103,8 +105,9 @@
$config = simplexml_load_string("\n\n\n");
}
if(isset($_POST['submit'])) {
- $vars = array( 'mpd_host', 'mpd_port', 'mpd_pass', 'login_pass', 'update_delay',
- 'metadata_disable', 'theme', 'stop_button', 'shout_url', 'pagination', 'lang');
+ $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) {
$add = "";
if(isset($_POST[$var])&&trim($_POST[$var])!="")
@@ -115,11 +118,15 @@
$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);
}
+ else if ($var=='aws_secret') {
+ if ($add == HASH_PASS)
+ continue;
+ }
if(isset($config->$var)) {
@@ -200,6 +207,18 @@
}
?>' name='login_pass' />
+
+ | ' name='ro_pass' /> |
|
|
Metadata
-
+visit aws.amazon.com. ".
+ "Then, get an access key, and fill in the details below."); ?>