removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / mpi / mpi_localsitemap.php
diff --git a/mods/wiki/plugins/mpi/mpi_localsitemap.php b/mods/wiki/plugins/mpi/mpi_localsitemap.php
deleted file mode 100644 (file)
index eb4869e..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/*
-   This mpi provides a tree of page backlinks from the current or any
-   given page, thus creating a sitemap.
-
-   <?plugin LocalSiteMap ?>
-   <?plugin LocalSiteMap page=ForThatPage depth=2 ?>
-
-   You shouldn't use depths greater than 3, else database walking would
-   take a while, and the result would be uglily long.
-*/
-
-$ewiki_plugins["mpi"]["localsitemap"] = "mpi2_localsitemap";
-
-
-function mpi2_localsitemap($action, $args, &$iii, &$s) {
-
-   ($depth = $args["depth"]) or ($depth = 2);
-   if ($depth > 5) {
-      $depth = 5;
-   }
-   ($id = $args["page"]) or ($id = $GLOBALS["ewiki_id"]);
-
-   $src = mpi2_localsitemap_revbl($id, "", $depth);
-
-
-   #-- throw output into _format() kernel buffer
-   if ($src) {
-      $c = &$iii[$s["in"]];
-      $c[0] = $src;
-      $c[1] = 0x00FF;
-      $c[2] = "core";
-   }
-   return($src);
-}
-
-
-function mpi2_localsitemap_revbl($id, $li, $depth) {
-   $src = "";
-   $li .= "*";
-   if ($depth--) {
-      if ($refs = ewiki_get_links($id)) {
-         foreach ($refs as $id) {
-            $src .= "$li [$id]\n";
-            $src .= mpi2_localsitemap_revbl($id, $li, $depth);
-         }
-      }
-   }
-   return($src);
-}
-
-?>
\ No newline at end of file