Subversion Repositories oidplus

Rev

Rev 256 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 256 Rev 261
Line 282... Line 282...
282
                                        $out['text'] .= '               <th width="25%">Plugin name</th>';
282
                                        $out['text'] .= '               <th width="25%">Plugin name</th>';
283
                                        $out['text'] .= '               <th width="25%">Plugin version</th>';
283
                                        $out['text'] .= '               <th width="25%">Plugin version</th>';
284
                                        $out['text'] .= '               <th width="25%">Plugin author</th>';
284
                                        $out['text'] .= '               <th width="25%">Plugin author</th>';
285
                                        $out['text'] .= '       </tr>';
285
                                        $out['text'] .= '       </tr>';
286
                                        foreach ($plugins as $plugin) {
286
                                        foreach ($plugins as $plugin) {
287
                                                $active = $plugin::name() == OIDPLUS_DATABASE_PLUGIN;
287
                                                $active = $plugin::name() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN');
288
                                                if ($active && !$show_db_active) continue;
288
                                                if ($active && !$show_db_active) continue;
289
                                                if (!$active && !$show_db_inactive) continue;
289
                                                if (!$active && !$show_db_inactive) continue;
290
 
290
 
291
                                                $out['text'] .= '       <tr>';
291
                                                $out['text'] .= '       <tr>';
292
                                                $pluginInfo = $plugin::getPluginInformation();
292
                                                $pluginInfo = $plugin::getPluginInformation();
293
                                                if ($plugin::name() == OIDPLUS_DATABASE_PLUGIN) {
293
                                                if ($plugin::name() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN')) {
294
                                                        $out['text'] .= '<td><a '.OIDplus::gui()->link('oidplus:system_plugins.$'.get_class($plugin)).'><b>'.htmlentities(get_class($plugin)).'</b> (active)</a></td>';
294
                                                        $out['text'] .= '<td><a '.OIDplus::gui()->link('oidplus:system_plugins.$'.get_class($plugin)).'><b>'.htmlentities(get_class($plugin)).'</b> (active)</a></td>';
295
                                                } else {
295
                                                } else {
296
                                                        $out['text'] .= '<td><a '.OIDplus::gui()->link('oidplus:system_plugins.$'.get_class($plugin)).'>'.htmlentities(get_class($plugin)).'</a></td>';
296
                                                        $out['text'] .= '<td><a '.OIDplus::gui()->link('oidplus:system_plugins.$'.get_class($plugin)).'>'.htmlentities(get_class($plugin)).'</a></td>';
297
                                                }
297
                                                }
298
                                                if (!isset($pluginInfo['name']) || empty($pluginInfo['name'])) $pluginInfo['name'] = 'n/a';
298
                                                if (!isset($pluginInfo['name']) || empty($pluginInfo['name'])) $pluginInfo['name'] = 'n/a';
Line 391... Line 391...
391
                $db_plugins = array();
391
                $db_plugins = array();
392
                foreach (OIDplus::getDatabasePlugins() as $plugin) {
392
                foreach (OIDplus::getDatabasePlugins() as $plugin) {
393
                        $pluginInfo = $plugin::getPluginInformation();
393
                        $pluginInfo = $plugin::getPluginInformation();
394
                        $txt = (!isset($pluginInfo['name']) || empty($pluginInfo['name'])) ? get_class($plugin) : $pluginInfo['name'];
394
                        $txt = (!isset($pluginInfo['name']) || empty($pluginInfo['name'])) ? get_class($plugin) : $pluginInfo['name'];
395
 
395
 
396
                        if ($plugin::name() == OIDPLUS_DATABASE_PLUGIN) {
396
                        if ($plugin::name() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN')) {
397
                                $db_plugins[] = array(
397
                                $db_plugins[] = array(
398
                                        'id' => 'oidplus:system_plugins.$'.get_class($plugin),
398
                                        'id' => 'oidplus:system_plugins.$'.get_class($plugin),
399
                                        'icon' => $tree_icon_db_active,
399
                                        'icon' => $tree_icon_db_active,
400
                                        'text' => $txt,
400
                                        'text' => $txt,
401
                                 );
401
                                 );