Niels had this code:
- Code: Select all
$this_userdata = get_userdata($user_id);
if( !$this_userdata )
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
}
else
{
$this_userdata = get_userdata( $HTTP_POST_VARS['username'] ); //delete this line
if( !$this_userdata ) // delete this line
{ // delete this line
if ($HTTP_POST_VARS['new_user'])
{ //we need to create this user !, before continue
Crimson Fuzor had this code:
- Code: Select all
$this_userdata = get_userdata($user_id);
if( !$this_userdata )
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
}
}
else
{
// notice those three lines
// are deleted & it works
if ($HTTP_POST_VARS['new_user'])
{ //we need to create this user !, before continue
and windstar had this code:
- Code: Select all
$this_userdata = get_userdata(htmlspecialchars($HTTP_POST_VARS['username'])); // delete this line!
if( !$this_userdata ) // delete this line!
{ // delete this line too!
if ($HTTP_POST_VARS['new_user'])
{ //we need to create this user !, before continue
It was the started and never finished if-loop that gave windstar the parse error.

