User Registration
During registration of a user, you are still able to insert a new user even though the email address exist when you select Administrator from the dropdown.
During registration of a user, you are still able to insert a new user even though the email address exist when you select Administrator from the dropdown.
insert the following code at line 73:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "";
$_SESSION['WAVT_usersRegistrationfull_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateNM($totalRows_CheckRepeat . "",-1,0,"",",.",true,1);
$WAFV_Errors .= WAValidateEM(((isset($_POST["UserEmail"]))?$_POST["UserEmail"]:"") . "",true,2);
$WAFV_Errors .= WAValidateEL(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "",6,50,true,3);
$WAFV_Errors .= WAValidateRX(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "","/\d/",true,4);
$WAFV_Errors .= WAValidateRX(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "","/[a-z,A-Z]/",true,5);
$WAFV_Errors .= WAValidateLE(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "",((isset($_POST["UserPassword2"]))?$_POST["UserPassword2"]:"") . "",false,6);
$WAFV_Errors .= WAValidateRX(((isset($_POST["addblock"]))?$_POST["addblock"]:"") . "","/^$/i",false,9);
$WAFV_Errors .= WAValidateRX(((isset($_POST["secondblock"]))?$_POST["secondblock"]:"") . "","/^$/i",false,10);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"usersRegistrationfull");
}
}
?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.