2009-01-20 04:41:53 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-07-15 20:58:20 -07:00
|
|
|
<h1> Welcome! </h1>
|
|
|
|
|
<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 "var" using <code>mkdir 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:
|
|
|
|
|
<code class="location"> <?= VARPATH ?> </code>
|
|
|
|
|
</p>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
2009-07-15 21:06:42 -07:00
|
|
|
<?php if (installer::var_writable()): ?>
|
2009-01-20 00:54:02 +00:00
|
|
|
<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>
|
2009-07-15 20:58:20 -07:00
|
|
|
<input name="dbname" value="gallery3"/>
|
2009-01-20 00:54:02 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
User
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-07-15 20:58:20 -07:00
|
|
|
<input name="dbuser" value="root"/>
|
2009-01-20 00:54:02 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
Password
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-07-15 20:58:20 -07:00
|
|
|
<input name="dbpass" value=""/>
|
2009-01-20 00:54:02 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
Host
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-07-15 20:58:20 -07:00
|
|
|
<input name="dbhost" value="localhost"/>
|
2009-01-20 00:54:02 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
2009-02-27 19:26:21 +00:00
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
Table Prefix
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-07-15 20:58:20 -07:00
|
|
|
<input name="prefix" value=""/>
|
2009-02-27 19:26:21 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
2009-01-20 00:54:02 +00:00
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
<input type="submit" value="Continue"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</form>
|
2009-07-15 21:06:42 -07:00
|
|
|
<?php endif ?>
|