diff options
author | Bradley Taunt <bt@btxx.org> | 2024-02-02 13:05:54 -0500 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-02-02 13:05:54 -0500 |
commit | 13cec3d0fc257d0e65c9a1c06bfc71648722a506 (patch) | |
tree | aaf959aa898357abe14c45016a9071ce4d0587c0 /_phpetite/rss.php |
Diffstat (limited to '_phpetite/rss.php')
-rw-r--r-- | _phpetite/rss.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/_phpetite/rss.php b/_phpetite/rss.php new file mode 100644 index 0000000..9acd8bc --- /dev/null +++ b/_phpetite/rss.php @@ -0,0 +1,17 @@ +<?php + // Include custom site configurations +include ($_SERVER['DOCUMENT_ROOT'].'_phpetite/_config.php'); + include ($_SERVER['DOCUMENT_ROOT'].'_phpetite/system.php'); + + echo '<?xml version="1.0" encoding="utf-8"?> + <feed xmlns="http://www.w3.org/2005/Atom"> + <title>'.$site_title.'</title> + <link href="'.$site_url.'/atom.xml" rel="self"/> + <link href="'.$site_url.'"/> + <updated>'.date("Y-m-d\TH:i:sP").'</updated> + <id>'.$site_url.'/</id> + <author> + <name>'.$site_author.'</name> + <email>'.$site_email.'</email> + </author>'.$rss_items.'</feed>'; +?>
\ No newline at end of file |