summaryrefslogtreecommitdiff
path: root/installer/pages/get_db_info.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-20 00:54:02 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-20 00:54:02 +0000
commit681197a265f1dd3873780fdcf0b5f1e8fa0150ab (patch)
treefe8aafe29cf5f3d6d5a285c330147c9e3f3668c0 /installer/pages/get_db_info.html.php
parentd51955c8efa78d7f0a0ca8c138c2eebaf5ecb975 (diff)
Web based installer. It's still got some rough edges, but you can now
do a complete CLI or web based install.
Diffstat (limited to 'installer/pages/get_db_info.html.php')
-rw-r--r--installer/pages/get_db_info.html.php78
1 files changed, 78 insertions, 0 deletions
diff --git a/installer/pages/get_db_info.html.php b/installer/pages/get_db_info.html.php
new file mode 100644
index 00000000..3459948e
--- /dev/null
+++ b/installer/pages/get_db_info.html.php
@@ -0,0 +1,78 @@
+<p>
+ Installing Gallery is very easy. We just need to know how to talk
+ to your MySQL database, and we need a place to store your photos on
+ your web host.
+</p>
+
+
+<fieldset>
+ <legend>Photo Storage</legend>
+ <?php if (!installer::var_writable()): ?>
+ <p class="error">
+ We're having trouble creating a place for your photos. Can you
+ help? Please create a directory called <code>var</code> in your
+ gallery3 directory, then run <code>chmod 777 var</code>. That
+ should fix it.
+ <br/><br/>
+ <a href="index.php">Check again</a>
+ </p>
+ <?php else: ?>
+ <p class="success">
+ We've found a place to store your photos.
+ </p>
+ <?php endif ?>
+</fieldset>
+
+<form method="post" action="index.php?step=save_db_info">
+ <fieldset>
+ <legend>Database</legend>
+ <p>
+ We've provided values that work for most common web hosts. If
+ you have problems, contact your web host for help.
+ </p>
+ <br/>
+ <table id="db_info">
+ <tr>
+ <td>
+ Database Name
+ </td>
+ <td>
+ <input name="dbname" value="gallery3"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ User
+ </td>
+ <td>
+ <input name="dbuser" value="root"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Password
+ </td>
+ <td>
+ <input name="dbpass" value=""/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Host
+ </td>
+ <td>
+ <input name="dbhost" value="localhost"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <?php if (installer::var_writable()): ?>
+ <input type="submit" value="Continue"/>
+ <?php else: ?>
+ <i class="error">(Please fix the photo storage problem before continuing)</i>
+ <?php endif ?>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</form>