aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/openid_client
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/forms/openid_client')
-rw-r--r--views/default/forms/openid_client/login.php43
-rw-r--r--views/default/forms/openid_client/register.php71
2 files changed, 0 insertions, 114 deletions
diff --git a/views/default/forms/openid_client/login.php b/views/default/forms/openid_client/login.php
deleted file mode 100644
index 1f440dc49..000000000
--- a/views/default/forms/openid_client/login.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-/**
- * OpenID login if username or full url required
- */
-
-$options_values = array_flip(elgg_get_config('openid_providers'));
-$options_values['others'] = elgg_echo('openid_client:others');
-
-?>
-<div>
-<label><?php echo elgg_echo('openid_client:login:header'); ?></label>
-<br />
-<?php
-echo elgg_view('input/dropdown', array(
- 'name' => 'openid_provider',
- 'options_values' => $options_values,
-));
-?>
-</div>
-
-<div class="openid-client-url hidden">
-<label><?php echo elgg_echo('openid_client:url'); ?> </label>
-
-<?php
-echo elgg_view('input/text', array('name' => 'openid_url', 'class' => 'mbs'));
-?>
-
-</div>
-
-<div class="elgg-foot">
- <label class="mtm float-alt">
- <input type="checkbox" name="persistent" value="true" />
- <?php echo elgg_echo('user:persistent'); ?>
- </label>
-
- <?php echo elgg_view('input/submit', array('value' => elgg_echo('login'))); ?>
-
- <?php
- if (isset($vars['returntoreferer'])) {
- echo elgg_view('input/hidden', array('name' => 'returntoreferer', 'value' => 'true'));
- }
- ?>
-</div> \ No newline at end of file
diff --git a/views/default/forms/openid_client/register.php b/views/default/forms/openid_client/register.php
deleted file mode 100644
index 6044f0f0b..000000000
--- a/views/default/forms/openid_client/register.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/**
- * OpenID register form body
- *
- * @uses $vars['openid_identifier']
- * @uses $vars['username']
- * @uses $vars['is_username_available']
- * @uses $vars['is_username_valid']
- * @uses $vars['email']
- * @uses $vars['is_email_available']
- * @uses $vars['name']
- */
-
-$username_label = elgg_echo('username');
-$username_warning = '';
-if (!elgg_extract('is_username_available', $vars, true)) {
- $username_warning = elgg_echo('openid_client:warning:username_not_available', array($vars['username']));
- $username_warning = "($username_warning)";
-} else if (!elgg_extract('is_username_valid', $vars, true)) {
- $username_warning = elgg_echo('openid_client:warning:username_valid', array($vars['username']));
- $username_warning = "($username_warning)";
-}
-$username_input = elgg_view('input/text', array(
- 'name' => 'username',
- 'value' => $vars['username'],
-));
-
-$name_label = elgg_echo('name');
-$name_input = elgg_view('input/text', array(
- 'name' => 'name',
- 'value' => $vars['name'],
-));
-
-$email_label = elgg_echo('email');
-$email_available = elgg_extract('is_email_available', $vars, true);
-$email_warning = '';
-if (!$email_available) {
- $email_warning = elgg_echo('openid_client:warning:email_not_available', array($vars['email']));
- $email_warning = "($email_warning)";
-}
-$email_input = elgg_view('input/email', array(
- 'name' => 'email',
- 'value' => $vars['email'],
- 'readonly' => $email_available,
-));
-
-$openid_input = elgg_view('input/hidden', array(
- 'name' => 'openid_identifier',
- 'value' => $vars['openid_identifier'],
-));
-$button = elgg_view('input/submit', array('value' => elgg_echo('save')));
-
-echo <<<HTML
-<div>
- <label>$username_label</label> $username_warning
- $username_input
-</div>
-<div>
- <label>$name_label</label>
- $name_input
-</div>
-<div>
- <label>$email_label</label> $email_warning
- $email_input
-</div>
-<div class="elgg-foot">
- $openid_input
- $button
-</div>
-
-HTML;