head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2000.08.28.02.28.19;	author chuck;	state dead;
branches;
next	1.2;

1.2
date	2000.01.17.22.10.59;	author chuck;	state Exp;
branches;
next	1.1;

1.1
date	99.07.20.07.36.25;	author jon;	state Exp;
branches;
next	;


desc
@@


1.3
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function build_status_bar ($request_ref, &$status_ref) {
  $id = $request_ref->id;
  
  if (!($topic = $request_ref->topic))
    $topic = 'all';
  
  if (!(count_posts_in_topic($request_ref, $topic, $total)))
    return error("could not count posts");
  
  if (!(count_unread_in_topic($request_ref, $topic, $unread)))
    return error("could not count unread");
  
  if ($topic != 'all') {
    $status_ref  = "<center><font size=-1>$unread ";
    $status_ref .= '<a href="';
    $status_ref .= $GLOBALS['conf']['url'];
    $status_ref .= '/tree';
    $status_ref .= "/$request_ref->topic";
    if ($id)
      $status_ref .= "/$id";
    $status_ref .= '?unread_only=1';
    $status_ref .= '">unread</a> ';
    $status_ref .= "(of $total)</font></center>";
  } else {
    $status_ref  = "<center><font size=-1>$total ";
    $status_ref .= 'posts in all</font></center>';
  }
  
  return success();
}
@


1.2
log
@Another whomping commit that really doesn't do much tangible. The conf
system is now moved over to the $conf[section][value|subsection] mode that
the other cvs horde stuff is using.

Also, I'm compacting and tightening up the code wherever possible when I go.
Lots of major changes - moving the configuration of forums into the
database, changes in the database code for faster sql access, options to put
different forums in different tables/databases, and some nifty setup ideas -
to come.

Comments on what people would like to see in a forum system - I've already
thought of being able to attach files (where should they be stored?) - would
be welcome.
@
text
@@


1.1
log
@
jon: alrighty, babel.php3.in is now broken down into seperate
     function files.  they're jusy dying to be combined into
     objects and seperate source files.
@
text
@d16 1
a16 1
    $status_ref .= $request_ref->conf['url'];
@

