. * */ // Init owncloud require_once('../../lib/base.php'); require_once( 'lib_public.php' ); require( 'template.php' ); // Check if we are a user if( !OC_USER::isLoggedIn()){ header( "Location: ".OC_HELPER::linkTo( "index.php" )); exit(); } OC_APP::setActiveNavigationEntry( "files_publiclink_administration" ); OC_UTIL::addStyle( 'files_publiclink', 'admin' ); OC_UTIL::addScript( 'files_publiclink', 'admin' ); if(isset($_SERVER['HTTPS'])) { $baseUrl= "https://". $_SERVER['SERVER_NAME'] . OC_HELPER::linkTo('files_publiclink','get.php'); }else{ $baseUrl= "http://". $_SERVER['SERVER_NAME'] . OC_HELPER::linkTo('files_publiclink','get.php'); } // return template $tmpl = new OC_TEMPLATE( "files_publiclink", "admin", "admin" ); $tmpl->assign( 'links', OC_PublicLink::getLinks()); $tmpl->assign('baseUrl',$baseUrl); $tmpl->printPage(); ?>