install/includes/libenanoinstall.php
changeset 352 9d7225c0db6d
parent 348 87e08a6e4fec
child 404 fb4f9e6f378f
equal deleted inserted replaced
351:8978cb3541ca 352:9d7225c0db6d
    97     // FIXME: These should really also be sanitized for double quotes
    97     // FIXME: These should really also be sanitized for double quotes
    98     $value = htmlspecialchars($value);
    98     $value = htmlspecialchars($value);
    99     $key = htmlspecialchars($key);
    99     $key = htmlspecialchars($key);
   100     $post_data .= "          <input type=\"hidden\" name=\"$key\" value=\"$value\" />\n";
   100     $post_data .= "          <input type=\"hidden\" name=\"$key\" value=\"$value\" />\n";
   101   }
   101   }
   102   echo '<form action="install.php?stage=install&amp;sub=' . $stage_id . '" method="post">
   102   if ( $stage_id == 'renameconfig' )
   103           ' . $post_data . '
   103     echo '<p>' . $failure_explanation . '</p>';
   104           <input type="hidden" name="resume_stack" value="' . htmlspecialchars(implode('|', $resume_stack)) . '" />
   104   else
   105           <h3>' . $lang->get('meta_msg_err_stagefailed_title') . '</h3>
   105     echo '<form action="install.php?stage=install&amp;sub=' . $stage_id . '" method="post">
   106            <p>' . $failure_explanation . '</p>
   106             ' . $post_data . '
   107            ' . ( !empty($mysql_error) ? "<p>" . $lang->get('meta_msg_err_stagefailed_mysqlerror') . " $mysql_error</p>" : '' ) . '
   107             <input type="hidden" name="resume_stack" value="' . htmlspecialchars(implode('|', $resume_stack)) . '" />
   108            <p>' . $lang->get('meta_msg_err_stagefailed_body') . '</p>
   108             <h3>' . $lang->get('meta_msg_err_stagefailed_title') . '</h3>
   109            <p style="text-align: center;"><input type="submit" value="' . $lang->get('meta_btn_retry_installation') . '" /></p>
   109              <p>' . $failure_explanation . '</p>
   110         </form>';
   110              ' . ( !empty($mysql_error) ? "<p>" . $lang->get('meta_msg_err_stagefailed_mysqlerror') . " $mysql_error</p>" : '' ) . '
       
   111              <p>' . $lang->get('meta_msg_err_stagefailed_body') . '</p>
       
   112              <p style="text-align: center;"><input type="submit" value="' . $lang->get('meta_btn_retry_installation') . '" /></p>
       
   113           </form>';
   111   global $ui;
   114   global $ui;
   112   $ui->show_footer();
   115   $ui->show_footer();
   113   exit;
   116   exit;
   114 }
   117 }
   115 
   118