X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FBeerDB.pm;h=6080812172ded213e7872ba8fd5b0d3ccc885e6c;hb=714f4002a61d92c623402c6e2c5126e658863d44;hp=23bd39f335c7c7f15d48f5f7f95fe4acff35ef1f;hpb=6aa0b2dd982dc074ca58e4743877c2146da013b8;p=maypole.git diff --git a/lib/BeerDB.pm b/lib/BeerDB.pm index 23bd39f..6080812 100644 --- a/lib/BeerDB.pm +++ b/lib/BeerDB.pm @@ -7,13 +7,16 @@ sub handler { Apache::MVC::handler(__PACKAGE__, @_) } # This is the sample application. Change this to the path to your # database. (or use mysql or something) -BeerDB->set_database("dbi:SQLite:t/beerdb.db"); +#BeerDB->set_database("dbi:SQLite:t/beerdb.db"); +BeerDB->set_database("dbi:mysql:beerdb"); # Change this to the root of the web space. -BeerDB->config->{uri_base} = "http://localhost/beerdb/"; +#BeerDB->config->{uri_base} = "http://localhost/beerdb/"; +BeerDB->config->{uri_base} = "http://neo.trinity-house.org.uk/beerdb/"; # Handpumps should not show up. BeerDB->config->{display_tables} = [qw[beer brewery pub style]]; BeerDB::Brewery->untaint_columns( printable => [qw/name notes url/] ); +BeerDB::Style->untaint_columns( printable => [qw/name notes/] ); BeerDB::Beer->untaint_columns( printable => [qw/abv name price notes/], integer => [qw/style brewery/],