return false;
}
$forum_name = strtolower($forum_name);
- if (!preg_match('/^([_\.0-9a-z-])*$/i',$forum_name)) {
+ if (!preg_match('/^([_\.0-9a-z-])*$/',$forum_name)) {
$this->setError(_('Illegal Characters in Forum Name'));
return false;
}
//delete forum's role setting
db_query_params ('DELETE FROM role_setting WHERE section_name=$1 AND ref_id=$2',
array ('forum',
- $this->getID())) ;
+ $this->getID())) ;
db_commit();
return true;
}
// There is a user with the provided user_name/email, but the MD5 passwds do not match
// We'll have to try checking the (crypt) unix_pw
$usr = db_fetch_array($res);
+ $userstatus = $usr['status'] ;
if (crypt ($passwd, $usr['unix_pw']) != $usr['unix_pw']) {
// Even the (crypt) unix_pw does not patch