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


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

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

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

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


desc
@@


1.4
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function run_intro (&$request_ref) {
  global $conf;
  
  $var_hash['url'] = $conf['url'];
  $var_hash['topic'] = $request_ref->topic;
  $var_hash['id'] = $request_ref->id;
  $var_hash['username'] = $request_ref->username;
  
  if (!(build_navigation_bar($request_ref, $var_hash['nav_bar'])))
    return error("could not build navigation bar");
  
  if (!(build_status_bar($request_ref, $var_hash['status'])))
    return error("could not build status bar");
  
  $var_hash['body_tags'] = make_body_tags();
  $var_hash['search'] = '';
  
  if (is_anonymous($request_ref)) {
    if (!(print_template('anon', $var_hash)))
      return error("could not print template 'anon'");
  } else {
    if (!(print_template('intro', $var_hash)))
      return error("could not print intro template");
  }
  
  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: pruning out all the code that either isn't used or is only used for
maintaining/creating users - all of which is moving to Horde proper. Also a
few more fixes for the new session/user stuff, though I haven't quite gotten
rid of the "users" table yet - that's coming, though.

babel.php3 is a nice bit shorter, now... ;)

Anyway, a bit more work, and a better Horde user framework, and babel should
be more or less ready for primetime. oh, there's that whole customization
thing, too.

Speaking of which, what do people prefer: imp-style defaults.php3, or
babel-style babel.conf. I figure we should standardize on one; they're both
easy to auto-generate; babel's is maybe a little bit more overhead to parse,
but it's a bit more user friendly as well. Thoughts?
@
text
@d2 3
a4 1
  $var_hash['url'] = $request_ref->conf['url'];
d15 1
a15 1
  $var_hash['body_tags'] = make_body_tags($request_ref);
d19 2
a20 2
    if (!(print_template($request_ref->conf['anon_template'], $var_hash)))
      return error("could not print 'anon_template'");
d22 2
a23 2
    if (!(print_template($request_ref->conf['intro_template'], $var_hash)))
      return error("could not print 'intro_template'");
@


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
@a6 5
  if (!(count_users($request_ref, $users)))
    return error("could not count users");
  
  $var_hash['users'] = $users;
  
@

