new posts count in index.php
authorx99bachelart <x99bachelart>
Mon, 8 Sep 2003 23:52:08 +0000 (23:52 +0000)
committerx99bachelart <x99bachelart>
Mon, 8 Sep 2003 23:52:08 +0000 (23:52 +0000)
index.php

index 9a7275e..0ea5aca 100644 (file)
--- a/index.php
+++ b/index.php
@@ -71,13 +71,14 @@ $pair = true;
 foreach ($groups->overview as $g => $d) {
   $pair = !$pair;
   $groupinfo = $nntp->group($g);
+  $newarts = $nntp->newnews($profile['lastnews'],$g);
 ?>
   <tr class="<?php echo ($pair?"pair":"impair");?>" >
     <td class="total">
       <?php echo $groupinfo[0]; ?>
     </td>
     <td class="unread">
-      0
+      <?php echo sizeof($newarts); ?>
     </td>
     <td class="group">
       <?php echo "<a href=\"thread.php?group=$g\">$g</a>";?>