login_box.php 505 B

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