Subversion Repositories Applications.papyrus

Rev

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

Rev 1080 Rev 1084
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.24 2006-12-01 11:47:10 alexandre_tb Exp $
35
// CVS : $Id: instal_fichier.inc.php,v 1.25 2006-12-01 15:43:01 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.24 $ $Date: 2006-12-01 11:47:10 $
49
*@version       $Revision: 1.25 $ $Date: 2006-12-01 15:43:01 $
50
// +------------------------------------------------------------------------------------------------------+
50
// +------------------------------------------------------------------------------------------------------+
51
**/
51
**/
Line 52... Line 52...
52
 
52
 
53
// +------------------------------------------------------------------------------------------------------+
53
// +------------------------------------------------------------------------------------------------------+
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']);
Line 165... Line 165...
165
			$prefixe = dirname($url_parse['path']);
165
			$prefixe = dirname($url_parse['path']);
-
 
166
 
-
 
167
			$url = 'http://'.$_SERVER['HTTP_HOST'].$prefixe;
-
 
168
			if (isset($pref['PAP_URL_REECRITURE']) && $pref['PAP_URL_RRECRITURE'] == 1) {
-
 
169
				$on_off = 'on';
-
 
170
			} else {
166
 
171
				$on_off = 'off';
167
			$url = 'http://'.$_SERVER['HTTP_HOST'].$prefixe;
172
			}
168
			$contenu_htaccess = '# Raccourci pour les menus et sites de Papyrus'."\n".
173
			$contenu_htaccess = '# Raccourci pour les menus et sites de Papyrus'."\n".
169
								'RewriteEngine on'."\n".
174
								'RewriteEngine '.$on_off."\n".
170
								'# si le fichier ou le dossier existe dans le système de fichier on l\'utilise directement'."\n".
175
								'# si le fichier ou le dossier existe dans le système de fichier on l\'utilise directement'."\n".
171
								'RewriteCond %{REQUEST_FILENAME} !-d'."\n".
176
								'RewriteCond %{REQUEST_FILENAME} !-d'."\n".
172
								'RewriteCond %{REQUEST_FILENAME} !-f'."\n\n".
177
								'RewriteCond %{REQUEST_FILENAME} !-f'."\n\n".
Line 339... Line 344...
339
 
344
 
340
 
345
 
341
/* +--Fin du code ----------------------------------------------------------------------------------------+
346
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
347
*
-
 
348
* $Log: not supported by cvs2svn $
-
 
349
* Revision 1.24  2006/12/01 11:47:10  alexandre_tb
342
*
350
* suppression de var_dump
343
* $Log: not supported by cvs2svn $
351
*
344
* Revision 1.23  2006/12/01 11:46:11  alexandre_tb
352
* Revision 1.23  2006/12/01 11:46:11  alexandre_tb
345
* correction creation .htaccess
353
* correction creation .htaccess
346
*
354
*