if (!REQUEST_ISSET_POST(('addy'))) REQUEST_SET_POST('addy' , '');
if (!REQUEST_ISSET_POST(('surname'))) REQUEST_SET_POST('surname' , '');
if (!REQUEST_ISSET_POST(('family'))) REQUEST_SET_POST('family' , '');
-if (!REQUEST_ISSET_POST(('pass1'))) REQUEST_SET_POST('pass1' , '');
-if (!REQUEST_ISSET_POST(('pass2'))) REQUEST_SET_POST('pass2' , '');
+if (!REQUEST_ISSET_POST('pass1')) REQUEST_SET_POST('pass1' , '');
+if (!REQUEST_ISSET_POST('pass2')) REQUEST_SET_POST('pass2' , '');
if (!REQUEST_ISSET_POST(('day'))) REQUEST_SET_POST('day' , '');
if (!REQUEST_ISSET_POST(('month'))) REQUEST_SET_POST('month' , '');
if (!REQUEST_ISSET_POST(('year'))) REQUEST_SET_POST('year' , '');
$isFailed = true;
} // END - if
+ // Get temporary array for modification
+ $postArray = REQUEST_POST_ARRAY();
+
// Check for required fields
- if ($isFailed === false) $isFailed = REGISTER_CHECK_REQUIRED_FIELDS(REQUEST_POST_ARRAY());
+ if ($isFailed === false) $isFailed = ifRequiredRegisterFieldsAreSet($postArray);
+
+ // Set it back in request
+ REQUEST_SET_POST_ARRAY($postArray);
// Did he enter his password twice?
- if (((!REQUEST_ISSET_POST(('pass1'))) || (!REQUEST_ISSET_POST(('pass2')))) || ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2'))))) {
- if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2')))) {
+ if (((!REQUEST_ISSET_POST('pass1')) || (!REQUEST_ISSET_POST('pass2'))) || ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST('pass1')) && (REQUEST_ISSET_POST('pass2')))) {
+ if ((REQUEST_POST('pass1') != REQUEST_POST('pass2')) && (REQUEST_ISSET_POST('pass1')) && (REQUEST_ISSET_POST('pass2'))) {
REQUEST_SET_POST('pass1', '!');
REQUEST_SET_POST('pass2', '!');
} else {
- if (!REQUEST_ISSET_POST(('pass1'))) { REQUEST_SET_POST('pass1', '!'); } else { REQUEST_SET_POST('pass1', ''); }
- if (!REQUEST_ISSET_POST(('pass2'))) { REQUEST_SET_POST('pass2', '!'); } else { REQUEST_SET_POST('pass2', ''); }
+ if (!REQUEST_ISSET_POST('pass1')) { REQUEST_SET_POST('pass1', '!'); } else { REQUEST_SET_POST('pass1', ''); }
+ if (!REQUEST_ISSET_POST('pass2')) { REQUEST_SET_POST('pass2', '!'); } else { REQUEST_SET_POST('pass2', ''); }
}
$isFailed = true;
} // END - if