Help for this page

Select Code to Download


  1. or download this
    use POSIX;
    
    my $date_for_logfile = strftime( "%e %B %C%y, %T", localtime);
    
  2. or download this
    my $ts = scalar localtime;
    
  3. or download this
    my $ip = '127.0.0.1';
    print ip_error() unless check_ip($ENV{REMOTE_ADDR},$ip);
    
  4. or download this
    sub check_ip {
       my ($ip1,$ip2) = @_;
       return $ip1 eq $ip2;
    }
    
  5. or download this
    sub ip_error {
       return header,
    ...
          b('Invalid ip-number'),
       ;
    }
    
  6. or download this
    print ip_error() unless $ENV{REMOTE_ADDR} eq $ip;
    
  7. or download this
    }
    }