1
wishcraft
Sitemap for xPNEWS

I recently converted a php library from a chinese developer called PNEWS over to XOOPS for a NNTP reader.

I have been making a Free Usenet site with posting capabilities..

And using xpnews.. a module i wrote..

You can trial 1.2 if you want.. But this is a sitemap you can see and example at http://www.unseen.org.au/sitemap.php?server_id=1


require('mainfile.php');
global 
$xoopsDB;
error_reporting(0);
header('Content-type: text/xml');
$query[0] = "SELECT server_id, name from ".$xoopsDB->prefix('xpnews_servers')." WHERE server_id = '%s' limit 100";
$query[1] = "SELECT id, server_id, newsgroup, posts from ".$xoopsDB->prefix('xpnews_newsgroups')." where server_id = '%s' order by posts limit 4000 ";

?>

echo "1.0" encoding="UTF-8"?>n"?>
  
   
    http://echo $_SERVER['HTTP_HOST'];?>/
    echo date('Y-m-d',time());?>
    daily
    1
   


   

    $rsTitle 
$xoopsDB->query(sprintf($query[0],intval($_GET['server_id']))) or die(mysql_error());
    
$totalRows_rsTitle mysql_num_rows($rsTitle);
    
    while (
$row mysql_fetch_assoc($rsTitle)){
    
?>
   
    http://echo $_SERVER['HTTP_HOST'];?>/list,echo $row['server_id']; ?>,echo urlencode($row['name']); ?>.html
    echo date('Y-m-d',time());?>
    weekly
    0.9
   


   
    $rsTitleb 
$xoopsDB->query(sprintf($query[1], $row['server_id'])) or die(mysql_error());
    
$totalRows_rsTitle mysql_num_rows($rsTitleb);
    
    while (
$rowb mysql_fetch_assoc($rsTitleb)){

        for(
$r=20;$r<($rowb['posts']/20)+20;$r=$r+20){
    
?>
   
    http://echo $_SERVER['HTTP_HOST'];?>/indexing,paginated,echo $row['server_id']; ?>,echo $rowb['newsgroup']; ?>,echo $r/20?>
    echo date('Y-m-d');?>
    weekly
    0.7
   

        }
    }
    }
   
?>   

Login

Who's Online

950 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 950


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits