PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Deanna Earley  >  networknews  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Smaple index.php
Class: networknews
nntp browsing and viewing class
Author: By
Last change: Added a role and midified source slightly
Date: 12 years ago
Size: 568 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.o$
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>news.earlsoft.co.uk</title>
 </head>
 <body>
<?php
require "common.inc";

$groups = $nntp->getgroups();

for(
$groupid=0; $groupid<count($groups); $groupid++){
  if (!
$groups[$groupid]['readonly']) {
   
$group=$groups[$groupid]['name'];
    print
" <a href=\"group.php?group=".urlencode($group)."\">".htmlspecialchars($group)."</a><br>\n";
  }
}

?>
</body>
</html>