# Try and grab a title..
if (-f "'DOCUMENT_ROOT'}/index.html") {
open (INDEX,"'DOCUMENT_ROOT'}/index.html");
while () { .= ; }
close (INDEX);
if ( =~ /(.*)<\/title>/i) { =$1; }
} elsif (-f "'DOCUMENT_ROOT'}/index.htm") {
open (INDEX,"'DOCUMENT_ROOT'}/index.htm");
while () { .= ; }
close (INDEX);
if ( =~ /(.*)<\/title>/i) { =$1; }
}
print qq~
Welcome to WebHome!
Welcome to WebHome!
Fill out the following form to install WebHome Free v1.0 in just one step!
~;
} else {
if (!'admin_password'}) { &error_html("Missing admin password"); }
if (!'data_dir'}) { &error_html("Missing data directory"); }
if (!'root_dir'}) { &error_html("Missing root directory"); }
if (!'root_url'}) { &error_html("Missing root url"); }
if (!'site_name'}) { &error_html("Missing site name"); }
if (!'space_limit'}) { &error_html("Missing space limit"); }
unless (-d "'data_dir'}") { &error_html("Incorrect path to data directory"); }
unless (-d "'root_dir'}") { &error_html("Incorrect path to root directory"); }
if ('root_url'} !~ /http:\/\//i) { &error_html("Invaild root url"); }
if ('space_limit'} !~ /[0-9]/) { &error_html("Invalid space limit"); }