changed git call from https to git readonly
[atutor.git] / mods / wiki / fragments / rss.php
1 <?php
2 /*
3   This script provides an RSS feed for your Wiki, if invoked from outside.
4   It itself makes use of the plugins/lib/feed.php extension, which you
5   should rather use from now on. (URL param support was dropped).
6
7   Please define EWIKI_SCRIPT_URL correctly, before using this!
8 */
9
10 #-- load ewiki
11 chdir("..");
12 require("config.php");
13
14 #-- load RSS libs
15 if (!function_defined("ewiki_feed")) {
16    include("plugins/lib/feed.php");
17 }
18 if (!function_defined("ewiki_action_rss")) {
19    include("plugins/action/rss.php");
20 }
21
22 #-- send RSS
23 $_SERVER["HTTP_ACCEPT"] .= ", application/rss+xml; revision=2.0";  // for the lazy
24 $data = false;
25 ewiki_action_rss($id="RSS", $data, $action="rss");
26
27 ?>