1) Add your information in the variables.php, which is fully commented to make
it easy for you. You should not have to change the first 2 variables. The other
variables are for the Page Title, Text and links above and below on the page.
2) Upload linklist.php, footer.php, header.php, submit.php, variables.php, index.php,
emails.txt and links.txt in ASCII mode to the directory /linklist. Then, upload
browser.gif to the directory /images in BINARY or Auto mode.
3) CHMOD emails.txt and links.txt 777.
3) Your done, to view your Link List page, go to www.yourdomain.com/links/index.php.
To add a link, go to www.yourdomain.com/links/submit.php.
<div align="center"><a href="submit.php"><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Click Here To Submit Your Site</font></a></div><br>
<?php
require "variables.php";
if ($wsname == "") {
echo "You must fill out a site name.";
exit;
}
else
if ($wsurl == "") {
echo "You must fill out a site URL.";
exit;
}
else
if ($description == "") {
echo "You must put a description.";
exit;
}
else
if ($email == "") {
echo "You must enter your email.";
exit;
}
else
$textfile = ("links.txt");
$textfile2 = ("emails.txt");
$fp = fopen($textfile, "a+");
fputs ($fp, "<center><table><tr><td bgcolor=666666 width=500 height=20><font size=2><img src=$imagedir/browser.gif><strong><a href=http://$wsurl target=_blank><font size=4>$wsname</font></a></strong></td></tr><tr><td bgcolor=cccccc width=400><font size=2><font color=000000>$description</font></td></tr></table></center><br><br>\n");
fclose($fp);
$fp = fopen($textfile2, "a+");
fputs ($fp, "$email\n");
fclose($fp);
echo "<html> <title>$title</title><body bgcolor=006699 text=FFFFFF link=FFFFFF vlink=FFFF00 alink=FF0000><font color=FFFFFF size=3 face=verdana><br><center><br> $text1<br>$text2 <br><a href=\"$url1 \" target=_blank\"> $urltext1</a><br><br>Your site has been successfully added. <a href=$viewpage>Click here</a> to view the Link List page.</center></html>";
?>
variables.php
<?php
// This is the page where you will put your free for fall links on. This is a URL!
$viewpage = "index.php";
// The directory to where you will upload your images. DO NOT END WITH TRAILING SLASH!
$imagedir = "images";
// Website Title
$title = "Title Of Link Page";
// Text 1 for top of pages
$text1 = "Your Text Here";
// Text 2 for top of pages
$text2 = "Second Line of Text";
// Link for Top Of Page
$url1 = "http://www.yahoo.com";
//URL 1 Text
$urltext1 = "Text Of URL";
// Text 1 for bottom of pages
$text3 = "Your Text Here";
// Text 2 for bottom of pages
$text4 = "Second Line of Text";
// Link for Top Of Page
$url2 = "http://www.google.com";