Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1919 Rev 1924
Line 15... Line 15...
15
class CelWidgetUploadImageTemp extends Cel  {
15
class CelWidgetUploadImageTemp extends Cel  {
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
	protected $projet = '';
17
	protected $projet = '';
18
 
18
 
19
	public function createElement($donnees) {
19
	public function createElement($donnees) {
20
		$image = array_shift($donnees); // dangereux!
20
		$image = $_FILES['fichier']; // chaudrépare
21
		if (isset($_GET['projet'])) {
21
		if (isset($_GET['projet'])) {
22
			$this->projet = $_GET['projet'];
22
			$this->projet = $_GET['projet'];
23
		}
23
		}