Rev 1207 | Rev 1266 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1207 | Rev 1211 | ||
---|---|---|---|
Line 379... | Line 379... | ||
379 | $out['text'] .= '<thead>'; |
379 | $out['text'] .= '<thead>'; |
380 | $this->pluginTableHead($out); |
380 | $this->pluginTableHead($out); |
381 | $out['text'] .= '</thead>'; |
381 | $out['text'] .= '</thead>'; |
382 | $out['text'] .= '<tbody>'; |
382 | $out['text'] .= '<tbody>'; |
383 | foreach ($plugins as $plugin) { |
383 | foreach ($plugins as $plugin) { |
384 | $active = $plugin::id() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN'); |
384 | $active = $plugin->isActive(); |
385 | if ($active && !$show_db_active) continue; |
385 | if ($active && !$show_db_active) continue; |
386 | if (!$active && !$show_db_inactive) continue; |
386 | if (!$active && !$show_db_inactive) continue; |
387 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
387 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
388 | } |
388 | } |
389 | $out['text'] .= '</tbody>'; |
389 | $out['text'] .= '</tbody>'; |
Line 400... | Line 400... | ||
400 | $out['text'] .= '<thead>'; |
400 | $out['text'] .= '<thead>'; |
401 | $this->pluginTableHead($out); |
401 | $this->pluginTableHead($out); |
402 | $out['text'] .= '</thead>'; |
402 | $out['text'] .= '</thead>'; |
403 | $out['text'] .= '<tbody>'; |
403 | $out['text'] .= '<tbody>'; |
404 | foreach ($plugins as $plugin) { |
404 | foreach ($plugins as $plugin) { |
405 | $active = $plugin::id() == OIDplus::db()->getSlang()->id(); |
405 | $active = $plugin->isActive(); |
406 | if ($active && !$show_sql_active) continue; |
406 | if ($active && !$show_sql_active) continue; |
407 | if (!$active && !$show_sql_inactive) continue; |
407 | if (!$active && !$show_sql_inactive) continue; |
408 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
408 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
409 | } |
409 | } |
410 | $out['text'] .= '</tbody>'; |
410 | $out['text'] .= '</tbody>'; |
Line 519... | Line 519... | ||
519 | $out['text'] .= '<thead>'; |
519 | $out['text'] .= '<thead>'; |
520 | $this->pluginTableHead($out); |
520 | $this->pluginTableHead($out); |
521 | $out['text'] .= '</thead>'; |
521 | $out['text'] .= '</thead>'; |
522 | $out['text'] .= '<tbody>'; |
522 | $out['text'] .= '<tbody>'; |
523 | foreach ($plugins as $plugin) { |
523 | foreach ($plugins as $plugin) { |
524 | $active = OIDplus::config()->getValue('design') === basename($plugin->getPluginDirectory()); |
524 | $active = $plugin->isActive(); |
525 | if ($active && !$show_design_active) continue; |
525 | if ($active && !$show_design_active) continue; |
526 | if (!$active && !$show_design_inactive) continue; |
526 | if (!$active && !$show_design_inactive) continue; |
527 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
527 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
528 | } |
528 | } |
529 | $out['text'] .= '</tbody>'; |
529 | $out['text'] .= '</tbody>'; |
Line 540... | Line 540... | ||
540 | $out['text'] .= '<thead>'; |
540 | $out['text'] .= '<thead>'; |
541 | $this->pluginTableHead($out); |
541 | $this->pluginTableHead($out); |
542 | $out['text'] .= '</thead>'; |
542 | $out['text'] .= '</thead>'; |
543 | $out['text'] .= '<tbody>'; |
543 | $out['text'] .= '<tbody>'; |
544 | foreach ($plugins as $plugin) { |
544 | foreach ($plugins as $plugin) { |
545 | $captcha_plugin_name = OIDplus::getActiveCaptchaPluginId(); |
- | |
546 | $active = $plugin::id() == $captcha_plugin_name; |
545 | $active = $plugin->isActive(); |
547 | if ($active && !$show_captcha_active) continue; |
546 | if ($active && !$show_captcha_active) continue; |
548 | if (!$active && !$show_captcha_inactive) continue; |
547 | if (!$active && !$show_captcha_inactive) continue; |
549 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
548 | $this->pluginTableLine($out, $plugin, $active?1:0, $active?_L('active'):''); |
550 | } |
549 | } |
551 | $out['text'] .= '</tbody>'; |
550 | $out['text'] .= '</tbody>'; |
Line 641... | Line 640... | ||
641 | } |
640 | } |
642 | $db_plugins = array(); |
641 | $db_plugins = array(); |
643 | foreach (OIDplus::getDatabasePlugins() as $plugin) { |
642 | foreach (OIDplus::getDatabasePlugins() as $plugin) { |
644 | $txt = (empty($plugin->getManifest()->getName())) ? get_class($plugin) : $plugin->getManifest()->getName(); |
643 | $txt = (empty($plugin->getManifest()->getName())) ? get_class($plugin) : $plugin->getManifest()->getName(); |
645 | 644 | ||
646 | if ($plugin::id() == OIDplus::baseConfig()->getValue('DATABASE_PLUGIN')) { |
645 | if ($plugin->isActive()) { |
647 | $db_plugins[] = array( |
646 | $db_plugins[] = array( |
648 | 'id' => 'oidplus:system_plugins$'.get_class($plugin), |
647 | 'id' => 'oidplus:system_plugins$'.get_class($plugin), |
649 | 'icon' => $tree_icon_db_active, |
648 | 'icon' => $tree_icon_db_active, |
650 | 'text' => $txt, |
649 | 'text' => $txt, |
651 | ); |
650 | ); |
Line 732... | Line 731... | ||
732 | } |
731 | } |
733 | $design_plugins = array(); |
732 | $design_plugins = array(); |
734 | foreach (OIDplus::getDesignPlugins() as $plugin) { |
733 | foreach (OIDplus::getDesignPlugins() as $plugin) { |
735 | $txt = (empty($plugin->getManifest()->getName())) ? get_class($plugin) : $plugin->getManifest()->getName(); |
734 | $txt = (empty($plugin->getManifest()->getName())) ? get_class($plugin) : $plugin->getManifest()->getName(); |
736 | 735 | ||
737 | $active = OIDplus::config()->getValue('design') === basename($plugin->getPluginDirectory()); |
- | |
738 | if ($active) { |
736 | if ($plugin->isActive()) { |
739 | $design_plugins[] = array( |
737 | $design_plugins[] = array( |
740 | 'id' => 'oidplus:system_plugins$'.get_class($plugin), |
738 | 'id' => 'oidplus:system_plugins$'.get_class($plugin), |
741 | 'icon' => $tree_icon_design_active, |
739 | 'icon' => $tree_icon_design_active, |
742 | 'text' => $txt, |
740 | 'text' => $txt, |
743 | ); |
741 | ); |
Line 751... | Line 749... | ||
751 | } |
749 | } |
752 | $captcha_plugins = array(); |
750 | $captcha_plugins = array(); |
753 | foreach (OIDplus::getCaptchaPlugins() as $plugin) { |
751 | foreach (OIDplus::getCaptchaPlugins() as $plugin) { |
754 | $txt = (empty($plugin->getManifest()->getName())) ? get_class($plugin) : $plugin->getManifest()->getName(); |
752 | $txt = (empty($plugin->getManifest()->getName())) ? get_class($plugin) : $plugin->getManifest()->getName(); |
755 | 753 | ||
756 | $captcha_plugin_name = OIDplus::getActiveCaptchaPluginId(); |
- | |
757 | if ($plugin::id() == $captcha_plugin_name) { |
754 | if ($plugin->isActive()) { |
758 | $captcha_plugins[] = array( |
755 | $captcha_plugins[] = array( |
759 | 'id' => 'oidplus:system_plugins$'.get_class($plugin), |
756 | 'id' => 'oidplus:system_plugins$'.get_class($plugin), |
760 | 'icon' => $tree_icon_captcha_active, |
757 | 'icon' => $tree_icon_captcha_active, |
761 | 'text' => $txt, |
758 | 'text' => $txt, |
762 | ); |
759 | ); |