changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / interwiki / intermaptxt.php
1 <?php
2 /*
3    Instead of using the default Wiki list from 'intermap.php', you can
4    use this plugin to load an "intermap.txt" file, like every other Wiki
5    engine does.
6    Place it into _this_ directory, into EWIKI_VAR or the ewiki basedir.
7 */
8
9 if (file_exists($fn = EWIKI_VAR."/intermap.txt")
10  or file_exists($fn = EWIKI_BASE_DIR."/intermap.txt")
11  or file_exists($fn = dirname(__FILE__)."/intermap.txt"))
12 {
13    foreach (file($fn) as $uu) {
14       $ewiki_config["interwiki"][strtok($uu, " =\t:")] = trim(strtok("\r\n"));
15    }
16 }
17
18 ?>