Subversion Repositories eFlore/Applications.coel

Rev

Rev 1862 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1862 Rev 1882
Line 104... Line 104...
104
		return $erreurs;
104
		return $erreurs;
105
	}
105
	}
Line 106... Line 106...
106
	
106
	
-
 
107
	
-
 
108
	private function importerPublications($nom_fichier) {
-
 
109
		
-
 
110
		$utilisateur = array('id' => '', 'session' => session_id(), 'ip' => $_SERVER['REMOTE_ADDR']);
-
 
111
		if(!empty($utilisateur_connecte = $this->getUtilisateur())) {
-
 
112
			$utilisateur['id'] = $utilisateur_connecte['id'];
107
	
113
		}
108
	private function importerPublications($nom_fichier) {
114
		
109
		$retour = false;
115
		$retour = false;
110
		$script = sprintf($this->chemin_script, $nom_fichier);
116
		$script = sprintf($this->chemin_script, $nom_fichier, "'".json_encode($utilisateur)."'");
111
		exec($script, $retour);
117
		exec($script, $retour);
112
		return array_pop($retour);
118
		return array_pop($retour);
113
	}
119
	}