Line 18... |
Line 18... |
18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
Line 22... |
Line 22... |
22 |
|
22 |
|
Line 23... |
Line 23... |
23 |
// CVS : $Id: projetControleur.class.php,v 1.31 2006-12-18 16:27:31 alexandre_tb Exp $
|
23 |
// CVS : $Id: projetControleur.class.php,v 1.32 2007-01-02 14:30:12 alexandre_tb Exp $
|
24 |
|
24 |
|
25 |
/**
|
25 |
/**
|
26 |
* Application projet
|
26 |
* Application projet
|
Line 31... |
Line 31... |
31 |
//Auteur original :
|
31 |
//Auteur original :
|
32 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
32 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
33 |
//Autres auteurs :
|
33 |
//Autres auteurs :
|
34 |
*@author Aucun
|
34 |
*@author Aucun
|
35 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@copyright Tela-Botanica 2000-2004
|
36 |
*@version $Revision: 1.31 $
|
36 |
*@version $Revision: 1.32 $
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
*/
|
38 |
*/
|
Line 39... |
Line 39... |
39 |
|
39 |
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
Line 815... |
Line 815... |
815 |
if ($this->_id_repertoire != '') $document->setIdRepertoire($this->_id_repertoire) ;
|
815 |
if ($this->_id_repertoire != '') $document->setIdRepertoire($this->_id_repertoire) ;
|
Line 816... |
Line 816... |
816 |
|
816 |
|
Line 817... |
Line 817... |
817 |
$chemin_upload = $document->calculeCheminUploaded($projet->getNomRepertoire()) ;
|
817 |
$chemin_upload = $document->calculeCheminUploaded($projet->getNomRepertoire()) ;
|
818 |
|
818 |
|
819 |
if (!$document->upload (PROJET_CHEMIN_FICHIER.$projet->getNomRepertoire().'/'.$chemin_upload)) {
|
819 |
if (!$document->upload (PROJET_CHEMIN_FICHIER.$projet->getNomRepertoire().'/'.$chemin_upload)) {
|
820 |
echo 'Echec de l\'upload' ;
|
820 |
return 'Echec de l\'upload' ;
|
Line 821... |
Line 821... |
821 |
trigger_error('echec d\'upload !', E_USER_ERROR) ;
|
821 |
trigger_error('echec d\'upload !', E_USER_ERROR) ;
|