connect();//`key`<$startfile $sql=new sqluser; $sql->db=&$db; //look for this group $group=$_GET['g']; $groupid=$sql->GROUP2ID($group); if(!is_numeric($groupid)){echo "Invalid group!";exit;}//invalid group //show files, build results table $q=$sql->browsegroup($groupid,$_GET['s'],$_GET['r']); $db->query($q); require_once('class/utilities.class.php'); $uf=new utilityfunctions; if(isset($_GET['format'])&&($_GET['format']=='xml')){ header("Content-Type: application/xml"); echo ' '.$_GET['g'].' grouplist '; while($db->next_record()){ //format: //subject // echo ' '.htmlspecialchars($db->Record['subject'],ENT_QUOTES).''; } echo " "; exit; } require_once('class/browse.class.php'); $t=new tablemaker; $t->uf=&$uf; if(isset($_GET['format'])&&($_GET['format']=='rss')){ //echo "rss feeds not yet available";exit; require_once('class/feedcreator.class.php'); //define channel $rss = new UniversalFeedCreator(); $rss->useCached(); $rss->title=$group; $rss->description=$GLOBALS['CONF_rssbaseurl'].' | latest files in '.$group; $rss->link=$GLOBALS['CONF_rssbaseurl'].'/group.php?g='.$group; $rss->syndicationURL=$GLOBALS['CONF_rssbaseurl'].'/'.$PHP_SELF; //$rss->cssStyleSheet=$GLOBALS['CONF_rssbaseurl'].'/style.css'; while($db->next_record()){ //channel items/entries $item = new FeedItem(); $item->title = $db->Record['subject']; $item->link = $GLOBALS['CONF_rssbaseurl'].'/browse.php?g='.$group.'&r=1&s='.$db->Record['key']; $item->description =$t->rssitem($db->Record,false); $item->source = $GLOBALS['CONF_rssbaseurl']; $item->author = $db->Record['poster']; $item->date = strtotime($db->Record['date']); $rss->addItem($item); } //Valid parameters are RSS0.91, RSS1.0, RSS2.0, PIE0.1 (deprecated), // MBOX, OPML, ATOM, ATOM1.0, ATOM0.3, HTML, JS $rss->outputFeed("RSS2.0"); //$rss->saveFeed("ATOM1.0", "news/feed.xml"); exit; } $p=new page; if($GLOBALS['CONF_browsegzip']){ob_start('ob_gzhandler');} ?> <?php echo $GLOBALS['CONF_shortsitename']; ?> | browse groups phead();?> pagehead();?>
Browse
Only Collections
next_record()){ echo $t->titem($db->Record,false); $next_record=$db->Record['key']; } ?>
Subject Poster Age

<< >