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/bulk_action.php | 18 ++++++++ mod/uservalidationbyemail/actions/delete.php | 52 +++++++++++++++++++++ .../actions/resend_validation.php | 52 +++++++++++++++++++++ mod/uservalidationbyemail/actions/validate.php | 53 ++++++++++++++++++++++ 4 files changed, 175 insertions(+) create mode 100644 mod/uservalidationbyemail/actions/bulk_action.php create mode 100644 mod/uservalidationbyemail/actions/delete.php create mode 100644 mod/uservalidationbyemail/actions/resend_validation.php create mode 100644 mod/uservalidationbyemail/actions/validate.php (limited to 'mod/uservalidationbyemail/actions') diff --git a/mod/uservalidationbyemail/actions/bulk_action.php b/mod/uservalidationbyemail/actions/bulk_action.php new file mode 100644 index 000000000..fbbcc1c93 --- /dev/null +++ b/mod/uservalidationbyemail/actions/bulk_action.php @@ -0,0 +1,18 @@ +delete()) { + $error = TRUE; + continue; + } +} + +access_show_hidden_entities($access); + +if (count($user_guids) == 1) { + $message_txt = elgg_echo('uservalidationbyemail:messages:deleted_user'); + $error_txt = elgg_echo('uservalidationbyemail:errors:could_not_delete_user'); +} else { + $message_txt = elgg_echo('uservalidationbyemail:messages:deleted_users'); + $error_txt = elgg_echo('uservalidationbyemail:errors:could_not_delete_users'); +} + +if ($error) { + register_error($error_txt); +} else { + system_message($message_txt); +} + +forward(REFERRER); \ No newline at end of file diff --git a/mod/uservalidationbyemail/actions/resend_validation.php b/mod/uservalidationbyemail/actions/resend_validation.php new file mode 100644 index 000000000..70c2244b9 --- /dev/null +++ b/mod/uservalidationbyemail/actions/resend_validation.php @@ -0,0 +1,52 @@ +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