From b04f30ecf2347104131b8dccf7bb349b5ec72762 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 1 Oct 2010 21:01:39 +0000 Subject: Added admin page to validate, resend validation requests, or delete unvalidated users. git-svn-id: http://code.elgg.org/elgg/trunk@6997 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/uservalidationbyemail/actions/validate.php | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 mod/uservalidationbyemail/actions/validate.php (limited to 'mod/uservalidationbyemail/actions/validate.php') diff --git a/mod/uservalidationbyemail/actions/validate.php b/mod/uservalidationbyemail/actions/validate.php new file mode 100644 index 000000000..c50053dce --- /dev/null +++ b/mod/uservalidationbyemail/actions/validate.php @@ -0,0 +1,53 @@ +enable()) { + $error = TRUE; + continue; + } +} + +access_show_hidden_entities($access); + +if (count($user_guids) == 1) { + $message_txt = elgg_echo('uservalidationbyemail:messages:validated_user'); + $error_txt = elgg_echo('uservalidationbyemail:errors:could_not_validate_user'); +} else { + $message_txt = elgg_echo('uservalidationbyemail:messages:validated_users'); + $error_txt = elgg_echo('uservalidationbyemail:errors:could_not_validate_users'); +} + +if ($error) { + register_error($error_txt); +} else { + system_message($message_txt); +} + +forward(REFERRER); \ No newline at end of file -- cgit v1.2.3