28 }
else if (isset(
$_GET[
'op'])) {
32 if (
$op ==
'main' ) {
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));
41 if (
$GLOBALS[
'xoopsConfig'][
'usercookie']) {
50 $GLOBALS[
'xoopsTpl']->assign(
'mailpasswd_token',
$GLOBALS[
'xoopsSecurity']->createToken());
54 if (!empty(
$_GET[
'xoops_redirect'])) {
55 $redirect = trim(
$_GET[
'xoops_redirect']);
57 if (
$pos = strpos($redirect,
'://')) {
58 $xoopsLocation = substr( XOOPS_URL, strpos( XOOPS_URL,
'://' ) + 3);
59 if (strcasecmp(substr($redirect,
$pos + 3, strlen($xoopsLocation)), $xoopsLocation)) {
64 header(
'Location: ' . $redirect);
68 header(
'Location: ./userinfo.php?uid=' .
$GLOBALS[
'xoopsUser']->getVar(
'uid'));
73 include_once
$GLOBALS[
'xoops']->path(
'include/checklogin.php');
77 if (
$op ==
'logout') {
80 $GLOBALS[
"sess_handler"]->regenerate_id(
true);
83 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)){
120 $del_uid =
$GLOBALS[
'xoopsUser']->getVar(
"uid");
124 $online_handler->destroy($del_uid);