6 following stuff mimics some of the plugins found in PhpWiki v1.3,
7 to make use of them you must first explicitly include() this plugin
8 (as opposed to all real mpi plugins).
10 Unlike the others, you must include() this mpi plugin on its own,
11 because it has a file name which does not match the plugin name(s).
16 $ewiki_plugins["mpi"]["allusers"] = "ewiki_mpi_phpwiki_allusers";
17 $ewiki_plugins["mpi"]["allauthors"] = "ewiki_mpi_phpwiki_allusers";
18 $ewiki_plugins["mpi"]["allpages"] = "ewiki_format_mpi_phpwiki_allpages";
23 #-- mimics phpwiki AllUsers plugin ----------------------------------------
24 # - fetches user names from the 'author' column of all pages,
25 # but not from a user registry
26 function ewiki_mpi_phpwiki_allusers($action, &$args, &$iii, &$s) {
29 $result = ewiki_db::GETALL(array("author"));
30 while ($row = $result->get()) {
31 if ($uu = strtok($row["author"], "(")) {
32 $authors[trim($uu)] = 1;
35 $authors = array_keys($authors);
36 natcasesort($authors);
38 foreach ($authors as $a) {
39 $o .= "· " . ewiki_link_regex_callback(array($a)) . "<br />\n";
47 #-- mimics the phpwiki "AllPages" plugin --------------------------------
48 function ewiki_format_mpi_phpwiki_allpages($action, &$args, &$iii, &$s) {
49 if ($action=="html") {
50 return(ewiki_page_index(0,0,0,$args));