websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 63... | Line 63... | |
|
| |
$listurl = $config->getURL($rep, $path, 'dir'); |
$listurl = $config->getURL($rep, $path, 'dir'); | |
|
| |
// If there's no revision info, go to the lastest revision for this path |
// If there's no revision info, go to the lastest revision for this path | |
$history = $svnrep->getLog($path, $rev, '', false, $maxmessages); |
$history = $svnrep->getLog($path, $rev, '', false, $maxmessages); | |
if (is_string($history)) { | ||
echo $history; | ||
exit; | ||
} | ||
|
| |
// Cachename reflecting full path to and rev for rssfeed. Must end with xml to work |
// Cachename reflecting full path to and rev for rssfeed. Must end with xml to work | |
$cachename = strtr(getFullURL($listurl), ":/\\?", "____"); |
$cachename = strtr(getFullURL($listurl), ":/\\?", "____"); | |
$cachename = $locwebsvnreal.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR.$cachename.$rev.'_rssfeed.xml'; |
$cachename = $locwebsvnreal.DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR.$cachename.$rev.'_rssfeed.xml'; | |
|
| |
Line 124... | Line 128... | |
$desc = $lang['REV'].' '.$thisrev; |
$desc = $lang['REV'].' '.$thisrev; | |
} |
} | |
|
| |
$item->title = $desc; |
$item->title = $desc; | |
$item->link = html_entity_decode(getFullURL($baseurl.$url.'rev='.$thisrev)); |
$item->link = html_entity_decode(getFullURL($baseurl.$url.'rev='.$thisrev)); | |
$item->description = '<div><strong>'.$lang['REV'].' '.$thisrev.' - '.$r->author.'</strong> ('.$files.' '.$lang['FILESMODIFIED'].')</div><div>'.nl2br(create_anchors($desc)).'</div>'; |
$item->description = '<div><strong>'.$lang['REV'].' '.$thisrev.' - '.$r->author.'</strong> ('.$files.' '.$lang['FILESMODIFIED'].')</div><div>'.nl2br(create_anchors($r->msg)).'</div>'; | |
|
| |
if (true) { |
if (true) { | |
usort($changes, 'SVNLogEntry_compare'); |
usort($changes, 'SVNLogEntry_compare'); | |
|
| |
foreach ($changes as $file) { |
foreach ($changes as $file) { | |
Line 148... | Line 152... | |
$rss->addItem($item); |
$rss->addItem($item); | |
} |
} | |
} |
} | |
|
| |
// Save the feed |
// Save the feed | |
$rss->saveFeed($feedformat, $cachename, false); |
@$rss->saveFeed($feedformat, $cachename, false); | |
header('Content-Type: application/xml'); |
header('Content-Type: application/xml'); | |
echo $rss->createFeed($feedformat); |
echo @$rss->createFeed($feedformat); | |
|
|