header('Create new user'); $t->openTag('form', array('method'=>'post', 'action'=>$t->url('users'))); $t->openFieldset("New User: Step 1"); if (in_array('illegal name', $VARS['errors'])) { $t->inputP("That is a forbidden username.", true); } if (in_array('user exists', $VARS['errors'])) { $t->inputP("A user with that name already exists."); } $t->inputText('auth_name','Username', "This is the name you use to log in, but it is also a ". "short name that is used in various places, think of it ". "as a sort of Twitter name.",$VARS['username']); @$password = $VARS['password1']; if (in_array('pw mixmatch', $VARS['errors'])) { $t->inputP("The passwords didn't match.", true); $password = ''; } if (in_array('no pw', $VARS['errors'])) { $t->inputP("You must set a password.", true); $password = ''; } $t->inputNewPassword('auth_password','Password', $password); $t->closeFieldset(); global $mm; $db = $mm->database(); $public_key = $db->getPluginConf('ReCaptcha', 'public_key'); $recaptcha_error = null; if (isset($VARS['recaptcha_error'])) $recaptcha_error = $VARS['recaptcha_error']; require_once('recaptchalib.php'); echo recaptcha_get_html($public_key, $recaptcha_error); $t->tag('input', array('type'=>'submit', 'value'=>'Submit')); $t->closeTag('form'); $t->footer();