Test URL paths:
- /setupapp/radio567/asp/BrowseXPA/loginXML.asp?token=0
- /setupapp/radio567/asp/BrowseXPA/LoginXML.asp?token=0
- /RadioNativeLogin.php
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/../src/');
$requestUriNoQuery = explode('?', $_SERVER['REQUEST_URI'])[0];
-$path = $fullUri = urldecode($requestUriNoQuery);
+$path = urldecode($requestUriNoQuery);
$dataDir = __DIR__ . '/../data/';
$varDir = realpath(__DIR__ . '/../var') . '/';
<?php
require_once __DIR__ . '/../src/header.php';
-if (strtolower($fullUri) == '/setupapp/radio567/asp/browsexpa/loginxml.asp?token=0'
- || $fullUri == '/RadioNativeLogin.php'
-) {
+$radioPodcastLogin = isset($_GET['token']) && $_GET['token'] == '0'
+ && strtolower($path) == '/setupapp/radio567/asp/browsexpa/loginxml.asp';
+$myNoxonLogin = $path == '/RadioNativeLogin.php';
+
+if ($radioPodcastLogin || $myNoxonLogin) {
//initial login for "internet radio", podcasts and "my noxon"
header('Content-type: text/html');
readfile($dataDir . 'login-camelcase.xml');