|
Revision 1539, 0.5 kB
(checked in by renato, 1 year ago)
|
Setting prop svn:eol-style in LOTS of files.
|
- Property svn:mime-type set to
text/plain
- 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 |
error_log($file); |
|---|
| 12 |
|
|---|
| 13 |
if (!file_exists($file)) { |
|---|
| 14 |
@header('HTTP/1.0 404 Not Found'); |
|---|
| 15 |
exit; |
|---|
| 16 |
} |
|---|
| 17 |
header("Pragma: public"); |
|---|
| 18 |
header("Cache-Control: public"); |
|---|
| 19 |
|
|---|
| 20 |
require_once($CFG->dirroot . 'lib/filelib.php'); |
|---|
| 21 |
spitfile_with_mtime_check($file, "text/xml; charset=utf-8"); |
|---|
| 22 |
|
|---|
| 23 |
?> |
|---|