user_pass && $_GET["pkey"] != ""){ update_usermeta($user_info->ID, 'approval', 1); echo "

The user has been sucessfully approved and should now be able to access the code input.

If you accidently clicked on this link, please go to your MYSQL database, go to the user_meta field and delete the approval key for user id: $id

"; } else { echo "

The information contained in the link does not match the user information in the Wordpress MySQL database. Request to approve user was denied

"; } get_footer(); ?>