setPageTitle("Goon Link™ - Other Goon Approved Websites"); $currBanner->addContent("GoonLink™"); $currNavbar->setCustomLinksTitle("GoonLink™"); $currNavbar->addCustomLink("/goonlink.php?action=add", "I want in!", "", "(add)"); $currNavbar->addCustomLink("/goonlink.php", "Get the list"); // if the person wants to be added, lets give them a form. if ($_REQUEST["action"] == "add") { ?>

Get Added to Goon Link™

This will let you add your site to the Goon Link™ database. Note that this page does no error checking of any serious kind - so if you type in something wrong and it causes an error, thats all you'll see.


Name:
URL:
Type :
Link added successfully!

"); if (!$result) print("

We could not add that link. Perhaps it is already in use, or you did not fill out all fields. Here is the exact error: " . mysql_error() . "

"); } elseif ($_REQUEST["action"] == "list") { $query = "SELECT goonlink.name, uri, goonlink_types.name AS typename FROM goonlink, goonlink_types WHERE goonlink.type = goonlink_types.id AND"; if ($_REQUEST["type"] == -1) $query .= " (goonlink_types.level <= $_SESSION[level] OR goonlink.owner = $_SESSION[userid])"; else $query .= " type = $_REQUEST[type] AND goonlink_types.level <= $_SESSION[level]"; $query .= " ORDER BY name ASC"; //print($query); $result = mysql_query($query); print(""); } // if we're doing nothing else { ?>

GoonLink™ is a list of websites that are Goon Friendly. This could be because they are customers of ours, because they offer services we use, because we like them, or maybe because they bribed their way in here. (aka: its links to my friends)

In the future, this could be used for random links (ala Riptide), a webring, or whatever. Right now its primarily used as my online bookmark repository, storing links to things that I might like to have while I'm away from my computer.

By using this dropdown, you can get a list of links for the specified type.