<form action="app_setup.php" method="post">
<input type="hidden" name="pflag" value="setup">
<table cellpadding="1" cellspacing="0" border="0" align="center" width="100%" class="tbl_border">
<tr>
  <td>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
        <tr>
          <td class="tbl_caption" colspan="2">
            Database Configuration
          </td>
        </tr>
        <tr class="tbl_light">
          <td width="50%">Database Server
            <div class="explanation">Your database server type </div>
          </td>
          <td width="50%" valign="top">
            <select name="dbServer">
              <option value="mysql">MySQL</option>
            </select>
          </td>
        </tr>
        <tr class="tbl_light2">
          <td>Username
            <div class="explanation">Your username for database server
              login </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" class="textbg" name="dbUsername" value="<%$dbUsername%>"></td>
        </tr>
        <tr class="tbl_light">
          <td>Password
            <div class="explanation">Your password for database server
              login </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="dbPassword" value="<%$dbPassword%>"></td>
        </tr>
        <tr class="tbl_light2">
          <td>Host
            <div class="explanation">The hostname of database server
            </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="dbHostname" value="<%$dbHostname%>"></td>
        </tr>
        <tr class="tbl_light">
          <td>Database Name
            <div class="explanation">Your database name </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="dbName" value="<%$dbName%>"></td>
        </tr>
        <tr>
          <td class="tbl_caption" colspan="2"> URL and Path </td>
        </tr>
        <tr class="tbl_light">
          <td>Website URL
            <div class="explanation">The URL where indexu installed
              (ends without /) </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="site_url" value="<%$site_url%>"></td>
        </tr>
        <tr class="tbl_light2">
          <td>Base Path
            <div class="explanation">The absolute path where indexu
              installed (ends with /) </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="base_path" value="<%$base_path%>"></td>
        </tr>
        <tr class="tbl_light">
          <td>Admin Path
            <div class="explanation">The absolute path of admin template
              files (ends with /) </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="admin_template_path" value="<%$admin_template_path%>"></td>
        </tr>
        <tr class="tbl_light2">
          <td>Theme Path
            <div class="explanation">The absolute path of theme files
              (ends with /) </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="theme_path" value="<%$theme_path%>"></td>
        </tr>
        <tr>
          <td class="tbl_caption" colspan="2"> Preference </td>
        </tr>
        <tr class="tbl_light">
          <td>Website Name
            <div class="explanation">Your website title</div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="site_name" value="<%$site_name%>"></td>
        </tr>
        <tr class="tbl_light2">
          <td>Official/Admin Email
            <div class="explanation">Your site admin/official email, will be used for sending and receiving email.</div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="email_address" value="<%$email_address%>"></td>
        </tr>
        <tr class="tbl_light">
          <td>Only registered user can add new link
            <div class="explanation">Force user to register and login in order
            to add new link. This will eliminate spam.</div></td>
          <td valign="top">
            <%$only_registered_can_add_link%>
          </td>
        </tr>
        <tr class="tbl_light2">
          <td>Only registered user can submit review
            <div class="explanation">Force user to register and login in order
            to submit review. This will eliminate spam.</div></td>
          <td valign="top">
            <%$only_registered_can_add_review%>
          </td>
        </tr>
        <tr class="tbl_light">
          <td>Use MYSQL persistent connection
            <div class="explanation">If you have large database, you may
            need to turn in on to increase performance. In shared hosting
            persistent connection could be very limited and may not available.</div></td>
          <td valign="top">
            <%$db_use_persistent%>
          </td>
        </tr>

        <tr class="tbl_light2">
          <td>Enable User Validation
            <div class="explanation">Require new user to enter validation
              code to complete registration </div></td>
          <td valign="top">
            <%$enable_user_validation%>
          </td>
        </tr>
        <tr class="tbl_light">
          <td>Spam-proof Mailing List
            <div class="explanation">Require subscribers to enter validation
              code to complete the subscription </div></td>
          <td valign="top">
            <%$spam_proof%>
          </td>
        </tr>
        <tr class="tbl_light2">
          <td>Enable HTML tags
            <div class="explanation">Enable HTML in submission (only allowed HTML tags permitted)</div></td>
          <td valign="top">
            <%$enable_html_tag%>
          </td>
        </tr>
        <tr class="tbl_light">
          <td>Allowed HTML tags
            <div class="explanation">Only these HTML tags will be permitted in submission</div></td>
          <td valign="top"> <input type="text" size="40" class="textbg" name="allowed_html_tag" value="<%$allowed_html_tag%>"></td>
        </tr>
        <tr class="tbl_light2">
          <td>Allowed File Extension
            <div class="explanation"> List of file extension that will
              be allowed to be uploaded by users. <br>Each extension
              is separated by a comma and without a dot sign. <br>Be
              careful that on linux os, filename is case sensitive
              as well as its extension.
              <br>
              (ex: gif,jpg,png) </div></td>
          <td valign="top"> <input type="text" size="40" class="textbg" name="allowed_file_extension" value="<%$allowed_file_extension%>"></td>
        </tr>
        <tr class="tbl_light">
          <td>Google Web APIs License Key
            <div class="explanation"> In order to be able to use Google
              Web API you should have a license key. <br>You may get
              license key at <a href="http://www.google.com/apis/" target="_blank">http://www.google.com/apis/</a>
            </div></td>
          <td valign="top"> <input type="text" size="40" class="textbg" name="google_key" value="<%$google_key%>"></td>
        </tr>
        <tr class="tbl_light2">
          <td>Who's Online Refresh Period
            <div class="explanation"> Time period in seconds to refresh
              the who's online display </div></td>
          <td valign="top"> <input type="text" size="40" class="textbg" name="whosonline" value="<%$whosonline%>"></td>
        </tr>
        <tr class="tbl_light">
          <td>Reciprocal Check
            <div class="explanation">Do reciprocal url check on link
              addition and modification </div></td>
          <td valign="top">
            <%$reciprocal_check%>
          </td>
        </tr>
        <tr class="tbl_light2">
          <td>URL Check Limit
            <div class="explanation">Minimum days for links to be checked
              again for broken links and reciprocal URL </div></td>
          <td valign="top"><input type="text" size="40" class="textbg" name="urlcheck_limit" value="<%$urlcheck_limit%>"></td>
        </tr>
        <tr class="tbl_light">
          <td>Max Image Dimension
            <div class="explanation"> Maximum image width and height
              dimension in pixel </div></td>
          <td valign="top"> Width :
            <input type="text" size="5" name="max_image_width" value="<%$max_image_width%>" class="textbg"> px
            &nbsp;&nbsp; Height :
            <input type="text" size="5" name="max_image_height" value="<%$max_image_height%>" class="textbg"> px
          </td>
        </tr>
        <tr class="tbl_light2">
          <td>Max File Size
            <div class="explanation"> Maximum file size in KB
            </div></td>
          <td valign="top"><input type="text" size="5" name="max_file_size" value="<%$max_file_size%>" class="textbg">
            KB</td>
        </tr>
        <tr class="tbl_light">
          <td>Paid link day periods
            <div class="explanation"> List of day periods for paid links</div></td>
          <td valign="top"><input type="text" size="40" name="paid_link_day_period" value="<%$paid_link_day_period%>" class="textbg">
          </td>
        </tr>
        <tr class="tbl_light2">
          <td>Paid link price factor
            <div class="explanation"> Multiply factor that is used to calculate
            the cost for premium links <br>based on day periods above and individual
            pricing for category. <br>Notes that the order of price factor must be same with day periods.</div></td>
          <td valign="top"><input type="text" size="40" name="paid_link_price_factor" value="<%$paid_link_price_factor%>" class="textbg">
          </td>
        </tr>
        <tr class="tbl_light">
          <td>Pagerank Cache
            <div class="explanation"> Number of days for caching pagerank. <br>Please
            do not set this too low, since it slow down your page for pagerank retrieval.</div></td>
          <td valign="top"><input type="text" size="40" name="pagerank_cache" value="<%$pagerank_cache%>" class="textbg">
          </td>
        </tr>
        <tr class="tbl_light2">
          <td>Enable Page Compression
            <div class="explanation">Enable gzip compression will increase speed and save more bandwith.</div></td>
          <td valign="top">
            <%$enable_page_compression%>
          </td>
        </tr>
        <tr>
          <td class="tbl_light2" colspan="2" align="center">
            <input type="submit" value="Change Application Setting" class="button">
            <input type="reset" value="Reset" class="button">
          </td>
        </tr>
      </table>
  </td>
</tr>
</table>
</form>