#!/usr/bin/perl

package globaltmpl;

########################################################################
# COPYRIGHT NOTICE:
#
# Copyright 2008 FocalMedia.Net All Rights Reserved.
#
# Selling the code for this program without prior written consent 
# from FocalMedia.Net is expressly forbidden. You may not 
# redistribute this program in any shape or form.
# 
# This program is distributed "as is" and without warranty of any
# kind, either express or implied. In no event shall the liability 
# of FocalMedia.Net for any damages, losses and/or causes of action 
# exceed the total amount paid by the user for this software.
#
########################################################################

#### EDIT HERE -- FOR WINDOWS/IIS BASED INSTALLATIONS ONLY #######

$config_cgi = "../config.cgi"; ## <-- CHANGE THIS LINE TO THE FULL SERVER PATH TO config.cgi

# THE PATH ON A WINDOWS INSTALLATION WILL LOOK SOMETHING LIKE THIS:
# $config_cgi = "c:/inetpub/webpub/cgi-bin/pseek/config.cgi";

#### DO NOT CHANGE ANYTHING BELOW THIS LINE #################

#use FindBin;
#use lib $FindBin::Bin;
use CGI::Carp qw(fatalsToBrowser);
use CGI;
use MIME::Base64 qw(decode_base64 encode_base64);


require Exporter;
use vars qw/@ISA @EXPORT @EXPORT_OK $copyright $prgname/;

@ISA = qw(Exporter);

@EXPORT = qw(get_global_templates
	    		 get_tnames);

@EXPORT_OK = qw(d_tmplates);

&get_setup;

##################################################################################################################


sub get_tnames
{


@d_tmplates = (
"psfp:Home",
"defdir:%%custom_pagetitle%%",
"linkinfo:!!title_without_link!!",
"linkinfop:!!title_without_link!!",
"searchres:Searching",
"searchadv:Advanced Search",
"nomatch:No Match Found",
"searchresdir:Searching",
"rate_it:Cast Rating",
"rate_it_success:Rating Recorded",
"rate_it_fail:Problem",
"gethtml:Get HTML Code",
"review_it:Add a Comment or Review",
"reviewadded:Success",
"reviewproblem:Problem",
"whatsnew_main:What's New",
"tophits_main:Most Popular",
"brokenlink:Broken Link",
"brokenlink_success:Success",
"mlist1:Mailing List",
"mlist2:Mailing List",
"mlist3:Mailing List",
"add_url_med:Add URL",
"add_url:Add URL",
"add_url_medp:Add URL",
"add_urlp:Add URL",
"add_url_instructions:Add URL",
"locked:Locked Category",
"add_url_problem:Add URL Problem",
"add_url_success:Add URL Success",
"modify_link:Modify",
"modify_link_problem:Problem",
"modify_link_success:Success",
"modify_link_edit:Modify",
"modify_link_editp:Modify",
"modify_instructions:Modify",
"retrievepass:Retrieve Password",
"retrievepass_ok:Success",
"retrievepass_prb:Problem",
"rgs_msgregister:Register",
"rgs_register:Register",
"rgs_regsuccess:Register",
"rgs_actsuccess:Success",
"rgs_actfailed:Problem",
"rgs_resend:Register",
"rgs_sent:Success",
"rgs_login:Login",
"rgs_logout:Logout",
"rgs_retrievepass:Retrieve Password",
"rgs_retrievepass_ok:Success",
"rgs_cpmain:Control Panel",
"rgs_editacc:Edit Account",
"rgs_saveacc:Saved",
"rgs_add_url_med:Add URL",
"rgs_add_url:Add URL",
"rgs_add_url_medp:Add URL",
"rgs_add_urlp:Add URL",
"rgs_add_url_instructions:Add URL",
"rgs_locked:Category Locked",
"rgs_add_url_problem:Problem",
"rgs_add_url_success:Success",
"rgs_modify_link_edit:Modify",
"rgs_modify_link_editp:Modify",
"rgs_modify_link_problem:Problem",
"rgs_modify_link_success:Success",
"rgs_modify_instructions:Modify",
"rgs_rcomment:Comment",
"rgs_rrate:Rating");

return (@d_tmplates);

}


sub get_global_templates
{

$this = {};

### FRONT PAGE
$this->{psfp} = qq[
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="95%">
  <tr>
    <td width="100%"><p align="center">!!categories!!<br>
    </td>
  </tr>
</table>
</center></div>
];


### DEFAULT DIRECTORY TEMPLATE

$this->{defdir} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="95%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top" height="17" width="99%"><font face="Arial" size="2"><strong><a
    href="!!top!!">Top</a> :: %%location%% </strong></font></td>
    <td valign="top" height="17" width="1%"><font face="Arial" size="2"><strong></strong>!!rss!!<strong></strong></font></td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="95%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top" height="17" colspan="2"><font face="Arial" size="2">%%subdirectories%%</font></td>
  </tr>
  <tr>
    <td valign="top" height="17"><font face="Arial" size="2">%%prevnext%%</font></td>
    <td valign="top" height="17"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
  <tr>
    <td valign="top" colspan="2" height="18"><font face="Arial" size="2">%%searchresults%%</font></td>
  </tr>
  <tr>
    <td valign="top" height="17"><font face="Arial" size="2">%%prevnext%%</font></td>
    <td valign="top" height="17"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
  <tr>
    <td valign="top" width="100%" colspan="2" height="18"><font face="Arial" size="2">%%related%%</font></td>
  </tr>
</table>
</center></div>
];



#### LINK INFO

$this->{linkinfo} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: <a
    href="!!category_link!!">!!category!!</a> : More Info</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><font color="#FFFFFF">_</font><div align="center"><center><table
    border="0" cellpadding="3" cellspacing="0" width="89%">
      <tr>
        <td width="100%"><font face="Arial" size="2"><strong>!!title_with_link!! </strong>!!rating_image!!</font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">!!description!!</font></td>
      </tr>
      <tr>
        <td width="100%"><strong><font face="Arial" size="2" color="#000000">!!url!!</font></strong></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">From: <strong>!!category!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Date: <strong>!!date!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Hits: <strong>!!Hits!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Votes: <strong>!!votes!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Rating: <strong>!!rating!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font color="#FFFFFF" face="Arial" size="2">_</font></td>
      </tr>
    </table>
    </center></div><form method="POST" action="!!rate_it!!">
      <input type="hidden" name="ct" value="!!ct!!"><input type="hidden" name="fct"
      value="cast_rating"><input type="hidden" name="id" value="!!id!!-!!cid!!"><div
      align="center"><center><table border="0" cellpadding="7" cellspacing="0" width="89%"
      style="border: 1px solid rgb(192,192,192)">
        <tr>
          <td width="643" height="35"><font face="Arial" size="2" color="#000000"><strong>Rate This
          Link: </strong></font><font face="Arial" size="2"><select name="rating" size="1">
            <option value="10">10 - The Best</option>
            <option value="9">9</option>
            <option value="8">8</option>
            <option value="7">7</option>
            <option value="6">6</option>
            <option value="5">5</option>
            <option value="4">4</option>
            <option value="3">3</option>
            <option value="2">2</option>
            <option value="1">1 - The Poorest</option>
          </select><input type="submit" value="Rate It" name="B1"></font></td>
        </tr>
      </table>
      </center></div><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="89%" background="!build_url!/shadow.gif">
        <tr>
          <td width="1%" bgcolor="#FFFFFF"><font color="#FFFFFF">_</font></td>
          <td width="99%"></td>
        </tr>
      </table>
      </center></div>
    </form>
    <div align="center"><center><table border="0" cellpadding="3" cellspacing="0" width="89%">
      <tr>
        <td width="100%"><font face="Arial" size="2"><strong>Comments:</strong></font><p><font
        face="Arial" size="2">%%reviews%%</font></td>
      </tr>
      <tr>
        <td width="100%"><font color="#FFFFFF" face="Arial" size="2">_</font></td>
      </tr>
    </table>
    </center></div><form method="POST" action="!!review_it!!">
      <input type="hidden" name="ct" value="!!ct!!"><input type="hidden" name="fct"
      value="save_review"><input type="hidden" name="id" value="!!id!!"><input type="hidden"
      name="ia" value="!!ia!!"><div align="center"><center><table border="0" cellpadding="7"
      cellspacing="0" width="89%" style="border: 1px solid rgb(192,192,192)">
        <tr>
          <td colspan="2" width="643" height="35"><font face="Arial" size="2" color="#000000"><strong>Add
          a Comment</strong></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="22"><font face="Arial" size="2" color="#000000"><strong>Name:</strong></font></td>
          <td bgcolor="#FFFFFF" width="518" height="22"><font face="Arial" size="2"><input
          type="text" name="name" size="29"></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="22"><font face="Arial" size="2" color="#000000"><strong>Email:</strong></font></td>
          <td bgcolor="#FFFFFF" width="518" height="22"><font face="Arial" size="2"><input
          type="text" name="email" size="29">(Optional)</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="16"><font face="Arial" size="2" color="#000000"><strong>Comment:</strong></font></td>
          <td bgcolor="#FFFFFF" width="518" height="16"><font face="Arial" size="2">%%description_box%%</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="57"><div align="left"></div></td>
          <td bgcolor="#FFFFFF" width="518" height="57"><font face="Arial" size="2"><br>
          %%imgbox%%</font><br>
          <input type="text" name="letters" size="20"><br>
          <font face="Arial" size="2">Type in the letters that apear in the image box <b><br>
          </b></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="24"></td>
          <td bgcolor="#FFFFFF" width="518" height="24"><font face="Arial" size="2"><input
          type="submit" value="   Add   " name="B1"></font></td>
        </tr>
      </table>
      </center></div><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="89%" background="!build_url!/shadow.gif">
        <tr>
          <td width="1%" bgcolor="#FFFFFF"><font color="#FFFFFF">_</font></td>
          <td width="99%"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>

];


$this->{linkinfop} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: <a
    href="!!category_link!!">!!category!!</a> : More Info</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><font color="#FFFFFF">_</font><div align="center"><center><table
    border="0" cellpadding="3" cellspacing="0" width="89%">
      <tr>
        <td width="92%"><font face="Arial" size="2"><strong>!!title_with_link!! </strong>!!rating_image!!</font></td>
        <td width="8%" rowspan="2" valign="top" align="right"><font face="Arial" size="2"><strong><img
        src="!build_url!/ic_premium.gif"></strong></font></td>
      </tr>
      <tr>
        <td width="92%"><font face="Arial" size="2">!!description!!</font></td>
      </tr>
      <tr>
        <td width="100%" colspan="2"><strong><font face="Arial" size="2" color="#000000">!!url!!</font></strong></td>
      </tr>
      <tr>
        <td width="100%" colspan="2"><font face="Arial" size="2">From: <strong>!!category!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%" colspan="2"><font face="Arial" size="2">Date: <strong>!!date!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%" colspan="2"><font face="Arial" size="2">Hits: <strong>!!Hits!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%" colspan="2"><font face="Arial" size="2">Votes: <strong>!!votes!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%" colspan="2"><font face="Arial" size="2">Rating: <strong>!!rating!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%" colspan="2"><font color="#FFFFFF" face="Arial" size="2">_</font></td>
      </tr>
    </table>
    </center></div><form method="POST" action="!!rate_it!!">
      <input type="hidden" name="ct" value="!!ct!!"><input type="hidden" name="fct"
      value="cast_rating"><input type="hidden" name="id" value="!!id!!-!!cid!!"><div
      align="center"><center><table border="0" cellpadding="7" cellspacing="0" width="89%"
      style="border: 1px solid rgb(192,192,192)">
        <tr>
          <td width="643" height="35"><font face="Arial" size="2" color="#000000"><strong>Rate This
          Link: </strong></font><font face="Arial" size="2"><select name="rating" size="1">
            <option value="10">10 - The Best</option>
            <option value="9">9</option>
            <option value="8">8</option>
            <option value="7">7</option>
            <option value="6">6</option>
            <option value="5">5</option>
            <option value="4">4</option>
            <option value="3">3</option>
            <option value="2">2</option>
            <option value="1">1 - The Poorest</option>
          </select><input type="submit" value="Rate It" name="B1"></font></td>
        </tr>
      </table>
      </center></div><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="89%" background="!build_url!/shadow.gif">
        <tr>
          <td width="1%" bgcolor="#FFFFFF"><font color="#FFFFFF">_</font></td>
          <td width="99%"></td>
        </tr>
      </table>
      </center></div>
    </form>
    <div align="center"><center><table border="0" cellpadding="3" cellspacing="0" width="89%">
      <tr>
        <td width="100%"><font face="Arial" size="2"><strong>Comments:</strong></font><p><font
        face="Arial" size="2">%%reviews%%</font></td>
      </tr>
      <tr>
        <td width="100%"><font color="#FFFFFF" face="Arial" size="2">_</font></td>
      </tr>
    </table>
    </center></div><form method="POST" action="!!review_it!!">
      <input type="hidden" name="ct" value="!!ct!!"><input type="hidden" name="fct"
      value="save_review"><input type="hidden" name="id" value="!!id!!"><input type="hidden"
      name="ia" value="!!ia!!"><div align="center"><center><table border="0" cellpadding="7"
      cellspacing="0" width="89%" style="border: 1px solid rgb(192,192,192)">
        <tr>
          <td colspan="2" width="643" height="35"><font face="Arial" size="2" color="#000000"><strong>Add
          a Comment</strong></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="22"><font face="Arial" size="2" color="#000000"><strong>Name:</strong></font></td>
          <td bgcolor="#FFFFFF" width="518" height="22"><font face="Arial" size="2"><input
          type="text" name="name" size="29"></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="22"><font face="Arial" size="2" color="#000000"><strong>Email:</strong></font></td>
          <td bgcolor="#FFFFFF" width="518" height="22"><font face="Arial" size="2"><input
          type="text" name="email" size="29">(Optional)</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="16"><font face="Arial" size="2" color="#000000"><strong>Comment:</strong></font></td>
          <td bgcolor="#FFFFFF" width="518" height="16"><font face="Arial" size="2">%%description_box%%</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="57"><div align="left"></div></td>
          <td bgcolor="#FFFFFF" width="518" height="57"><font face="Arial" size="2"><br>
          %%imgbox%%</font><br>
          <input type="text" name="letters" size="20"><br>
          <font face="Arial" size="2">Type in the letters that apear in the image box <b><br>
          </b></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="119" height="24"></td>
          <td bgcolor="#FFFFFF" width="518" height="24"><font face="Arial" size="2"><input
          type="submit" value="   Add   " name="B1"></font></td>
        </tr>
      </table>
      </center></div><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="89%" background="!build_url!/shadow.gif">
        <tr>
          <td width="1%" bgcolor="#FFFFFF"><font color="#FFFFFF">_</font></td>
          <td width="99%"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>

];



$this->{searchres} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top" colspan="2"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a>
    ::</strong> Searching For <strong>'%%keywords%%'</strong></font></td>
  </tr>
  <tr>
    <td valign="top" colspan="2"><font face="Arial" size="2">Found<strong> %%link_matches%%</strong>
    Matches</font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>%%prevnext%%</strong></font></td>
    <td valign="top"><font face="Arial" size="2"><p align="right">%%pages%%</font></td>
  </tr>
  <tr>
    <td valign="top" colspan="2"><font face="Arial" size="2">%%searchresults%%</font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>%%prevnext%%</strong></font></td>
    <td valign="top"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
</table>
</center></div>
];


$this->{searchadv} = qq[
<form method="POST" action="!!advanced_search!!">
  <input type="hidden" name="fct" value="advanced"><div align="center"><center><table
  border="0" cellpadding="10" cellspacing="0" width="97%"
  style="border: medium none rgb(192,192,192)">
    <tr>
      <td valign="top" width="722" colspan="2"><font face="Arial" size="2"><strong><a
      href="!!top!!">Top</a> :: Advanced Search Form</strong></font></td>
    </tr>
    <tr>
      <td valign="top" width="159"><font face="Arial" size="2"><strong>Your Keywords:</strong></font></td>
      <td valign="top" width="563"><input type="text" name="keywords" size="59"
      value="!!keywords!!"></td>
    </tr>
    <tr>
      <td valign="top" width="159"><font face="Arial" size="2"><strong>Choose the fields you
      would like to be searched:</strong></font></td>
      <td valign="top" width="563"><font face="Arial" size="2"><input type="checkbox"
      name="title" value="title" checked>Title<br>
      <input type="checkbox" name="diz" value="description" checked>Description<br>
      <input type="checkbox" name="keywords" value="keywords" checked>Keywords<br>
      <input type="checkbox" name="url" value="url" checked>URL<br>
      <input type="checkbox" name="platforms" value="platforms" checked>Platforms<br>
      <input type="checkbox" name="linkback" value="linkback" checked>linkback <br>
      <input type="checkbox" name="downloadlink" value="downloadlink" checked>downloadlink <br>
      <input type="checkbox" name="ArticleShortDiz" value="ArticleShortDiz" checked>ArticleShortDiz
      <br>
      <input type="checkbox" name="Article" value="Article" checked>Article</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"><font face="Arial" size="2"><strong>Search with:</strong></font></td>
      <td valign="top" width="563"><font face="Arial" size="2"><input type="radio"
      value="internal" name="mtype" checked>Determine the best matches for me.</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"></td>
      <td valign="top" width="563"><font face="Arial" size="2"><input type="radio"
      value="andkeywords" name="mtype">All the keywords supplied must match a link before it
      will be displayed as a match.</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"></td>
      <td valign="top" width="563"><font face="Arial" size="2"><input type="radio"
      value="phrase" name="mtype">Search with the exact phrase. (The phrase must match to find a
      match)</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"></td>
      <td valign="top" width="563"><input type="submit" value="Search" name="B1"></td>
    </tr>
  </table>
  </center></div>
</form>

<form method="POST" action="!!cat_search!!">
  <div align="center"><center><table border="0" cellpadding="10" cellspacing="0" width="97%"
  style="border: medium none rgb(192,192,192)">
    <tr>
      <td valign="top" width="722" colspan="2"><font face="Arial" size="2"><strong>Category
      Search: </strong>(This search will only search categories for keywords)</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"><font face="Arial" size="2"><strong>Keywords:</strong></font></td>
      <td valign="top" width="563"><input type="text" name="cat_keywords" size="59"></td>
    </tr>
    <tr>
      <td valign="top" width="159"><font face="Arial" size="2"><strong>Search with:</strong></font></td>
      <td valign="top" width="563"><font face="Arial" size="2"><input type="radio"
      value="internal" name="mtype" checked>At least one keyword should match a category name</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"></td>
      <td valign="top" width="563"><font face="Arial" size="2"><input type="radio"
      value="andkeywords" name="mtype">All the keywords supplied must match category names</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"></td>
      <td valign="top" width="563"><font face="Arial" size="2"><input type="radio"
      value="phrase" name="mtype">Search with the exact phrase. (The phrase must match to find a
      match)</font></td>
    </tr>
    <tr>
      <td valign="top" width="159"></td>
      <td valign="top" width="563"><input type="submit" value="Search" name="B2"></td>
    </tr>
  </table>
  </center></div>
</form>

];


$this->{nomatch} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> ::</strong>
    Searching For <strong>'%%keywords%%'</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2">Your search for <strong>%%keywords%%</strong>
    revealed no matches. Try to use more or different keywords.</font></td>
  </tr>
</table>
</center></div>
];


$this->{searchresdir} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top" colspan="2"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a>
    ::</strong> Searching Categories For <strong>'%%keywords%%'</strong></font></td>
  </tr>
  <tr>
    <td valign="top" colspan="2"><font face="Arial" size="2">Found<strong> %%link_matches%%</strong>
    Matches</font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>%%prevnext%%</strong></font></td>
    <td valign="top"><font face="Arial" size="2"><p align="right">%%pages%%</font></td>
  </tr>
  <tr>
    <td valign="top" colspan="2"><font face="Arial" size="2">%%searchresults%%</font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>%%prevnext%%</strong></font></td>
    <td valign="top"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
</table>
</center></div>
];



$this->{rate_it} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Cast
    Rating</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!rate_it!!">
      <input type="hidden" name="ct" value="!!ct!!"><input type="hidden" name="fct"
      value="cast_rating"><input type="hidden" name="id" value="!!id!!"><div align="center"><center><table
      border="0" cellpadding="3" cellspacing="0" width="95%">
        <tr>
          <td width="100%" height="10"><font face="Arial" size="2"></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2"><select name="rating" size="1">
            <option value="10">10 - The Best</option>
            <option value="9">9</option>
            <option value="8">8</option>
            <option value="7">7</option>
            <option value="6">6</option>
            <option value="5">5</option>
            <option value="4">4</option>
            <option value="3">3</option>
            <option value="2">2</option>
            <option value="1">1 - The Poorest</option>
          </select><input type="submit" value="Rate It" name="B1"></font></td>
        </tr>
        <tr>
          <td width="100%" height="20"><font face="Arial" size="2"></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2"><strong>!!title_with_link!! </strong>!!rating_image!!</font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">!!description!!</font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2" color="#000000"><strong>!!url!!</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">From: <strong>!!category!!</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Current Rating: <strong>!!rating!!</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Number of Votes: <strong>!!votes!!</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Hits: <strong>!!Hits!!</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Date: <strong>!!date!!</strong></font></td>
        </tr>
        <tr>
          <td width="100%" height="20"><font face="Arial" size="2"><strong></strong></font></td>
        </tr>
        <tr>
          <td width="100%"><div align="left"><p><font face="Arial" size="2">Is this your link? <a
          href="!!scripts_url!!/gethtml.cgi?id=!!id!!">Allow users to vote for it from your web
          site.</a></font></p>
          </div><div align="left"><p><font face="Arial" size="2"><strong>Go back to:
          !!category_with_link!! &gt;&gt; <a href="!!more_info_url!!">!!title_without_link!!</a></strong></font></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rate_it_success} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><strong><font face="Arial" size="2"><a href="!!top!!">Top</a> :: Your
    Rating Has Been Recorded</font></strong></td>
  </tr>
  <tr>
    <td valign="top"><strong><font face="Arial" size="2">&nbsp;</font></strong><div align="center"><center><table
    border="0" cellpadding="3" cellspacing="0" width="95%">
      <tr>
        <td width="706"><font face="Arial" size="2"><strong>Your rating has been recorded for:</strong></font></td>
      </tr>
      <tr>
        <td width="706" height="15"><font face="Arial" size="2"></font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2"><strong>!!title_with_link!! </strong>!!rating_image!!</font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2">!!description!!</font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2" color="#000000"><strong>!!url!!</strong></font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2">From: <strong>!!category!!</strong></font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2">Current Rating: <strong>!!rating!!</strong></font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2">Number of Votes: <strong>!!votes!!</strong></font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2">Hits: <strong>!!Hits!!</strong></font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2">Date: <strong>!!date!!</strong></font></td>
      </tr>
      <tr>
        <td width="706"><font color="#FFFFFF" face="Arial" size="2"><strong>_</strong></font></td>
      </tr>
      <tr>
        <td width="706"><font face="Arial" size="2"><strong>Go back to: !!category_with_link!!
        &gt;&gt; <a href="!!more_info_url!!">!!title_without_link!!</a></strong></font></td>
      </tr>
      <tr>
        <td width="706"><strong><font color="#FFFFFF" face="Arial" size="2">_</font></strong></td>
      </tr>
    </table>
    </center></div><p>&nbsp; </td>
  </tr>
</table>
</center></div>
];


$this->{rate_it_fail} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Problem</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Verdana" size="2"><strong><br>
      </strong></font><font face="Arial" size="2">Your rating for this link has already been
      recorded.</font></p>
      <p><font face="Arial" size="2"><strong>Go back to: !!category_with_link!! &gt;&gt; <a
      href="!!more_info_url!!">!!title_without_link!!</a></strong></font><font face="Verdana"
      size="2"><br>
      </font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];


$this->{gethtml} = qq[
<div align="center"><center>

<table border="0" cellpadding="15" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Get
    Rating HTML Code</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!rate_it!!">
      <input type="hidden" name="ct" value="!!ct!!"><input type="hidden" name="fct"
      value="cast_rating"><input type="hidden" name="id" value="!!id!!"><p><font face="Arial"
      size="2"><strong>Enable Your Visitors To Rate Your Link<br>
      </strong>Use the methods below to enable your visitors to rate your listing from your web
      site.</font></p>
      <p><font face="Arial" size="2"><strong>Text Links<br>
      </strong>You may link to the rating form via text link. Use the following text link to
      link to the rating form.</font></p>
      <p><font face="Arial" size="2"><strong>%%textlink%%</strong></font></p>
      <p><font face="Arial" size="2">You may also use the HTML code below.</font></p>
      <p><font face="Arial" size="2">%%textlink_code%%</font></p>
      <p><font face="Arial" size="2"><strong>Remote Rating Forms<br>
      </strong>You may also place a remote rating form on your web site. Copy and paste the HTML
      code listed below into your web pages.</font></p>
      <p><font face="Arial" size="2">%%remoteform_code%%</font></p>
      <p><font face="Arial" size="2"><strong>The Above Remote Rating Options is Available For:</strong></font></p>
      <div align="center"><center><table border="0" cellpadding="3" cellspacing="0" width="90%">
        <tr>
          <td width="100%"><font face="Arial" size="2"><strong>%%title_with_link%% </strong>%%rating_image%%</font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">%%description%%</font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2" color="#000000"><strong>%%url%%</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">From: <strong>%%category%%</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Current Rating: <strong>%%rating%%</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Number of Votes: <strong>%%votes%%</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Hits: <strong>%%Hits%%</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2">Date: <strong>%%date%%</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font color="#FFFFFF" face="Arial" size="2"><strong>_</strong></font></td>
        </tr>
        <tr>
          <td width="100%"><font face="Arial" size="2"><strong>Go back to: !!category_with_link!!
          &gt;&gt; <a href="!!more_info_url!!">!!title_without_link!!</a></strong></font></td>
        </tr>
        <tr>
          <td width="100%"><strong><font color="#FFFFFF" face="Arial" size="2">_</font></strong></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>

];


$this->{review_it} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Comments</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><div align="center"><center><table border="0" cellpadding="3"
    cellspacing="0" width="95%">
      <tr>
        <td width="100%"><font color="#FFFFFF" face="Arial" size="2"><strong>_</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2"><strong>!!title_with_link!! </strong>!!rating_image!!</font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">!!description!!</font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2" color="#000000"><strong>%%url%%</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">From: <strong>!!category!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Hits: <strong>!!Hits!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Date: <strong>!!date!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Votes: <strong>!!votes!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Rating: <strong>!!rating!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font color="#FFFFFF" face="Arial" size="2"><strong>_</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2"><strong>Comments:</strong></font><p><font
        face="Arial" size="2">%%review_listings%%</font></td>
      </tr>
      <tr>
        <td width="100%" height="10"><font face="Arial" size="2"></font></td>
      </tr>
    </table>
    </center></div><form method="POST" action="!!review_it!!">
      <input type="hidden" name="ct" value="!!ct!!"><input type="hidden" name="fct"
      value="save_review"><input type="hidden" name="id" value="!!id!!"><input type="hidden"
      name="ia" value="!!ia!!"><div align="center"><center><table border="0" cellpadding="6"
      cellspacing="1" width="95%" style="border: 1px solid rgb(192,192,192)">
        <tr>
          <td colspan="2" width="642" bgcolor="#F8F8F8" height="25"><font color="#000000"
          face="Arial" size="2"><strong>Add a Comment</strong></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="219" height="22"><font color="#000000" face="Arial" size="2"><strong>Name:</strong></font></td>
          <td bgcolor="#FFFFFF" width="415" height="22"><font face="Arial" size="2"><input
          type="text" name="name" size="29"></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="219" height="22"><font color="#000000" face="Arial" size="2"><strong>Email:</strong></font></td>
          <td bgcolor="#FFFFFF" width="415" height="22"><font face="Arial" size="2"><input
          type="text" name="email" size="29">(Optional)</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="219" height="16"><font color="#000000" face="Arial" size="2"><strong>Comment:</strong></font></td>
          <td bgcolor="#FFFFFF" width="415" height="16"><font face="Arial" size="2">%%description_box%%</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="219" height="16"><font color="#000000" face="Arial" size="2"><strong></strong></font></td>
          <td bgcolor="#FFFFFF" width="415" height="16"><font face="Arial" size="2">%%imgbox%%</font><br>
          <font face="Arial" size="2">Type in the letters as indicated above:</font><br>
          <br>
          <input type="text" name="letters" size="20"><br>
          <font face="Arial" size="2"></font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF" width="219" height="24"></td>
          <td bgcolor="#FFFFFF" width="415" height="24"><font face="Arial" size="2"><input
          type="submit" value="   Add   " name="B1"></font></td>
        </tr>
      </table>
      </center></div><div align="center"><center><table border="0" cellpadding="0"
      cellspacing="0" width="95%" background="!build_url!/shadow.gif">
        <tr>
          <td width="1%" bgcolor="#FFFFFF"><font color="#FFFFFF">_</font></td>
          <td width="99%"></td>
        </tr>
      </table>
      </center></div>
    </form>
    <p align="center"><font face="Arial" size="2"><strong>Go back to: !!category_with_link!!
    &gt;&gt; <a href="!!more_info_url!!">!!title_without_link!!</a></strong></font></td>
  </tr>
</table>
</center></div>

];


$this->{reviewadded} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Comment
    Added</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><div align="center"><center><table border="0" cellpadding="3"
    cellspacing="0" width="95%" height="15">
      <tr>
        <td width="100%"></td>
      </tr>
      <tr>
        <td width="100%"><strong><font face="Arial" size="2">Your comment has been added for:</font></strong></td>
      </tr>
      <tr>
        <td width="100%" height="15"></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2"><strong>!!title_with_link!! </strong>!!rating_image!!</font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">!!description!!</font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2" color="#000000"><strong>!!url!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">From: <strong>!!category!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Current Rating: <strong>!!rating!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Number of Votes: <strong>!!votes!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Hits: <strong>!!hits!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%"><font face="Arial" size="2">Date: <strong>!!date!!</strong></font></td>
      </tr>
      <tr>
        <td width="100%" height="15"></td>
      </tr>
      <tr>
        <td width="100%"><p align="center"><font face="Arial" size="2"><strong>Go back to:
        !!category_with_link!! &gt;&gt; <a href="!!more_info_url!!">!!title_without_link!!</a></strong></font></td>
      </tr>
    </table>
    </center></div><p>&nbsp;</td>
  </tr>
</table>
</center></div>
];


$this->{reviewproblem} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Problem</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Arial" size="2"><br>
      %%problem%%</font></p>
      <p><font face="Arial" size="2"><strong>Please use the back button of your browser to go
      back.</strong></font></p>
      <p><font face="Arial" size="2"><strong>Go back to: !!category_with_link!! &gt;&gt; <a
      href="!!more_info_url!!">!!title_without_link!!</a></strong></font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];


$this->{whatsnew_main} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="95%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top" height="17" colspan="2"><font face="Arial" size="2"><strong><a
    href="!!top!!">Top</a> :: What's New</strong></font></td>
  </tr>
  <tr>
    <td valign="top" height="17"><font face="Arial" size="2">%%prevnext%%</font></td>
    <td valign="top" height="17"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
  <tr>
    <td valign="top" colspan="2" height="18"><font face="Arial" size="2">%%whats_new_listings%%</font></td>
  </tr>
  <tr>
    <td valign="top" height="17"><font face="Arial" size="2">%%prevnext%%</font></td>
    <td valign="top" height="17"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
</table>
</center></div>
];


$this->{tophits_main} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="95%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top" height="17" colspan="2"><font face="Arial" size="2"><strong><a
    href="!!top!!">Top</a> :: Top Hits</strong></font></td>
  </tr>
  <tr>
    <td valign="top" height="17"><font face="Arial" size="2">%%prevnext%%</font></td>
    <td valign="top" height="17"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
  <tr>
    <td valign="top" colspan="2" height="18"><font face="Arial" size="2">%%tophits_listings%%</font></td>
  </tr>
  <tr>
    <td valign="top" height="17"><font face="Arial" size="2">%%prevnext%%</font></td>
    <td valign="top" height="17"><p align="right"><font face="Arial" size="2">%%pages%%</font></td>
  </tr>
</table>
</center></div>

];



$this->{brokenlink} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Report a
    Broken Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Arial" size="2" color="#000000"><br>
      You have chosen to report the following listing as broken:</font></p>
      <p><a href="!!url!!"><font face="Arial" size="2"><strong>!!title_with_link!!</strong></font></a></p>
      <form method="POST" action="!!broken_link_script!!">
        <input type="hidden" name="cid" value="!!cid!!"><input type="hidden" name="id"
        value="!!id!!"><p><font face="Arial" size="2" color="#000000"><strong>Please select the
        problem you are having with this listing:</strong></font></p>
        <p><input type="radio" value="404 Not Found" name="problem" checked><font
        face="Arial, Verdana" size="2">404 Not Found<br>
        </font><input type="radio" value="Moved" name="problem"><font face="Arial, Verdana"
        size="2">Moved<br>
        </font><input type="radio" value="500 Server Error" name="problem"><font
        face="Arial, Verdana" size="2">500 Server Error<br>
        </font><input type="radio" value="DNS: Name Not Found" name="problem"><font
        face="Arial, Verdana" size="2">DNS: Name Not Found<br>
        </font><input type="radio" value="Cannot Connect" name="problem"><font
        face="Arial, Verdana" size="2">Cannot Connect<br>
        </font><input type="radio" value="401 Authorization Required" name="problem"><font
        face="Arial, Verdana" size="2">401 Authorization Required<br>
        </font><input type="radio" value="Not Sure" name="problem"><font face="Arial, Verdana"
        size="2">Not Sure<br>
        </font><input type="radio" value="Other" name="problem"><font face="Arial, Verdana"
        size="2">Other</font></p>
        <p><font face="Arial" size="2" color="#000000"><strong>Would you like to add something
        about this link? (Optional)<br>
        <br>
        %%notesbox%%<br>
        </strong>500 chars max<strong></p>
        <p></strong></font><font face="Arial" size="2">%%imgbox%%</font><br>
        <font face="Arial" size="2">Type in the letters as indicated above:</font><br>
        <br>
        <input type="text" name="letters" size="20"><font face="Arial" size="2" color="#000000"><strong></p>
        <p><input type="submit" value="Report Broken Link" name="B1"></strong></font></p>
        <p><font face="Arial" size="2" color="#FF0000"><strong>!!problem!!</strong></font></p>
        <p><font face="Arial" size="2"><strong>Go back to: !!category_with_link!! &gt;&gt; <a
        href="!!more_info_url!!">!!title_without_link!!</a></strong></font></p>
      </form>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];

$this->{brokenlink_success} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Report a
    Broken Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Arial" size="2" color="#000000"><br>
      Thanks for informing us!</font></p>
      <p><font face="Arial" size="2"><strong>Go back to: !!category_with_link!! &gt;&gt; <a
      href="!!more_info_url!!">!!title_without_link!!</a></strong></font></p>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];

$this->{mlist1} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Mailing
    List Removal</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <form method="POST" action="!!removalscript!!">
        <input type="hidden" name="fct" value="remove_email"><p><font face="Arial" size="2"><strong>Please
        enter your email address below to be removed from the mailing list:</strong></font></p>
        <div align="center"><center><table border="0" cellpadding="3" cellspacing="1" width="100%">
          <tr>
            <td width="183" align="right"><font face="Arial" size="2">Email Address:</font></td>
            <td width="536"><font face="Arial" size="2"><input type="text" name="email" size="46"></font></td>
          </tr>
          <tr>
            <td width="183" align="right"></td>
            <td width="536"><font face="Arial" size="2"><input type="submit" value="Remove" name="B1"></font></td>
          </tr>
        </table>
        </center></div>
      </form>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];

$this->{mlist2} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Problem</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font face="Arial" size="2">The email address you entered was not found in the
      database.</font></p>
      <p><font face="Arial" size="2"><strong>Use the back button of your browser to go back.</strong></font></p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];

$this->{mlist3} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Mailing
    List Removal</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font face="Arial" size="2">Your email address has been removed from the list.</font></p>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];


$this->{add_url_med} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!addurlcgi!!">
      <input type="hidden" name="ia" value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td><font face="Arial" size="2">Email Address:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Category:</font></td>
          <td width="312"><font face="Arial" size="2">%%category_dropdown%%</font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Title:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Description:</font></td>
          <td width="312"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Keywords:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">URL:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Modify Password:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password1"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Confirm Modify Password: </font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password2"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Your Name:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td align="right"><div align="left"><p><font face="Arial" size="2">Subscribe to mailing
          list?</font></td>
          <td width="382"><font face="Verdana" size="2"><input type="checkbox" name="mlist"
          value="Y" checked></font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Reciprocal link: (Please provide
          the URL of a page in your web site where you have placed a link to our web site)</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="reciprocal"
          size="47"></font></td>
        </tr>
        <tr>
          <td></td>
          <td width="382"><font face="Arial" size="2"><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Please type the letters listed above:<br>
          </font><br>
          <font face="Verdana" size="2"><input type="text" name="letters" size="22"></font><br>
          </td>
        </tr>
        <tr>
          <td></td>
          <td width="312"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>

];


$this->{add_url} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2">You have chosen to add your URL in the
    following category:<br>
    <strong>%%add_category%%</strong></font><form method="POST" action="!!addurlcgi!!">
      <input type="hidden" name="catid" value="!!catid!!"><input type="hidden" name="ia"
      value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div align="center"><center><table
      border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td><font face="Arial" size="2">Email Address:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Title:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Description:</font></td>
          <td width="312"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Keywords:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">URL:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Modify Password:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password1"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Confirm Modify Password: </font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password2"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Your Name:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td align="right"><div align="left"><p><font face="Arial" size="2">Subscribe to mailing
          list?</font></td>
          <td width="382"><font face="Verdana" size="2"><input type="checkbox" name="mlist"
          value="Y" checked></font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Reciprocal link: (Please provide
          the URL of a page in your web site where you have placed a link to our web site)</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="reciprocal"
          size="47"></font></td>
        </tr>
        <tr>
          <td></td>
          <td width="382"><font face="Arial" size="2"><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Please type the letters listed above:<br>
          </font><br>
          <font face="Verdana" size="2"><input type="text" name="letters" size="22"></font><br>
          </td>
        </tr>
        <tr>
          <td></td>
          <td width="312"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];


$this->{add_url_medp} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add
    Premium URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!addurlcgi!!">
      <input type="hidden" name="ia" value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td><font face="Arial" size="2">Email Address:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Category:</font></td>
          <td width="312"><font face="Arial" size="2">%%category_dropdown%%</font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Title:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Description:</font></td>
          <td width="312"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Keywords:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">URL:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Modify Password:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password1"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Confirm Modify Password: </font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password2"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Your Name:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td align="right"><div align="left"><p><font face="Arial" size="2">Subscribe to mailing
          list?</font></td>
          <td width="382"><font face="Verdana" size="2"><input type="checkbox" name="mlist"
          value="Y" checked></font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Reciprocal link: (Please provide
          the URL of a page in your web site where you have placed a link to our web site)</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="reciprocal"
          size="47"></font></td>
        </tr>
        <tr>
          <td></td>
          <td width="382"><font face="Arial" size="2"><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Please type the letters listed above:<br>
          </font><br>
          <font face="Verdana" size="2"><input type="text" name="letters" size="22"></font><br>
          </td>
        </tr>
        <tr>
          <td></td>
          <td width="312"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];



$this->{add_urlp} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add
    Premium URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!addurlcgi!!">
      <input type="hidden" name="catid" value="!!catid!!"><input type="hidden" name="ia"
      value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div align="center"><center><table
      border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td><font face="Arial" size="2">Email Address:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Title:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Description:</font></td>
          <td width="312"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Keywords:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">URL:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Modify Password:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password1"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Confirm Modify Password: </font></td>
          <td width="312"><font face="Verdana" size="2"><input type="password" name="password2"
          size="14"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Your Name:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td align="right"><div align="left"><p><font face="Arial" size="2">Subscribe to mailing
          list?</font></td>
          <td width="382"><font face="Verdana" size="2"><input type="checkbox" name="mlist"
          value="Y" checked></font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Reciprocal link: (Please provide
          the URL of a page in your web site where you have placed a link to our web site)</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="reciprocal"
          size="47"></font></td>
        </tr>
        <tr>
          <td></td>
          <td width="382"><font face="Arial" size="2"><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Please type the letters listed above:<br>
          </font><br>
          <font face="Verdana" size="2"><input type="text" name="letters" size="22"></font><br>
          </td>
        </tr>
        <tr>
          <td></td>
          <td width="312"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];


$this->{add_url_instructions} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add URL
    Instructions</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p align="left">&nbsp;</p>
      <p align="left"><font face="Arial" size="2" color="#000000">You are currently not in a
      category where a url can be added. </font></p>
    </blockquote>
    <blockquote>
      <p align="left"><font face="Arial" size="2" color="#000000">To add your URL, please go to
      the category where you think your web site would suite the category best. Then click on
      'Add Url' to add your web site to the index.</font></p>
      <p align="left">&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];



$this->{locked} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Category
    Locked</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p align="left">&nbsp;</p>
      <p align="left"><font face="Arial" size="2" color="#000000">You cannot submit a new
      submission to this category because it is locked. Please use a sub category of this
      category to submit your submission to.</font></p>
      <p align="left"><font face="Arial" size="2" color="#000000"><strong>Use the back button of
      your browser to go back.</strong> </font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];



$this->{add_url_problem} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Problem</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p align="left">&nbsp;</p>
      <p><font color="#000000" face="Arial" size="2"><strong>%%problem%%</strong></font></p>
      <p><font color="#000000" face="Arial" size="2">Please use the back button of your browser
      to go back.</font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];



$this->{add_url_success} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Thanks
    for submitting your URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p align="left">&nbsp;</p>
      <p align="center"><font face="Arial" size="2" color="#000000">Your URL will be visible in
      our directory as soon as we have reviewed your listing. </font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];



$this->{modify_link} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Modify
    Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font face="Arial" size="2"><strong>!!title_with_link!! </strong>!!rating_image!!<strong><br>
      </strong>!!description!!<br>
      <font color="#000000"><strong>!!url!!</strong></font><br>
      From: <strong>!!category!!<br>
      </strong>Current Rating: <strong>!!rating!!<br>
      </strong>Number of Votes: <strong>!!votes!!<br>
      </strong>Hits: <strong>!!Hits!!<br>
      </strong>Date: <strong>!!date!!</strong></font></p>
      <form method="POST" action="!!modify_cgi!!">
        <input type="hidden" name="cid" value="!!cid!!"><input type="hidden" name="id"
        value="!!id!!"><div align="center"><center><table border="0" cellpadding="10"
        cellspacing="0" width="650" style="border: 1px solid">
          <tr>
            <td width="128"><strong><font face="Arial" size="2">Modify Password:</font></strong></td>
            <td width="502"><font face="Arial" size="2"><input type="password" name="password"
            size="30"> <input type="submit" value="    Modify    " name="B1"></font></td>
          </tr>
        </table>
        </center></div><div align="center"><center><table border="0" cellpadding="0"
        cellspacing="0" width="650" background="!build_url!/shadow.gif">
          <tr>
            <td width="1%" bgcolor="#FFFFFF"><font color="#FFFFFF">_</font></td>
            <td width="99%"></td>
          </tr>
        </table>
        </center></div>
      </form>
      <p><font face="Arial" size="2">Lost your password? <a href="!!scripts_url!!/modify4.cgi">Click
      here to retrieve your password</a><br>
      </font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];



$this->{modify_link_problem} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Problem</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font face="Arial" size="2">%%problem%%</font></p>
      <p><font face="Arial" size="2"><strong>Use the back button of your browser to go back.</strong></font><br>
      </p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];



$this->{modify_link_success} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Success</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font face="Arial" size="2">%%problem%%</font></p>
      <p><font face="Arial" size="2">Your link has been modified. Your changes are currently
      pending review and will take effect as soon as it has been reviewed.</font> </p>
      <p><br>
      </p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];



$this->{modify_link_edit} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Modify
    Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!modify_cgi!!" ENCTYPE="multipart/form-data">
      <input type="hidden" name="cid" value="!!cid!!"><input type="hidden" name="id"
      value="!!id!!"><input type="hidden" name="lnkpassword" value="!!password!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="730">
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Title:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="title" size="30"
          value="%%title%%"></font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Description:</font></td>
          <td width="475"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Keywords:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"
          value="%%keywords%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">URL:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="%%url%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Your Name:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="name" size="30"
          value="%%name%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Email:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="email" size="30"
          value="%%email%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Modify Password:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="password" size="30"
          value="%%password%%"></font></td>
        </tr>
        <tr>
          <td width="231" valign="top"><font face="Arial" size="2">Image: </font></td>
          <td width="475"><font face="Arial" size="2">%%image%% [imgtext]No Image
          Available[endimgtxt]</font></td>
        </tr>
        <tr>
          <td width="231" valign="top"></td>
          <td width="475"><font face="Arial" size="2">[delbtext]Delete Image?[enddelbtext]
          %%delete_checkbox%%</font></td>
        </tr>
        <tr>
          <td width="231" valign="top"></td>
          <td width="475"><font face="Arial" size="2">Upload a image:<br>
          </font><input type="file" name="image" size="51"></td>
        </tr>
        <tr>
          <td width="231" align="right"></td>
          <td width="475"><font face="Arial" size="2">If you want to have this linked moved to
          another category, please specify the category below. Also use the box below to let us know
          if you have any comments/notes regarding the modification of this link. <strong>(Optional)</strong><br>
          %%notesbox%%</font></td>
        </tr>
        <tr>
          <td width="231"></td>
          <td width="475"><font face="Arial" size="2"><input type="submit"
          value="   Apply Changes   " name="B1"></font><p><font face="Arial" size="2">Note that all
          modifications are first reviewed by the admin or category moderators before the changes
          are applied.</font></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];


$this->{modify_link_editp} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Modify
    Premium Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!modify_cgi!!">
      <input type="hidden" name="cid" value="!!cid!!"><input type="hidden" name="id"
      value="!!id!!"><input type="hidden" name="lnkpassword" value="!!password!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="730">
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Title:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="title" size="30"
          value="%%title%%"></font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Description:</font></td>
          <td width="475"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Keywords:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"
          value="%%keywords%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">URL:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="%%url%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Your Name:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="name" size="30"
          value="%%name%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Email:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="email" size="30"
          value="%%email%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Modify Password:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="password" size="30"
          value="%%password%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="right"></td>
          <td width="475"><font face="Arial" size="2">If you want to have this linked moved to
          another category, please specify the category below. Also use the box below to let us know
          if you have any comments/notes regarding the modification of this link. <strong>(Optional)</strong><br>
          %%notesbox%%</font></td>
        </tr>
        <tr>
          <td width="231"></td>
          <td width="475"><font face="Arial" size="2"><input type="submit"
          value="   Apply Changes   " name="B1"></font><p><font face="Arial" size="2">Note that all
          modifications are first reviewed by the admin or category moderators before the changes
          are applied.</font></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];




$this->{modify_instructions} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Modify
    Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<blockquote>
      <p><font face="Arial" size="2">To modify your link, please search for your link. Once
      you've found it click on the 'Modify' link that should be available with your link.</font></p>
    </blockquote>
    <p><br>
    </td>
  </tr>
</table>
</center></div>
];


$this->{retrievepass} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Modify
    Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<blockquote>
      <p align="left"><font face="Arial" size="2">Enter your email address below and your
      password will be sent to you via email.</font></p>
      <form method="POST" action="!!email_script!!">
        <p><font face="Arial" size="2"><font color="#000000"><strong>Your Email Address: </strong></font><input
        type="text" name="email" size="26"> <input type="submit" value="Send Password"
        name="sbutton"></font></p>
      </form>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];


$this->{retrievepass_ok} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Password
    Sent</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<blockquote>
      <p><font face="Arial" size="2">Your password has been sent. You should receive your
      password via email shortly.</font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];


$this->{retrievepass_prb} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Problem</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p align="left"><font face="Arial" size="2"><br>
      The password that you entered was incorrect or there are no link in our database
      associated with the password you entered.</font></p>
      <p><font face="Arial" size="2"><strong>Use the back button of your browser to go back.</strong>
      </font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rgs_msgregister} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Arial" size="2"><br>
      You have to be logged in to be able to add your link. If you don't have an account, then <a
      href="!!account_create!!">click here to create one.</a></font></p>
      <form method="POST" action="!!rgs_login!!">
        <div align="center"><center><table border="0" cellpadding="10" cellspacing="0" width="90%"
        style="border: 1px solid rgb(192,192,192)">
          <tr>
            <td width="630" colspan="2"><font face="Arial" size="2"><strong>Login</strong></font></td>
          </tr>
          <tr>
            <td width="128"><font face="Arial" size="2"><strong>User Name:</strong></font></td>
            <td width="502"><font face="Arial" size="2"><input name="rgs_user" size="30"> </font></td>
          </tr>
          <tr>
            <td width="128"><font face="Arial" size="2"><strong>Password: </strong></font></td>
            <td width="502"><font face="Arial" size="2"><input type="password" name="rgs_pass"
            size="30"></font></td>
          </tr>
          <tr>
            <td width="128"></td>
            <td width="502"><font face="Arial" size="2"><input type="submit" value="   Login   "
            name="B1"></font></td>
          </tr>
        </table>
        </center></div>
      </form>
      <p><font face="Arial" size="2">Lost your password? <a href="!!retreive_password!!">Click
      here to retrieve your password</a><br>
      </font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>



];


$this->{rgs_register} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> ::
    Register/Create an Account</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!rgs_register!!">
      <input type="hidden" name="fct" value="register"><table border="0" width="100%"
      cellpadding="5">
        <tr>
          <td width="100%" colspan="2"><font face="Arial" size="2">Account registration allows you
          to submit your link and/or post comments about any links. Note that an email message is
          sent to you to activate your account after you have filled in this form. You will then
          need to click the link that is available in the email to activate your account. <strong>Note
          that you have to have cookies enabled to be able to log into your account to add your
          link.</strong></font></td>
        </tr>
        <tr>
          <td width="100%" colspan="2"><font color="#FF0000" face="Arial" size="2"><strong>!!error_text!!</strong></font></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Choose a User Name:</font></td>
          <td width="75%"><input type="text" name="rgs_user" size="13" value="!!rgs_user!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Choose a Password:</font></td>
          <td width="75%"><input type="password" name="rgs_pass" size="13" value="!!rgs_pass!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Verify Password:</font></td>
          <td width="75%"><input type="password" name="rgs_pass2" size="13" value="!!rgs_pass2!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Name: </font></td>
          <td width="75%"><input type="text" name="name" size="32" value="!!name!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Email Address:</font></td>
          <td width="75%"><input type="text" name="email" size="32" value="!!email!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Confirm Email Address:</font></td>
          <td width="75%"><input type="text" name="email2" size="32" value="!!email2!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Company Name:</font></td>
          <td width="75%"><input type="text" name="extra1" size="32" value="!!extra1!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Address Line 1:</font></td>
          <td width="75%"><input type="text" name="extra2" size="32" value="!!extra2!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Address Line 2:</font></td>
          <td width="75%"><input type="text" name="extra3" size="32" value="!!extra3!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">City/State</font></td>
          <td width="75%"><input type="text" name="extra4" size="32" value="!!extra4!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Zip Code</font></td>
          <td width="75%"><input type="text" name="extra5" size="13" value="!!extra5!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Tel:</font></td>
          <td width="75%"><input type="text" name="extra6" size="21" value="!!extra6!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Fax:</font></td>
          <td width="75%"><input type="text" name="extra7" size="21" value="!!extra7!!"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Subscribe to Newsletter?</font></td>
          <td width="75%"><font face="Verdana" size="2"><input type="checkbox" name="mlist"
          value="Y" checked></font></td>
        </tr>
        <tr>
          <td></td>
          <td><p>%%imgbox%% <br>
            Type in the letters as indicated above:<br>
  <input type="text" name="letters" size="20">
          </p></td>
        </tr>
        <tr>
          <td width="25%"></td>
          <td width="75%"><input type="submit" value="Create Account" name="B1"></td>
        </tr>
      </table>
    </form>
    </td>
  </tr>
</table>
</center></div>

];


$this->{rgs_regsuccess} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: An
    account has been created for you.</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Arial" size="2"><br>
      An activation email has been sent to the email address you supplied. Inside this email
      will be a link that you will need to click to activate your account. You can log into your
      account and submit your link when you have activated your account.</font></p>
    </blockquote>
    <blockquote>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rgs_actsuccess} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Your
    account has been activated!</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<form method="POST" action="!!rgs_login!!">
      <div align="center"><center><table border="0" width="60%" cellpadding="5">
        <tr>
          <td width="25%"><font face="Arial" size="2"><strong>Login:</strong></font></td>
          <td width="75%"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">User Name: </font></td>
          <td width="75%"><input type="text" name="rgs_user" size="20"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Password:</font></td>
          <td width="75%"><input type="password" name="rgs_pass" size="20"></td>
        </tr>
        <tr>
          <td width="25%"></td>
          <td width="75%"><input type="submit" value="Login" name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    <blockquote>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rgs_actfailed} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: The link
    you clicked to activate your account was not valid.</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<form method="POST" action="!!rgs_resendact!!">
      <div align="center"><center><table border="0" width="60%" cellpadding="5">
        <tr>
          <td width="100%" colspan="2"><strong><font face="Arial" size="2">Re-send activation email?<br>
          <br>
          </font><font color="#FF0000" face="Arial" size="2">!!error_text!!</font></strong></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">User Name: </font></td>
          <td width="75%"><input type="text" name="rgs_user" size="20"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Password:</font></td>
          <td width="75%"><input type="password" name="rgs_pass" size="20"></td>
        </tr>
        <tr>
          <td width="25%"></td>
          <td width="75%"><input type="submit" value="Re-send Activation Email" name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    <p><br>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rgs_resend} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Resend
    Activation Email</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<form method="POST" action="!!rgs_resendact!!">
      <div align="center"><center><table border="0" width="60%" cellpadding="5">
        <tr>
          <td width="100%" colspan="2"><strong><font face="Arial" size="2">Re-send activation email?<br>
          <br>
          </font><font color="#FF0000" face="Arial" size="2">!!error_text!!</font></strong></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">User Name: </font></td>
          <td width="75%"><input type="text" name="rgs_user" size="20"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Password:</font></td>
          <td width="75%"><input type="password" name="rgs_pass" size="20"></td>
        </tr>
        <tr>
          <td width="25%"></td>
          <td width="75%"><input type="submit" value="Re-send Activation Email" name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    <p><br>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rgs_sent} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Your
    account activation email has been sent.</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<blockquote>
      <p><font face="Arial" size="2">You will receive your account activation email shortly.</font><br>
      </p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>


];


$this->{rgs_login} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Login</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<form method="POST" action="!!rgs_login!!">
      <div align="center"><center><table border="0" width="60%" cellpadding="5">
        <tr>
          <td width="100%" colspan="2"><font color="#FF0000" face="Arial" size="2"><strong>!!error_text!!</strong></font></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">User Name: </font></td>
          <td width="75%"><input type="text" name="rgs_user" size="20"></td>
        </tr>
        <tr>
          <td width="25%"><font face="Arial" size="2">Password:</font></td>
          <td width="75%"><input type="password" name="rgs_pass" size="20"></td>
        </tr>
        <tr>
          <td width="25%"></td>
          <td width="75%"><input type="submit" value="Login" name="B1"></td>
        </tr>
        <tr>
          <td width="25%"></td>
          <td width="75%"><font face="Arial" size="2">Lost your Password? <a
          href="!!retrieve_password!!">Retrieve Password</a> <br>
          <br>
          <a href="!!resend_activation!!">Resend Activation Email</a></font></td>
        </tr>
      </table>
      </center></div>
    </form>
    <p><br>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rgs_logout} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><p align="center"><strong><font face="Arial" size="2">You have been
    logged out.</font></strong></td>
  </tr>
</table>
</center></div>
];

$this->{rgs_retrievepass} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Retrieve
    Password</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!rgs_pretrieve!!">
      <div align="center"><center><table border="0" width="90%" cellpadding="5">
        <tr>
          <td width="100%" height="18"><strong><font color="#FF0000" face="Arial" size="2">!!error_text!!</font></strong></td>
        </tr>
        <tr>
          <td width="100%" height="23"><font face="Arial" size="2">Please provide your email
          address: </font><input type="text" name="email" size="42"> <input type="submit"
          value="Send" name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];

$this->{rgs_retrievepass_ok} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Password
    Information Sent</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<blockquote>
      <p><font face="Arial" size="2">Your password information has been sent to your email
      address. You should receive it in a couple of minutes.</font></p>
    </blockquote>
    <p>&nbsp;</td>
  </tr>
</table>
</center></div>
];

$this->{rgs_cpmain} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>You are Logged-In</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2">&nbsp;</font><p><font face="Arial" size="2">!!user_links!!</font></p>
    <p>&nbsp;</td>
  </tr>
</table>
</center></div>
];

$this->{rgs_editacc} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>Edit Account Details</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!save_details!!">
      <input type="hidden" name="fct" value="save"><div align="center"><center><table border="0"
      cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td width="706" colspan="2"><font color="#FF0000" face="Arial" size="2"><strong>!!error_text!!</strong></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">User Name:</font></td>
          <td width="525"><font face="Arial" size="2"><strong>!!rgsuser!!</strong></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">Password:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="rgspass" size="30"
          value="!!rgspass!!"></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">Name:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="rgsname" size="30"
          value="!!rgsname!!"></font></td>
        </tr>
        <tr>
          <td valign="top" width="181"><font face="Arial" size="2">Email Address:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="rgsemail" size="40"
          value="!!rgsemail!!"></font></td>
        </tr>
        <tr>
          <td valign="top" width="181"><font face="Arial" size="2">Company Name:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="extra1" size="40"
          value="!!extra1!!"></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">Address Line 1:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="extra2" size="30"
          value="!!extra2!!"></font></td>
        </tr>
        <tr>
          <td valign="top" width="181"><font face="Arial" size="2">Address Line 2:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="extra3" size="40"
          value="!!extra3!!"></font></td>
        </tr>
        <tr>
          <td valign="top" width="181"><font face="Arial" size="2">City/State:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="extra4" size="30"
          value="!!extra4!!"></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">Zip Code:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="extra5" size="22"
          value="!!extra5!!"></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">Tel:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="extra6" size="22"
          value="!!extra6!!"></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">Fax:</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="text" name="extra7" size="22"
          value="!!extra7!!"></font></td>
        </tr>
        <tr>
          <td width="181"><font face="Arial" size="2">Subscribe to Newsletter?</font></td>
          <td width="525"><font face="Verdana" size="2"><input type="checkbox" name="mlist"
          value="Y" !!checked!!></font></td>
        </tr>
        <tr>
          <td width="181"></td>
          <td width="525"><input type="submit" value="   Save   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];

$this->{rgs_saveacc} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>Account Details Updated</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>&nbsp;</strong></font><p align="center"><font
    face="Arial" size="2"><strong><a href="!!rgs_login!!">Click here to continue</a><br>
    </strong></font></td>
  </tr>
</table>
</center></div>

];

$this->{rgs_add_url_med} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!addurlcgi!!" ENCTYPE="multipart/form-data">
      <input type="hidden" name="ia" value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td width="246"><font face="Arial" size="2">Contact Email Address For This Link:</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td width="246"><font face="Arial" size="2">Category:</font></td>
          <td width="460"><font face="Arial" size="2">%%category_dropdown%%</font></td>
        </tr>
        <tr>
          <td width="246"><font face="Arial" size="2">Title:</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Description:</font></td>
          <td width="460"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Keywords:</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td width="246"><font face="Arial" size="2">URL:</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="url" size="47"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top" width="246"><font face="Arial" size="2">Contact Person for This Link:</font></td>
          <td width="460"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td width="246"></td>
          <td width="460"><font face="Arial" size="2"><font color="#FFFFFF">_</font><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Type the letters listed above:<br>
          </font><font face="Arial" size="2" color="#FFFFFF">_</font><font face="Arial" size="2"><br>
          </font><font face="Verdana" size="2"><input type="text" name="letters" size="17"></font><br>
          <font face="Arial" size="2" color="#FFFFFF">_</font></td>
        </tr>
        <tr>
          <td width="246"></td>
          <td width="460"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];

$this->{rgs_add_url} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Arial" size="2">You have chosen to add your URL in the following category:<br>
      <strong>%%add_category%%</strong></font></p>
    </blockquote>
    <form method="POST" action="!!addurlcgi!!">
      <input type="hidden" name="catid" value="!!catid!!"><input type="hidden" name="ia"
      value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div align="center"><center><table
      border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td><font face="Arial" size="2">Contact Email Address For This Link:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Title:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Description:</font></td>
          <td width="312"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Keywords:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">URL:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Your Name:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td></td>
          <td width="382"><font face="Arial" size="2"><font color="#FFFFFF">_</font><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Type the letters listed above:<br>
          </font><font face="Arial" size="2" color="#FFFFFF">_</font><font face="Arial" size="2"><br>
          </font><font face="Verdana" size="2"><input type="text" name="letters" size="17"></font><br>
          <font face="Arial" size="2" color="#FFFFFF">_</font></td>
        </tr>
        <tr>
          <td></td>
          <td width="312"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];

$this->{rgs_add_url_medp} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add
    Premium URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!addurlcgi!!" ENCTYPE="multipart/form-data">
      <input type="hidden" name="ia" value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td><font face="Arial" size="2">Contact Email Address For This Link:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Category:</font></td>
          <td width="312"><font face="Arial" size="2">%%category_dropdown%%</font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Title:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Description:</font></td>
          <td width="312"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Keywords:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">URL:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Contact Person for This Link:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td></td>
          <td width="382"><font face="Arial" size="2"><font color="#FFFFFF">_</font><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Type the letters listed above:<br>
          </font><font face="Arial" size="2" color="#FFFFFF">_</font><font face="Arial" size="2"><br>
          </font><font face="Verdana" size="2"><input type="text" name="letters" size="17"></font><br>
          <font face="Arial" size="2" color="#FFFFFF">_</font></td>
        </tr>
        <tr>
          <td></td>
          <td width="312"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>

];

$this->{rgs_add_urlp} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add
    Premium URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p><font face="Arial" size="2">You have chosen to add your URL in the following category:<br>
      <strong>%%add_category%%</strong></font></p>
    </blockquote>
    <form method="POST" action="!!addurlcgi!!">
      <input type="hidden" name="catid" value="!!catid!!"><input type="hidden" name="ia"
      value="!!ia!!"><input type="hidden" name="p" value="!!p!!"><div align="center"><center><table
      border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td><font face="Arial" size="2">Contact Email Address For This Link:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="email" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">Title:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="title" size="30"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Description:</font></td>
          <td width="312"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Keywords:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="keywords" size="30"></font></td>
        </tr>
        <tr>
          <td><font face="Arial" size="2">URL:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="url" size="30"
          value="http://"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Suggest a Category:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="csuggestion"
          size="40"></font></td>
        </tr>
        <tr>
          <td valign="top"><font face="Arial" size="2">Your Name:</font></td>
          <td width="312"><font face="Verdana" size="2"><input type="text" name="sname" size="30"></font></td>
        </tr>
        <tr>
          <td></td>
          <td width="382"><font face="Arial" size="2"><font color="#FFFFFF">_</font><br>
          %%imgbox%%</font><br>
          <font face="Arial" size="2">Type the letters listed above:<br>
          </font><font face="Arial" size="2" color="#FFFFFF">_</font><font face="Arial" size="2"><br>
          </font><font face="Verdana" size="2"><input type="text" name="letters" size="17"></font><br>
          <font face="Arial" size="2" color="#FFFFFF">_</font></td>
        </tr>
        <tr>
          <td></td>
          <td width="312"><input type="submit" value="   Submit   " name="B1"></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>

];

$this->{rgs_add_url_instructions} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Add URL
    Instructions</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <blockquote>
        <p align="left"><font face="Arial" size="2" color="#000000">You are currently not in a
        category where a url can be added. </font></p>
      </blockquote>
      <blockquote>
        <p align="left"><font face="Arial" size="2" color="#000000">To add your URL, please go to
        the category where you think your web site would suite the category best. Then click on
        'Add Url' to add your web site to the index.</font></p>
        <p align="left"><font face="Arial" size="2" color="#000000">You may also use the <a
        href="!!advanced!!">category search</a> from the advanced search form.<br>
        </font><font face="Arial" size="2" color="#FFFFFF">_</font></p>
      </blockquote>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];

$this->{rgs_locked} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Category
    Locked</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <blockquote>
        <p align="left"><font face="Arial" size="2" color="#000000">You cannot submit a new
        submission to this category because it is locked. Please use a sub category of this
        category to submit your submission to.</font></p>
      </blockquote>
      <blockquote>
        <p align="left"><font face="Arial" size="2" color="#000000"><strong>Use the back button of
        your browser to go back.</strong> </font></p>
      </blockquote>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>


];

$this->{rgs_add_url_problem} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Problem</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font color="#000000" face="Arial" size="2"><strong>%%problem%%</strong></font></p>
      <p><font color="#000000" face="Arial" size="2">Please use the back button of your browser
      to go back.<br>
      </font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>


];

$this->{rgs_add_url_success} = qq[


<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Thanks
    for submitting your URL</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font face="Arial" size="2" color="#000000">Your URL will be visible in our directory
      as soon as we have reviewed your listing. <br>
      <br>
      <strong><a href="!!rgs_login!!">Click here to continue</a><br>
      </strong></font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>
];



$this->{rgs_modify_link_edit} = qq[
<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>Modify Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!modify_cgi!!" ENCTYPE="multipart/form-data">
      <input type="hidden" name="cid" value="!!cid!!"><input type="hidden" name="id"
      value="!!id!!"><input type="hidden" name="lnkpassword" value="!!password!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Title:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="title" size="30"
          value="%%title%%"></font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Description:</font></td>
          <td width="475"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Keywords:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="keywords" size="47"
          value="%%keywords%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">URL:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="url" size="47"
          value="%%url%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Contact Person:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="name" size="30"
          value="%%name%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Contact Email Address for this
          Link:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="email" size="47"
          value="%%email%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="right"></td>
          <td width="475"><font face="Arial" size="2">If you want to have this linked moved to
          another category, please specify the category below. Also use the box below to let us know
          if you have any comments/notes regarding the modification of this link. <strong>(Optional)</strong><br>
          %%notesbox%%<br>
          </font></td>
        </tr>
        <tr>
          <td width="231"></td>
          <td width="475"><font face="Arial" size="2"><input type="submit"
          value="   Apply Changes   " name="B1"></font><p><font face="Arial" size="2">Note that all
          modifications are first reviewed by the admin or category moderators before the changes
          are applied.</font></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>

];


$this->{rgs_modify_link_editp} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>Modify Premium Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><form method="POST" action="!!modify_cgi!!" ENCTYPE="multipart/form-data">
      <input type="hidden" name="cid" value="!!cid!!"><input type="hidden" name="id"
      value="!!id!!"><input type="hidden" name="lnkpassword" value="!!password!!"><div
      align="center"><center><table border="0" cellpadding="5" cellspacing="1" width="100%">
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Title:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="title" size="30"
          value="%%title%%"></font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Description:</font></td>
          <td width="475"><font face="Arial" size="2">%%submissionbox%%<br>
          Max 255 Characters</font></td>
        </tr>
        <tr>
          <td width="231" valign="top" align="left"><font face="Arial" size="2">Keywords:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="keywords" size="47"
          value="%%keywords%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">URL:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="url" size="47"
          value="%%url%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Contact Person:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="name" size="30"
          value="%%name%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="left"><font face="Arial" size="2">Contact Email Address for this
          Link:</font></td>
          <td width="475"><font face="Verdana" size="2"><input type="text" name="email" size="47"
          value="%%email%%"></font></td>
        </tr>
        <tr>
          <td width="231" align="right"></td>
          <td width="475"><font face="Arial" size="2">If you want to have this linked moved to
          another category, please specify the category below. Also use the box below to let us know
          if you have any comments/notes regarding the modification of this link. <strong>(Optional)</strong><br>
          %%notesbox%%<br>
          </font></td>
        </tr>
        <tr>
          <td width="231"></td>
          <td width="475"><font face="Arial" size="2"><input type="submit"
          value="   Apply Changes   " name="B1"></font><p><font face="Arial" size="2">Note that all
          modifications are first reviewed by the admin or category moderators before the changes
          are applied.</font></td>
        </tr>
      </table>
      </center></div>
    </form>
    </td>
  </tr>
</table>
</center></div>
];


$this->{rgs_modify_link_problem} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>Modify Link</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<blockquote>
      <p><font face="Arial" size="2">%%problem%%</font></p>
    </blockquote>
    <blockquote>
      <p><font face="Arial" size="2"><strong>Use the back button of your browser to go back.</strong></font><br>
      <br>
      </p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];


$this->{rgs_modify_link_success} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong>Link Modified</strong></font></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <p>&nbsp;</p>
      <p><font face="Arial" size="2">Your link has been modified. Your changes are currently
      pending review and will take effect as soon as it has been reviewed.</font> </p>
      <p><a href="!!rgs_login!!"><font face="Arial" size="2"><strong>Click here to continue</strong></font></a></p>
      <p><font face="Arial" size="2"><strong>&nbsp;</strong></font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];


$this->{rgs_modify_instructions} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top">%%incl_gluser_cp_links%%</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><strong><font face="Arial" size="2">Modify Link</font></strong></td>
  </tr>
  <tr>
    <td valign="top"><blockquote>
      <blockquote>
        <p><font face="Arial" size="2">You have to be logged in to be able to modify your link. If
        this is your link but you don't have an account for it or the link is not linked to your
        account then contact us so that we can add this link to your account. Note that you will
        need an account if you would like us to add this link to your account.</font></p>
        <p><font face="Arial" size="2">If you don't have an account and you would like to add your
        link, then <a href="!!account_create!!">click here to create one.</a></font></p>
      </blockquote>
      <blockquote>
        <form method="POST" action="!!rgs_login!!">
          <div align="center"><center><table border="0" cellpadding="10" cellspacing="0" width="650"
          style="border: 1px solid rgb(192,192,192)">
            <tr>
              <td width="630" colspan="2"><font face="Arial" size="2"><strong>Login</strong></font></td>
            </tr>
            <tr>
              <td width="128"><font face="Arial" size="2"><strong>User Name:</strong></font></td>
              <td width="502"><font face="Arial" size="2"><input name="rgs_user" size="30"> </font></td>
            </tr>
            <tr>
              <td width="128"><font face="Arial" size="2"><strong>Password: </strong></font></td>
              <td width="502"><font face="Arial" size="2"><input type="password" name="rgs_pass"
              size="30"></font></td>
            </tr>
            <tr>
              <td width="128"></td>
              <td width="502"><font face="Arial" size="2"><input type="submit" value="   Login   "
              name="B1"></font></td>
            </tr>
          </table>
          </center></div>
        </form>
        <p><font face="Arial" size="2">Lost your password? <a href="!!retreive_password!!">Click
        here to retrieve your password</a></font></p>
      </blockquote>
      <p><font face="Arial" size="2"><strong>&nbsp;</strong></font></p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>

];


$this->{rgs_rcomment} = qq[

<div align="center"><center>

<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Comments</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<p align="center"><font face="Arial" size="2">You can at present not post
    a comment because you need to register an account to post a comment.<br>
    <a href="!!register!!" target="_blank">You can click here to register an account.</a> <br>
    <br>
    If you have already registered an account then please <br>
    <a href="!!rgs_login!!" target="_blank">click here to log into your account.</a></font></p>
    <blockquote>
      <p>&nbsp;</p>
    </blockquote>
    </td>
  </tr>
</table>
</center></div>


];


$this->{rgs_rrate} = qq[

<div align="center"><center>
<table border="0" cellpadding="7" cellspacing="0" width="97%"
style="border: medium none rgb(192,192,192)">
  <tr>
    <td valign="top"><font face="Arial" size="2"><strong><a href="!!top!!">Top</a> :: Cast
    Rating</strong></font></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;<p align="center"><font face="Arial" size="2">You can at present not rate
    this link because you need to register an account to rate a link. <br>
    <a href="!!register!!" target="_blank">You can click here to register an account.</a><br>
    <br>
    If you have already registered an account then please <br>
    <a href="!!rgs_login!!" target="_blank">click here to log into your account.</a></font></td>
  </tr>
</table>
</center></div>

];


bless $this;
return $this;
}





sub get_setup
{

$exists = (-e "$config_cgi");
if ($exists > 0)
	{
	open (STP, "$config_cgi");
		while (defined($line=<STP>))
			{
			if ($line =~ m/#/g)
				{
				$r = pos($line);
				$line = substr($line, 0, $r - 1);
				}
				
				$line =~ s/\n//g;
	
if ($line =~ /^DB_NAME/){$db_name = &get_setup_line2($line, DB_NAME);}
if ($line =~ /^DB_USERNAME/){$db_username = &get_setup_line2($line, DB_USERNAME);}
if ($line =~ /^DB_PASSWORD/){$db_password = &get_setup_line2($line, DB_PASSWORD);}
if ($line =~ /^MYSQL_HOSTNAME/){$mysql_hostname = &get_setup_line2($line, MYSQL_HOSTNAME);}
if ($line =~ /^MYSQL_PORT/){$mysql_port = &get_setup_line2($line, MYSQL_PORT);}

if ($line =~ /^SCRIPT_URL/){$script_url = &get_setup_line2($line, SCRIPT_URL);}
if ($line =~ /^ADMIN_URL/){$admin_url = &get_setup_line2($line, ADMIN_URL);}
if ($line =~ /^WEB_URL/){$web_url = &get_setup_line2($line, WEB_URL);}
if ($line =~ /^WEB_DIR/){$web_dir = &get_setup_line2($line, WEB_DIR);}
if ($line =~ /^DATA_DIR/){$data_dir = &get_setup_line2($line, DATA_DIR);}

if ($line =~ /^USERNAME/){$username = &get_setup_line2($line, USERNAME);}
if ($line =~ /^PASSWORD/){$password = &get_setup_line2($line, PASSWORD);}

if ($line =~ /^MAIL_METHOD/){$mail_method = &get_setup_line2($line, MAIL_METHOD);}
if ($line =~ /^SENDMAIL/){$sendmail = &get_setup_line2($line, SENDMAIL);}
if ($line =~ /^SMTP_SERVER/){$smtp_server = &get_setup_line2($line, SMTP_SERVER);}
if ($line =~ /^SMTP_USER/){$smtp_user = &get_setup_line2($line, SMTP_USER);}
if ($line =~ /^SMTP_PASS/){$smtp_pass = &get_setup_line2($line, SMTP_PASS);}

			}
	close (STP);
	
	}

}


sub get_setup_line2
{
my ($setup_line, $setup_var) = @_;
$crit = "\"";
$setup_line =~ m/$crit/g;
$r1 = pos($setup_line);
$setup_line =~ m/$crit/g;
$r2 = pos($setup_line);
$setup_line = substr($setup_line, $r1, ($r2 - $r1 - 1));
$return_val = $setup_line;
return ($return_val);
}

sub ppc_settings
{
my $this = {};

$scnts = &get_file_contents("$data_dir/ppc_settings.dat");
@all_obj_items = split (/\n/, $scnts);

foreach $obji (@all_obj_items)
	{
	($obj_prp, $obj_val) = split (/=/, $obji);
	$this->{$obj_prp} = $obj_val;
	}

bless $this;
return $this;
}


1;