28 }
else if (isset(
$_GET[
'op'])) {
35 include
$GLOBALS[
'xoops']->path(
'header.php');
38 if (isset(
$_GET[
'xoops_redirect'])) {
39 $GLOBALS[
'xoopsTpl']->assign(
'redirect_page', htmlspecialchars(trim(
$_GET[
'xoops_redirect']), ENT_QUOTES));
42 if (
$GLOBALS[
'xoopsConfig'][
'usercookie']) {
51 $GLOBALS[
'xoopsTpl']->assign(
'mailpasswd_token',
$GLOBALS[
'xoopsSecurity']->createToken());
55 if (!empty(
$_GET[
'xoops_redirect']) ) {
56 $redirect = trim(
$_GET[
'xoops_redirect']);
58 if (
$pos = strpos($redirect,
'://')) {
59 $xoopsLocation = substr(XOOPS_URL, strpos( XOOPS_URL,
'://' ) + 3);
60 if (strcasecmp(substr($redirect,
$pos + 3, strlen($xoopsLocation)), $xoopsLocation)) {
65 header(
'Location: ' . $redirect);
69 header(
'Location: ./userinfo.php?uid=' .
$GLOBALS[
'xoopsUser']->getVar(
'uid'));
74 include_once
$GLOBALS[
'xoops']->path(
'include/checklogin.php');
78 if (
$op ==
'logout') {
82 setcookie(
$GLOBALS[
'xoopsConfig'][
'usercookie'], 0, - 1,
'/');
85 if (is_object(
$GLOBALS[
'xoopsUser'])) {
87 $online_handler->destroy(
$GLOBALS[
'xoopsUser']->getVar(
'uid'));
95 $id = intval(
$_GET[
'id']);
96 $actkey = trim(
$_GET[
'actkey']);
97 redirect_header(
"activate.php?op=actv&id={$id}&actkey={$actkey}", 1,
'');
101 if (
$op ==
'delete') {
104 if (!
$GLOBALS[
'xoopsUser'] ||
$GLOBALS[
'xoopsConfigUser'][
'self_delete'] != 1) {
109 if (in_array(XOOPS_GROUP_ADMIN,
$groups)){
116 include
$GLOBALS[
'xoops']->path(
'header.php');
120 $del_uid =
$GLOBALS[
'xoopsUser']->getVar(
"uid");
124 $online_handler->destroy($del_uid);