File: rss20_projects.php

package info (click to toggle)
gforge 4.5.14-22etch13
  • links: PTS
  • area: main
  • in suites: etch
  • size: 13,004 kB
  • ctags: 11,918
  • sloc: php: 36,047; sql: 29,050; sh: 10,538; perl: 6,496; xml: 3,810; makefile: 341; python: 263; ansic: 256
file content (23 lines) | stat: -rw-r--r-- 566 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// export projects list in RSS 2.0
// Author: Scott Grayban <sgrayban@borgnet.us>
//

include "pre.php";
include "rss_utils.inc";
header("Content-Type: text/xml");
print '<?xml version="1.0"?>
<rss version="2.0">
';
if (!is_numeric ($limit)) {
	$limit = 0 ;
}
$res = db_query(
	 'SELECT group_id,group_name,unix_group_name,homepage,short_description,register_time '
	.'FROM groups '
	.'WHERE is_public=1 AND status=\'A\' '
        .'ORDER BY group_id',$limit);

rss20_dump_project_result_set($res,$GLOBALS[sys_default_name].' Full Project Listing');
?>
</rss>