24 include
$GLOBALS[
'xoops']->path(
'header.php');
25 if (!empty(
$_GET[
'id']) && !empty(
$_GET[
'actkey'])) {
26 $id = intval(
$_GET[
'id']);
27 $actkey = trim(
$_GET[
'actkey']);
34 if (!is_object($thisuser)) {
38 if ($thisuser->getVar(
'actkey') != $actkey) {
41 if ($thisuser->getVar(
'level') > 0) {
47 if (
$GLOBALS[
'xoopsConfigUser'][
'activation_type'] == 2) {
50 $xoopsMailer->useMail();
51 $xoopsMailer->setTemplate(
'activated.tpl');
52 $xoopsMailer->assign(
'SITENAME',
$GLOBALS[
'xoopsConfig'][
'sitename']);
53 $xoopsMailer->assign(
'ADMINMAIL',
$GLOBALS[
'xoopsConfig'][
'adminmail']);
54 $xoopsMailer->assign(
'SITEURL', XOOPS_URL .
"/");
55 $xoopsMailer->setToUsers($thisuser);
56 $xoopsMailer->setFromEmail(
$GLOBALS[
'xoopsConfig'][
'adminmail']);
57 $xoopsMailer->setFromName(
$GLOBALS[
'xoopsConfig'][
'sitename']);
59 include
$GLOBALS[
'xoops']->path(
'header.php');
60 if (!$xoopsMailer->send()) {
86 $xoopsMailer->useMail();
87 $xoopsMailer->setTemplate(
'register.tpl');
88 $xoopsMailer->assign(
'SITENAME',
$GLOBALS[
'xoopsConfig'][
'sitename']);
89 $xoopsMailer->assign(
'ADMINMAIL',
$GLOBALS[
'xoopsConfig'][
'adminmail']);
90 $xoopsMailer->assign(
'SITEURL', XOOPS_URL .
"/");
91 $xoopsMailer->setToUsers(
$getuser[0]);
92 $xoopsMailer->setFromEmail(
$GLOBALS[
'xoopsConfig'][
'adminmail']);
93 $xoopsMailer->setFromName(
$GLOBALS[
'xoopsConfig'][
'sitename']);
95 if (!$xoopsMailer->send()) {
101 include_once
$GLOBALS[
'xoops']->path(
'class/xoopsformloader.php');