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


1.4
date	2000.08.28.02.28.25;	author chuck;	state dead;
branches;
next	1.3;

1.3
date	2000.01.17.22.11.13;	author chuck;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.4
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function init_username (&$request_ref) {
  global $auth, $conf;
  
  if ($auth->auth['uname'] != 'nobody') {
    $username = $auth->auth['uname'];
  } else {
    $username = $conf['anonymous']['login'];
  }
  
  $request_ref->username = $username;
  return success();
}
@


1.3
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.2
log
@cjh: Babel is probably half-broken now, as I begin moving it to use phplib
session storage. Already got rid of the open_posts db table in favor of a
session var; read_posts will follow, and then I'll fix the rest of it.
@
text
@d2 1
a2 3
  global $auth;
  
  $conf_ref = $request_ref->conf;
d7 1
a7 1
    $username = $conf_ref['anonymous_login'];
@


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
@d2 1
a2 1
  global $PHP_AUTH_USER;
d6 2
a7 2
  if (isset($PHP_AUTH_USER) && $PHP_AUTH_USER) {
    $username = strtolower($PHP_AUTH_USER);
a11 3
  if (!isset($username) || !$username)
    return error("username not set");
  
a12 1
  
@

