Ticket #420: create_account_form_patch2.patch
File create_account_form_patch2.patch, 3.4 KB (added by , 17 years ago) |
---|
-
create_account_form.php
18 18 if (parse_bool($config, "disable_account_creation")) { 19 19 echo " 20 20 <h1>".tr(CREATE_AC_DISABLED)."</h1> 21 <p>".tr(CREATE_AC_DISABLED_TEXT)." 22 </p> 21 <p>".tr(CREATE_AC_DISABLED_TEXT)."</p> 23 22 "; 24 23 page_tail(); 25 24 exit(); … … 27 26 echo "<p> 28 27 <b>".tr(CREATE_AC_USE_CLIENT)."</b> 29 28 "; 30 echo " 31 <p> 32 <form action=create_account_action.php method=post> 29 echo "<p> 30 <form action=\"create_account_action.php\" method=\"post\"> 33 31 "; 34 32 $teamid = get_int("teamid", true); 35 33 if ($teamid) { … … 40 38 } else { 41 39 echo "<b>"; 42 40 printf(tr(CREATE_AC_TEAM), "<a href=\"team_display.php?teamid=$team->id\">$team->name</a>"); 43 echo "</b> <p>";41 echo "</b><p>"; 44 42 echo " 45 <input type= hidden name=teamid value=$teamid>43 <input type=\"hidden\" name=\"teamid\" value=\"$teamid\"> 46 44 "; 47 45 } 48 46 } … … 52 50 // 53 51 if(defined('INVITE_CODES')) { 54 52 row2( 55 tr(AC_INVITE_CODE)."<br ><span class=description>".tr(AC_INVITE_CODE_DESC)."</span",56 "<input name= invite_code size=30>"53 tr(AC_INVITE_CODE)."<br /><span class=\"description\">".tr(AC_INVITE_CODE_DESC)."</span>", 54 "<input name=\"invite_code\" size=\"30\">" 57 55 ); 58 56 } 59 57 60 58 row2( 61 tr(CREATE_AC_NAME)."<br ><span class=description>".tr(CREATE_AC_NAME_DESC)."</span>",62 "<input name= new_name size=30>"59 tr(CREATE_AC_NAME)."<br /><span class=\"description\">".tr(CREATE_AC_NAME_DESC)."</span>", 60 "<input name=\"new_name\" size=\"30\">" 63 61 ); 64 62 row2( 65 tr(CREATE_AC_EMAIL)."<br ><span class=description>".tr(CREATE_AC_EMAIL_DESC)."</span>",66 "<input name= new_email_addr size=50>"63 tr(CREATE_AC_EMAIL)."<br /><span class=\"description\">".tr(CREATE_AC_EMAIL_DESC)."</span>", 64 "<input name=\"new_email_addr\" size=\"50\">" 67 65 ); 68 66 $min_passwd_length = parse_element($config, "<min_passwd_length>"); 69 67 if (!$min_passwd_length) { … … 72 70 73 71 row2( 74 72 tr(CREATE_AC_PASSWORD) 75 ."<br ><span class=description>"73 ."<br /><span class=\"description\">" 76 74 .sprintf(tr(CREATE_AC_PASSWORD_DESC), $min_passwd_length) 77 ." 78 "<input type= password name=passwd>"75 ."</span>", 76 "<input type=\"password\" name=\"passwd\">" 79 77 ); 80 row2(tr(CREATE_AC_CONFIRM_PASSWORD), "<input type= password name=passwd2>");78 row2(tr(CREATE_AC_CONFIRM_PASSWORD), "<input type=\"password\" name=\"passwd2\">"); 81 79 row2_init( 82 tr(CREATE_AC_COUNTRY)."<br ><span class=description>".tr(CREATE_AC_COUNTRY_DESC)."</span>",83 "<select name= country>"80 tr(CREATE_AC_COUNTRY)."<br /><span class=\"description\">".tr(CREATE_AC_COUNTRY_DESC)."</span>", 81 "<select name=\"country\">" 84 82 ); 85 83 print_country_select(); 86 84 echo "</select></td></tr>\n"; 87 85 row2( 88 tr(CREATE_AC_ZIP)."<br><span class= description>".tr(OPTIONAL).".</span>",89 "<input name= postal_code size=20>"86 tr(CREATE_AC_ZIP)."<br><span class=\"description\">".tr(OPTIONAL).".</span>", 87 "<input name=\"postal_code\" size=\"20\">" 90 88 ); 91 89 row2("", 92 "<input type= submitvalue='".tr(CREATE_AC_CREATE)."'>"90 "<input type=\"submit\" value='".tr(CREATE_AC_CREATE)."'>" 93 91 ); 94 92 end_table(); 95 echo " 96 </form> 97 "; 93 echo "</form>"; 98 94 99 95 page_tail(); 100 ?> 101 96 ?> 97 No newline at end of file