X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fprofile%2Fpage.inc.php;h=3117b29ec2a5f2c661cdc9f59c26226bdf1d4909;hb=66c4bdaf7813c6dd607a275ab9a2ef163d8b0a51;hp=70d0ab510be9458f4190c83aed2e601a5efa11ad;hpb=ed92ea696e042eb9b2d0efcc4731fdf89fb17924;p=platal.git diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index 70d0ab5..3117b29 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -192,38 +192,6 @@ class ProfileSettingDate extends ProfileNoSave } } -abstract class ProfileSettingGeocoding implements ProfileSetting -{ - protected function geocodeAddress(array &$address, &$success) - { - require_once 'geocoding.inc.php'; - $success = true; - if (isset($address['changed']) && $address['changed'] == 1) { - $gmapsGeocoder = new GMapsGeocoder(); - $address = $gmapsGeocoder->getGeocodedAddress($address); - if (isset($address['geoloc'])) { - $success = false; - } - } elseif (@$address['changed'] && !@$address['text']) { - $address = empty_address(); - $address['pub'] = 'private'; - } - if (isset($address['geoloc_choice']) && ($address['geoloc_choice'] == 0)) { - $mailer = new PlMailer('geoloc/geoloc.mail.tpl'); - $mailer->assign('text', $address['text']); - $mailer->assign('geoloc', $address['geoloc']); - $mailer->send(); - $gmapsGeocoder = new GMapsGeocoder(); - $address = $gmapsGeocoder->stripGeocodingFromAddress($address); - } - } - - public function getText($value) { - return $value; - } -} - - abstract class ProfilePage implements PlWizardPage { protected $wizard;