. * */ require_once('../lib/base.php'); oc_require( 'template.php' ); if( !OC_USER::isLoggedIn() || !OC_GROUP::inGroup( $_SESSION['user_id'], 'admin' )){ header( "Location: ".OC_HELPER::linkTo( "index.php" )); exit(); } $plugins=array(); $blacklist=OC_PLUGIN::loadBlackList(); foreach( OC_PLUGIN::listPlugins() as $i ){ // Gather data about plugin $data = OC_PLUGIN::getPluginData($plugin); // Is it enabled? $data["enabled"] = ( array_search( $plugin, $blacklist ) === false ); // Add the data $plugins[] = $data; } $tmpl = new OC_TEMPLATE( "admin", "plugins", "admin" ); $tmpl->assign( "plugins", $plugins ); $tmpl->printPage(); ?>