9
Ok, adding this one line worked:
mail("webmaster@mydomain.com", "User Login Notofication", "TEST", "From: Webmaster");
So, I added the following to the file:
$loginuserid = $user->getVar('uid') ;
$userurl = "http://www.domain.com/userinfo.php?uid=$loginuserid" ;
if ($loginuserid != 1 && $loginuserid != 2 && $loginuserid != 3 && $loginuserid != 100 && $loginuserid != 50) {
mail( "webmaster@domain.com", "User $uname Login Alert",
"User Login Notification:nn$uname (ID:$loginuserid) has just logged in. nn$userurlnn",
"From: Webmaster" );
}
redirect_header($url, 1, sprintf(_US_LOGGINGU, $user->getVar('uname')));
and I can login, but no email is received.
I put this code between the following to lines:
$notification_handler->doLoginMaintenance($user->getVar('uid'));
ADDED CODE HERE} else {
redirect_header(XOOPS_URL.'/user.php', 5, $xoopsAuth->getHtmlErrors());