| @@ 346-356 (lines=11) @@ | ||
| 343 | $text = str_replace('{X_UNAME}', $user->getVar('uname'), $text); |
|
| 344 | $text = str_replace('{X_UACTLINK}', XOOPS_URL . '/register.php?op=actv&id=' . $user->getVar('uid') . '&actkey=' . $user->getVar('actkey'), $text); |
|
| 345 | // send mail |
|
| 346 | if ($this->isMail) { |
|
| 347 | if (!$this->sendMail($user->getVar('email'), $subject, $text, $headers)) { |
|
| 348 | if ($debug) { |
|
| 349 | $this->errors[] = sprintf(_MAIL_SENDMAILNG, $user->getVar('uname')); |
|
| 350 | } |
|
| 351 | } else { |
|
| 352 | if ($debug) { |
|
| 353 | $this->success[] = sprintf(_MAIL_MAILGOOD, $user->getVar('uname')); |
|
| 354 | } |
|
| 355 | } |
|
| 356 | } |
|
| 357 | // send private message |
|
| 358 | if ($this->isPM) { |
|
| 359 | if (!$this->sendPM($user->getVar('uid'), $subject, $text)) { |
|
| @@ 358-368 (lines=11) @@ | ||
| 355 | } |
|
| 356 | } |
|
| 357 | // send private message |
|
| 358 | if ($this->isPM) { |
|
| 359 | if (!$this->sendPM($user->getVar('uid'), $subject, $text)) { |
|
| 360 | if ($debug) { |
|
| 361 | $this->errors[] = sprintf(_MAIL_SENDPMNG, $user->getVar('uname')); |
|
| 362 | } |
|
| 363 | } else { |
|
| 364 | if ($debug) { |
|
| 365 | $this->success[] = sprintf(_MAIL_PMGOOD, $user->getVar('uname')); |
|
| 366 | } |
|
| 367 | } |
|
| 368 | } |
|
| 369 | flush(); |
|
| 370 | } |
|
| 371 | return !(count($this->errors) > 0); |
|