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.14 2006-10-06 15:34:30 florian Exp $ |
// CVS : $Id: instal_fichier.inc.php,v 1.15 2006-10-09 14:35:27 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.14 $ $Date: 2006-10-06 15:34:30 $ |
*@version $Revision: 1.15 $ $Date: 2006-10-09 14:35:27 $ |
// +------------------------------------------------------------------------------------------------------+ |
**/ |
|
160,17 → 160,12 |
// tentative d ecriture du fichier .htaccess |
$url_ftp_htaccess = 'ftp://'.$fichier['PAP_FTP_UTILISATEUR'].':'.$fichier['PAP_FTP_MOT_DE_PASSE']. |
'@'.$fichier['PAP_FTP_SERVEUR'].$fichier['PAP_FTP_RACINE'].'/.htaccess'; |
|
if (file_exists($pref['PAP_CHEMIN_RACINE'].'/.htaccess')) { |
$sortie_verif .'<p>Attention: Un fichier .htaccess est déjà présent sur le serveur.'. |
'<br />Veillez à le configurer correctement<br /><br />'. |
'Contenu par défaut: <br /><br /> ErrorDocument 404 /erreur_404.php'; |
} /*else { |
preg_match('/^(\/.*?)([^\/]+?)(?:\?(.*)|)$/', $_SERVER['REQUEST_URI'], $tab_prefixe); |
$prefixe = $tab_prefixe[2]; |
$handle =fopen ($url_ftp_htaccess, 'w'); |
fwrite ($handle, 'ErrorDocument 404 /'.$prefixe.'erreur_404.php'); |
fclose($handle); |
}*/ |
} |
} |
} |
|
178,12 → 173,13 |
|
// Mise à jour des fichiers de configuration de chaque application : |
|
function maj_fichier_config_appli($fichier, $elements) { |
function maj_fichier_config_appli($fichier, $fichierconfig, $elements) { |
|
|
$url_ftp = 'ftp://'.$fichier['PAP_FTP_UTILISATEUR'].':'.$fichier['PAP_FTP_MOT_DE_PASSE']. |
'@'.$fichier['PAP_FTP_SERVEUR'].$fichier; |
|
'@'.$fichier['PAP_FTP_SERVEUR'].$fichier['PAP_FTP_RACINE'].GEN_SEP.$fichierconfig; |
|
|
$fp = @fopen($url_ftp, 'w'); |
|
while (!feof($fp)) { |
203,10 → 199,12 |
|
} |
|
// Configuration Fckeditor ... |
|
// Maj Fckeditor |
|
maj_fichier_config_appli($fichier,'api/fckeditor/editor/filemanager/browser/default/connectors/php/config.php',array("test"=>"test")); |
|
|
|
|
|
// Gestion de l'affichage |
293,6 → 291,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.14 2006/10/06 15:34:30 florian |
* mise en commentaire .htaccess |
* |
* Revision 1.13 2006/10/06 15:23:00 florian |
* amelioration graphique de l'installateur |
* |