Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1019 → Rev 1020

/trunk/papyrus/applications/installateur/instal_fichier.inc.php
32,7 → 32,7
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: instal_fichier.inc.php,v 1.11 2006-10-06 14:46:15 alexandre_tb Exp $
// CVS : $Id: instal_fichier.inc.php,v 1.12 2006-10-06 14:49:45 ddelon Exp $
/**
* Page de création des fichiers nécessaire à l'installation de Papyrus.
*
46,7 → 46,7
*@author Patrick PAUL
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.11 $ $Date: 2006-10-06 14:46:15 $
*@version $Revision: 1.12 $ $Date: 2006-10-06 14:49:45 $
// +------------------------------------------------------------------------------------------------------+
**/
 
171,11 → 171,46
$prefixe = $tab_prefixe[2];
$handle =fopen ($url_ftp_htaccess, 'w');
fwrite ($handle, 'ErrorDocument 404 /'.$prefixe.'erreur_404.php');
fcloas($handle);
fclose($handle);
}
}
}
 
 
 
// Mise à jour des fichiers de configuration de chaque application :
 
function maj_fichier_config_appli($fichier, $elements) {
 
$url_ftp = 'ftp://'.$fichier['PAP_FTP_UTILISATEUR'].':'.$fichier['PAP_FTP_MOT_DE_PASSE'].
'@'.$fichier['PAP_FTP_SERVEUR'].$fichier;
$fp = @fopen($url_ftp, 'w');
while (!feof($fp)) {
$cont .= fread($fp, 500);
}
foreach ($elements as $element) {
list($expr,$rempl)=$elements;
preg_replace('/'.$expr.'/',$rempl,$cont);
}
fwrite($fp, $cont);
fclose($fp);
 
}
 
// Configuration Fckeditor ...
 
 
 
// Gestion de l'affichage
if ($erreur == 0 && empty($sortie_verif)) {
// Premier appel du fichier...
260,6 → 295,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.11 2006/10/06 14:46:15 alexandre_tb
* ecriture du fichier .htaccess
*
* Revision 1.10 2005/09/23 14:20:23 florian
* nouvel habillage installateur, plus correction de quelques bugs
*