Subversion Repositories eFlore/Applications.cel

Rev

Rev 1840 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1840 Rev 1914
Line 34... Line 34...
34
	'abondance' => 'Abondance',
34
	'abondance' => 'Abondance',
35
	'certitude' => 'Certitude',
35
	'certitude' => 'Certitude',
36
	'phenologie' => 'Phénologie',
36
	'phenologie' => 'Phénologie',
37
	'images' => 'Image(s)',
37
	'images' => 'Image(s)',
38
	'nom_commun' => 'Nom Commun',
38
	'nom_commun' => 'Nom Commun',
-
 
39
 
-
 
40
	'observateur' => 'Observateur',
39
);
41
);
Line 40... Line 42...
40
 
42
 
41
 
43
 
Line 102... Line 104...
102
	curl_setopt($ch,CURLOPT_POSTFIELDS, array(
104
	curl_setopt($ch,CURLOPT_POSTFIELDS, array(
103
		'file' => '@' . $file,
105
		'file' => '@' . $file,
104
		'ce_utilisateur' => USER
106
		'ce_utilisateur' => USER
105
	));
107
	));
Line 106... Line 108...
106
 
108
 
107
	curl_setopt($ch,CURLOPT_RETURNTRANSFER, TRUE);
109
	//curl_setopt($ch,CURLOPT_RETURNTRANSFER, TRUE);
-
 
110
	//execute post
-
 
111
	if(DEBUG) @fwrite(STDERR, sprintf("curl -F file=@%s '%s'\n", $file, $URL));
108
	//execute post
112
 
109
	$result = curl_exec($ch);
113
	$result = curl_exec($ch);
110
	curl_close($ch);
114
	curl_close($ch);
111
	return $result;
115
	return $result;