Plasma GitLab Archive
Projects Blog Knowledge

(*
 * <COPYRIGHT>
 * Copyright 2003 Gerd Stolpmann
 *
 * <GPL>
 * This file is part of WTimer.
 *
 * WTimer is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * WTimer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with WDialog; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * </>
 *)

(* $Id: main_cgi.ml,v 1.3 2003/03/23 11:59:14 gerd Exp $
 * ----------------------------------------------------------------------
 *
 *)

open Wd_run_cgi


(* WDialog processing: *)

let config = Get_config.parse();;

let _ =
  run
    ~uifile:(Filename.concat Const.ui_dir "wtimer.ui")
    ~charset:Const.internal_charset
    ~session_manager:(new Db.Session.db_session_manager Init.db)
    ~error_page:(fun ch err -> !Init.print_error ch err)
    ~reg:(Init.reg config)
    ()
;;

(* Disconnect from database: *)
Db.Connection.unbind Init.db;;


(* ======================================================================
 * History:
 * 
 * $Log: main_cgi.ml,v $
 * Revision 1.3  2003/03/23 11:59:14  gerd
 * 	GPL
 *
 * Revision 1.2  2003/01/28 01:07:00  gerd
 * 	Continued.
 *
 * 
 *)

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml