So the client wants to be a big shot at the launch party for the site, what else is new. So I made this silly, badly made script for him and he is so pleased he wants to do this all day long so I thought I would share it despite its unmodular construction. At the lauch party the client will enter his
secret password and the site will miraculously go live at his click. Yee ha. Hope someone gets a kick out of this, made my money man think I'm swell.
Peas,
jg
#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
use CGI::Carp qw/fatalsToBrowser /;
my $q = CGI->new();
my $pass = $q->param('pass');
if ($pass ne "securityrisk"){
die;
} else {
rename ("index.html", "old.html") || die "Can't rename: $!";
rename ("indexalt.htm", "index.html") || die "Can't rename: $!";
print $q->header(-target=>'ResultWindow',-nhp=>1,-expires=>'now',-loca
+tion=>'http://www.thenewest.org/');
}
_____________________________________________________Ain't no time to hate! Barely time to wait! ~RH