$replier = $userdetail['username']; $replierid = $userdetail['userid']; } else { $v_password = md5($v_password); $v_replier_checker = mystrtolower($v_replier); $userchecker = $blog->getbyquery("SELECT * FROM `{$db_prefix}user` WHERE LOWER(username)='{$v_replier_checker}'"); if (mystrtolower($userchecker['username']) == $v_replier_checker && $v_password == $userchecker['userpsw']) { $replier = $userchecker['username']; $replierid = $userchecker['userid']; @setcookie('userid', $userchecker['userid']); @setcookie('userpsw', $v_password); } else { if ($userchecker['username']) { $cancel = $lnc[308]; } if (@in_iarray($v_replier, $adminlist)) { $cancel = $lnc[212]; } $replier = $v_replier; $replierid = -1; } } } $v_content = safe_convert(trimplus($v_content), $html); if ($v_content == '') { $cancel = $lnc[214]; } if (strlen($v_content) > $permission['MaxPostLength']) { $cancel = $lnc[214]; } if (preg_search($v_content, $forbidden['banword'])) {
/** * Is unique in case insensitive array * * @link http://jp.php.net/array_unique */ function array_iunique($a) { $n = array(); foreach ($a as $k => $v) { if (!in_iarray($v, $n)) { $n[$k] = $v; } } return $n; }