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


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

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


desc
@@


1.2
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function run_command (&$request_ref) {
  global $cmd, $arg;
  
  if (!isset($cmd) || !$cmd)
    return success();
  
  if ($cmd == 'open') {
    if (!(mark_as_open($request_ref, $arg)))
      return error("could not mark '$arg' as open");
  } else if ($cmd == 'close') {
    if (!(mark_as_closed($request_ref, $arg)))
      return error("could not mark '$arg' as closed");
  } else if ($cmd == 'open_all') {
    if (!(open_all($request_ref)))
      return error("could not open all");
  } else if ($cmd == 'close_all') {
    if (!(close_all($request_ref)))
      return error("could not close all");
  }
  
  return success();
}
@


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
@@

