database.php 586 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Install database page
  4. *
  5. * @uses $vars['failure'] Settings file exists but something went wrong
  6. */
  7. if (isset($vars['failure']) && $vars['failure']) {
  8. echo elgg_autop(elgg_echo('install:database:error'));
  9. $vars['refresh'] = TRUE;
  10. $vars['advance'] = FALSE;
  11. echo elgg_view('install/nav', $vars);
  12. } else {
  13. echo elgg_autop(elgg_echo('install:database:instructions'));
  14. $vars['type'] = 'database';
  15. $url = current_page_url();
  16. $form_vars = array(
  17. 'action' => $url,
  18. 'disable_security' => TRUE,
  19. );
  20. echo elgg_view_form('install/template', $form_vars, $vars);
  21. }