diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-04-19 10:21:52 -0400 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-04-19 10:21:52 -0400 |
| commit | 1b23808772e1158603b93a24c5df241c46fae756 (patch) | |
| tree | 21fa27495e26bf507f75f40e876b424bc8febd92 /dash/profile.php | |
| parent | 832f3c245e66c0a78b2d5732355b381f91acb9ef (diff) | |
| download | bulletin-1b23808772e1158603b93a24c5df241c46fae756.tar.gz | |
Changed response to account activation
Diffstat (limited to 'dash/profile.php')
| -rw-r--r-- | dash/profile.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dash/profile.php b/dash/profile.php index d8e4af3..d730dc9 100644 --- a/dash/profile.php +++ b/dash/profile.php @@ -74,6 +74,9 @@ $result->free(); <?php } else if (!empty($_POST['chprofile'])) { $bio = empty($_POST['bio']) ? 'NULL' : '\''.$db->escape_string($_POST['bio']).'\''; + if (!empty($_POST['address'])) { + if (!geolocate($_POST['address'], $b_user['zipcode'])) dash_fatal('The address provided is not valid.'); + } $addr = empty($_POST['address']) ? 'NULL' : '\''.$db->escape_string($_POST['address']).'\''; $patterns = array( 'email' => '/^.+@.+\..+$/', |
