removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / admin / admintrigger.php
diff --git a/mods/wiki/plugins/admin/admintrigger.php b/mods/wiki/plugins/admin/admintrigger.php
deleted file mode 100644 (file)
index 778286d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
-   All admin/ plugins depend upon $ewiki_ring==0 to be set, and else
-   refuse to work (so ordinary users cannot damage the database).
-   This is now an examplary trigger which sets that state variable,
-   it compares against the HTTP From: request header field, which is
-   a highly insecure approach for access protection and won't work
-   with current main stream browser (that do not support it). But
-   instead of SERVER_ADMIN you could use a complicated fake email
-   address for example.
-*/
-
-$server_admin = "passwordlikestring@example.com";
-$server_admin = $_SERVER["SERVER_ADMIN"];
-
-if ($_SERVER["HTTP_FROM"] == $server_admin) {
-   $ewiki_ring = 0;
-}
-
-?>
\ No newline at end of file