<?php require_once("includes/requireadminlogin.inc.php"); $pluginsconfig=load_plugins_config(current_mb_id()); $plugins=list_local_plugins(); $dataset['PLUGIN-LIST']=array(); $iseven=1; foreach ($plugins as $pname=>$p) { array_push($dataset['PLUGIN-LIST'], array( 'pluginname'=>$pname, 'name'=>$p->name, 'description'=>$p->description, 'author'=>$p->author, 'homepage'=>$p->homepage, 'version'=>$p->version, 'CONFIGPAGE'=>$p->configpage?array(0):array(), 'ROWEVEN'=>$iseven?array(0):array(), 'ROWODD'=>$iseven?array():array(0), 'ENABLED'=>$pluginsconfig[$pname]['enabled']?array(0):array(), 'DISABLED'=>$pluginsconfig[$pname]['enabled']?array():array(0) ) ); $iseven=1-$iseven; } ?>