changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / action / raw.php
1 <?php
2
3 /*
4    Allows to retrieve pages in raw Wiki source format using an URL
5    like 'http://example.com/wiki/?id=raw/ThatPage'
6 */
7
8 $ewiki_config["action_links"]["view"]["raw"] = "raw";
9 $ewiki_config["action_links"]["info"]["raw"] = "raw";
10
11 $ewiki_plugins["action"]["raw"] = "ewiki_action_raw";
12 function ewiki_action_raw($id, &$data, $action) {
13
14    #-- MIME type
15    header('Content-Type: text/wiki; variant="ewiki"; charset="ISO-8859-1"');
16
17    #-- wiki magic number, http://www.emacswiki.org/cgi-bin/community/WikiMime
18 // echo "#!wiki ewiki http://ewiki.berlios.de/WikiMarkup\n";
19
20    #-- output raw page text / source
21    echo $data["content"];
22    die();
23 }
24
25 ?>