aboutsummaryrefslogtreecommitdiff
path: root/pages/confirm.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-17 12:43:35 -0500
committercash <cash.costello@gmail.com>2011-12-17 12:43:35 -0500
commita62adbd9cb180fe6bbf88cff2f787d262f737ecb (patch)
tree9ecc324eba4dcdf57f98cde1bcc66e03c148b027 /pages/confirm.php
parentbc56428d493d99576ff274611df3b029e7e47e0a (diff)
downloadelgg-a62adbd9cb180fe6bbf88cff2f787d262f737ecb.tar.gz
elgg-a62adbd9cb180fe6bbf88cff2f787d262f737ecb.tar.bz2
removed code from previous plugin
Diffstat (limited to 'pages/confirm.php')
-rw-r--r--pages/confirm.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/pages/confirm.php b/pages/confirm.php
deleted file mode 100644
index 1f2668620..000000000
--- a/pages/confirm.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-// This used to be an action, but as it is sent in an email message
-// with unknown response time, it cannot have an action time stamp
-// and so is now just a page
-
-require_once(dirname(dirname(__FILE__)).'/models/model.php');
-
-set_context('openid');
-$code = get_input('code');
-if (empty($code)) {
- register_error(elgg_echo("openid_client:missing_confirmation_code"));
-} elseif ($code{0} == 'a') {
- // request to activate an account
- if (!$details = openid_client_get_invitation($code)) {
- register_error(elgg_echo("openid_client:invalid_code_error"));
- } else {
- // OK, everything seems to be in order, so activate this user
- $user = get_user($details->new_owner);
- $user->email = $details->email;
- $user->name = $details->name;
- $user->active = 'yes';
- $user->save();
- system_message(sprintf(elgg_echo("openid_client:account_created"), $details->username));
- openid_client_remove_invitation($code);
- }
-
-} elseif ($code{0} == 'c') {
- // request to change an email address
- if (!$details = openid_client_get_invitation($code)) {
- register_error(elgg_echo("openid_client:invalid_code_error"));
- } else {
- // OK, everything seems to be in order, so change the email address
- $user = get_user($details->new_owner);
- $user->email = $details->email;
- $user->save();
- system_message(sprintf(elgg_echo('openid_client:email_changed'),$details->email));
- openid_client_remove_invitation($code);
- }
-}
-
-if(isset($body) && $body) {
- page_draw(elgg_echo('openid_client:confirmation_title'),$body);
-} else {
- forward();
-}