chiark / gitweb /
Make new "tree-info.txt" file not in revision control for locally approved clients...
[ypp-sc-tools.db-test.git] / yarrg / dictionary-update-receiver
index eee7d14..352b9bb 100755 (executable)
@@ -41,6 +41,8 @@ use CGI qw/:standard -private_tempfiles/;
 use IO::Pipe;
 use IO::Handle;
 
+use Commods;
+
 my $aadepth=2;
 
 #---------- pixmaps ----------
@@ -205,15 +207,7 @@ if (defined $ocean && defined $pirate) {
     $pirate= '';
 }
 
-my $caller= $ENV{'REMOTE_ADDR'};
-$caller= 'LOCAL' unless defined $caller;
-
-my $fwdf= $ENV{'HTTP_X_FORWARDED_FOR'};
-if (defined $fwdf) {
-    $fwdf =~ s/\s//g;
-    $fwdf =~ s/[^0-9.,]/?/g;
-    $caller= "$fwdf,$pirate";
-}
+my $caller= cgi_get_caller();
 
 my $kind;
 my @xa;