fix login
authorChristian Weiske <cweiske@cweiske.de>
Wed, 25 Nov 2015 22:19:48 +0000 (23:19 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 25 Nov 2015 22:19:48 +0000 (23:19 +0100)
data/initial-login.xml [deleted file]
data/login-camelcase.xml [new file with mode: 0644]
data/login-mynoxon.xml [deleted file]
www/index.php

diff --git a/data/initial-login.xml b/data/initial-login.xml
deleted file mode 100644 (file)
index 2206537..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<encryptedtoken>a6703ded78821be5</encryptedtoken>
diff --git a/data/login-camelcase.xml b/data/login-camelcase.xml
new file mode 100644 (file)
index 0000000..b460d64
--- /dev/null
@@ -0,0 +1 @@
+<EncryptedToken>a6703ded78821be5</EncryptedToken>
\ No newline at end of file
diff --git a/data/login-mynoxon.xml b/data/login-mynoxon.xml
deleted file mode 100644 (file)
index e88d339..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<EncryptedToken>a6703ded78821be5</EncryptedToken>
index d7d758f2ff4fde49ba6a7a8bee98efa3fe99df64..8b803dbd1e84161465d3061f5e0a9b55f1a82b09 100644 (file)
@@ -19,17 +19,12 @@ if (file_exists($cfgFile)) {
     include $cfgFile;
 }
 
     include $cfgFile;
 }
 
-if (strtolower($fullUri) == '/setupapp/radio567/asp/browsexpa/loginxml.asp?token=0') {
-    //initial login for "internet radio" and podcasts
-    //lowercase tags
+if (strtolower($fullUri) == '/setupapp/radio567/asp/browsexpa/loginxml.asp?token=0'
+    || $fullUri == '/RadioNativeLogin.php'
+) {
+    //initial login for "internet radio", podcasts and "my noxon"
     header('Content-type: text/html');
     header('Content-type: text/html');
-    readfile($dataDir . 'initial-login.xml');
-    exit();
-} else if ($fullUri == '/RadioNativeLogin.php') {
-    //initial login for "My noxon"
-    //this one wants CamelCased tags
-    header('Content-type: text/html');
-    readfile($dataDir . 'login-mynoxon.xml');
+    readfile($dataDir . 'login-camelcase.xml');
     exit();
 } else if ($path == '/setupapp/radio567/asp/BrowseXPA/LoginXML.asp') {
     //"Internet Radio"
     exit();
 } else if ($path == '/setupapp/radio567/asp/BrowseXPA/LoginXML.asp') {
     //"Internet Radio"
@@ -40,7 +35,6 @@ if (strtolower($fullUri) == '/setupapp/radio567/asp/browsexpa/loginxml.asp?token
 } else if ($path == '/RadioNative.php') {
     //"My Noxon"
     $path = '/mynoxon/';
 } else if ($path == '/RadioNative.php') {
     //"My Noxon"
     $path = '/mynoxon/';
-    $path = '/internetradio/';
 } else if ($path == '/setupapp/radio567/asp/BrowseXML/FavXML.asp') {
     //Internet Radio Station favorites favorited on device
     sendMessage('Unsupported');
 } else if ($path == '/setupapp/radio567/asp/BrowseXML/FavXML.asp') {
     //Internet Radio Station favorites favorited on device
     sendMessage('Unsupported');