#!/usr/bin/perl
use strict;
-use SL::Controller::Mebil;
+#use SL::Controller::Mebil;
use SL::DB;
+use SL::Form;
use SL::LXDebug;
$::lxdebug = new LXDebug;
+#$::form = new Form;
-my $db = new SL::DB;
+#my $dbh = $::form->get_standard_dbh;
-my $dbi = $db->dbi_connect("dbname=firma;host=localhost;port=5432", "kivitendo", "kivitendo");
+SL::DB->register_db(
+ driver => 'Pg',
+ database => 'firma',
+ host => 'localhost',
+ username => 'kivitendo',
+ password => 'kivitendo',
+);
+
+my $db = SL::DB->new;
+my $dbh = $db->dbh;
my $m = new SL::Controller::Mebil;
$m->action_calcmap;