Free-for-All
Links Page
By Matt Wright Matt's
Script Archive
Allows you to set up a web page
which your users can then add links to in specified categories. Newest links
are added to the top of each category. A running total of the number of links
present as well as the time when the last link was added is shown at the top
of the page
Example
of our Links Page
File included in this script:
1) links.html - The HTML File
users see
2) links.pl - The guts of the operations
3) README - This file (Installation information)
For these examples we will be
putting the Links in a directory called "/links" so the URL would
look like this:
http://www.Your_Domain.com/links/links.html
LINKS.PL
This file is the file that pulls in your links.html and makes the necessary
changes to your links.html. It will add the url of the user's choice. You
must chmod this file 755 and place it in your server's cgi-bin.
EDIT VARIABLES IN THIS FILE:
$filename =
"/usr/local/etc/httpd/htdocs/Your_Domain/links/links.html"
Path Location of your links.html
file.
$linksurl =
"http://Your_Domain/links/links.html"
URL Location of links.html file.
$linkscgi =
"http://Your_Domain.com/cgi-bin/links.pl";
URL Location of links.pl.
$linkstitle =
"Free For All Link Page"
Title of Your Page
$database =
"/usr/local/etc/httpd/htdocs/Your_Domain/links/database.txt";
Path to the database file. This is useful if you want links to your page to
automatically be added one per line to a database (for use in Random Link or
other similar programs).
chmoded database file to 777.
LINKS.HTML
This file contains all of the links that users have added. Users will be
automatically returned to this document. You must place this document in a
directory (/links) with 777 file access and then chmod this file 777. You will
need to edit the action="" part of the <form> tag so that
points to your links.pl file at your cgi-bin. You will also want to change the
bottom link so users can get back to your home page. You can change anything
above the <form> tag also...
Just don't change the <!--XXXX--> tags unless you want to edit the
script.
To Install:
Put the links.pl file into your server's cgi-bin
Put the links.html file into the "/links" directory.
If at any time you find your self
having problems please send support an e-mail.