Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $ip = ""; # my IP, of course if ($name eq "Administrator" && $ENV{REMOTE_ADDR} ne "$ip" || $name eq + "administrator" && $ENV{REMOTE_ADDR} ne "$ip" || $name eq "Admin" && $ENV{REMOTE_ADDR} ne "$ip" || $name eq "webmaste +r" && $ENV{REMOTE_ADDR} ne "$ip") { print "<font color=red>You are not authorized to post as the Adminis +trator</font>"; exit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing form params
by Zaxo (Archbishop) on Jan 13, 2004 at 09:56 UTC | |
|
Re: Testing form params
by davido (Cardinal) on Jan 13, 2004 at 09:46 UTC | |
by Anonymous Monk on Jan 13, 2004 at 11:15 UTC | |
by b10m (Vicar) on Jan 13, 2004 at 11:24 UTC | |
by Anonymous Monk on Jan 13, 2004 at 12:04 UTC | |
by b10m (Vicar) on Jan 13, 2004 at 12:26 UTC | |
|
Re: Testing form params
by b10m (Vicar) on Jan 13, 2004 at 09:40 UTC |