}\r
\r
public function grdfValidForm() {\r
- $notempty = array('civilite', 'prenom', 'nom', 'adresse', 'codepostal', 'ville', 'telephone', 'optin', 'connu', 'echeance');\r
+ $notempty = array('civilite', 'prenom', 'nom', 'adresse', 'codepostal', 'ville', 'telephone', 'optin', 'connu', 'energie');\r
$error = false;\r
$errors = array();\r
foreach ($notempty as $f) {\r
\r
$fields = array('Civilité' => 'civilite', 'Prénom' => 'prenom', 'Nom' => 'nom',\r
'E-mail' => 'email', 'Adresse' => 'adresse', 'Code postal' => 'codepostal', 'Ville' => 'ville',\r
- 'Téléphone' => 'telephone', 'Connu par' => 'connu', 'Echéance' => 'echeance',\r
+ 'Téléphone' => 'telephone', 'Connu par' => 'connu', 'Energie' => 'energie',\r
'Optin' => 'optin', 'Coupons sélectionnés' => 'reflist');\r
\r
$mail = new cubeMail();\r
\r
$cols = array('Date' => 'date', 'Civilité' => 'civilite', 'Prénom' => 'prenom', 'Nom' => 'nom',\r
'E-mail' => 'email', 'Adresse' => 'adresse', 'Code postal' => 'codepostal', 'Ville' => 'ville',\r
- 'Téléphone' => 'telephone', 'Connu par' => 'connu', 'Echéance' => 'echeance',\r
+ 'Téléphone' => 'telephone', 'Connu par' => 'connu', 'Energie' => 'energie',\r
'Optin' => 'optin');\r
$refs = array();\r
foreach ($xml->xpath('//item') as $i) {\r
\r
$h.='</table>';\r
\r
- ob_end_clean();\r
- cubeHTTP::forceDownload('chequieravantages.xls');\r
- echo $h;\r
- return;\r
+ if (!file_exists(ROOT . '/cache/12568/')) {\r
+ mkdir(ROOT . '/cache/12568/', 0777, true);\r
+ }\r
+ file_put_contents(ROOT . '/cache/12568/chequieravantage.xls', $h);\r
+ http::redirect('/cache/12568/chequieravantage.xls');\r
+ exit;\r
}\r
\r
public function proxy() {\r