Frame Redirector 

(c)-2001 http://www.mycgiscripts.com

This is small usefull script help your visitors not leave your site,
when his goes to other URL.

Installation

1. Open file frames.cgi

Modify first line to perl location in your server
usially it #!/usr/bin/perl or #!/usr/local/bin/perl

2. Edit the variables

$log

specify unix/nt path to file for logging most visited urls
or leave empty, if don't want to use this feature

$top

vertical size (%) of top frame

$bottom

vertical size (%) of bottom frame.

3. Change html for top frame

scroll to end of file and after string __END__.
change html to you needs.


You can use any additional variables if need in this frame.

Example : 

script calling 
http://www.mydomain.com/cgi-bin/frames.cgi?url=http://www.yahoo.com&category=Directory

in this case in html of top frame you can use
$in{'category'} variable.

Frames info (<a target="X" href=...)
where X

_blank - open link in new window
_top   - open link in current whole window
main   - open link in bottom frame
header - open link in top frame.

Script calling:

http://www.mysite.com/cgi-bin/frames.cgi?url=http://www.site.com

add more variables to end of this string if need.


If you have troubles with installation of this script - 
call to our cgi installation service

http://www.mycgiscripts.com/install.htm

MyCgiScripts.com Team
