denied.php 955 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Assembles and outputs the registration page.
  4. *
  5. * Since 1.8, registration can be disabled via administration. If this is
  6. * the case, calls to this page will forward to the network front page.
  7. *
  8. * If the user is logged in, this page will forward to the network
  9. * front page.
  10. *
  11. * @package Elgg.Core
  12. * @subpackage Registration
  13. */
  14. // check new registration allowed
  15. if (elgg_get_config('allow_registration') == false) {
  16. register_error(elgg_echo('registerdisabled'));
  17. forward();
  18. }
  19. $friend_guid = (int) get_input('friend_guid', 0);
  20. $invitecode = get_input('invitecode');
  21. // only logged out people need to register
  22. if (elgg_is_logged_in()) {
  23. forward();
  24. }
  25. $title = elgg_echo("elgg-invite-only:register", array(elgg_get_config('site')->name));
  26. $content = elgg_view_title($title);
  27. $content .= elgg_view('inviteonly/register');
  28. $body = elgg_view_layout("one_column", array('content' => $content));
  29. echo elgg_view_page($title, $body);