| 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.36.2.1 2007-05-11 13:54:06 alexandre_tb Exp $
|
23 |
// CVS : $Id: projetControleur.class.php,v 1.36.2.2 2007-06-04 15:40:39 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.36.2.1 $
|
36 |
*@version $Revision: 1.36.2.2 $
|
| 37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
| 38 |
*/
|
38 |
*/
|
| Line 39... |
Line 39... |
| 39 |
|
39 |
|
| 40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 917... |
Line 917... |
| 917 |
$nom_repertoire = $document->enregistrerSQL($formulaire_repertoire->getSubmitValues(), $projet->getNomRepertoire()) ;
|
917 |
$nom_repertoire = $document->enregistrerSQL($formulaire_repertoire->getSubmitValues(), $projet->getNomRepertoire()) ;
|
| Line 918... |
Line 918... |
| 918 |
|
918 |
|
| 919 |
// La creation du repertoire sur le disque, chemin / nom_repertoire_projet / id_repertoire
|
919 |
// La creation du repertoire sur le disque, chemin / nom_repertoire_projet / id_repertoire
|
| 920 |
$GLOBALS['log'] .= '<br />chemin_upload:'.$chemin_upload.'<br />';
|
920 |
$GLOBALS['log'] .= '<br />chemin_upload:'.$chemin_upload.'<br />';
|
| 921 |
$GLOBALS['log'] .= '<br />mkdir('.PROJET_CHEMIN_FICHIER.$chemin_upload.$nom_repertoire.')<br />';
|
921 |
$GLOBALS['log'] .= '<br />mkdir('.PROJET_CHEMIN_FICHIER.$chemin_upload.$nom_repertoire.')<br />';
|
| Line 922... |
Line 922... |
| 922 |
if (!mkdir (PROJET_CHEMIN_FICHIER.$chemin_upload.$nom_repertoire)) {
|
922 |
if (!mkdir (PROJET_CHEMIN_FICHIER.$chemin_upload.'/'.$nom_repertoire)) {
|
| 923 |
|
923 |
|
| 924 |
$document->suppressionSQL() ;
|
924 |
$document->suppressionSQL() ;
|
| 925 |
return $this->messageErreur(PROJETCONTROLEUR_ERREUR_CREATION_REPERTOIRE).'<br />'.
|
925 |
return $this->messageErreur(PROJETCONTROLEUR_ERREUR_CREATION_REPERTOIRE).'<br />'.
|
| 926 |
PROJET_CHEMIN_FICHIER.$projet->getNomRepertoire().'/'.$chemin_upload.$nom_repertoire;
|
926 |
PROJET_CHEMIN_FICHIER.$chemin_upload.'/'.$nom_repertoire;
|
| 927 |
}
|
927 |
}
|
| 928 |
// On place a 1 la colonne p_avoir_document
|
928 |
// On place a 1 la colonne p_avoir_document
|
| 929 |
if (!$projet->avoirDocument()) $projet->setAvoirDocument(true);
|
929 |
if (!$projet->avoirDocument()) $projet->setAvoirDocument(true);
|