Changeset 2079 in ExiteCMS
- Timestamp:
- 11/29/08 11:47:50 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
modules/user_info_panel/templates/modules.user_info_panel.tpl (modified) (1 diff)
-
modules/user_info_panel/user_info_panel.php (modified) (1 diff)
-
register.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/user_info_panel/templates/modules.user_info_panel.tpl
r2058 r2079 59 59 </div> 60 60 {include file="_closeside_x.tpl"} 61 {elseif $s ettings.auth_ssl == 0 || $_SERVER.HTTPS|default:"" == "on"}61 {elseif $show_login} 62 62 {include file="_openside.tpl" name=$_name title=$locale.060 state=$_state style=$_style} 63 63 <div style='text-align:center'> -
trunk/modules/user_info_panel/user_info_panel.php
r2060 r2079 111 111 $variables['show_passlink'] = 1; 112 112 113 // can we show the login panel? 114 $variables['show_login'] = $settings['auth_ssl'] == 0 || ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ); 115 if (!iMEMBER && !$variables['show_login']) $no_panel_displayed = true; 116 113 117 $template_variables['modules.user_info_panel'] = $variables; 114 118 ?> -
trunk/register.php
r1935 r2079 62 62 } else if (isset($_POST['register'])) { 63 63 $error = ""; 64 $username = stripinput(trim(eregi_replace(" +", " ", $_POST['username'])));65 $fullname = $_POST['fullname'];64 $username = stripinput(trim(eregi_replace(" +", "", $_POST['username']))); 65 $fullname = eregi_replace("\"|'", "", $_POST['fullname']); 66 66 $email = stripinput(trim(eregi_replace(" +", "", $_POST['email']))); 67 67 $password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1']))); … … 71 71 // if (!preg_match("/^[-0-9A-Z_@\s]+$/i", $username)) $error .= $locale['403']."<br /><br />\n"; 72 72 73 if (preg_match("/^[0-9A-Z @]{6,20}$/i", $password1)) {73 if (preg_match("/^[0-9A-Z_@!\.\?]{6,20}$/i", $password1)) { 74 74 if ($password1 != $_POST['password2']) $error .= $locale['404']."<br /><br />\n"; 75 75 } else { … … 84 84 if (CHECK_EMAIL) { 85 85 if (CMS_getmxrr($email_domain, $mxhosts)) { 86 // Get the hostnam e the MX record points to86 // Get the hostnamxe the MX record points to 87 87 $mailhost = $mxhosts[0]; 88 88 } else { … … 170 170 $user_sig = isset($_POST['user_sig']) ? stripinput(trim($_POST['user_sig'])) : ""; 171 171 } 172 error_reporting(E_ALL); 172 173 173 if ($error == "") { 174 174 if ($settings['email_verification'] == "1") {
Note: See TracChangeset
for help on using the changeset viewer.
