X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=yarrg%2FCommodsWeb.pm;h=96dde357c9bb40c31d3f7b399848ce9002d1167e;hp=3e3b59e1e64ae2ca08dde0db823befa5c71943db;hb=2839e990a1173a3b7e9d8ba3c662405ed25ba1b2;hpb=a9583fa8a29e889f435ee4d6cf3dc6a5979a6bd5 diff --git a/yarrg/CommodsWeb.pm b/yarrg/CommodsWeb.pm index 3e3b59e..96dde35 100644 --- a/yarrg/CommodsWeb.pm +++ b/yarrg/CommodsWeb.pm @@ -35,12 +35,15 @@ use POSIX; use Commods; use CommodsDatabase; +our $self_url; + BEGIN { use Exporter (); our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); $VERSION = 1.00; @ISA = qw(Exporter); - @EXPORT = qw(); + @EXPORT = qw($dbh &db_setocean &db_connect &db_doall + $self_url); %EXPORT_TAGS = ( ); @EXPORT_OK = qw(); @@ -53,4 +56,6 @@ for my $dir (@INC) { } } +$self_url= 'http://'.$ENV{'SERVER_NAME'}.$ENV{'SCRIPT_NAME'}.$ENV{'PATH_INFO'}; + 1;