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


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

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

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


desc
@@


1.3
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function print_new_post_form (&$request_ref) {
  global $quote;
  if (!isset($quote))
    $quote = false;
  
  if (!(restore_state($request_ref)))
    return error("could not restore state");
  
  if (!(can_reply($request_ref)))
    return error("can not reply to post id '$id'");
  
  if (!(htmlspecialchars($request_ref->post['body'])))
    return error("could not htmlspecialchars body");
  
  $request_ref->post['body'] = $quote ? quote($request_ref->post['body']) : '';
  
  $request_ref->post['subject'] = make_reply_subject($request_ref->post['subject']);
  
  $var_hash['quote'] = make_quote_button($request_ref);
  
  $var_hash['submit'] = make_submit_button();
  
  $var_hash['back'] = make_back_button($request_ref);
  
  if (can_lock($request_ref))
    $var_hash['locked'] = make_lock_button($request_ref);
  
  $var_hash['body_tags'] = make_body_tags();
  
  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");
  
  if (!(build_search_button($request_ref, $var_hash['search'])))
    return error("could not build search button");
  
  if (!(export_state($request_ref, $var_hash)))
    return error("could not export state");
  
  if (!(print_template('new', $var_hash)))
    return error("could not print new template");
  
  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
@d21 1
a21 1
  $var_hash['submit'] = make_submit_button($request_ref);
d28 1
a28 1
  $var_hash['body_tags'] = make_body_tags($request_ref);
d42 2
a43 2
  if (!(print_template($request_ref->conf['new_template'], $var_hash)))
    return error("could not print 'new_template'");
@

