. * */ require_once('lib/external.php'); OCP\User::checkLoggedIn(); if (isset($_GET['id'])) { $id = $_GET['id']; $id = (int) $id; $sites = OC_External::getSites(); if (sizeof($sites) >= $id) { $url = $sites[$id - 1][1]; OC_App::setActiveNavigationEntry('external_index' . $id); $tmpl = new OC_Template('external', 'frame', 'user'); $tmpl->assign('url', $url); $tmpl->printPage(); } } ?>