30 array(
'uname',
'string',
'',
true),
31 array(
'pass',
'string',
'',
true),
32 array(
'rememberme',
'boolean', 0,
false),
33 array(
'xoops_redirect',
'weburl',
'',
true),
51 if (0 ==
$user->getVar(
'level')) {
55 if (
$xoops->getConfig(
'closesite') == 1) {
57 foreach (
$user->getGroups() as $group) {
58 if (in_array($group,
$xoops->getConfig(
'closesite_okgrp')) || FixedGroups::ADMIN == $group) {
68 $user->setVar(
'last_login', time());
73 $user_theme =
$user->getVar(
'theme');
74 if (in_array($user_theme,
$xoops->getConfig(
'theme_set_allowed'))) {
75 $_SESSION[
'xoopsUserTheme'] = $user_theme;
78 $xoops->events()->triggerEvent(
'core.include.checklogin.success');
81 $xoops_redirect = rawurldecode(
$clean_input[
'xoops_redirect']);
83 $url = isset($parsed[
'scheme']) ? $parsed[
'scheme'] .
'://' :
'http://';
84 if (isset($parsed[
'host'])) {
85 $url .= $parsed[
'host'];
86 if (isset($parsed[
'port'])) {
87 $url .=
':' . $parsed[
'port'];
92 if (@$parsed[
'path']) {
93 if (strncmp($parsed[
'path'], $xoops_redirect, strlen($parsed[
'path']))) {
94 $url .= $parsed[
'path'];
97 $url .= $xoops_redirect;
104 $xoops->events()->triggerEvent(
'core.include.checklogin.failed');
$_SESSION['RF']["verify"]
if($uname== ''||$pass== '') $member_handler
const E_SELECTED_USER_DEACTIVATED_OR_NOT_ACTIVE
if($xoops->isActiveModule('images')) return false
const E_NO_ACCESS_PERMISSION
const SF_THANK_YOU_FOR_LOGGING_IN