Subversion Repositories Applications.papyrus

Rev

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

Rev 1079 Rev 1080
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.23 2006-12-01 11:46:11 alexandre_tb Exp $
35
// CVS : $Id: instal_fichier.inc.php,v 1.24 2006-12-01 11:47:10 alexandre_tb 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.23 $ $Date: 2006-12-01 11:46:11 $
49
*@version       $Revision: 1.24 $ $Date: 2006-12-01 11:47:10 $
50
// +------------------------------------------------------------------------------------------------------+
50
// +------------------------------------------------------------------------------------------------------+
51
**/
51
**/
Line 52... Line 52...
52
 
52
 
53
// +------------------------------------------------------------------------------------------------------+
53
// +------------------------------------------------------------------------------------------------------+
Line 160... Line 160...
160
	    // tentative d ecriture du fichier .htaccess
160
	    // tentative d ecriture du fichier .htaccess
161
	    $url_ftp_htaccess = 'ftp://'.$fichier['PAP_FTP_UTILISATEUR'].':'.$fichier['PAP_FTP_MOT_DE_PASSE'].
161
	    $url_ftp_htaccess = 'ftp://'.$fichier['PAP_FTP_UTILISATEUR'].':'.$fichier['PAP_FTP_MOT_DE_PASSE'].
162
			'@'.$fichier['PAP_FTP_SERVEUR'].$fichier['PAP_FTP_RACINE'].'/.htaccess';
162
			'@'.$fichier['PAP_FTP_SERVEUR'].$fichier['PAP_FTP_RACINE'].'/.htaccess';
Line 163... Line 163...
163
			
163
			
164
			$url_parse = parse_url('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
164
			$url_parse = parse_url('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
165
			$prefixe = dirname($url_parse['path']);var_dump ($url_parse);
-
 
-
 
165
			$prefixe = dirname($url_parse['path']);
166
			var_dump ($prefixe);
166
 
167
			$url = 'http://'.$_SERVER['HTTP_HOST'].$prefixe;
167
			$url = 'http://'.$_SERVER['HTTP_HOST'].$prefixe;
168
			$contenu_htaccess = '# Raccourci pour les menus et sites de Papyrus'."\n".
168
			$contenu_htaccess = '# Raccourci pour les menus et sites de Papyrus'."\n".
169
								'RewriteEngine on'."\n".
169
								'RewriteEngine on'."\n".
170
								'# si le fichier ou le dossier existe dans le système de fichier on l\'utilise directement'."\n".
170
								'# si le fichier ou le dossier existe dans le système de fichier on l\'utilise directement'."\n".
Line 339... Line 339...
339
 
339
 
340
 
340
 
341
/* +--Fin du code ----------------------------------------------------------------------------------------+
341
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
342
*
-
 
343
* $Log: not supported by cvs2svn $
-
 
344
* Revision 1.23  2006/12/01 11:46:11  alexandre_tb
342
*
345
* correction creation .htaccess
343
* $Log: not supported by cvs2svn $
346
*
344
* Revision 1.22  2006/11/30 17:41:30  alexandre_tb
347
* Revision 1.22  2006/11/30 17:41:30  alexandre_tb
345
* ecriture htaccess
348
* ecriture htaccess
346
*
349
*