34 } elseif (isset(
$_GET[
'op'])) {
39 include_once
$GLOBALS[
'xoops']->path(
'include/checklogin.php');
46 include
$GLOBALS[
'xoops']->path(
'header.php');
52 if (isset(
$_GET[
'xoops_redirect'])) {
53 $xoopsTpl->assign(
'redirect_page', htmlspecialchars(trim(
$_GET[
'xoops_redirect']), ENT_QUOTES));
60 $xoopsTpl->assign(
'lang_lostpassword', _US_LOSTPASSWORD);
61 $xoopsTpl->assign(
'lang_noproblem', _US_NOPROBLEM);
65 include
$GLOBALS[
'xoops']->path(
'footer.php');
68 if (!empty(
$_GET[
'xoops_redirect'])) {
69 $redirect = trim(
$_GET[
'xoops_redirect']);
71 if (
$pos = strpos($redirect,
'://')) {
72 $xoopsLocation = substr(XOOPS_URL, strpos(XOOPS_URL,
'://') + 3);
73 if (strcasecmp(substr($redirect,
$pos + 3, strlen($xoopsLocation)), $xoopsLocation)) {
78 header(
'Location: ' . $redirect);
82 header(
'Location: ' . XOOPS_URL .
'/userinfo.php?uid=' .
$xoopsUser->getVar(
'uid'));
86 if (
$op ==
'logout') {
89 $GLOBALS[
"sess_handler"]->regenerate_id(
true);
96 $online_handler->destroy(
$xoopsUser->getVar(
'uid'));
104 $GLOBALS[
'xoopsLogger']->addDeprecated(
"Deprecated code. The activation is now handled by register.php");
105 $id = intval(
$_GET[
'id']);
106 $actkey = trim(
$_GET[
'actkey']);
116 if (!is_object($thisuser)) {
119 if ($thisuser->getVar(
'actkey') != $actkey) {
122 if ($thisuser->getVar(
'level') > 0) {
131 $xoopsMailer->useMail();
132 $xoopsMailer->setTemplate(
'activated.tpl');
133 $xoopsMailer->assign(
'SITENAME',
$xoopsConfig[
'sitename']);
134 $xoopsMailer->assign(
'ADMINMAIL',
$xoopsConfig[
'adminmail']);
135 $xoopsMailer->assign(
'SITEURL', XOOPS_URL .
"/");
136 $xoopsMailer->setToUsers($thisuser);
140 include
$GLOBALS[
'xoops']->path(
'header.php');
141 if (!$xoopsMailer->send()) {
146 include
$GLOBALS[
'xoops']->path(
'footer.php');
159 if (
$op ==
'delete') {
167 if (in_array(XOOPS_GROUP_ADMIN,
$groups)) {
174 include
$GLOBALS[
'xoops']->path(
'header.php');
176 array(
'op' =>
'delete',
'ok' => 1),
179 include
$GLOBALS[
'xoops']->path(
'footer.php');
185 $online_handler->destroy($del_uid);