@@ 407-417 (lines=11) @@ | ||
404 | $text = str_replace("{X_UNAME}", $user->getVar("uname"), $text); |
|
405 | $text = str_replace("{X_UACTLINK}", \XoopsBaseConfig::get('url') . "/register.php?op=actv&id=" . $user->getVar("uid") . "&actkey=" . $user->getVar('actkey'), $text); |
|
406 | // send mail |
|
407 | if ($this->isMail) { |
|
408 | if (!$this->sendMail($user->getVar("email"), $subject, $text, $headers)) { |
|
409 | if ($debug) { |
|
410 | $this->errors[] = sprintf(XoopsLocale::EF_EMAIL_NOT_SENT_TO, $user->getVar("uname")); |
|
411 | } |
|
412 | } else { |
|
413 | if ($debug) { |
|
414 | $this->success[] = sprintf(XoopsLocale::SF_EMAIL_SENT_TO, $user->getVar("uname")); |
|
415 | } |
|
416 | } |
|
417 | } |
|
418 | // send private message |
|
419 | if ($this->isPM) { |
|
420 | if (!$this->sendPM($user->getVar("uid"), $subject, $text)) { |
|
@@ 419-429 (lines=11) @@ | ||
416 | } |
|
417 | } |
|
418 | // send private message |
|
419 | if ($this->isPM) { |
|
420 | if (!$this->sendPM($user->getVar("uid"), $subject, $text)) { |
|
421 | if ($debug) { |
|
422 | $this->errors[] = sprintf(XoopsLocale::EF_PRIVATE_MESSAGE_NOT_SENT_TO, $user->getVar("uname")); |
|
423 | } |
|
424 | } else { |
|
425 | if ($debug) { |
|
426 | $this->success[] = sprintf(XoopsLocale::SF_PRIVATE_MESSAGE_SENT_TO, $user->getVar("uname")); |
|
427 | } |
|
428 | } |
|
429 | } |
|
430 | flush(); |
|
431 | } |
|
432 | if (count($this->errors) > 0) { |