Line 30... |
Line 30... |
30 |
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
30 |
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
31 |
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
31 |
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
32 |
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
32 |
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|
33 |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
33 |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// CVS : $Id: instal_fichier.inc.php,v 1.28 2007-04-20 09:05:46 alexandre_tb Exp $
|
35 |
// CVS : $Id: instal_fichier.inc.php,v 1.29 2007-04-20 09:13:37 alexandre_tb Exp $
|
36 |
/**
|
36 |
/**
|
37 |
* Page de creation des fichiers necessaire a l'installation de Papyrus.
|
37 |
* Page de creation des fichiers necessaire a l'installation de Papyrus.
|
38 |
*
|
38 |
*
|
39 |
* Page permettant de creer le fichier de configuration de Papyrus.
|
39 |
* Page permettant de creer le fichier de configuration de Papyrus.
|
40 |
*
|
40 |
*
|
Line 44... |
Line 44... |
44 |
//Autres auteurs :
|
44 |
//Autres auteurs :
|
45 |
*@author David DELON
|
45 |
*@author David DELON
|
46 |
*@author Patrick PAUL
|
46 |
*@author Patrick PAUL
|
47 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
47 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
48 |
*@copyright Tela-Botanica 2000-2004
|
48 |
*@copyright Tela-Botanica 2000-2004
|
49 |
*@version $Revision: 1.28 $ $Date: 2007-04-20 09:05:46 $
|
49 |
*@version $Revision: 1.29 $ $Date: 2007-04-20 09:13:37 $
|
50 |
// +------------------------------------------------------------------------------------------------------+
|
50 |
// +------------------------------------------------------------------------------------------------------+
|
51 |
**/
|
51 |
**/
|
Line 52... |
Line 52... |
52 |
|
52 |
|
53 |
// +------------------------------------------------------------------------------------------------------+
|
53 |
// +------------------------------------------------------------------------------------------------------+
|
Line 284... |
Line 284... |
284 |
} else if ($erreur == 2 && !empty($sortie_verif)) {
|
284 |
} else if ($erreur == 2 && !empty($sortie_verif)) {
|
285 |
// Verification du fichier avec interuption...
|
285 |
// Verification du fichier avec interuption...
|
286 |
$sortie .= creerFormulaire($fichier);
|
286 |
$sortie .= creerFormulaire($fichier);
|
287 |
$sortie .= '<li><input type="hidden" name="pref_serial" value="'.htmlentities(serialize($pref)).'" /></li>'."\n";
|
287 |
$sortie .= '<li><input type="hidden" name="pref_serial" value="'.htmlentities(serialize($pref)).'" /></li>'."\n";
|
288 |
$sortie .= '<li><input type="hidden" name="bdd_serial" value="'.htmlentities(serialize($bdd)).'" /></li>'."\n";
|
288 |
$sortie .= '<li><input type="hidden" name="bdd_serial" value="'.htmlentities(serialize($bdd)).'" /></li>'."\n";
|
289 |
$sortie .= '<li><input type="submit" value="Tester à nouveau" /></li>'."\n";
|
289 |
$sortie .= '<li><input type="submit" value="Tester à nouveau" /></li>'."\n";
|
290 |
$sortie .= ' </ul>'."\n";
|
290 |
$sortie .= ' </ul>'."\n";
|
291 |
$sortie .= ' </form>';
|
291 |
$sortie .= ' </form>';
|
292 |
$sortie .= $sortie_verif;
|
292 |
$sortie .= $sortie_verif;
|
293 |
} else if (($erreur == 0 || $erreur == 1) && !empty($sortie_verif)) {
|
293 |
} else if (($erreur == 0 || $erreur == 1) && !empty($sortie_verif)) {
|
294 |
// Verification du fichier sans interuption... passage a l'etape suivante
|
294 |
// Verification du fichier sans interuption... passage a l'etape suivante
|
Line 314... |
Line 314... |
314 |
if ($bln_lecture) {
|
314 |
if ($bln_lecture) {
|
315 |
$disabled = ' disabled="disabled" ';
|
315 |
$disabled = ' disabled="disabled" ';
|
316 |
}
|
316 |
}
|
317 |
$sortie_form .= ' <form action="'.donnerUrlCourante().'?installation=verif_fichier" method="post">';
|
317 |
$sortie_form .= ' <form action="'.donnerUrlCourante().'?installation=verif_fichier" method="post">';
|
318 |
$sortie_form .= ' <ul>'."\n";
|
318 |
$sortie_form .= ' <ul>'."\n";
|
319 |
$sortie_form .= '<li><br /><h2>Configuration du FTP et des chemins d\'accès</h2></li>'."\n";
|
319 |
$sortie_form .= '<li><br /><h2>Configuration du FTP et des chemins d\'accès</h2></li>'."\n";
|
320 |
$sortie_form .= '<li>Entrer le nom de dommaine pour accéder à votre dépôt FTP</li>'."\n";
|
320 |
$sortie_form .= '<li>Entrer le nom de dommaine pour accéder à votre dépôt FTP</li>'."\n";
|
321 |
$sortie_form .= '<li>'."\n".
|
321 |
$sortie_form .= '<li>'."\n".
|
322 |
'<label for="ftp_serveur">Nom du serveur FTP :</label>'.
|
322 |
'<label for="ftp_serveur">Nom du serveur FTP :</label>'.
|
323 |
'<input id="ftp_serveur"'.$disabled.'type="text" size="30" name="fichier[PAP_FTP_SERVEUR]" value="'.$fichier['PAP_FTP_SERVEUR'].'" />'.
|
323 |
'<input id="ftp_serveur"'.$disabled.'type="text" size="30" name="fichier[PAP_FTP_SERVEUR]" value="'.$fichier['PAP_FTP_SERVEUR'].'" />'.
|
324 |
'</li>'."\n";
|
324 |
'</li>'."\n";
|
325 |
$sortie_form .= '<li>Le numéro du port pour le service FTP sur la machine hébergeant Papyrus. '.
|
325 |
$sortie_form .= '<li>Le numéro du port pour le service FTP sur la machine hébergeant Papyrus. '.
|
326 |
'En général c\'est 21.</li>'."\n";
|
326 |
'En général c\'est 21.</li>'."\n";
|
327 |
$sortie_form .= '<li>'."\n".
|
327 |
$sortie_form .= '<li>'."\n".
|
328 |
'<label for="ftp_port">N° du port d\'accès au serveur FTP :</label>'.
|
328 |
'<label for="ftp_port">N° du port d\'accès au serveur FTP :</label>'.
|
329 |
'<input id="ftp_port"'.$disabled.'type="text" size="20" name="fichier[PAP_FTP_PORT]" value="'.$fichier['PAP_FTP_PORT'].'" />'.
|
329 |
'<input id="ftp_port"'.$disabled.'type="text" size="20" name="fichier[PAP_FTP_PORT]" value="'.$fichier['PAP_FTP_PORT'].'" />'.
|
330 |
'</li>'."\n";
|
330 |
'</li>'."\n";
|
331 |
$sortie_form .= '<li>Nom et mot de passe FTP qui sera utilisé pour se connecter à au dépôt FTP.</li>'."\n";
|
331 |
$sortie_form .= '<li>Nom et mot de passe FTP qui sera utilisé pour se connecter à au dépôt FTP.</li>'."\n";
|
332 |
$sortie_form .= '<li>'."\n".
|
332 |
$sortie_form .= '<li>'."\n".
|
333 |
'<label for="ftp_utilisateur">Nom d\'utilisateur pour le serveur FTP :</label>'.
|
333 |
'<label for="ftp_utilisateur">Nom d\'utilisateur pour le serveur FTP :</label>'.
|
Line 335... |
Line 335... |
335 |
'</li>'."\n";
|
335 |
'</li>'."\n";
|
336 |
$sortie_form .= '<li>'."\n".
|
336 |
$sortie_form .= '<li>'."\n".
|
337 |
'<label for="ftp_mot_de_passe">Mot de passe pour le serveur FTP :</label>'.
|
337 |
'<label for="ftp_mot_de_passe">Mot de passe pour le serveur FTP :</label>'.
|
338 |
'<input id="ftp_mot_de_passe"'.$disabled.'type="password" size="20" name="fichier[PAP_FTP_MOT_DE_PASSE]" value="'.$fichier['PAP_FTP_MOT_DE_PASSE'].'" />'.
|
338 |
'<input id="ftp_mot_de_passe"'.$disabled.'type="password" size="20" name="fichier[PAP_FTP_MOT_DE_PASSE]" value="'.$fichier['PAP_FTP_MOT_DE_PASSE'].'" />'.
|
339 |
'</li>'."\n";
|
339 |
'</li>'."\n";
|
340 |
$sortie_form .= '<li>Lorsque vous vous connectez par FTP sur le serveur où vous avez déposé les fichiers de Papyrus, le '.
|
340 |
$sortie_form .= '<li>Lorsque vous vous connectez par FTP sur le serveur où vous avez déposé les fichiers de Papyrus, le '.
|
341 |
'dossier le plus haut auquel vous pouvez accéder dans l\'arborescence est la racine. Il vous faut donc '.
|
341 |
'dossier le plus haut auquel vous pouvez accéder dans l\'arborescence est la racine. Il vous faut donc '.
|
342 |
'indiquez dans le champ ci-dessous le chemin absolu depuis cette racine jusqu\'au dossier contenant le fichier '.
|
342 |
'indiquez dans le champ ci-dessous le chemin absolu depuis cette racine jusqu\'au dossier contenant le fichier '.
|
343 |
'<tt>papyrus.php</tt>. Exemple : <i>/www/</i></li>'."\n";
|
343 |
'<tt>papyrus.php</tt>. Exemple : <i>/www/</i></li>'."\n";
|
344 |
$sortie_form .= '<li>'."\n".
|
344 |
$sortie_form .= '<li>'."\n".
|
345 |
'<label for="ftp_racine">Racine dépôt FTP :</label>'.
|
345 |
'<label for="ftp_racine">Racine dépôt FTP :</label>'.
|
346 |
'<input id="ftp_racine"'.$disabled.'type="text" size="60" name="fichier[PAP_FTP_RACINE]" value="'.$fichier['PAP_FTP_RACINE'].'" />'.
|
346 |
'<input id="ftp_racine"'.$disabled.'type="text" size="60" name="fichier[PAP_FTP_RACINE]" value="'.$fichier['PAP_FTP_RACINE'].'" />'.
|
347 |
'</li>'."\n";
|
347 |
'</li>'."\n";
|
348 |
return $sortie_form;
|
348 |
return $sortie_form;
|
349 |
}
|
349 |
}
|
Line 354... |
Line 354... |
354 |
|
354 |
|
355 |
|
355 |
|
356 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
356 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
357 |
*
|
- |
|
358 |
* $Log: not supported by cvs2svn $
|
- |
|
359 |
* Revision 1.28 2007/04/20 09:05:46 alexandre_tb
|
357 |
*
|
360 |
* correction pb encodage
|
358 |
* $Log: not supported by cvs2svn $
|
361 |
*
|
359 |
* Revision 1.27 2007/04/19 16:53:57 neiluj
|
362 |
* Revision 1.27 2007/04/19 16:53:57 neiluj
|
360 |
* fix de l'upload des fichiers de conf (ftp_put)
|
363 |
* fix de l'upload des fichiers de conf (ftp_put)
|
361 |
*
|
364 |
*
|