1<?php
2/**
3 *
4 * Admin Panle for epub plugin
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     Myron Turner <turnermm02@shaw.ca>
7 */
8
9class admin_plugin_fckg extends DokuWiki_Admin_Plugin {
10
11    private $results;
12
13    function handle() {
14     $msg="";
15     $fckg_array = array('fckg_font','fckg_specials','fckg_dwplugin');
16     $plugins = plugin_list('syntax');
17     $list = array_diff($plugins ,$fckg_array);
18
19    $list = implode  ("<li>\n"  , $list);
20     if($list ) {
21       $this->results = "<h2>Plugins</h3><ol><li>$list</ol>";
22     }
23     else $this->results="<h3>No applicable plugins found</h3>";
24    }
25
26
27    function html() {
28       if($this->results) {
29        ptln('<p><br />' .$this->results . '</p>');
30       }
31    }
32
33}
34