%GT::Installer::LANG = (
    ERR_REQUIRED   => "%s cannot be left blank.",
    ERR_PATH       => "The path (%s) does not exist on this system",
    ERR_PATHWRITE  => "Unable to write to directory '%s': %s",
    ERR_PATHCREATE => "Unable to create directory '%s': %s",
    ERR_URLFMT     => "'%s' is not a valid URL",
    ERR_FTPFMT     => "'%s' is not a valid FTP URL",
    ERR_EMAILFMT   => "'%s' is not a valid e-mail address",
    ERR_SENDMAIL   => "The sendmail path (%s) does not exist on your system or is not executable",
    ERR_SMTP       => "'%s' is not a valid SMTP server address",
    ERR_PERL       => "The path to perl you specified (%s) %s",
    ERR_DIREXISTS  => "Directory '%s' cannot be created; a file/directory with the same name already exists",
    ERR_WRITEOPEN  => "Could not write to '%s': %s\n",
    ERR_READOPEN   => "Could not read '%s': %s\n",
    ERR_RENAME     => "Could not rename '%s' to '%s': %s\n",
    ENTER_REG      => 'Please enter your registration number',
    REG_NUM        => 'Registration Number',
    ENTER_SENDMAIL => 'Please enter either a path to sendmail, or an SMTP server to use for sending mail',
    MAILER         => 'Mailer',
    ENTER_PERL     => 'Please enter the path to perl',
    PATH_PERL      => 'Path to perl',
    CREATE_DIRS    => 'Create Directories',
    INSTALL_CURRUPTED => '
install.dat appears to be corrupted.  If you are using FTP to transer the file
be sure to upload the file in BINARY mode.

If you need assistance, please visit:
    http://www.gossamer-threads.com/scripts/support/
',
   INSTALL_VERSION => '
This program requires Perl version 5.004_04 or greater to run.  Your
system is only running version %s.  Try changing the path to perl in
install.cgi to a newer version, or contact your ISP for help.
',
   ADMIN_PATH_ERROR => "You must specify the path to the previous installation's admin area",
   INTRO => '
%s Quick Install http://www.gossamer-threads.com
Copyright (c) 2005 Gossamer Threads Inc.  All Rights Reserved
Redistribution in part or in whole strictly prohibited.
',
    WELCOME => '
Welcome to %s.  This program will unarchive and install %s.

To begin, please enter the following information.  Type exit
or quit at any time to abort.
',
    IS_UPGRADE        => "Is this an upgrade of an existing installation",
    ENTER_ADMIN_PATH  => "\nPlease enter path to current admin",
    UNARCHIVING       => 'Unarchiving',
    TAR_OPEN          => "Could not open '%s': %s",
    TAR_READ          => "There was an error reading from '%s': expected to read %s bytes, but only got %s.",
    TAR_BINMODE       => "Could not binmode '%s': %s",
    TAR_BADARGS       => "Bad arguments passed to %s: %s",
    TAR_CHECKSUM      => "Checksum Error parsing tar file.  Most likely this is a corrupt tar.\nHeader: %s\nChecksum: %s\nFile: %s\n",
    TAR_NOBODY        => "File '%s' does not have a body!",
    TAR_CANTFIND      => "Unable to find a file named: '%s' in tar archive.",
    TAR_CHMOD         => "Could not chmod %s, Reason: %s",
    TAR_DIRFILE       => "Directory '%s' cannot be created; a file with the same name already exists",
    TAR_MKDIR         => "Could not mkdir %s, Reason: %s",
    TAR_RENAME        => "Unable to rename temp file: '%s' to tar file '%s'. Reason: %s",
    TAR_NOGZIP        => "Compress::Zlib module is required to work with .tar.gz files.",
    SKIPPING_FILE     => "Skipping %s\n",
    OVERWRITTING_FILE => "Overwriting %s\n",
    SKIPPING_MATCHED  => "Skipping %s in matched directory\n",
    BACKING_UP_FILE   => "Backing up %s\n",
    ERR_OPENTAR => '
Unable to open the install.dat file! Please make sure the
file exists and that the permissions are set properly so the
program can read the file.

The error message was:
    %s

If you need assistance, please visit:
    http://www.gossamer-threads.com/scripts/support/
    ',
    ERR_OPENTAR_UNKNOWN => '
Unknown error opening tar file:
    %s

If you need assistance, please visit:
http://www.gossamer-threads.com/scripts/support/
',
    WE_HAVE_IT => "\nWe have everything we need to proceed.\n\n",
    ENTER_STARTS => "\nPress ENTER to install, or CTRL-C to abort",
    NOW_UNARCHIVING => '

We are now unarchiving %s and will be extracting
all the files shortly.  Please be patient...
',
    UPGRADE_DONE => '

Congratulations! Your copy of %s has now been 
updated to version %s.  The install files have 
been removed.

If you need to re-run the install, please unarchive the 
original file again.
',
    INSTALL_DONE => '

%s is now unarchived.  The install files have been 
removed.  If you need to re-run the install, please unarchive 
the original file again.

NOTE: Please do not leave your original .tar.gz file in your
web directory!

',
    TELNET_ERR => 'Error: %s',
    INSTALLER_CSS => <<'CSS', #> - help vim in ft=html mode
<style type="text/css">
/*<![CDATA[*/
body {
  margin: 0px;
  padding: 0px;
  color: #33332e;
  background: #ffffff;
  font: normal 11px tahoma, geneva, verdana, sans-serif;
  text-align: center;
}

/* forms */
form {
  margin: 0px;
}
input, textarea {
  font: normal 13px tahoma, geneva, verdana, sans-serif;
}
input.text, input.password, textarea {
  padding: 1px 0px 1px 2px;
  border: 1px solid #57594b;
}

/* links */
a {
  color: #212126;
}
a:visited {
  color: #8e8d9a;
}
a:hover {
  color: #5c5b66;
  text-decoration: none;
}

/* headings */
h1 {
  font-size: 16px;
}
h2 {
  font-size: 15px;
}
h3 {
  font-size: 13px;
}
h4 {
  font-size: 12px;
}
h5 {
  font-weight: normal;
  font-size: 11px;
}

h2.error {
  margin-top: 0px;
  color: red;
}
  
.no-bmargin {
  margin-bottom: 0px;
}

/*--------*\
|* header *|
\*--------*/
#logo {
  width: 250px;
  height: 80px;
  background: transparent url(http://www.gossamer-threads.com/images/installer/<%escape_url product%>%20logo.gif) top left no-repeat;
  text-indent: -9999px;
}
#logo h1, #logo a {
  margin: 0px;
  width: 100%;
  height: 100%;
}
#logo a {
  text-decoration: none;
  display: block;
}
#header {
  background: transparent url(http://www.gossamer-threads.com/images/installer/swirls.gif) top right no-repeat;
}

.shadowtop, .shadowbottom {
  height: 10px;
  font-size: 1px;
  display: inline-block;
/* ie/mac fix \*/
  display: block;
/* end fix */
}
.shadowtopleft, .shadowtopright, .shadowbottomleft, .shadowbottomright {
  width: 15px;
  height: 10px;
  font-size: 1px;
}
.shadowtop {
  background: url(http://www.gossamer-threads.com/images/installer/shadow-top.gif) bottom repeat-x;
}
.shadowbottom {
  background: url(http://www.gossamer-threads.com/images/installer/shadow-bottom.gif) top left repeat-x;
}
.shadowleft {
  background: url(http://www.gossamer-threads.com/images/installer/shadow-left.gif) left repeat-y;
}
.shadowright {
  background: url(http://www.gossamer-threads.com/images/installer/shadow-right.gif) right repeat-y;
}
.shadowtopleft {
  float: left;
  background: url(http://www.gossamer-threads.com/images/installer/shadow-topleft.gif) bottom left no-repeat;
}
.shadowtopright {
  float: right;
  background: url(http://www.gossamer-threads.com/images/installer/shadow-topright.gif) bottom right no-repeat;
}
.shadowbottomleft {
  float: left;
  background: url(http://www.gossamer-threads.com/images/installer/shadow-bottomleft.gif) top left no-repeat;
}
.shadowbottomright {
  float: right;
  background: url(http://www.gossamer-threads.com/images/installer/shadow-bottomright.gif) top right no-repeat;
}

/* form */
.row {
  margin-bottom: 1px;
  padding: 4px;
}
.row label.name {
  padding-right: 5px;
  width: 25%;
  float: left;
}
.row label.name span {
  color: #8c3030;
}
.row .value.wrappedtext {
  margin-left: 25%;
  padding-left: 5px;
}
/* hack for ie 5.5 text/textarea resizing */
.row .value input.text, .row .value input.password, .row .value textarea {
  width: expression(this.parentNode.offsetWidth * 0.74);
}
/* the previous style causes problems with long sidebars in ie6 */
.row .value input.text, .row .value input.password, .row .value textarea {
  w\idth: 72%;
}
.row .value input.text.shorttext {
  width: 100px;
}
.row.required {
  background: #e2e1eb;
}
.row.invalid {
  color: #8c3030;
  background: #eedddd;
  font-weight: bold;
}
.formsubmit {
  margin-top: 10px;
  text-align: right;
}

.wrapper {
  margin: 0px auto;
  width: 750px;
  text-align: left;
}

.content {
  margin: 0px 10px;
  padding: 10px;
  background: #ffffff;
}

.hide {
  display: none;
}
.clear:after {
  height: 0px;
  clear: both;
  display: block;
  visibility: hidden;
  content: ".";
}
.clear {
  display: inline-block;
}
/* start non ie/mac css \*/
* html .clear {
  height: 1%;
}
.clear {
  display: block;
}
/* end non ie/mac css */

.bar1 {
    height: 10px;
  background-color: #5c5b66;
  margin: 0px 0px 2px 0px;
}

.bar2 {
    height: 10px;
  background-color: #edf2cb;
  border-bottom: 1px solid #57394b;
  margin: 0px 0px 3px 0px;
}

/*---------------*\
|* contentheader *|
\*---------------*/
#contentheader {
  padding: 10px 10px 0px 10px;
  background: #e2e1eb;
}
#contentheader .error, #contentheader .message {
  margin: 0px 50px;
  padding: 2px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
}
#contentheader .error ul, #contentheader .message ul {
  list-style: none;
}
#contentheader .error {
  background: #8c3030;
}
#contentheader .message {
  background: #3a5841;
}
#contentheader .error *, #contentheader .message * {
  margin: 0px;
  padding: 0px;
}

blockquote {
  text-align: left;
}

.complete-installation {
  font-size: 14px;
  font-weight: bold;
}

/*--------*\
|* footer *|
\*--------*/
#footer {
  margin-top: 3px;
  padding: 5px;
  border-top: 1px solid #57594b;
  background: #edf2cb;
}
#footer a {
  float: right;
}
#footer p {
  margin: 0px;
  padding: 10px 0px;
  color: #8a8d77;
  font-size: 9px;
}
#powered_by {
  display: table-cell;
  display: inline-block;
  width: 100px;
  height: 33px;
  background: url(http://www.gossamer-threads.com/images/installer/<%escape_url product%>.gif) no-repeat right;
}
/*]]>*/
</style>
CSS
    TELNET_EULA => <<'EULA',
GOSSAMER THREADS INC.
END USER PRODUCT LICENSE AGREEMENT

IMPORTANT:	READ THIS LICENSE BEFORE INSTALLING THE SOFTWARE

This software product (the "Software") and the accompanying
documentation (the "Documentation") (together, the "Product") are
provided only under license from Gossamer Threads Inc. ("GTI") to its
customers for their use only as set forth in this Agreement. You should
carefully read the following terms and conditions before downloading,
installing and using the Software or using the Documentation. Installing
or otherwise using any part of the Software indicates that you accept
these terms and conditions. If you do not agree with the terms and
conditions of this Agreement, do not download, install or otherwise use
the Software and do not click on the "I agree" or similar button. If you
have received the Product on physical media, return the entire product
with the software and documentation unused to the supplier where you
obtained it.

1.      License:  GTI grants you a personal, non exclusive, license to use the
        Software in executable form and the Documentation, subject to the terms
        and restrictions set forth in this Agreement.  You are not permitted to
        lease, rent, distribute, publish or sub license the Software or the
        Documentation or to use any part of the Product in a time sharing
        arrangement or in any other unauthorized manner provided that you may
        transfer all your rights in the Product to another person as long as
        you remove all copies from your computers and cease all use of it.  GTI
        does not grant you any license in the source code of the Software.
        This Agreement does not grant you any rights to patents, copyrights,
        trade secrets, trademarks or any other rights with respect to the
        Product.

2.      Permitted Use.  You are authorized to have, at any time while this
        license is valid, one installation of the Software for one domain
        only, and you may remove the Software from one server and install it
        on another as long as it is running on only one server for one domain
        only at any time.

3.      Backup and Copyright Notices.  You may reproduce one copy of the
        Software and the Documentation for backup or archive purposes.  Any
        such copies must contain GTI's and its licensors' proprietary rights
        and copyright notices in the same form as on the original.  You agree
        not to remove or deface any portion of any legend provided on any
        licensed program or documentation delivered to you under this
        Agreement.

4.      Modification.  You may make unlimited modifications to the Software
        for your own internal use only, but any support obligations of GTI
        with respect to the Software will be terminated if you do so.

5.      LIABILITY LIMITATIONS.  IN NO EVENT WILL GTI BE LIABLE TO YOU OR TO
        ANY OTHER PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR
        CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THE SOFTWARE, THE
        DOCUMENTATION OR ANY DERIVATIVES THEREOF, EVEN IF GTI HAS BEEN ADVISED
        OF THE POSSIBILITY OF SUCH DAMAGE.  GTI SPECIFICALLY DISCLAIMS ANY
        WARRANTIES, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF
        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
        NON-INFRINGEMENT.  THE SOFTWARE AND THE DOCUMENTATION ARE PROVIDED ON
        AN "AS IS" BASIS, AND GTI HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
        SUPPORT, UPDATES, ENHANCEMENTS OR MODIFICATIONS EXCEPT AS SPECIFICALLY
        AGREED UPON.

6.      Ownership.  You acknowledge and agree that the structure, sequence and
        organization of the Software are valuable trade secrets of GTI and
        that you will hold such trade secrets in confidence.  You further
        acknowledge and agree that ownership of and title to the Product and
        all subsequent copies thereof, regardless of the form or media, are
        held by GTI.

7.      Indemnity.  You will indemnify and save GTI harmless from any and all
        actions, damages, liabilities, charges, claims and associated expenses
        ("Claims") against or incurred by GTI in any way connected with your
        use of the Product, whether such Claims are by you or by any third
        parties as a result of or related to your use of the Software.

8.      Termination.  The licenses granted hereunder are perpetual unless
        terminated earlier as specified below.  You may terminate the licenses
        and this Agreement at any time by destroying the Software and the
        Documentation together with all copies and merged portions in any
        form.  The licenses and this Agreement will also terminate immediately
        and automatically without notice if you fail to comply with any term
        or condition of this Agreement.  Upon such termination you agree to
        destroy the Software and the Documentation, together with all copies
        and merged portions in any form.  GTI will not be liable for any
        refund to you on termination of this Agreement for any reason.

9.      Government Use.  If you are acquiring the Software on behalf of the
        U.S. government, the Government shall have only "Restricted Rights" in
        the Software and the Documentation as defined in clause 52.227
        19(c)(2) of the U.S. Federal Acquisition Regulations.

10.     Severability.  If any provision of this Agreement is found to be
        invalid, illegal or unenforceable, the validity, legality and
        enforceability of any of the remaining provisions shall not in any way
        be affected or impaired and a valid, legal and enforceable provision
        of similar intent and economic impact shall be substituted therefor.

11.     Entire Agreement: This Agreement sets forth the entire understanding
        and agreement between you and GTI and supersedes all prior agreements
        with respect to the Product.  GTI may change the terms of this
        Agreement by electronic notice to you.

12.     Governing Law.  This Agreement shall be governed by the laws of the
        Province of British Columbia and the federal laws of Canada applicable
        therein excluding its conflicts of laws principles and excluding the
        United Nations Convention on Contracts for the International Sale of
        Goods.

EULA
    EULA_PROMPT => 'Do you accept the terms of the above license agreement?',
    EULA_REQUIRED => 'You must accept the terms of the license agreement before
proceeding with the installation.

',
    HTML_EULA => <<'EULA',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title><%product%> <%version%> - Installation - End User Product License Agreement</title>
    <%css%>
    <style type="text/css">
/*<![CDATA[*/
      .eula ol {
        list-style-type: decimal;
      }
/*]]>*/
    </style>
  </head>
  <body>
    <div class="wrapper">
      <div id="header">
        <div id="logo"><h1><a href="http://www.gossamer-threads.com"><%product%></a></h1></div>
      </div>

      <hr class="hide" />
      <div class="bar1"></div>
      <div class="bar2"></div>

      <%if in.eula_displayed~%>
      <div id="contentheader">
        <div class="error"><%GT::Installer::tpllang('eula_required')%></div>
      </div>
      <%~endif%>

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content eula">

            <div class="crumb">
              <span class="lasttitle"><%product%> Installer</span>
            </div>

            <h2>Gossamer Threads Inc.</h2>
            <h3>End User Product License Agreement</h3>
            <h4>IMPORTANT: READ THIS LICENSE BEFORE INSTALLING THE SOFTWARE</h4>

            <p>
              This software product (the "Software") and the accompanying
              documentation (the "Documentation") (together, the "Product") are
              provided only under license from Gossamer Threads Inc. ("GTI") to
              its customers for their use only as set forth in this Agreement.
              You should carefully read the following terms and conditions
              before downloading, installing and using the Software or using
              the Documentation. Installing or otherwise using any part of the
              Software indicates that you accept these terms and conditions. If
              you do not agree with the terms and conditions of this Agreement,
              do not download, install or otherwise use the Software and do not
              click on the "I agree" or similar button. If you have received
              the Product on physical media, return the entire product with the
              software and documentation unused to the supplier where you
              obtained it.
            </p>

            <ol>
              <li>
                License:  GTI grants you a personal, non exclusive, license to
                use the Software in executable form and the Documentation,
                subject to the terms and restrictions set forth in this
                Agreement. You are not permitted to lease, rent, distribute,
                publish or sub license the Software or the Documentation or to
                use any part of the Product in a time sharing arrangement or
                in any other unauthorized manner provided that you may
                transfer all your rights in the Product to another person as
                long as you remove all copies from your computers and cease
                all use of it.  GTI does not grant you any license in the
                source code of the Software. This Agreement does not grant you
                any rights to patents, copyrights, trade secrets, trademarks
                or any other rights with respect to the Product.
              </li>
              <li>
                Permitted Use.  You are authorized to have, at any time while
                this license is valid, one installation of the Software for one
                domain only, and you may remove the Software from one server
                and install it on another as long as it is running on only one
                server for one domain only at any time.
              </li>

              <li>
                Backup and Copyright Notices.  You may reproduce one copy of
                the Software and the Documentation for backup or archive
                purposes.  Any such copies must contain GTI's and its
                licensors' proprietary rights and copyright notices in the same
                form as on the original. You agree not to remove or deface any
                portion of any legend provided on any licensed program or
                documentation delivered to you under this Agreement.
              </li>

              <li>
                Modification.  You may make unlimited modifications to the
                Software for your own internal use only, but any support
                obligations of GTI with respect to the Software will be
                terminated if you do so.
              </li>

              <li>
                LIABILITY LIMITATIONS.  IN NO EVENT WILL GTI BE LIABLE TO YOU
                OR TO ANY OTHER PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL
                OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THE
                SOFTWARE, THE DOCUMENTATION OR ANY DERIVATIVES THEREOF, EVEN IF
                GTI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. GTI
                SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING BUT NOT
                LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
                FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. THE SOFTWARE AND
                THE DOCUMENTATION ARE PROVIDED ON AN "AS IS" BASIS, AND GTI HAS
                NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
                ENHANCEMENTS OR MODIFICATIONS EXCEPT AS SPECIFICALLY AGREED
                UPON.
              </li>

              <li>
                Ownership.  You acknowledge and agree that the structure,
                sequence and organization of the Software are valuable trade
                secrets of GTI and that you will hold such trade secrets in
                confidence. You further acknowledge and agree that ownership of
                and title to the Product and all subsequent copies thereof,
                regardless of the form or media, are held by GTI.
              </li>

              <li>
                Indemnity.  You will indemnify and save GTI harmless from any
                and all actions, damages, liabilities, charges, claims and
                associated expenses ("Claims") against or incurred by GTI in
                any way connected with your use of the Product, whether such
                Claims are by you or by any third parties as a result of or
                related to your use of the Software.
              </li>

              <li>
                Termination.  The licenses granted hereunder are perpetual
                unless terminated earlier as specified below. You may terminate
                the licenses and this Agreement at any time by destroying the
                Software and the Documentation together with all copies and
                merged portions in any form. The licenses and this Agreement
                will also terminate immediately and automatically without
                notice if you fail to comply with any term or condition of this
                Agreement. Upon such termination you agree to destroy the
                Software and the Documentation, together with all copies and
                merged portions in any form. GTI will not be liable for any
                refund to you on termination of this Agreement for any reason.
              </li>

              <li>
                Government Use.  If you are acquiring the Software on behalf of
                the U.S. government, the Government shall have only "Restricted
                Rights" in the Software and the Documentation as defined in
                clause 52.227 19(c)(2) of the U.S. Federal Acquisition
                Regulations.
              </li>

              <li>
                Severability.  If any provision of this Agreement is found to
                be invalid, illegal or unenforceable, the validity, legality
                and enforceability of any of the remaining provisions shall not
                in any way be affected or impaired and a valid, legal and
                enforceable provision of similar intent and economic impact
                shall be substituted therefor.
              </li>

              <li>
                Entire Agreement: This Agreement sets forth the entire
                understanding and agreement between you and GTI and supersedes
                all prior agreements with respect to the Product. GTI may
                change the terms of this Agreement by electronic notice to you.
              </li>

              <li>
                Governing Law.  This Agreement shall be governed by the laws of
                the Province of British Columbia and the federal laws of Canada
                applicable therein excluding its conflicts of laws principles
                and excluding the United Nations Convention on Contracts for
                the International Sale of Goods.
              </li>
            </ol>

            <form action="install.cgi" method="post">
              <input type="hidden" name="lite" value="<%if lite%><%lite%><%endif%>" />
              <input type="hidden" name="eula_displayed" value="1" />
              <%if in.upgrade_choice and in.install_dir%>
              <input type="hidden" name="upgrade_choice" value="<%in.upgrade_choice%>" />
              <input type="hidden" name="install_dir" value="<%in.install_dir%>" />
              <%endif%>
              <div class="row required clear">
                <label for="accept_eula" class="name">I have read and accept the terms of the agreement: <span>*</span></label>
                <div class="value">
                  <input type="checkbox" id="accept_eula" name="accept_eula" class="checkbox" />
                </div>
              </div>

              <div class="formsubmit">
                <input type="submit" value="Next &gt;&gt;" class="submit" />
              </div>
            </form>

          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
      <div id="footer" class="clear">
        <a href="http://www.gossamer-threads.com"><em id="powered_by" title="Powered by <%product%>"></em></a>
        <p>&copy; 2005 Gossamer Threads Inc.</p>
      </div>
    </div>
  </body>
</html>
EULA
    FIRST_SCREEN => <<'FIRST_SCREEN',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title><%product%> <%version%> - Installation</title>
    <%css%>
    <script type="text/javascript">
      function updatePathBox() {
        document.getElementById('existing_admin_path').style.display = document.getElementById('upgrade_install').checked ? 'block' : 'none';
      }
      window.onload = function () {
        updatePathBox();
        document.getElementById('new_install').onclick = updatePathBox;
        document.getElementById('upgrade_install').onclick = updatePathBox;
      }
    </script>
  </head>
  <body>
    <div class="wrapper">
      <div id="header">
        <div id="logo"><h1><a href="http://www.gossamer-threads.com"><%product%></a></h1></div>
      </div>

      <hr class="hide" />
      <div class="bar1"></div>
      <div class="bar2"></div>

      <%if error or message~%>
      <div id="contentheader">
        <%if error%><div class="error"><%error%></div><%endif%>
        <%if message%><div class="message"><%message%></div><%endif%>
      </div>
      <%~endif%>

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">

            <div class="crumb">
              <span class="lasttitle"><%product%> Installer</span>
            </div>

            <h2><%product%> Installer</h2>

            <p>
              Welcome to <%product%>.  This program will unarchive and install <%product%>.
            </p>

            <form action="install.cgi" method="post">
              <input type="hidden" name="lite" value="<%if lite%><%lite%><%endif%>" />
              <input type="hidden" name="accept_eula" value="<%if in.accept_eula%><%in.accept_eula%><%endif%>" />

              <div class="row clear">
                <label for="new_install" class="name">New installation:</label>
                <div class="value">
                  <input type="radio" id="new_install" name="upgrade_choice" value="No"<%unless in.upgrade_choice and in.upgrade_choice eq 'Yes'%> checked="checked"<%endunless%> />
                </div>
              </div>
              <div class="row clear">
                <label for="upgrade_install" class="name">Upgrade existing installation:</label>

                <div class="value">
                  <input type="radio" id="upgrade_install" name="upgrade_choice" value="Yes"<%if in.upgrade_choice and in.upgrade_choice eq 'Yes'%> checked="checked"<%endif%> />
                </div>
              </div>
              <div id="existing_admin_path" class="row required clear">
                <label for="install_dir" class="name">Path to existing installation admin: <span>*</span></label>
                <div class="value">
                  <input type="text" id="install_dir" name="install_dir" class="text"<%if in.install_dir%> value="<%in.install_dir%>"<%endif%> />
                </div>
              </div>

              <div class="formsubmit">
                <input type="submit" value="Next &gt;&gt;" class="submit" />
              </div>
            </form>

          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
      <div id="footer" class="clear">
        <a href="http://www.gossamer-threads.com"><em id="powered_by" title="Powered by <%product%>"></em></a>
        <p>&copy; 2005 Gossamer Threads Inc.</p>
      </div>
    </div>
  </body>
</html>
FIRST_SCREEN
    UPGRADE_FIRST_SCREEN => <<'UPGRADE_FIRST_SCREEN',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title><%product%> <%version%> - Installation - Upgrade existing installation</title>
    <%css%>
  </head>
  <body>
    <div class="wrapper">
      <div id="header">
        <div id="logo"><h1><a href="http://www.gossamer-threads.com"><%product%></a></h1></div>
      </div>

      <hr class="hide" />
      <div class="bar1"></div>
      <div class="bar2"></div>

      <%if error or message~%>
      <div id="contentheader">
        <%if error%><div class="error"><%error%></div><%endif%>
        <%if message%><div class="message"><%message%></div><%endif%>
      </div>
      <%~endif%>

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">

            <div class="crumb">
              <a href="install.cgi?upgrade_choice=Yes;install_dir=<%escape_url unescape_html in.install_dir%>;cgi_first_screen=1"><%product%> Installer</a> &gt;
              <span class="lasttitle">Upgrade existing installation</span>
            </div>

            <h2>Upgrade existing installation</h2>

            <p>
              Welcome to <%product%>.  This program will unarchive and install
              your <%product%> upgrade.  The installation located at the path
              you provided, '<%in.install_dir%>', will be updated to
              <%product%> <%version%>.
            </p>

            <form action="install.cgi" method="post">
              <input type="hidden" name="lite" value="<%if lite%><%lite%><%endif%>" />
              <input type="hidden" name="accept_eula" value="<%if in.accept_eula%><%in.accept_eula%><%endif%>" />
              <input type="hidden" name="upgrade_second" value="1" />
              <input type="hidden" name="install_dir" value="<%GT_ADMIN_PATH%>" />

<%loop rows%>
<%if skip%><%nextloop%><%endif%>
<%if type and type eq 'message'%>
              <div class="row clear"><%message%></div>
<%else%>
              <div class="row clear">
                <label for="option<%row_num - 1%>" class="name"><%message%></label>
                <div class="value">
                  <select name="<%row_num - 1%>">
                    <option value="o"><%GT::Installer::tpllang('overwrite')%></option>
                    <option value="b"><%GT::Installer::tpllang('backup')%></option>
                    <option value="s"><%GT::Installer::tpllang('skip')%></opion>
                  </select>
                </div>
              </div>
<%endif%>
<%endloop%>

              <div class="formsubmit">
                <input type="submit" value="Next &gt;&gt;" class="submit" />
              </div>
            </form>

          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
      <div id="footer" class="clear">
        <a href="http://www.gossamer-threads.com"><em id="powered_by" title="Powered by <%product%>"></em></a>
        <p>&copy; 2005 Gossamer Threads Inc.</p>
      </div>
    </div>
  </body>
</html>
UPGRADE_FIRST_SCREEN
  UPGRADE_SECOND_SCREEN_FIRST => <<'UPGRADE_SECOND_SCREEN_FIRST',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title><%product%> <%version%> - Installation - Upgrade existing installation - Upgrading</title>
    <%css%>
  </head>
  <body>
    <div class="wrapper">
      <div id="header">
        <div id="logo"><h1><a href="http://www.gossamer-threads.com"><%product%></a></h1></div>
      </div>

      <hr class="hide" />
      <div class="bar1"></div>
      <div class="bar2"></div>

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">

            <div class="crumb">
              <%product%> Installer &gt; Upgrade existing installation &gt; <span class="lasttitle">Upgrading...</span>
            </div>

            <h2>Upgrading...</h2>

            <p class="no-bmargin">
              <%product%> is now being upgraded to <%version%>.  Please be
              patient, and do not hit stop.
            </p>

          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
    </div>

<blockquote>
<pre>
UPGRADE_SECOND_SCREEN_FIRST
    UPGRADE_SECOND_SCREEN_SECOND => <<'UPGRADE_SECOND_SCREEN_SECOND',
</pre>
</blockquote>

    <div class="wrapper">

      <hr class="hide" />

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">
            <h2 style="margin-top: 0px">Upgrade complete</h2>

            <p>
              <%product%> has been successfully upgraded to <%version%>.
            </p>

            <p>
              Please do not leave your original .tar.gz file in your web directory!
            </p>

            <p class="no-bmargin">
              If you have any problems, please visit our <a href="http://www.gossamer-threads.com/perl/forum/">support forum</a>.
            </p>
          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
      <div id="footer" class="clear">
        <a href="http://www.gossamer-threads.com"><em id="powered_by" title="Powered by <%product%>"></em></a>
        <p>&copy; 2005 Gossamer Threads Inc.</p>
      </div>
    </div>
  </body>
</html>
UPGRADE_SECOND_SCREEN_SECOND
    INSTALL_WARNING => '<p><b>WARNING:</b> Please remove the install.cgi and install.dat file from this directory. It is a security risk to leave those files here.</p>',
    INSTALL_REMOVED => '<p>The install files have been removed. If you need to re-run the install, please unarchive the original file again.</p>',
    OVERWRITE => 'Overwrite',
    BACKUP => 'Backup',
    SKIP => 'Skip',
    INSTALL_FIRST_SCREEN => <<'INSTALL_FIRST_SCREEN',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title><%product%> <%version%> - Installation - New installation</title>
    <%css%>
  </head>
  <body>
    <div class="wrapper">
      <div id="header">
        <div id="logo"><h1><a href="http://www.gossamer-threads.com"><%product%></a></h1></div>
      </div>

      <hr class="hide" />
      <div class="bar1"></div>
      <div class="bar2"></div>

      <%if error or message~%>
      <div id="contentheader">
        <%if error%><div class="error"><%error%></div><%endif%>
        <%if message%><div class="message"><%message%></div><%endif%>
      </div>
      <%~endif%>

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">

            <div class="crumb">
              <a href="install.cgi?upgrade_choice=No;cgi_first_screen=1"><%product%> Installer</a> &gt;
              <span class="lasttitle">New installation</span>
            </div>

            <h2>New installation</h2>

            <p>
              Welcome to <%product%>.  This program will unarchive and install
              <%product%> <%version%>.  In order to proceed, you need to
              provide the following information.  Sensible defaults have been
              chosen where possible, but please double-check that they are
              correct.
            </p>

            <form action="install.cgi" method="post">
              <input type="hidden" name="lite" value="<%if lite%><%lite%><%endif%>" />
              <input type="hidden" name="accept_eula" value="<%if in.accept_eula%><%in.accept_eula%><%endif%>" />
              <input type="hidden" name="install" value="1" />

              <%~loop fields%>
              <%~if type eq 'message'%>
              <div class="row clear"><%message%></div>
              <%~else%>
              <div class="row<%if required%> required<%endif%> clear">
                <label for="<%key%>" class="name"><%message%><%if required%> <span>*</span><%endif%></label>
                <div class="value">
                  <%~if type eq 'create_dirs%>
                  <input type="checkbox" id="<%key%>" name="<%key%>" value="1" class="checkbox"<%if value%> checked="checked"<%endif%> />
                  <%~else%>
                  <input type="<%if type eq 'password'%>password<%else%>text<%endif%>" id="<%key%>" name="<%key%>" value="<%if value%><%value%><%endif%>" class="<%if type eq 'password'%>password<%else%>text<%endif%>" />
                  <%~endif%>
                </div>
              </div>
              <%~endif%>
              <%~endloop%>

              <div class="formsubmit">
                <input type="submit" value="Next &gt;&gt;" class="submit" />
              </div>
            </form>

          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
      <div id="footer" class="clear">
        <a href="http://www.gossamer-threads.com"><em id="powered_by" title="Powered by <%product%>"></em></a>
        <p>&copy; 2005 Gossamer Threads Inc.</p>
      </div>
    </div>
  </body>
</html>
INSTALL_FIRST_SCREEN
    INSTALL_SECOND_SCREEN_FIRST => <<'INSTALL_SECOND_SCREEN_FIRST',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title><%product%> <%version%> - Installation - New installation - Installing</title>
    <%css%>
  </head>
  <body>
    <div class="wrapper">
      <div id="header">
        <div id="logo"><h1><a href="http://www.gossamer-threads.com"><%product%></a></h1></div>
      </div>

      <hr class="hide" />
      <div class="bar1"></div>
      <div class="bar2"></div>

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">

            <div class="crumb">
              <%product%> Installer &gt; New installation &gt; <span class="lasttitle">Installing...</span>
            </div>

            <h2>Installing...</h2>

            <p class="no-bmargin">
              <%product%> <%version%> is now being installed.  Please be
              patient, and do not hit stop.
            </p>

          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
    </div>

<blockquote>
<pre>
INSTALL_SECOND_SCREEN_FIRST
    INSTALL_SECOND_SCREEN_SECOND => <<'INSTALL_SECOND_SCREEN_SECOND',
</pre>
</blockquote>

    <div class="wrapper">

      <hr class="hide" />

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">
            <h2 style="margin-top: 0px">Installation complete</h2>

            <p>
              <%product%> <%version%> has been successfully installed.
            </p>

            <%if install_message%><p><%install_message%></p><%endif%>

            <p>
              Please do not leave your original .tar.gz file in your web directory!
            </p>

            <p<%unless message%> class="no-bmargin"<%endif%>>
              If you have any problems, please visit our <a href="http://www.gossamer-threads.com/perl/forum/">support forum</a>.
            </p>

            <%if message%><p class="no-bmargin complete-installation"><%message%></p><%endif%>

          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
      <div id="footer" class="clear">
        <a href="http://www.gossamer-threads.com"><em id="powered_by" title="Powered by <%product%>"></em></a>
        <p>&copy; 2005 Gossamer Threads Inc.</p>
      </div>
    </div>
  </body>
</html>
INSTALL_SECOND_SCREEN_SECOND
    CGI_ERROR_SCREEN => <<'CGI_ERROR_SCREEN',
<%if error_breakout%><%error_breakout%><%endif%>
    <div class="wrapper">

      <hr class="hide" />

      <div class="shadowleft">
        <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
        <div class="shadowright">
          <div class="content">
            <h2 class="error">Error</h2>

            <p>
              An error occured:
            </p>

            <p>
              <%error%>
            </p>
          </div>
        </div>
        <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
      </div>
      <hr class="hide" />
      <div id="footer" class="clear">
        <a href="http://www.gossamer-threads.com"><em id="powered_by" title="Powered by <%product%>"></em></a>
        <p>&copy; 2005 Gossamer Threads Inc.</p>
      </div>
    </div>
  </body>
</html>
CGI_ERROR_SCREEN
    INVALID_RESPONCE => "\nInvalid Response (%s)\n",
);

# vim:ft=perl
