diff options
Diffstat (limited to 'rss.php')
| -rwxr-xr-x | rss.php | 54 |
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'); | |||
| 23 | include('../security/config.php'); | 23 | include('../security/config.php'); |
| 24 | include('includes/db.php'); | 24 | include('includes/db.php'); |
| 25 | include('includes/bbcode.php'); | 25 | include('includes/bbcode.php'); |
| 26 | include('includes/phpsvnclient.php'); | ||
| 27 | 26 | ||
| 28 | header('Content-type: application/rss+xml'); | 27 | header('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 | ||
| 171 | if (!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 | |||
| 198 | if (!isset($_GET['mode']) || ($_GET['mode'] == 'comments')) | 164 | if (!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> |
