Subversion Repositories Applications.papyrus

Rev

Rev 1021 | Rev 1023 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1021 Rev 1022
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.13 2006-10-06 15:23:00 florian Exp $
35
// CVS : $Id: instal_fichier.inc.php,v 1.14 2006-10-06 15:34:30 florian Exp $
36
/**
36
/**
37
* Page de création des fichiers nécessaire à l'installation de Papyrus.
37
* Page de création des fichiers nécessaire à l'installation de Papyrus.
38
*
38
*
39
* Page permettant de créer le fichier de configuration de Papyrus.
39
* Page permettant de créer 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.13 $ $Date: 2006-10-06 15:23:00 $
49
*@version       $Revision: 1.14 $ $Date: 2006-10-06 15:34:30 $
50
// +------------------------------------------------------------------------------------------------------+
50
// +------------------------------------------------------------------------------------------------------+
51
**/
51
**/
Line 52... Line 52...
52
 
52
 
53
// +------------------------------------------------------------------------------------------------------+
53
// +------------------------------------------------------------------------------------------------------+
Line 162... Line 162...
162
			'@'.$fichier['PAP_FTP_SERVEUR'].$fichier['PAP_FTP_RACINE'].'/.htaccess';
162
			'@'.$fichier['PAP_FTP_SERVEUR'].$fichier['PAP_FTP_RACINE'].'/.htaccess';
163
		if (file_exists($pref['PAP_CHEMIN_RACINE'].'/.htaccess')) {
163
		if (file_exists($pref['PAP_CHEMIN_RACINE'].'/.htaccess')) {
164
			$sortie_verif .'<p>Attention: Un fichier .htaccess est déjà présent sur le serveur.'.
164
			$sortie_verif .'<p>Attention: Un fichier .htaccess est déjà présent sur le serveur.'.
165
							'<br />Veillez à le configurer correctement<br /><br />'.
165
							'<br />Veillez à le configurer correctement<br /><br />'.
166
							'Contenu par défaut: <br /><br /> ErrorDocument 404 /erreur_404.php';
166
							'Contenu par défaut: <br /><br /> ErrorDocument 404 /erreur_404.php';
167
		} else {
167
		} /*else {
168
			preg_match('/^(\/.*?)([^\/]+?)(?:\?(.*)|)$/', $_SERVER['REQUEST_URI'], $tab_prefixe);
168
			preg_match('/^(\/.*?)([^\/]+?)(?:\?(.*)|)$/', $_SERVER['REQUEST_URI'], $tab_prefixe);
169
			$prefixe = $tab_prefixe[2];
169
			$prefixe = $tab_prefixe[2];
170
			$handle =fopen ($url_ftp_htaccess, 'w'); 
170
			$handle =fopen ($url_ftp_htaccess, 'w'); 
171
			fwrite ($handle, 'ErrorDocument 404 /'.$prefixe.'erreur_404.php');
171
			fwrite ($handle, 'ErrorDocument 404 /'.$prefixe.'erreur_404.php');
172
			fclose($handle);
172
			fclose($handle);
173
		}
173
		}*/
174
	}
174
	}
175
}
175
}
Line 291... Line 291...
291
 
291
 
292
 
292
 
293
/* +--Fin du code ----------------------------------------------------------------------------------------+
293
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
294
*
-
 
295
* $Log: not supported by cvs2svn $
-
 
296
* Revision 1.13  2006/10/06 15:23:00  florian
294
*
297
* amelioration graphique de l'installateur
295
* $Log: not supported by cvs2svn $
298
*
296
* Revision 1.12  2006/10/06 14:49:45  ddelon
299
* Revision 1.12  2006/10/06 14:49:45  ddelon
297
* ecriture htaccess a l'installation
300
* ecriture htaccess a l'installation
298
*
301
*