Line 116... |
Line 116... |
116 |
|
116 |
|
Line 117... |
Line 117... |
117 |
protected function estAbonneAListe($nom_liste, $mail) {
|
117 |
protected function estAbonneAListe($nom_liste, $mail) {
|
118 |
|
118 |
|
- |
|
119 |
try {
|
119 |
try {
|
120 |
$est_abonne = '0' ;
|
120 |
$est_abonne = '0' ;
|
121 |
// TODO: externaliser l'adresse
|
Line 121... |
Line 122... |
121 |
$xml_abonne = new SimpleXMLElement(file_get_contents('http://vpopmail.tela-botanica.org/est_abonne.php?domaine=tela-botanica.org&liste='.$nom_liste.'&mail='.$mail)) ;
|
122 |
$xml_abonne = new SimpleXMLElement(file_get_contents('http://vpopmail.tela-botanica.org/est_abonne.php?domaine=tela-botanica.org&liste='.$nom_liste.'&mail='.$mail)) ;
|
122 |
$est_abonne = $xml_abonne[0] ;
|
123 |
$est_abonne = $xml_abonne[0] ;
|
Line 137... |
Line 138... |
137 |
protected function modifierMailPourListe($nom_liste, $ancien_mail, $nouveau_mail) {
|
138 |
protected function modifierMailPourListe($nom_liste, $ancien_mail, $nouveau_mail) {
|
138 |
return ($this->desinscriptionListe($nom_liste, $ancien_mail) && $this->inscriptionListe($nom_liste, $nouveau_mail));
|
139 |
return ($this->desinscriptionListe($nom_liste, $ancien_mail) && $this->inscriptionListe($nom_liste, $nouveau_mail));
|
139 |
}
|
140 |
}
|
Line 140... |
Line 141... |
140 |
|
141 |
|
- |
|
142 |
protected function inscriptionListe($nom_liste, $mail) {
|
141 |
protected function inscriptionListe($nom_liste, $mail) {
|
143 |
// TODO: externaliser l'adresse
|
142 |
return $inscription_abonne = file_get_contents('http://vpopmail.tela-botanica.org/ajout_abonne.php?domaine=tela-botanica.org&liste='.$nom_liste.'&mail='.$mail) ;
|
144 |
return $inscription_abonne = file_get_contents('http://vpopmail.tela-botanica.org/ajout_abonne.php?domaine=tela-botanica.org&liste='.$nom_liste.'&mail='.$mail) ;
|
Line 143... |
Line 145... |
143 |
}
|
145 |
}
|
- |
|
146 |
|
144 |
|
147 |
protected function desinscriptionListe($nom_liste, $mail) {
|
145 |
protected function desinscriptionListe($nom_liste, $mail) {
|
148 |
// TODO: externaliser l'adresse
|
146 |
return $suppression_abonne = file_get_contents('http://vpopmail.tela-botanica.org/suppression_abonne.php?domaine=tela-botanica.org&liste='.$nom_liste.'&mail='.$mail) ;
|
149 |
return $suppression_abonne = file_get_contents('http://vpopmail.tela-botanica.org/suppression_abonne.php?domaine=tela-botanica.org&liste='.$nom_liste.'&mail='.$mail) ;
|
147 |
}
|
150 |
}
|