Changeset 374 for minimanager/register.php
- Timestamp:
- Sep 11, 2008, 9:10:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/register.php
r312 r374 15 15 function doregister(){ 16 16 global $lang_global, $realm_db, $disable_acc_creation, $limit_acc_per_ip, $valid_ip_mask, 17 $send_mail_on_creation, $create_acc_locked, $from_mail, $mailer_type, $smtp_cfg, $titlee, $MaximumAccountCount;17 $send_mail_on_creation, $create_acc_locked, $from_mail, $mailer_type, $smtp_cfg, $title, $defaultoption, $MaximumAccountCount; 18 18 19 19 if ( empty($_POST['pass']) || empty($_POST['email']) || empty($_POST['username']) ) { … … 101 101 redirect("register.php?err=3&usr=$user_name"); 102 102 } else { 103 $tbc = (isset($_POST['tbc'])) ? $sql->quote_smart($_POST['tbc']) : 0; 103 if ( $expansion_select ) { 104 $tbc = (isset($_POST['tbc'])) ? $sql->quote_smart($_POST['tbc']) : 0; 105 } else { 106 $tbc = $defaultoption; 107 } 104 108 105 109 $result = $sql->query("INSERT INTO account (username,sha_pass_hash,gmlevel,email, joindate,last_ip,failed_logins,locked,last_login,online,tbc) 106 VALUES ( '$user_name','$pass',0,'$mail',now(),'$last_ip',0,$create_acc_locked,NULL,0,$tbc)");110 VALUES (UPPER('$user_name'),'$pass',0,'$mail',now(),'$last_ip',0,$create_acc_locked,NULL,0,$tbc)"); 107 111 $sql->close(); 108 112 … … 155 159 //##################################################################################################### 156 160 function register(){ 157 global $lang_register, $lang_global, $output ;161 global $lang_register, $lang_global, $output, $expansion_select; 158 162 $output .= "<center> 159 163 <script type=\"text/javascript\" src=\"js/sha1.js\"></script> … … 201 205 <td><input type=\"text\" name=\"email\" size=\"45\" maxlength=\"225\" /><br /> 202 206 {$lang_register['use_valid_mail']}</td> 203 </tr> 204 <tr> 207 </tr>"; 208 if ( $expansion_select ) { 209 $output .= "<tr> 205 210 <td valign=\"top\">{$lang_register['acc_type']}:</td> 206 211 <td> … … 210 215 </select> 211 216 - {$lang_register['acc_type_desc']}</td> 217 </tr>"; 218 } 219 $output .= "<tr><td colspan=\"2\"><hr /></td></tr> 220 <tr> 221 <td colspan=\"2\">{$lang_register['read_terms']}.</td> 212 222 </tr> 213 223 <tr><td colspan=\"2\"><hr /></td></tr> 214 <tr>215 <td colspan=\"2\">{$lang_register['read_terms']}.</td>216 </tr>217 <tr><td colspan=\"2\"><hr / ></td></tr>218 224 <tr><td>"; 219 225
Note:
See TracChangeset
for help on using the changeset viewer.