Пример #1
0
function plugin_loadall($check = false)
{
    // this is done during init process
    // all the plugin are loaded
    $pluginlister = new plugin_indexer();
    $enab = $pluginlister->getEnableds($check);
    include_once INCLUDES_DIR . 'core.wp-pluggable-funcs.php';
    return $enab;
}
Пример #2
0
 function setup()
 {
     $this->pluginid = isset($_GET['plugin']) ? $_GET['plugin'] : null;
     $pi = new plugin_indexer();
     $plist = $pi->getList();
     sort($plist);
     $this->smarty->assign('pluginlist', $plist);
     $this->errors = @$pi->getEnableds(true);
     $this->fp_plugins = $pi->enabledlist;
 }