in reply to Silly Badly Done Script Which Impresses the Heck Out of Client

Simple, fun, but a little overkill perhaps :)

Why rename the launch page? Why not just overwrite it? Also, a CGI::Carp error would not look very pretty at a launch if they had mistyped!

Of course, if you knew the IP of the machine doing the launch (and assuming the script is in the same directory as the home page, the home page is in the web root dir and you're on *nix) you could have just done:

#!/usr/bin/perl # where XXX etc replaced by machine's IP if ($ENV{'REMOTE_ADDR'} eq 'XXX.XXX.XXX.XXX') { system('mv','-f','indexalt.htm','index.htm'); } print "Location: /\n\n"; exit(0);

So, if the IP is wrong, they just get the 'password' page again.

.02

cLive ;-)

  • Comment on Re: Silly Badly Done Script Which Impresses the Heck Out of Client
  • Download Code