blob: f39113653d3629b63df57b62704add0e8eeaf09b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/**
* Elgg login box
*
* @package Elgg
* @subpackage Core
*
* @uses $vars['module'] The module name. Default: aside
*/
$module = elgg_extract('module', $vars, 'aside');
$login_url = elgg_get_site_url();
if (elgg_get_config('https_login')) {
$login_url = str_replace("http:", "https:", $login_url);
}
$title = elgg_echo('login');
$body = elgg_view_form('login', array('action' => "{$login_url}action/login"));
echo elgg_view_module($module, $title, $body);
|