summary refs log tree commit diff stats
path: root/rss.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-11-19 20:57:23 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-11-19 20:57:23 -0500
commit6a66b6b2fea3fa24862586e27e9b03a2f92196a5 (patch)
treeb84819db2837748574dcac4705beb4bd50fb52f9 /rss.php
parent51337807124d7f57d6cff6656d41b5fd57010c6b (diff)
downloadfourisland-6a66b6b2fea3fa24862586e27e9b03a2f92196a5.tar.gz
fourisland-6a66b6b2fea3fa24862586e27e9b03a2f92196a5.tar.bz2
fourisland-6a66b6b2fea3fa24862586e27e9b03a2f92196a5.zip
Removed includes/phpsvnclient.php
phpsvnclient.php was previously used to interface the Four Island Subversion Repositories so changesets could be seen via the RSS feed, but not only
not many people want this in their RSS feed, and the people that did could get a seperate feed, but Four Island no longer uses Subversion, instead it
uses the better, distributive Mercurial.
Diffstat (limited to 'rss.php')
-rwxr-xr-xrss.php54
1 files changed, 0 insertions, 54 deletions
diff --git a/rss.php b/rss.php index c9e866f..b13aef2 100755 --- a/rss.php +++ b/rss.php
@@ -23,7 +23,6 @@ require('headerproc.php');
23include('../security/config.php'); 23include('../security/config.php');
24include('includes/db.php'); 24include('includes/db.php');
25include('includes/bbcode.php'); 25include('includes/bbcode.php');
26include('includes/phpsvnclient.php');
27 26
28header('Content-type: application/rss+xml'); 27header('Content-type: application/rss+xml');
29 28
@@ -61,9 +60,6 @@ if (isset($_GET['mode']))
61 case 'poll': 60 case 'poll':
62?> Polls<?php 61?> Polls<?php
63 break; 62 break;
64 case 'projects':
65?> Projects<?php
66 break;
67 case 'comments': 63 case 'comments':
68?> Comments<?php 64?> Comments<?php
69 break; 65 break;
@@ -100,9 +96,6 @@ if (isset($_GET['mode']))
100 case 'poll': 96 case 'poll':
101?>An archive of all of the Four Island POTWs<?php 97?>An archive of all of the Four Island POTWs<?php
102 break; 98 break;
103 case 'projects':
104?>An archive of all of the Four Island Project checkins<?php
105 break;
106 case 'comments': 99 case 'comments':
107?>An archive of all of the comments people have left on Four Island<?php 100?>An archive of all of the comments people have left on Four Island<?php
108 break; 101 break;
@@ -168,33 +161,6 @@ if ($_GET['mode'] == 'poll')
168 } 161 }
169} 162}
170 163
171if (!isset($_GET['mode']) || ($_GET['mode'] == 'projects'))
172{
173 $svn = new phpSVNclient();
174 ob_start();
175 $projs = explode(" ",system('dir /var/svn'));
176 ob_end_clean();
177
178// $si = $i;
179
180 foreach ($projs as $name)
181 {
182 $svn->setRespository('http://svn.fourisland.com/' . $name);
183// $svn->setAuth('hatkirby','popstartwo506');
184 $logs = $svn->getFileLogs('');
185
186 $k=0;
187 while (($items[$i] = $logs[$k]))
188 {
189 $items[$i]['sortDate'] = strtotime($items[$i]['date']);
190 $items[$i]['itemType'] = 'project';
191 $items[$i]['project'] = $name;
192 $i++;
193 $k++;
194 }
195 }
196}
197
198if (!isset($_GET['mode']) || ($_GET['mode'] == 'comments')) 164if (!isset($_GET['mode']) || ($_GET['mode'] == 'comments'))
199{ 165{
200 $getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,10"; 166 $getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,10";
@@ -288,26 +254,6 @@ foreach ($items as $key => $value)
288 break; 254 break;
289 case 'poll': 255 case 'poll':
290 break; 256 break;
291 case 'project':
292 $value['comment'] = str_replace('[','',str_replace(']','',$value['comment']));
293 if (strpos($value['comment'],"\n") !== FALSE)
294 {
295 $title = htmlentities(substr($value['comment'],0,strpos($value['comment'],"\n")));
296 } else {
297 $title = htmlentities($value['comment']);
298 }
299?>
300 <item>
301 <title><?php echo($value['project']); ?> r<?php echo($value['version']); ?> - <?php echo($title); ?></title>
302
303 <link>http://www.fourisland.com/projects/<?php echo($value['project']); ?>/changeset/<?php echo(urlencode($value['version'])); ?></link>
304
305 <description><?php echo(htmlentities(nl2br($value['comment']))); ?></description>
306
307 <pubDate><?php echo(date('D, d M Y H:i:s O',$value['sortDate'])); ?></pubDate>
308 </item>
309<?php
310 break;
311 case 'comment': 257 case 'comment':
312?> 258?>
313 <item> 259 <item>