diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-20 04:37:55 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-20 04:37:55 +0000 |
commit | 66ee2f9618d1ac17507dddeef1b68eb804aa634a (patch) | |
tree | 1dea996b25925001eedbe13a05aa65497bac3269 /installer/views | |
parent | 401da12adbe7979074de9c35fd458ff36f393350 (diff) |
Move pages -> views for consistency, which simplifies the life of the File_Structure_Test
Diffstat (limited to 'installer/views')
-rw-r--r-- | installer/views/about_install.html.php | 18 | ||||
-rw-r--r-- | installer/views/already_installed.html.php | 4 | ||||
-rw-r--r-- | installer/views/db_not_empty.html.php | 5 | ||||
-rw-r--r-- | installer/views/environment_errors.html.php | 19 | ||||
-rw-r--r-- | installer/views/get_db_info.html.php | 78 | ||||
-rw-r--r-- | installer/views/missing_db.html.php | 2 | ||||
-rw-r--r-- | installer/views/oops.html.php | 9 | ||||
-rw-r--r-- | installer/views/success.html.php | 22 |
8 files changed, 157 insertions, 0 deletions
diff --git a/installer/views/about_install.html.php b/installer/views/about_install.html.php new file mode 100644 index 00000000..6ad2c242 --- /dev/null +++ b/installer/views/about_install.html.php @@ -0,0 +1,18 @@ +<p> + Gallery needs to talk to your MySQL database, so to get started + you'll need to know: +</p> +<ol> + <li> Database name </li> + <li> Database username </li> + <li> Database password </li> + <li> Database host </li> +</ol> + +<p> + If you're missing any of this information, please ask your + web host or system administrator for a little help. +</p> +<p> + <a href="index.php?step=get_db_info">Continue</a> +</p> diff --git a/installer/views/already_installed.html.php b/installer/views/already_installed.html.php new file mode 100644 index 00000000..f8fc5706 --- /dev/null +++ b/installer/views/already_installed.html.php @@ -0,0 +1,4 @@ +<p class="success"> + Your Gallery3 install is complete. +</p> + diff --git a/installer/views/db_not_empty.html.php b/installer/views/db_not_empty.html.php new file mode 100644 index 00000000..754d46c6 --- /dev/null +++ b/installer/views/db_not_empty.html.php @@ -0,0 +1,5 @@ +<p class="error"> + The database you provided already has other tables in it. + Continuing with the install might overwrite an existing Gallery + install. Please go back and choose a different database. +</p> diff --git a/installer/views/environment_errors.html.php b/installer/views/environment_errors.html.php new file mode 100644 index 00000000..7c31c1c2 --- /dev/null +++ b/installer/views/environment_errors.html.php @@ -0,0 +1,19 @@ +<h1> Whoa there! </h1> + +<p class="error"> + There are some problems with your web hosting environment + that need to be fixed before you can successfully install + Gallery 3. +</p> + +<ul> + <?php foreach ($errors as $error): ?> + <li> + <?php print $error ?> + </li> + <?php endforeach ?> +</ul> + +<p> + <a href="index.php">Check again</a> +</p> diff --git a/installer/views/get_db_info.html.php b/installer/views/get_db_info.html.php new file mode 100644 index 00000000..3459948e --- /dev/null +++ b/installer/views/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> diff --git a/installer/views/missing_db.html.php b/installer/views/missing_db.html.php new file mode 100644 index 00000000..1f93f08a --- /dev/null +++ b/installer/views/missing_db.html.php @@ -0,0 +1,2 @@ +<p> + <
\ No newline at end of file diff --git a/installer/views/oops.html.php b/installer/views/oops.html.php new file mode 100644 index 00000000..141a4538 --- /dev/null +++ b/installer/views/oops.html.php @@ -0,0 +1,9 @@ +<h1> Oops! </h1> +<p> + Something unexpected happened and we can't finish your install. + We'll try to provide some details about the specific problem below. +</p> +<p class="error"> + <?php print $error ?> +</p> + diff --git a/installer/views/success.html.php b/installer/views/success.html.php new file mode 100644 index 00000000..fbf5395d --- /dev/null +++ b/installer/views/success.html.php @@ -0,0 +1,22 @@ +<h1> Success! </h1> +<p class="success"> + Your Gallery3 install is complete! +</p> + +<?php if (!empty($user)): ?> +<h2> Before you start using it... </h2> +<p> + We've created an account for you to use: + <br/> + username: <b><?php print $user ?></b> + <br/> + password: <b><?php print $password ?></b> + <br/> + <br/> + Save this information in a safe place, or change your admin password + right away! +</p> +<?php endif ?> + +<h2> <a href="..">Start using Gallery</a> </h2> + |