Exemple #1
0
  *    the tester databases associated with this user.
  */
 /*
  * Validazione dati
  */
 $errorsAr = array();
 if ($_POST['user_tester'] == 'none') {
     $errorsAr['user_tester'] = true;
 }
 if (DataValidator::is_uinteger($_POST['user_type']) === FALSE) {
     $errorsAr['user_type'] = true;
 }
 if (DataValidator::validate_firstname($_POST['user_firstname']) === FALSE) {
     $errorsAr['user_firstname'] = true;
 }
 if (DataValidator::validate_lastname($_POST['user_lastname']) === FALSE) {
     $errorsAr['user_lastname'] = true;
 }
 if (DataValidator::validate_email($_POST['user_email']) === FALSE) {
     $errorsAr['user_email'] = true;
 }
 if (DataValidator::validate_username($_POST['user_username']) === FALSE) {
     $errorsAr['user_username'] = true;
 }
 if (DataValidator::validate_password($_POST['user_password'], $_POST['user_passwordcheck']) === FALSE) {
     $errorsAr['user_password'] = true;
 }
 if (DataValidator::validate_string($_POST['user_address']) === FALSE) {
     $errorsAr['user_address'] = true;
 }
 if (DataValidator::validate_string($_POST['user_city']) === FALSE) {