root/releases/elgg0.8rc2/_rss/static.php

Revision 453, 502 bytes (checked in by sven, 2 years ago)

fix a load of php notices and a couple of trivial bugs
files: add displaying of access perms like on blog posts

  • Property svn:eol-style set to native
Line 
1 <?php
2
3 require_once(dirname(dirname(__FILE__)).'/includes.php');
4
5 $userref = optional_param('userref');
6 $username = optional_param('username');
7 $type = optional_param('type');
8
9 $file = $CFG->dataroot.'rss/'.$userref.'/'.$username.'/'.$type.'.xml';
10
11 if (!file_exists($file)) {
12     @header('HTTP/1.0 404 Not Found');
13     exit;
14 }
15 header("Pragma: public");
16 header("Cache-Control: public");
17
18 require_once($CFG->dirroot . 'lib/filelib.php');
19 spitfile_with_mtime_check($file, "text/xml; charset=utf-8");
20
21 ?>
Note: See TracBrowser for help on using the browser.