} else {
    ?>
  <p>
    We've found a place to store your photos:
    <code class="location"> <?php 
    echo htmlspecialchars(VARPATH, ENT_QUOTES, 'UTF-8', true);
    ?>
 </code>
  </p>
  <?php 
}
?>
</fieldset>

<?php 
if (installer::var_writable()) {
    ?>
<form method="post" action="index.php?step=save_db_info">
  <fieldset>
    <legend>Database</legend>
    <p>
      Gallery 3 needs a MySQL database.  The values provided work for
      most setups, so if you're confused try clicking <i>continue</i>.
    </p>
    <br/>
    <table id="db_info">
      <tr>
        <td>
          Database name
        </td>
        <td>