-set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/../src/');
-$fullUri = $_SERVER['REQUEST_URI'];
-if (isset($_SERVER['REDIRECT_URL'])) {
- $path = $_SERVER['REDIRECT_URL'];
-} else {
- $path = '/';
-}
-$dataDir = __DIR__ . '/../data/';
-$varDir = realpath(__DIR__ . '/../var') . '/';
-$host1 = 'http://radio567.vtuner.com/';
-$host2 = 'http://radio5672.vtuner.com/';
-if ($_SERVER['HTTP_HOST'] !== '') {
- $host1 = 'http://' . $_SERVER['HTTP_HOST'] . '/';
- $host2 = 'http://' . $_SERVER['HTTP_HOST'] . '/';
-}
-
-if (strtolower($fullUri) == '/setupapp/radio567/asp/browsexpa/loginxml.asp?token=0') {
- //initial login for "internet radio" and podcasts
- //lowercase tags
- 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
+require_once __DIR__ . '/../src/header.php';
+
+if (strtolower($fullUri) == '/setupapp/radio567/asp/browsexpa/loginxml.asp?token=0'
+ || $fullUri == '/RadioNativeLogin.php'
+) {
+ //initial login for "internet radio", podcasts and "my noxon"