#!/usr/local/bin/perl
#####################################################
# #
# SpookDirect v1.0 #
# #
# #
# redirect.pl #
# #
# SpookDirect is a feature which users can sign-up #
# for their own redirection url, which would be #
# created instantly right from your account like #
# they would from other redirection websites, such as #
# cjb.net for example. #
# #
# To install this script, simply fill out the #
# variables below, transload it to your account, #
# CHMOD it to 755. (Filename: redirect.pl) #
# #
# The sign-up page is at redirect.pl, the modify #
# page is at redirect.pl?modify. #
# #
# This script is a cool addon for a site and also #
# an impressive feature. May you enjoy it. :) #
# For more scripts or help, visit my WebTV NewsGroup: #
# #
# alt.discuss.clubs.public.webtv.misc.spookiestyle #
# #
# #
#####################################################
#
# enter account path where script is stored (below)
$path='/data1/hypermart.net/User-Name';
#
# enter main url of your account (below)
$url='http://User-Name.hypermart.net';
$head='';
$foot='';
#
# Limit of characters aloud in redirection usernames
$size='18';
#
# Title.
$title='SpookDirect v1.0';
#
# You don't need to alter anything further beyond this line ################################################ if ($ENV{'QUERY_STRING'} =~ /modify2/){ &GetFormInput; $username=$field{'username'}; $password=$field{'password'}; $userurl=$field{'url'}; if($username eq ''){ $username='give an error'; } open(FILE,">$path\/$username\/index\.html"); print FILE "