I know that you had helped me out a lot already, but i am still struggling with this one last bit of change i need to make:
Upon registration, instead of the usual process, i would like an email to be sent to the administrator with the data that was submitted by the new user, so that the admin can manually enter it in the database later.
So far, i had modified include/functions.inc.php' registerUser() function to include:
function registerUser(){
if ( isRegistered() ) return;
$user =& getUser();
$user->setValue('role','USER');
$user->save();
sendAdminEmail('A new user would like to register', getLDAPUserInfo($userid));
}
however, i cant get it to work. what am i doing wrong? thank you in advance.
-Todor