Skip to content

Instantly share code, notes, and snippets.

@callumacrae
Created February 5, 2012 13:02
Show Gist options
  • Select an option

  • Save callumacrae/1745467 to your computer and use it in GitHub Desktop.

Select an option

Save callumacrae/1745467 to your computer and use it in GitHub Desktop.
// Handle registration info updates
$data = array(
'username' => utf8_normalize_nfc(request_var('user', $user_row['username'], true)),
'user_founder' => request_var('user_founder', ($user_row['user_type'] == USER_FOUNDER) ? 1 : 0),
'email' => strtolower(request_var('user_email', $user_row['user_email'])),
'email_confirm' => strtolower(request_var('email_confirm', '')),
'new_password' => request_var('new_password', '', true),
'password_confirm' => request_var('password_confirm', '', true),
);
$data += array('user_colour' => request_var('user_colour', $user_row['user_colour'], true));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment