structure Init :> INIT =
struct
-open Util Sql
+open Util Sql Config
structure C = PgClient
exception Access of string
exception NeedTos
-val scratchDir = "/home/hcoop"
-val urlPrefix = "https://members.hcoop.net/portal/"
-val emailSuffix = "@hcoop.net"
-val boardEmail = "board" ^ emailSuffix
-
-fun conn () = C.conn "dbname='hcoop_hcoop'"
+fun conn () = C.conn dbstring
val close = C.close
type user = {id : int, name : string, rname : string, bal : int, joined : C.timestamp,