Skip to content

Commit

Permalink
Adding validation for the domain input in the Order Form
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Sep 6, 2010
1 parent 4f64b5c commit a307585
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 15 deletions.
11 changes: 11 additions & 0 deletions includes/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,17 @@ public function validateUserName() {
}
}

public function validateDomain() {
global $main;
$result = $main->validDomain($main->getvar['domain']);
if ($result) {
echo '0';
} else {
echo '1';
}
}


public function clientLogin() {
global $main;
$user = $main->getvar['user'];
Expand Down
Loading

0 comments on commit a307585

Please sign in to comment.