summaryrefslogtreecommitdiff
path: root/installer/views
diff options
context:
space:
mode:
Diffstat (limited to 'installer/views')
-rw-r--r--installer/views/already_installed.html.php2
-rw-r--r--installer/views/get_db_info.html.php41
-rw-r--r--installer/views/install.html.php5
-rw-r--r--installer/views/success.html.php2
-rw-r--r--installer/views/var_dir_status.html.php30
5 files changed, 40 insertions, 40 deletions
diff --git a/installer/views/already_installed.html.php b/installer/views/already_installed.html.php
index 0d7fc193..f6ac1bff 100644
--- a/installer/views/already_installed.html.php
+++ b/installer/views/already_installed.html.php
@@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<p class="success">
- Your Gallery3 install is complete.
+ Your Gallery 3 install is complete.
</p>
diff --git a/installer/views/get_db_info.html.php b/installer/views/get_db_info.html.php
index 7835f246..adc775a4 100644
--- a/installer/views/get_db_info.html.php
+++ b/installer/views/get_db_info.html.php
@@ -1,31 +1,4 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<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>
-
<form method="post" action="index.php?step=save_db_info">
<fieldset>
<legend>Database</legend>
@@ -40,7 +13,7 @@
Database Name
</td>
<td>
- <input name="dbname" value="gallery3"/>
+ <input name="dbname" value="<?= $dbname ?>"/>
</td>
</tr>
<tr>
@@ -48,7 +21,7 @@
User
</td>
<td>
- <input name="dbuser" value="root"/>
+ <input name="dbuser" value="<?= $user ?>"/>
</td>
</tr>
<tr>
@@ -56,7 +29,7 @@
Password
</td>
<td>
- <input name="dbpass" value=""/>
+ <input name="dbpass" value="<?= $password ?>"/>
</td>
</tr>
<tr>
@@ -64,7 +37,7 @@
Host
</td>
<td>
- <input name="dbhost" value="localhost"/>
+ <input name="dbhost" value="<?= $host ?>"/>
</td>
</tr>
<tr>
@@ -72,16 +45,12 @@
Table Prefix
</td>
<td>
- <input name="prefix" value=""/>
+ <input name="prefix" value="<?= $prefix ?>"/>
</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>
diff --git a/installer/views/install.html.php b/installer/views/install.html.php
index 18060219..31112c28 100644
--- a/installer/views/install.html.php
+++ b/installer/views/install.html.php
@@ -1,14 +1,15 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
- <title>Gallery3 Installer</title>
+ <title>Gallery 3 Installer</title>
<link rel="stylesheet" type="text/css" href="install.css"/>
</head>
<body>
<div id="outer">
<img src="../modules/gallery/images/gallery.png" />
<div id="inner">
- <?php print $content ?>
+ <?= $content ?>
+ <?= empty($database_form) ? "" : $database_form ?>
</div>
<div id="footer">
<p>
diff --git a/installer/views/success.html.php b/installer/views/success.html.php
index 4bca2fb1..e9ee9818 100644
--- a/installer/views/success.html.php
+++ b/installer/views/success.html.php
@@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<h1> Success! </h1>
<p class="success">
- Your Gallery3 install is complete!
+ Your Gallery 3 install is complete!
</p>
<?php if (!empty($user)): ?>
diff --git a/installer/views/var_dir_status.html.php b/installer/views/var_dir_status.html.php
new file mode 100644
index 00000000..8211e13c
--- /dev/null
+++ b/installer/views/var_dir_status.html.php
@@ -0,0 +1,30 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<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 (empty($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>
+ <br /><br/>
+ <i>(Please fix the photo storage problem before continuing)</i>
+ </p>
+ <?php else: ?>
+ <p class="success">
+ We've found a place to store your photos:
+ <code class="location"> <?= VARPATH ?> </code>
+ </p>
+ <?php endif ?>
+</fieldset>
+