diff options
Diffstat (limited to 'views/default/account')
-rw-r--r-- | views/default/account/forms/forgotten_password.php | 24 | ||||
-rw-r--r-- | views/default/account/forms/login.php | 35 | ||||
-rw-r--r-- | views/default/account/forms/register.php | 55 | ||||
-rw-r--r-- | views/default/account/forms/useradd.php | 31 |
4 files changed, 0 insertions, 145 deletions
diff --git a/views/default/account/forms/forgotten_password.php b/views/default/account/forms/forgotten_password.php deleted file mode 100644 index 48fafe4d8..000000000 --- a/views/default/account/forms/forgotten_password.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -/** - * Elgg forgotten password. - * - * @package Elgg - * @subpackage Core - */ - -$form_body = "<p>" . elgg_echo('user:password:text') . "</p>"; -$form_body .= "<p><label>". elgg_echo('username') . " " - . elgg_view('input/text', array('internalname' => 'username')) . "</label></p>"; -$form_body .= elgg_view('input/captcha'); -$form_body .= "<p>" . elgg_view('input/submit', array('value' => elgg_echo('request'))) . "</p>"; - -echo elgg_view('input/form', array( - 'action' => "action/user/requestnewpassword", - 'body' => $form_body, - 'class' => "margin-top" -)); -?> - -<script type="text/javascript"> - $(document).ready(function() { $('input[name=username]').focus(); }); -</script>
\ No newline at end of file diff --git a/views/default/account/forms/login.php b/views/default/account/forms/login.php deleted file mode 100644 index 87dd6d5ad..000000000 --- a/views/default/account/forms/login.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php -/** - * Elgg login form - * - * @package Elgg - * @subpackage Core - */ -?> - -<p class='loginbox'> - <label><?php echo elgg_echo('loginusername'); ?></label> - <?php echo elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')); ?> - <label><?php echo elgg_echo('password'); ?></label> - <?php echo elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')); ?> - - <?php echo elgg_view('input/submit', array('value' => elgg_echo('login'))); ?> - - <span class='rememberme'> - <label> - <input type="checkbox" name="persistent" value="true" /> - <?php echo elgg_echo('user:persistent'); ?> - </label> - </span> - - <?php echo elgg_view('login/extend'); ?> - -<?php - if ($CONFIG->allow_registration) { - echo '<a class="registration_link" href="' . elgg_get_site_url() . 'pg/register/">' . elgg_echo('register') . '</a> | '; - } -?> - <a class="forgotten_password_link" href="<?php echo elgg_get_site_url(); ?>pages/account/forgotten_password.php"> - <?php echo elgg_echo('user:password:lost'); ?> - </a> -</p>
\ No newline at end of file diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php deleted file mode 100644 index bf629b589..000000000 --- a/views/default/account/forms/register.php +++ /dev/null @@ -1,55 +0,0 @@ -<?php -/** - * Elgg register form - * - * @package Elgg - * @subpackage Core - */ - -$register_url = elgg_get_site_url(); -if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) { - $register_url = str_replace("http:", "https:", $register_url); -} - -$username = get_input('u'); -$email = get_input('e'); -$name = get_input('n'); - -$admin_option = false; -$loggedin_user = get_loggedin_user(); - -if ($loggedin_user && $loggedin_user->isAdmin() && isset($vars['show_admin'])) { - $admin_option = true; -} - -$form_body = "<p><label>" . elgg_echo('name') . "<br />" . elgg_view('input/text' , array('internalname' => 'name', 'class' => "input-text name", 'value' => $name)) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('email') . "<br />" . elgg_view('input/text' , array('internalname' => 'email', 'class' => "input-text", 'value' => $email)) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text' , array('internalname' => 'username', 'class' => "input-text", 'value' => $username)) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password', 'class' => "input-password")) . "</label></p>"; -$form_body .= "<p><label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2', 'class' => "input-password")) . "</label></p>"; - -// view to extend to add more fields to the registration form -$form_body .= elgg_view('register/extend'); - -// Add captcha hook -$form_body .= elgg_view('input/captcha'); - -if ($admin_option) { - $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); -} - -$form_body .= elgg_view('input/hidden', array('internalname' => 'friend_guid', 'value' => $vars['friend_guid'])); -$form_body .= elgg_view('input/hidden', array('internalname' => 'invitecode', 'value' => $vars['invitecode'])); -$form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register')); -$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "</p>"; - -echo elgg_view('input/form', array( - 'action' => "{$login_url}action/register", - 'body' => $form_body, - 'class' => "margin-top" -)); -?> - -<script type="text/javascript"> - $(document).ready(function() { $('input[name=name]').focus(); }); -</script> 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 |