Elgg  Version 3.0
register.php
Go to the documentation of this file.
1 <?php
15 // check new registration allowed
16 if (elgg_get_config('allow_registration') == false) {
17  throw new \Elgg\GatekeeperException(elgg_echo('registerdisabled'));
18 }
19 
20 $friend_guid = (int) get_input('friend_guid', 0);
21 $invitecode = get_input('invitecode');
22 
23 $title = elgg_echo('register');
24 
26  'class' => 'elgg-form-account',
27  'ajax' => true,
28 ];
29 
31  'friend_guid' => $friend_guid,
32  'invitecode' => $invitecode
33 ];
35 
36 $content .= elgg_view('help/register');
37 
38 $shell = elgg_get_config('walled_garden') ? 'walled_garden' : 'default';
39 
40 $body = elgg_view_layout('default', [
41  'content' => $content,
42  'title' => $title,
43  'sidebar' => false,
44 ]);
$title
Definition: register.php:23
$content
Definition: register.php:34
$form_params
Definition: register.php:25
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$body_params
Definition: register.php:30
$body
Definition: register.php:40
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
Definition: views.php:360
elgg_view_form($action, $form_vars=[], $body_vars=[])
Definition: views.php:1318
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition: input.php:27
elgg echo
Translates a string.
Definition: languages.js:43
$invitecode
Definition: register.php:21
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
Definition: views.php:593
if(elgg_get_config('allow_registration')==false) $friend_guid
Definition: register.php:20
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246
$shell
Definition: register.php:38
elgg_get_config($name, $default=null)
Get an Elgg configuration value.