Changeset 941
- Timestamp:
- 05/21/08 14:52:29 (7 months ago)
- Files:
-
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- branches/1.0.x/testapp/var/config/urls.xml (modified) (1 diff)
- branches/1.0.x/testapp/var/config/urls.xml (modified) (1 diff)
- branches/1.0.x/testapp/var/config/urls.xml (modified) (1 diff)
- branches/1.0.x/testapp/var/config/urls.xml (modified) (1 diff)
- trunk/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- trunk/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- trunk/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- trunk/lib/jelix/core/jUrl.class.php (modified) (1 diff)
- trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- trunk/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- trunk/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- trunk/lib/jelix/plugins/urls/significant/significant.urls.php (modified) (3 diffs)
- trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- trunk/testapp/modules/jelix_tests/tests/core.urls_generation.html.php (modified) (3 diffs)
- trunk/testapp/var/config/urls.xml (modified) (1 diff)
- trunk/testapp/var/config/urls.xml (modified) (1 diff)
- trunk/testapp/var/config/urls.xml (modified) (1 diff)
- trunk/testapp/var/config/urls.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/lib/jelix/core/jUrl.class.php
r716 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/core/jUrl.class.php
r716 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/core/jUrl.class.php
r716 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/core/jUrl.class.php
r716 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ branches/1.0.x/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php
r728 r941 326 326 /* 327 327 urlinfo = 328 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')328 array(0,'entrypoint', https true/false,'selecteur handler') 329 329 ou 330 array(1,'entrypoint', https true/false, entrypoint true/false330 array(1,'entrypoint', https true/false, 331 331 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 332 332 array(true, false..), // valeur des escapes … … 335 335 ) 336 336 ou 337 array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request"338 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"337 array(2,'entrypoint', https true/false,); pour les clés du type "@request" 338 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 339 339 array(4, array(1,..), array(1,..)...); 340 340 */ … … 398 398 $url->delParam($param); 399 399 } 400 if($urlinfo[1])400 //if($urlinfo[1]) 401 401 $url->pathInfo = $result; 402 else403 $url->pathInfo = substr($result,1);402 //else 403 //$url->pathInfo = substr($result,1); 404 404 if($urlinfo[6]) 405 405 $url->setParam('action',$action); branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php
r728 r941 326 326 /* 327 327 urlinfo = 328 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')328 array(0,'entrypoint', https true/false,'selecteur handler') 329 329 ou 330 array(1,'entrypoint', https true/false, entrypoint true/false330 array(1,'entrypoint', https true/false, 331 331 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 332 332 array(true, false..), // valeur des escapes … … 335 335 ) 336 336 ou 337 array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request"338 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"337 array(2,'entrypoint', https true/false,); pour les clés du type "@request" 338 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 339 339 array(4, array(1,..), array(1,..)...); 340 340 */ … … 398 398 $url->delParam($param); 399 399 } 400 if($urlinfo[1])400 //if($urlinfo[1]) 401 401 $url->pathInfo = $result; 402 else403 $url->pathInfo = substr($result,1);402 //else 403 //$url->pathInfo = substr($result,1); 404 404 if($urlinfo[6]) 405 405 $url->setParam('action',$action); branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php
r728 r941 326 326 /* 327 327 urlinfo = 328 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')328 array(0,'entrypoint', https true/false,'selecteur handler') 329 329 ou 330 array(1,'entrypoint', https true/false, entrypoint true/false330 array(1,'entrypoint', https true/false, 331 331 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 332 332 array(true, false..), // valeur des escapes … … 335 335 ) 336 336 ou 337 array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request"338 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"337 array(2,'entrypoint', https true/false,); pour les clés du type "@request" 338 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 339 339 array(4, array(1,..), array(1,..)...); 340 340 */ … … 398 398 $url->delParam($param); 399 399 } 400 if($urlinfo[1])400 //if($urlinfo[1]) 401 401 $url->pathInfo = $result; 402 else403 $url->pathInfo = substr($result,1);402 //else 403 //$url->pathInfo = substr($result,1); 404 404 if($urlinfo[6]) 405 405 $url->setParam('action',$action); branches/1.0.x/lib/jelix/plugins/urls/significant/significant.urls.php
r728 r941 326 326 /* 327 327 urlinfo = 328 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')328 array(0,'entrypoint', https true/false,'selecteur handler') 329 329 ou 330 array(1,'entrypoint', https true/false, entrypoint true/false330 array(1,'entrypoint', https true/false, 331 331 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 332 332 array(true, false..), // valeur des escapes … … 335 335 ) 336 336 ou 337 array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request"338 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"337 array(2,'entrypoint', https true/false,); pour les clés du type "@request" 338 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 339 339 array(4, array(1,..), array(1,..)...); 340 340 */ … … 398 398 $url->delParam($param); 399 399 } 400 if($urlinfo[1])400 //if($urlinfo[1]) 401 401 $url->pathInfo = $result; 402 else403 $url->pathInfo = substr($result,1);402 //else 403 //$url->pathInfo = substr($result,1); 404 404 if($urlinfo[6]) 405 405 $url->setParam('action',$action); branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php
r716 r941 235 235 $urlList[]= array('jelix_tests~default:hello3', array()); 236 236 $urlList[]= array('jelix_tests~hello3', array()); 237 $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier', 'second'=>'deuxieme')); 237 238 238 239 $trueResult=array( … … 258 259 "/index.php/hello3", 259 260 "/index.php/hello3", 261 "/withhandler/premier/deuxieme", 260 262 ); 261 263 … … 287 289 "/index/hello3", 288 290 "/index/hello3", 291 "/withhandler/premier/deuxieme", 289 292 ); 290 293 $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php
r716 r941 235 235 $urlList[]= array('jelix_tests~default:hello3', array()); 236 236 $urlList[]= array('jelix_tests~hello3', array()); 237 $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier', 'second'=>'deuxieme')); 237 238 238 239 $trueResult=array( … … 258 259 "/index.php/hello3", 259 260 "/index.php/hello3", 261 "/withhandler/premier/deuxieme", 260 262 ); 261 263 … … 287 289 "/index/hello3", 288 290 "/index/hello3", 291 "/withhandler/premier/deuxieme", 289 292 ); 290 293 $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php
r716 r941 235 235 $urlList[]= array('jelix_tests~default:hello3', array()); 236 236 $urlList[]= array('jelix_tests~hello3', array()); 237 $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier', 'second'=>'deuxieme')); 237 238 238 239 $trueResult=array( … … 258 259 "/index.php/hello3", 259 260 "/index.php/hello3", 261 "/withhandler/premier/deuxieme", 260 262 ); 261 263 … … 287 289 "/index/hello3", 288 290 "/index/hello3", 291 "/withhandler/premier/deuxieme", 289 292 ); 290 293 $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; branches/1.0.x/testapp/modules/jelix_tests/tests/core.urls_generation.html.php
r716 r941 235 235 $urlList[]= array('jelix_tests~default:hello3', array()); 236 236 $urlList[]= array('jelix_tests~hello3', array()); 237 $urlList[]= array('jelix_tests~urlsig:bug599', array('first'=>'premier', 'second'=>'deuxieme')); 237 238 238 239 $trueResult=array( … … 258 259 "/index.php/hello3", 259 260 "/index.php/hello3", 261 "/withhandler/premier/deuxieme", 260 262 ); 261 263 … … 287 289 "/index/hello3", 288 290 "/index/hello3", 291 "/withhandler/premier/deuxieme", 289 292 ); 290 293 $trueResult[11]='https://'.$_SERVER['HTTP_HOST'].$trueResult[11]; branches/1.0.x/testapp/var/config/urls.xml
r691 r941 60 60 <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 61 61 </classicentrypoint> 62 <classicentrypoint name="invisible" noentrypoint="true"> 63 <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 64 </classicentrypoint> 62 65 63 66 <classicentrypoint name="news"> branches/1.0.x/testapp/var/config/urls.xml
r691 r941 60 60 <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 61 61 </classicentrypoint> 62 <classicentrypoint name="invisible" noentrypoint="true"> 63 <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 64 </classicentrypoint> 62 65 63 66 <classicentrypoint name="news"> branches/1.0.x/testapp/var/config/urls.xml
r691 r941 60 60 <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 61 61 </classicentrypoint> 62 <classicentrypoint name="invisible" noentrypoint="true"> 63 <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 64 </classicentrypoint> 62 65 63 66 <classicentrypoint name="news"> branches/1.0.x/testapp/var/config/urls.xml
r691 r941 60 60 <url handler="urlsig" module="jelix_tests" action="urlsig:url4" /> 61 61 </classicentrypoint> 62 <classicentrypoint name="invisible" noentrypoint="true"> 63 <url handler="urlsig" module="jelix_tests" action="urlsig:bug599"/> 64 </classicentrypoint> 62 65 63 66 <classicentrypoint name="news"> trunk/lib/jelix/core/jUrl.class.php
r839 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/core/jUrl.class.php
r839 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/core/jUrl.class.php
r839 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/core/jUrl.class.php
r839 r941 206 206 */ 207 207 public function toString ($forxml = false){ 208 $url = $this->scriptName.$this->pathInfo; 208 $url = $this->scriptName; 209 if(substr($this->scriptName,-1) == '/') 210 $url.=ltrim($this->pathInfo,'/'); 211 else 212 $url.= $this->pathInfo; 213 209 214 if (count ($this->params)>0){ 210 215 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ trunk/lib/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
r693 r941 63 63 $CREATE_URL = array( 64 64 'news~show@classic' => 65 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')65 array(0,'entrypoint', https true/false, 'selecteur handler') 66 66 ou 67 array(1,'entrypoint', https true/false, entrypoint true/false,67 array(1,'entrypoint', https true/false, 68 68 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 69 69 array(true, false..), // valeur des escapes … … 77 77 78 78 ou 79 array(2,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "@request"80 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"79 array(2,'entrypoint', https true/false); pour les clés du type "@request" 80 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 81 81 82 82 */ trunk/lib/jelix/plugins/urls/significant/significant.urls.php
r839 r941 326 326 /* 327 327 urlinfo = 328 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')328 array(0,'entrypoint', https true/false,'selecteur handler') 329 329 ou 330 array(1,'entrypoint', https true/false, entrypoint true/false330 array(1,'entrypoint', https true/false, 331 331 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 332 332 array(true, false..), // valeur des escapes … … 335 335 ) 336 336 ou 337 array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request"338 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"337 array(2,'entrypoint', https true/false,); pour les clés du type "@request" 338 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 339 339 array(4, array(1,..), array(1,..)...); 340 340 */ … … 398 398 $url->delParam($param); 399 399 } 400 if($urlinfo[1])400 //if($urlinfo[1]) 401 401 $url->pathInfo = $result; 402 else403 $url->pathInfo = substr($result,1);402 //else 403 //$url->pathInfo = substr($result,1); 404 404 if($urlinfo[6]) 405 405 $url->setParam('action',$action); trunk/lib/jelix/plugins/urls/significant/significant.urls.php
r839 r941 326 326 /* 327 327 urlinfo = 328 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')328 array(0,'entrypoint', https true/false,'selecteur handler') 329 329 ou 330 array(1,'entrypoint', https true/false, entrypoint true/false330 array(1,'entrypoint', https true/false, 331 331 array('annee','mois','jour','id','titre'), // liste des paramètres de l'url à prendre en compte 332 332 array(true, false..), // valeur des escapes … … 335 335 ) 336 336 ou 337 array(2,'entrypoint', https true/false, entrypoint true/false); pour les clés du type "@request"338 array(3,'entrypoint', https true/false , entrypoint true/false); pour les clés du type "module~@request"337 array(2,'entrypoint', https true/false,); pour les clés du type "@request" 338 array(3,'entrypoint', https true/false); pour les clés du type "module~@request" 339 339 array(4, array(1,..), array(1,..)...); 340 340 */ … … 398 398 $url->delParam($param); 399 399 } 400 if($urlinfo[1])400 //if($urlinfo[1]) 401 401 $url->pathInfo = $result; 402 else403 $url->pathInfo = substr($result,1);402 //else 403 //$url->pathInfo = substr($result,1); 404 404 if($urlinfo[6]) 405 405 $url->setParam('action',$action); trunk/lib/jelix/plugins/urls/significant/significant.urls.php
r839 r941 326 326 /* 327 327 urlinfo = 328 array(0,'entrypoint', https true/false, entrypoint true/false,'selecteur handler')328 array(0,'entrypoint', https true/false,'selecteur handler') 329 329 ou 330 array(1,'entrypoint', https true/false, entrypoint true/false330 array(1,'entrypoint', https true/false, 331 331
