Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
database.php
Go to the documentation of this file.
1 <?php
8 if (isset($vars['failure']) && $vars['failure']) {
9  echo elgg_autop(elgg_echo('install:database:error'));
10  $vars['refresh'] = TRUE;
11  $vars['advance'] = FALSE;
12  echo elgg_view('install/nav', $vars);
13 } else {
14  echo elgg_autop(elgg_echo('install:database:instructions'));
15 
16  $vars['type'] = 'database';
17 
19 
20  $form_vars = array(
21  'action' => $url,
22  'disable_security' => TRUE,
23  );
24 
25  echo elgg_view_form('install/template', $form_vars, $vars);
26 }
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_form($action, $form_vars=array(), $body_vars=array())
Definition: views.php:1302
current_page_url()
Returns the current page's complete URL.
Definition: input.php:65
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:56
$form_vars
Definition: database.php:20
$url
Definition: database.php:18
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$vars['type']
Definition: database.php:16