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


1.5
date	2000.08.28.02.28.19;	author chuck;	state dead;
branches;
next	1.4;

1.4
date	2000.01.16.18.49.38;	author chuck;	state Exp;
branches;
next	1.3;

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

1.2
date	99.08.03.04.12.54;	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.5
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function build_restore_post_query ($topic, $id, &$query_ref) {
  if (!$topic)
    return error("'topic' undefined");
  
  if (!$id)
    return error("'id' undefined");
  
  $query_ref  = "SELECT ";
  $query_ref .= "id, parent, subject, ";
  $query_ref .= "author_id, created, modified, ";
  $query_ref .= "locked, body ";
  $query_ref .= "FROM posts ";
  $query_ref .= "WHERE topic = '$topic' ";
  $query_ref .= "AND id = '$id' ";
  
  return success();
}
@


1.4
log
@Babel no longer keeps it's own user table; it grabs Horde (phplib)
usernames/ids and uses those. We'll need to figure out a way of storing
email and fullname prefs with Horde accounts.
@
text
@@


1.3
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
@d10 1
a10 1
  $query_ref .= "author_id, author, created, modified, ";
@


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
@d9 6
a14 7
  $query_ref .= "posts.id, posts.parent, posts.subject, ";
  $query_ref .= "users.username, posts.created, posts.modified, ";
  $query_ref .= "posts.locked, posts.body ";
  $query_ref .= "FROM posts, users ";
  $query_ref .= "WHERE posts.topic = '$topic' ";
  $query_ref .= "AND posts.id = '$id' ";
  $query_ref .= "AND users.id = posts.author_id";
@


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
@d14 1
a14 1
  $query_ref .= "AND posts.id = $id ";
@

