1) { $element = $users[count($users) - 1]; // This should be easy, and because of the way I formated the needle it _SHOULD_ be secure :\ if ($pun_user_online['poster_color'] != '') $users[count($users) - 1] = str_ireplace('>'.htmlspecialchars($pun_user_online['ident']).'<','>'.htmlspecialchars($pun_user_online['ident']).'<',$element); elseif ($pun_user_online['poster_g_color'] != '') $users[count($users) - 1] = str_ireplace('>'.htmlspecialchars($pun_user_online['ident']).'<','>'.htmlspecialchars($pun_user_online['ident']).'<',$element); } ]]>