You must accept the user agreement
");
echo("Click here to go back");
break;
}
}
if(!$username){
echo("You did not enter a username
");
echo("Click here to go back");
break;
}
if(!$fullname){
echo("Please enter your full name
");
echo("Click here to go back");
break;
}
if(!good_email($email)){
echo("You must enter a valid email address
");
echo("Click here to go back");
break;
}
if(!$pass1){
echo("You must enter a password
");
echo("Click here to go back");
break;
}
if ( $pass1 != $pass2 ) {
echo("Your passwords do not match
");
echo("Click here to go back");
break;
}
$new_user = new_user("$username", "$fullname", "$email", "$pass1");
if(!$new_user){
echo("That username already exists
");
echo("Click here to go back");
break;
}
break;
// This is the default action.
case 'show_add_user':
default:
if (conf('demo_mode')) { break; }
$values = array('type'=>"new_user");
show_user_registration($values);
break;
case 'new_user':
include("templates/show_new_user.inc");
break;
}
?>