Installer: minor: added a box on sysreqs success
authorDan
Mon, 02 Mar 2009 17:05:27 -0500
changeset 852 e1ce6a91469b
parent 851 b98798f6572d
child 853 21fea79d9de4
Installer: minor: added a box on sysreqs success
install/images/box_success.png
install/images/css/installer.css
install/includes/stages/sysreqs.php
language/english/install.json
Binary file install/images/box_success.png has changed
--- a/install/images/css/installer.css	Mon Mar 02 16:46:10 2009 -0500
+++ b/install/images/css/installer.css	Mon Mar 02 17:05:27 2009 -0500
@@ -272,7 +272,7 @@
   color: #aaaa00;
 }
 
-div.sysreqs_error, div.sysreqs_warning {
+div.sysreqs_error, div.sysreqs_warning, div.sysreqs_success {
   background-image: url(../box_error.png);
   background-repeat: repeat-x;
   background-position: top center;
@@ -288,7 +288,13 @@
   border-color: #6e6e00;
 }
 
-div.sysreqs_error h3, div.sysreqs_warning h3 {
+div.sysreqs_success {
+  background-image: url(../box_success.png);
+  background-color: #d1ffd1;
+  border-color: #006e00;
+}
+
+div.sysreqs_error h3, div.sysreqs_warning h3, div.sysreqs_success h3 {
   font-size: 9pt;
   border-bottom: 1px solid #8f3131;
   margin-top: 0;
@@ -299,6 +305,12 @@
   border-bottom-color: #8f8f31;
 }
 
-div.sysreqs_error p, div.sysreqs_warning p {
+div.sysreqs_success h3 {
+  border-bottom-color: #318f31;
+}
+
+div.sysreqs_error p, div.sysreqs_warning p, div.sysreqs_success p {
   margin: 0;
 }
+
+
--- a/install/includes/stages/sysreqs.php	Mon Mar 02 16:46:10 2009 -0500
+++ b/install/includes/stages/sysreqs.php	Mon Mar 02 17:05:27 2009 -0500
@@ -187,6 +187,13 @@
   $warnings[] = $lang->get('sysreqs_req_help_bcmath');
 
 ?>
+
+<form action="install.php?stage=database" method="post">
+<?php
+  echo '<input type="hidden" name="language" value="' . $lang_id . '" />';
+?>
+    
+
 <h3><?php echo $lang->get('sysreqs_heading'); ?></h3>
  <p><?php echo $lang->get('sysreqs_blurb'); ?></p>
  
@@ -211,6 +218,17 @@
   </div>
 <?php
 endif;
+if ( empty($warnings) && !$failed ):
+?>
+  <div class="sysreqs_success">
+    <h3><?php echo $lang->get('sysreqs_summary_pass_title'); ?></h3>
+    <p><?php echo $lang->get('sysreqs_summary_pass_body'); ?></p>
+  </div>
+  <div style="text-align: center;">
+    <input type="submit" value="<?php echo $lang->get('meta_btn_continue'); ?>" />
+  </div>
+<?php
+endif;
 
 if ( $failed ):
 ?>
@@ -450,10 +468,6 @@
 <?php
 if ( !$failed ):
 ?>
-  <form action="install.php?stage=database" method="post">
-    <?php
-      echo '<input type="hidden" name="language" value="' . $lang_id . '" />';
-    ?>
     <table border="0">
     <tr>
       <td>
@@ -468,7 +482,7 @@
       </td>
     </tr>
     </table>
-  </form>
 <?php
 endif;
 ?>
+</form>
--- a/language/english/install.json	Mon Mar 02 16:46:10 2009 -0500
+++ b/language/english/install.json	Mon Mar 02 17:05:27 2009 -0500
@@ -118,8 +118,8 @@
       err_no_dbms_title: 'No database backends are available.',
       err_no_dbms_body: 'Enano requires at least one database backend to install. Please consult with your hosting provider to obtain help with this situation. If you are running a VPS or dedicated server, install the php-mysql or php-pgsql (on Red Hat&reg;-based distributions) or php5-mysql or php5-pgsql (on Debian-based distributions) packages. For Windows servers, ensure that the php_mysql or php_pgsql extension is enabled in php.ini.',
       
-      summary_success_title: 'Your server meets all the requirements for running Enano.',
-      summary_success_body: 'Click the button below to continue the installation.',
+      summary_pass_title: 'Congratulations! Enano can run on this server.',
+      summary_pass_body: 'The system requirement check was successful and Enano has verified that it can run on this server with all available features. Below is a summary of what was checked. Click the Continue button below to proceed with installation.',
       
       summary_warn_title: 'Warnings encountered during server check',
       summary_warn_body: 'Since some server features that Enano uses aren\'t available, Enano has turned its support for these features off. The warnings below provide information on how you can fix this.',