Changeset 451
- Timestamp:
- 06/01/07 18:31:19 (2 years ago)
- Files:
-
- trunk/demoxul/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
- trunk/demoxul/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
- trunk/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl (modified) (1 diff)
- trunk/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl (modified) (1 diff)
- trunk/lib/jelix/core/defaultconfig.ini.php (modified) (2 diffs)
- trunk/lib/jelix/core/defaultconfig.ini.php (modified) (2 diffs)
- trunk/lib/jelix/core/jConfigCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/core/jConfigCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/core/jRequest.class.php (modified) (1 diff)
- trunk/lib/jelix/core/jRequest.class.php (modified) (1 diff)
- trunk/myapp/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
- trunk/myapp/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
- trunk/testapp/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
- trunk/testapp/var/config/defaultconfig.ini.php.dist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demoxul/var/config/defaultconfig.ini.php.dist
r424 r451 49 49 50 50 [urlengine] 51 ; n om du moteur d'url : simple ou significant51 ; name of url engine : "simple" or "significant" 52 52 engine = simple 53 53 54 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 54 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 55 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 56 ; you use the significant engine. If you use the simple url engine, you can set to off. 55 57 enableParser = on 56 58 57 59 multiview = off 58 60 59 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 60 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 61 basePath = "/" 61 ; basePath corresponds to the path to the base directory of your application. 62 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 63 ; set basePath = "/aaa/bbb/www/". 64 ; if it is http://foo.com/index.php, set basePath="/" 65 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 66 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 67 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 68 ; : basePath="/aaa/" ) 69 basePath = "" 70 62 71 63 72 defaultEntrypoint= index trunk/demoxul/var/config/defaultconfig.ini.php.dist
r424 r451 49 49 50 50 [urlengine] 51 ; n om du moteur d'url : simple ou significant51 ; name of url engine : "simple" or "significant" 52 52 engine = simple 53 53 54 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 54 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 55 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 56 ; you use the significant engine. If you use the simple url engine, you can set to off. 55 57 enableParser = on 56 58 57 59 multiview = off 58 60 59 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 60 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 61 basePath = "/" 61 ; basePath corresponds to the path to the base directory of your application. 62 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 63 ; set basePath = "/aaa/bbb/www/". 64 ; if it is http://foo.com/index.php, set basePath="/" 65 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 66 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 67 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 68 ; : basePath="/aaa/" ) 69 basePath = "" 70 62 71 63 72 defaultEntrypoint= index trunk/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl
r428 r451 52 52 53 53 [urlengine] 54 ; n om du moteur d'url : simple ou significant54 ; name of url engine : "simple" or "significant" 55 55 engine = simple 56 56 57 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 57 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 58 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 59 ; you use the significant engine. If you use the simple url engine, you can set to off. 58 60 enableParser = on 59 61 60 62 multiview = off 61 63 62 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 63 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 64 basePath = "/{$appname}/www" 64 ; basePath corresponds to the path to the base directory of your application. 65 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 66 ; set basePath = "/aaa/bbb/www/". 67 ; if it is http://foo.com/index.php, set basePath="/" 68 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 69 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 70 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 71 ; : basePath="/aaa/" ) 72 basePath = "" 73 65 74 66 75 defaultEntrypoint= index trunk/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl
r428 r451 52 52 53 53 [urlengine] 54 ; n om du moteur d'url : simple ou significant54 ; name of url engine : "simple" or "significant" 55 55 engine = simple 56 56 57 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 57 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 58 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 59 ; you use the significant engine. If you use the simple url engine, you can set to off. 58 60 enableParser = on 59 61 60 62 multiview = off 61 63 62 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 63 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 64 basePath = "/{$appname}/www" 64 ; basePath corresponds to the path to the base directory of your application. 65 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 66 ; set basePath = "/aaa/bbb/www/". 67 ; if it is http://foo.com/index.php, set basePath="/" 68 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 69 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 70 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 71 ; : basePath="/aaa/" ) 72 basePath = "" 73 65 74 66 75 defaultEntrypoint= index trunk/lib/jelix/core/defaultconfig.ini.php
r411 r451 90 90 91 91 [urlengine] 92 ; n om du moteur d'url : simple ou significant92 ; name of url engine : "simple" or "significant" 93 93 engine = simple 94 94 95 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 95 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 96 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 97 ; you use the significant engine. If you use the simple url engine, you can set to off. 96 98 enableParser = on 97 99 98 100 multiview = off 99 101 100 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 101 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 102 basePath = "/" 102 ; basePath corresponds to the path to the base directory of your application. 103 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 104 ; set basePath = "/aaa/bbb/www/". 105 ; if it is http://foo.com/index.php, set basePath="/" 106 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 107 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 108 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 109 ; : basePath="/aaa/" ) 110 basePath = "" 103 111 104 112 defaultEntrypoint= index … … 108 116 notfoundAct = "jelix~error_notfound" 109 117 110 ;i ndique si vous utilisez IIS comme serveur118 ;if you use IIS as a serveur set it to on 111 119 useIIS = off 112 120 113 ;i ndique le paramètre dans $_GET où est indiqué le path_info121 ;if you use IIS, indicate the parameter which contains the path_info 114 122 IISPathKey = __JELIX_URL__ 115 123 trunk/lib/jelix/core/defaultconfig.ini.php
r411 r451 90 90 91 91 [urlengine] 92 ; n om du moteur d'url : simple ou significant92 ; name of url engine : "simple" or "significant" 93 93 engine = simple 94 94 95 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 95 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 96 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 97 ; you use the significant engine. If you use the simple url engine, you can set to off. 96 98 enableParser = on 97 99 98 100 multiview = off 99 101 100 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 101 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 102 basePath = "/" 102 ; basePath corresponds to the path to the base directory of your application. 103 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 104 ; set basePath = "/aaa/bbb/www/". 105 ; if it is http://foo.com/index.php, set basePath="/" 106 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 107 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 108 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 109 ; : basePath="/aaa/" ) 110 basePath = "" 103 111 104 112 defaultEntrypoint= index … … 108 116 notfoundAct = "jelix~error_notfound" 109 117 110 ;i ndique si vous utilisez IIS comme serveur118 ;if you use IIS as a serveur set it to on 111 119 useIIS = off 112 120 113 ;i ndique le paramètre dans $_GET où est indiqué le path_info121 ;if you use IIS, indicate the parameter which contains the path_info 114 122 IISPathKey = __JELIX_URL__ 115 123 trunk/lib/jelix/core/jConfigCompiler.class.php
r444 r451 57 57 } 58 58 $path=$config->urlengine['basePath']; 59 if($path!='/' ){59 if($path!='/' && $path!=''){ 60 60 if($path{0} != '/') $path='/'.$path; 61 61 if(substr($path,-1) != '/') $path.='/'; … … 103 103 } 104 104 $path=$config['urlengine']['basePath']; 105 if($path!='/' ){105 if($path!='/' && $path!=''){ 106 106 if($path{0} != '/') $path='/'.$path; 107 107 if(substr($path,-1) != '/') $path.='/'; trunk/lib/jelix/core/jConfigCompiler.class.php
r444 r451 57 57 } 58 58 $path=$config->urlengine['basePath']; 59 if($path!='/' ){59 if($path!='/' && $path!=''){ 60 60 if($path{0} != '/') $path='/'.$path; 61 61 if(substr($path,-1) != '/') $path.='/'; … … 103 103 } 104 104 $path=$config['urlengine']['basePath']; 105 if($path!='/' ){105 if($path!='/' && $path!=''){ 106 106 if($path{0} != '/') $path='/'.$path; 107 107 if(substr($path,-1) != '/') $path.='/'; trunk/lib/jelix/core/jRequest.class.php
r426 r451 85 85 $lastslash = strrpos ($_SERVER['SCRIPT_NAME'], '/'); 86 86 $this->url_script_path = substr ($_SERVER['SCRIPT_NAME'], 0,$lastslash ).'/';//following is subdir/ 87 if(strpos($this->url_script_path,$gJConfig->urlengine['basePath']) !== 0){ 88 die('Jelix Error: basePath in config file doesn\'t correspond to current base path'); 87 if($gJConfig->urlengine['basePath'] == ''){ // for beginners or simple site, we "guess" the base path 88 $gJConfig->urlengine['basePath'] = $this->url_script_path; 89 }else if(strpos($this->url_script_path,$gJConfig->urlengine['basePath']) !== 0){ 90 die('Jelix Error: basePath in config file doesn\'t correspond to current base path. You should setup it to '.$this->url_script_path); 89 91 } 90 92 trunk/lib/jelix/core/jRequest.class.php
r426 r451 85 85 $lastslash = strrpos ($_SERVER['SCRIPT_NAME'], '/'); 86 86 $this->url_script_path = substr ($_SERVER['SCRIPT_NAME'], 0,$lastslash ).'/';//following is subdir/ 87 if(strpos($this->url_script_path,$gJConfig->urlengine['basePath']) !== 0){ 88 die('Jelix Error: basePath in config file doesn\'t correspond to current base path'); 87 if($gJConfig->urlengine['basePath'] == ''){ // for beginners or simple site, we "guess" the base path 88 $gJConfig->urlengine['basePath'] = $this->url_script_path; 89 }else if(strpos($this->url_script_path,$gJConfig->urlengine['basePath']) !== 0){ 90 die('Jelix Error: basePath in config file doesn\'t correspond to current base path. You should setup it to '.$this->url_script_path); 89 91 } 90 92 trunk/myapp/var/config/defaultconfig.ini.php.dist
r428 r451 52 52 53 53 [urlengine] 54 ; n om du moteur d'url : simple ou significant54 ; name of url engine : "simple" or "significant" 55 55 engine = simple 56 56 57 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 57 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 58 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 59 ; you use the significant engine. If you use the simple url engine, you can set to off. 58 60 enableParser = on 59 61 60 62 multiview = off 61 63 62 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 63 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 64 basePath = "/myapp/www/" 64 ; basePath corresponds to the path to the base directory of your application. 65 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 66 ; set basePath = "/aaa/bbb/www/". 67 ; if it is http://foo.com/index.php, set basePath="/" 68 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 69 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 70 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 71 ; : basePath="/aaa/" ) 72 basePath = "" 73 65 74 66 75 defaultEntrypoint= index trunk/myapp/var/config/defaultconfig.ini.php.dist
r428 r451 52 52 53 53 [urlengine] 54 ; n om du moteur d'url : simple ou significant54 ; name of url engine : "simple" or "significant" 55 55 engine = simple 56 56 57 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 57 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 58 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 59 ; you use the significant engine. If you use the simple url engine, you can set to off. 58 60 enableParser = on 59 61 60 62 multiview = off 61 63 62 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 63 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 64 basePath = "/myapp/www/" 64 ; basePath corresponds to the path to the base directory of your application. 65 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 66 ; set basePath = "/aaa/bbb/www/". 67 ; if it is http://foo.com/index.php, set basePath="/" 68 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 69 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 70 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 71 ; : basePath="/aaa/" ) 72 basePath = "" 73 65 74 66 75 defaultEntrypoint= index trunk/testapp/var/config/defaultconfig.ini.php.dist
r428 r451 51 51 52 52 [urlengine] 53 ; n om du moteur d'url : simple ou significant53 ; name of url engine : "simple" or "significant" 54 54 engine = simple 55 55 56 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 56 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 57 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 58 ; you use the significant engine. If you use the simple url engine, you can set to off. 57 59 enableParser = on 58 60 59 61 multiview = off 60 62 61 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 62 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 63 basePath = "/testapp/www/" 63 ; basePath corresponds to the path to the base directory of your application. 64 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 65 ; set basePath = "/aaa/bbb/www/". 66 ; if it is http://foo.com/index.php, set basePath="/" 67 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 68 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 69 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 70 ; : basePath="/aaa/" ) 71 basePath = "" 72 64 73 65 74 defaultEntrypoint= index trunk/testapp/var/config/defaultconfig.ini.php.dist
r428 r451 51 51 52 52 [urlengine] 53 ; n om du moteur d'url : simple ou significant53 ; name of url engine : "simple" or "significant" 54 54 engine = simple 55 55 56 ; active l'analyse d'url (mettre à off si vous utilisez le mod_rewrite d'apache) 56 ; enable the parsing of the url. Set it to off if the url is already parsed by another program 57 ; (like mod_rewrite in apache), if the rewrite of the url corresponds to a simple url, and if 58 ; you use the significant engine. If you use the simple url engine, you can set to off. 57 59 enableParser = on 58 60 59 61 multiview = off 60 62 61 ; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour accéder à index.php etc.) 62 ; peut être égale à "/" si vous spécifiez www comme étant le documentRoot de votre site au niveau du serveur 63 basePath = "/testapp/www/" 63 ; basePath corresponds to the path to the base directory of your application. 64 ; so if the url to access to your application is http://foo.com/aaa/bbb/www/index.php, you should 65 ; set basePath = "/aaa/bbb/www/". 66 ; if it is http://foo.com/index.php, set basePath="/" 67 ; Jelix can guess the basePath, so you can keep basePath empty. But in the case where there are some 68 ; entry points which are not in the same directory (ex: you have two entry point : http://foo.com/aaa/index.php 69 ; and http://foo.com/aaa/bbb/other.php ), you MUST set the basePath (ex here, the higher entry point is index.php so 70 ; : basePath="/aaa/" ) 71 basePath = "" 72 64 73 65 74 defaultEntrypoint= index
