chiark / gitweb /
Reorganise docs to include new howto material in intro etc.
[ypp-sc-tools.db-live.git] / yarrg / web / pirate-island
old mode 100644 (file)
new mode 100755 (executable)
index a41410e..67b4cfb
@@ -16,18 +16,7 @@ $sth->execute();
 </form>
 
 <%init>
-
-use DBI;
-
-our $dbh;
-our $dbfn;
-$dbfn= "/home/ijackson/things/ypp-sc-tools.pctb-dict-test/yarrg/OCEAN-Midnight.db";
-
-    $dbh=DBI->connect("dbi:SQLite:$dbfn",'','',
-                       { AutoCommit=>0,
-                         RaiseError=>1, ShowErrorStatement=>1,
-                         unicode=>1 })
-        or die "$dbfn $DBI::errstr ?"
-       unless $dbh;
-
+use CommodsWeb;
+db_setocean('Midnight');
+db_connect();
 </%init>