- Timestamp:
- 2007/01/18 20:45:05 (19 years ago)
- File:
-
- 1 edited
-
temp/test-xoops.ec-cube.net/html/register.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/register.php
r1070 r1086 39 39 } 40 40 41 function userCheck($uname, $email, $pass, $vpass )41 function userCheck($uname, $email, $pass, $vpass, $agree_disc = "", $agree_check = false) 42 42 { 43 43 global $xoopsConfigUser; … … 113 113 $stop .= sprintf(_US_PWDTOOSHORT,$xoopsConfigUser['minpass'])."<br />"; 114 114 } 115 116 if ($agree_check) { 117 if($agree_disc != 1) { 118 $stop .= sprintf(_US_PWDTOOSHORT,$xoopsConfigUser['minpass'])."<br />"; 119 } 120 } 121 115 122 return $stop; 116 123 } … … 124 131 $user_viewemail = (isset($_POST['user_viewemail']) && intval($_POST['user_viewemail'])) ? 1 : 0; 125 132 $user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 1 : 0; 126 $mailmaga = 1; 127 $agree_disc = 1; 133 $mailmaga = (isset($_POST['mailmaga']) && intval($_POST['mailmaga'])) ? 1 : 0;; 134 $agree_disc = isset($_POST['agree_disc']) ? $myts->stripSlashesGPC($_POST['agree_disc']) : ''; 135 128 136 switch ( $op ) { 129 137 case 'newuser': … … 139 147 } 140 148 141 $stop .= userCheck($uname, $email, $pass, $vpass );149 $stop .= userCheck($uname, $email, $pass, $vpass, $agree_disc, true); 142 150 if (empty($stop)) { 143 151 $token =& XoopsSingleTokenHandler::quickCreate('register_finish');
Note: See TracChangeset
for help on using the changeset viewer.
