. * */ require_once('../../lib/base.php'); // Check if we are a user if( !OC_User::isLoggedIn()){ header( "Location: ".OC_Helper::linkTo( '', 'index.php' )); exit(); } if(isset($_GET['id'])){ $id=$_GET['id']; $id = (int) $id; $url=OC_Config::getValue( "external-site".$id."url", '' ); OC_App::setActiveNavigationEntry( 'external_index'.$id ); $tmpl = new OC_Template( 'external', 'frame', 'user' ); $tmpl->assign('url',$url); $tmpl->printPage(); } ?>