$auth = new Auth(); } else { $auth = unserialize($_SESSION['auth']); } //$cfg = Config::getInstance(); $t = new WsTmpl(); $streams = new Streams($cfg, $auth, $t); if (!$auth->is_logged_in) { print json_encode(array("is_logged_in" => false)); die; } ob_start(); ob_implicit_flush(0); if ($_GET['action'] == "createPlaylistJs") { print $streams->createPlaylistJs($_GET['dir']); $streams->print_gzipped_page(); die; } else { if ($_GET['action'] == "openDir") { print $streams->openTheDir($_GET['dir']); $streams->print_gzipped_page(); die; } else { if ($_GET['action'] == "getHomeNavigation") { print $streams->getHomeNavigation(); $streams->print_gzipped_page(); die; } else { if ($_GET['action'] == "openMyRadio") { print $streams->openMyRadio(); $streams->print_gzipped_page();