. * */ require_once('../lib/base.php'); require( 'template.php' ); if( !OC_USER::isLoggedIn() || !OC_GROUP::inGroup( $_SESSION['user_id'], 'admin' )){ header( "Location: ".OC_HELPER::linkTo( "", "index.php" )); exit(); } // Load the files we need //OC_UTIL::addStyle( "", "files" ); //OC_UTIL::addScript( "", "files" ); $categories=OC_OCSCLIENT::getCategories(); $apps=OC_OCSCLIENT::getApplications($categories); // return template $tmpl = new OC_TEMPLATE( "admin", "apps", "admin" ); $tmpl->assign( "categories", $categories ); $tmpl->assign( "apps", $apps ); $tmpl->printPage(); ?>