27 include __DIR__ .
'/mainfile.php';
31 $xoops->events()->triggerEvent(
'core.user.start');
33 $xoops->loadLanguage(
'user');
40 array(
'ok',
'boolean', 0,
false),
50 array(
'op',
'string',
'main',
true),
51 array(
'xoops_redirect',
'weburl',
'',
true),
52 array(
'id',
'int', 0,
false),
53 array(
'actkey',
'string',
'',
true),
60 include_once
$xoops->path(
'include/checklogin.php');
66 $xoops->header(
'module:system/system_userform.tpl');
81 $xoops->tpl()->assign(
'redirect_page', htmlspecialchars(
$clean_input[
'xoops_redirect'], ENT_QUOTES));
83 if (
$xoops->getConfig(
'usercookie')) {
87 $xoops->tpl()->assign(
'lang_lostpassword', XoopsLocale::Q_LOST_YOUR_PASSWORD);
88 $xoops->tpl()->assign(
'lang_noproblem', XoopsLocale::NO_PROBLEM_ENTER_EMAIL_WE_HAVE_ON_FILE);
91 $xoops->tpl()->assign(
'mailpasswd_token',
$xoops->security()->createToken());
99 if (strcasecmp(substr(
$redirect, $pos + 3, strlen($xoopsLocation)), $xoopsLocation)) {
112 if (
$op ==
'logout') {
114 $xoops->session()->user()->recordUserLogout();
117 $xoops->getHandlerOnline()->destroy(
$xoops->user->getVar(
'uid'));
123 if (
$op ==
'delete') {
129 if (in_array(FixedGroups::ADMIN,
$groups)) {
137 array(
'op' =>
'delete',
'ok' => 1),
143 $del_uid =
$xoops->user->getVar(
"uid");
146 $xoops->getHandlerOnline()->destroy($del_uid);
148 if (
$xoops->isActiveModule(
'notifications')) {
const E_NO_ACTION_PERMISSION
if($uname== ''||$pass== '') $member_handler
const Q_ARE_YOU_SURE_TO_DELETE_ACCOUNT
const S_YOU_ARE_NOW_LOGGED_OUT
const E_USER_IN_WEBMASTER_GROUP_CANNOT_BE_REMOVED
const THIS_WILL_REMOVE_ALL_YOUR_INFO
const Q_LOST_YOUR_PASSWORD
const NO_PROBLEM_ENTER_EMAIL_WE_HAVE_ON_FILE
const S_YOUR_ACCOUNT_DELETED
const S_THANK_YOU_FOR_VISITING_OUR_SITE