aboutsummaryrefslogtreecommitdiff
path: root/views/installation/install/pages/database.php
blob: d3011c9e3e3c7cbad5bdf6d944257adb94f60db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Install database page
 *
 * @uses $vars['failure'] Settings file exists but something went wrong
 */

if (isset($vars['failure']) && $vars['failure']) {
	echo autop(elgg_echo('install:database:error'));
	$vars['refresh'] = TRUE;
	$vars['advance'] = FALSE;
	echo elgg_view('install/nav', $vars);
} else {
	echo autop(elgg_echo('install:database:instructions'));
	
	$vars['type'] = 'database';
	
	$url = current_page_url();
	
	$form_vars = array(
		'action' => $url,
		'disable_security' => TRUE,
	);
	
	echo elgg_view_form('install/template', $form_vars, $vars);
}