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=2bd558b4dc74daec15da023a21b8d8db046f7524;hb=2839e990a1173a3b7e9d8ba3c662405ed25ba1b2;hpb=2f82405c3eaa7bced0db77fa4cd243befb268406 diff --git a/yarrg/CommodsWeb.pm b/yarrg/CommodsWeb.pm index 2bd558b..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($dbh &db_setocean &db_connect &db_doall); + @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;