diff options
Diffstat (limited to 'views/default/account/forms/useradd.php')
-rw-r--r-- | views/default/account/forms/useradd.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/views/default/account/forms/useradd.php b/views/default/account/forms/useradd.php deleted file mode 100644 index 7c1969f1b..000000000 --- a/views/default/account/forms/useradd.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -/** - * Elgg add user form. - * - * @package Elgg - * @subpackage Core - */ - -$admin_option = false; -if ((get_loggedin_user()->isAdmin()) && ($vars['show_admin'])) { - $admin_option = true; -} - -$form_body = "<p><label>" . elgg_echo('name') . "<br />" . elgg_view('input/text' , array('internalname' => 'name')) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text' , array('internalname' => 'username')) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('email') . "<br />" . elgg_view('input/text' , array('internalname' => 'email')) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password')) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2')) . "</label></p>"; -$form_body .= "<p>"; - -if ($admin_option) { - $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); -} - -$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "</p>"; -?> - -<div class="admin_settings add-user"> - <h3><?php echo elgg_echo('adduser'); ?></h3> - <?php echo elgg_view('input/form', array('action' => "action/useradd", 'body' => $form_body)) ?> -</div>
\ No newline at end of file |