26
A quick fix for "inactive members can post"
newbb/post.php
around line #88
if(!is_object($xoopsUser)){
$uname = !isset($_POST['uname']) ? '' : trim($_POST['uname']);
$pass = !isset($_POST['pass']) ? '' : trim($_POST['pass']);
$member_handler =& xoops_gethandler('member');
$user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($uname)), addslashes($myts->stripSlashesGPC($pass)));
if(is_object($user) && $user->isActive()){
if(!empty($_POST["login"])){
$user->setVar('last_login', time());
if (!$member_handler->insertUser($user)) {
}
$_SESSION = array();
$_SESSION['xoopsUserId'] = $user->getVar('uid');
$_SESSION['xoopsUserGroups'] = $user->getGroups();
if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') {
setcookie($xoopsConfig['session_name'], session_id(), time()+(60 * $xoopsConfig['session_expire']), '/', '', 0);
}
$user_theme = $user->getVar('theme');
if (in_array($user_theme, $xoopsConfig['theme_set_allowed'])) {
$_SESSION['xoopsUserTheme'] = $user_theme;
}
}
$xoopsUser =& $user;
}
}
$isadmin = newbb_isAdmin($forum);
We will have a quick bugfix version including:
Quote:
1 bugfix for inactive user posting (Reported by Aries @ xoops.org.cn)
2 bugfix for deleting topic with poll (Reported by gropius @ xoops.org.cn)
3 change default value for displaying forum topic time duration (Reported by Zjerre @ xoops.org)
If you have any
minor feature request or bug report, leave a message in this thread ASAP.