removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / page / fortune.php
diff --git a/mods/wiki/plugins/page/fortune.php b/mods/wiki/plugins/page/fortune.php
deleted file mode 100644 (file)
index 2f9c84a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-# requires UNIX/Linux and the 'fortune' program (prints jokes)
-
-
-$ewiki_plugins["page"]["Fortune"] = "ewiki_page_fortune";
-
-
-function ewiki_page_fortune($id, $data, $action) {
-
-   $LANGUAGE = trim(preg_replace('/[^a-z]*q=[^a-z]*|[^a-z]+/', ':', $_SERVER["HTTP_ACCEPT_LANGUAGE"].$_ENV["LANGUAGE"]." en"), ":");
-   $LANG = strtok($LANGUAGE, ":");
-   $ENV = "export LANGUAGE=$LANGUAGE ; export LANG=$LANG ;";
-   
-   $o = "<h2>$id</h2>\n";
-
-   $o .= "<pre>" . shell_exec("$ENV /usr/games/fortune") . "</pre>\n";
-
-   return($o);
-}
-
-
-?>
\ No newline at end of file