Changeset 75

Show
Ignore:
Timestamp:
02/05/06 11:28:20 (3 years ago)
Author:
laurentj
Message:

changement de certains noms de param de config pour garder une coherence dans le nommage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix-scripts/templates/config.classic.ini.php.tpl

    r68 r75  
    4444 
    4545[compilation] 
    46 check_cache_filetime  = on 
     46checkCacheFiletime  = on 
    4747force  = off 
    4848 
     
    5252 
    5353; active l'analyse d'url (mettre �ff si vous utilisez le mod_rewrite d'apache) 
    54 enable_parser = on 
     54enableParser = on 
    5555 
    56 multiview_on = off 
     56multiview = off 
    5757 
    5858; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour acc�r �ndex.php etc.) 
    5959; peut �e �le �/" si vous sp�fiez www comme �nt le documentRoot de votre site au niveau du serveur 
    60 basepath = "/{$appname}/www" 
     60basePath = "/{$appname}/www" 
    6161 
    62 default_entrypoint= index 
     62defaultEntrypoint= index 
    6363 
    64 entrypoint_extension= .php 
     64entrypointExtension= .php 
    6565 
    66 notfound_act = "jelix~notfound" 
     66notfoundAct = "jelix~notfound" 
    6767 
    6868;indique si vous utilisez IIS comme serveur 
    69 use_IIS = off 
     69useIIS = off 
    7070 
    7171;indique le param�e dans $_GET o� indiqu�e path_info 
    72 IIS_path_key = __JELIX_URL__ 
     72IISPathKey = __JELIX_URL__ 
    7373 
    74 ;indique si il faut stripslash�e path_info r�p� par le biais de url_IIS_path_key 
    75 IIS_stripslashes_path_key = on 
     74;indique si il faut stripslash�e path_info r�p� par le biais de IISPathKey 
     75IISStripslashes_path_key = on 
    7676 
    7777 
  • trunk/lib/jelix/core/jConfig.class.php

    r61 r75  
    6868        if(!file_exists($file)){ 
    6969            $compil=true; 
    70         }else if($config->compilation['check_cache_filetime']){ 
     70        }else if($config->compilation['checkCacheFiletime']){ 
    7171            $t = filemtime($file); 
    7272            if(filemtime(JELIX_APP_CONFIG_PATH.$configFile)>$t){ 
  • trunk/lib/jelix/core/jDefaultConfig.lib.php

    r71 r75  
    5858  'compilation' => 
    5959  array ( 
    60     'check_cache_filetime' => '1', 
     60    'checkCacheFiletime' => '1', 
    6161    'force' => '' 
    6262  ), 
    6363  'urlengine' => 
    6464  array ( 
    65     'use_IIS' => '', 
    66     'IIS_path_key' => '\'__JELIX_URL__\'', 
    67     'IIS_stripslashes_path_key' => '1', 
    68     'default_entrypoint' => 'index', 
    69     'entrypoint_extension' => '.php', 
     65    'useIIS' => '', 
     66    'IISPathKey' => '\'__JELIX_URL__\'', 
     67    'IISStripslashesPathKey' => '1', 
     68    'defaultEntrypoint' => 'index', 
     69    'entrypointExtension' => '.php', 
    7070    'engine' => 'simple', 
    71     'basepath'=>'', 
    72     'enable_parser' => '1', 
    73     'multiview_on' => '', 
    74     'notfound_act' => 'jelix~notfound' 
     71    'basePath'=>'', 
     72    'enableParser' => '1', 
     73    'multiview' => '', 
     74    'notfoundAct' => 'jelix~notfound' 
    7575  ), 
    7676  'simple_urlengine_entrypoints' => 
  • trunk/lib/jelix/core/jIncluder.class.php

    r54 r75  
    7070        } 
    7171 
    72         if($gJConfig->compilation['check_cache_filetime'] && !$mustCompile){ 
     72        if($gJConfig->compilation['checkCacheFiletime'] && !$mustCompile){ 
    7373            if( filemtime($sourcefile) > filemtime($cachefile)){ 
    7474                $mustCompile = true; 
     
    110110 
    111111        $mustCompile = $gJConfig->compilation['force'] || !file_exists($cachefile); 
    112         $checkCompile = $gJConfig->compilation['check_cache_filetime']; 
     112        $checkCompile = $gJConfig->compilation['checkCacheFiletime']; 
    113113 
    114114        if(!$mustCompile && $checkCompile){ 
  • trunk/lib/jelix/core/jLocale.class.php

    r24 r75  
    7878               $okcompile = false; 
    7979            }else{ 
    80                 if ($gJConfig->compilation['check_cache_filetime']){ 
     80                if ($gJConfig->compilation['checkCacheFiletime']){ 
    8181                    if (is_readable ($source) && filemtime($source) > filemtime($cache)){ 
    8282                        $okcompile = false; 
  • trunk/lib/jelix/core/jRequest.class.php

    r21 r75  
    5757            } 
    5858        }else{ 
    59             if($gJConfig->urlengine['use_IIS'] && isset ($_GET[$gJConfig->urlengine['url_IIS_path_key']])){ 
    60                 $pathinfo = $_GET[$gJConfig->urlengine['url_IIS_path_key']]; 
    61                 $pathinfo = $gJConfig->urlengine['IIS_stripslashes_path_key'] === true ? stripslashes($pathinfo) : $pathinfo; 
     59            if($gJConfig->urlengine['useIIS'] && isset ($_GET[$gJConfig->urlengine['IISPathKey']])){ 
     60                $pathinfo = $_GET[$gJConfig->urlengine['IISPathKey']]; 
     61                $pathinfo = $gJConfig->urlengine['IISStripslashesPathKey'] === true ? stripslashes($pathinfo) : $pathinfo; 
    6262            }else{ 
    6363                //if($_SERVER['PHP_SELF']!= $_SERVER['SCRIPT_NAME']){ 
  • trunk/lib/jelix/core/url/jUrlEngine.significant.class.php

    r73 r75  
    6060      $url = new jUrl($scriptNamePath, $params, $pathinfo); 
    6161 
    62       if ($gJConfig->urlengine['enable_parser']){ 
     62      if ($gJConfig->urlengine['enableParser']){ 
    6363         $sel = new jSelectorUrlCfgSig('urls.xml'); 
    6464         jIncluder::inc($sel); 
    65          $basepath = $GLOBALS['gJConfig']->urlengine['basepath']; 
     65         $basepath = $GLOBALS['gJConfig']->urlengine['basePath']; 
    6666         if(strpos($scriptNamePath, $basepath) === 0){ 
    6767            $snp = substr($scriptNamePath,strlen($basepath)); 
     
    6969            $snp = $scriptNamePath; 
    7070         } 
    71          $pos = strrpos($snp,$gJConfig->urlengine['entrypoint_extension']); 
     71         $pos = strrpos($snp,$gJConfig->urlengine['entrypointExtension']); 
    7272         if($pos !== false){ 
    7373            $snp = substr($snp,0,$pos); 
     
    9393      global $gJConfig; 
    9494      /*$script = $url->scriptName; 
    95       if(strpos($script, $gJConfig->urlengine['entrypoint_extension']) !== false){ 
    96          $script=substr($script,0,- (strlen($gJConfig->urlengine['entrypoint_extension']))); 
     95      if(strpos($script, $gJConfig->urlengine['entrypointExtension']) !== false){ 
     96         $script=substr($script,0,- (strlen($gJConfig->urlengine['entrypointExtension']))); 
    9797      }*/ 
    9898      if(substr($url->pathInfo,-1) == '/' && $url->pathInfo != '/'){ 
     
    164164      if(!$foundurl && !$isDefault){ 
    165165         $url->pathInfo=''; 
    166          $url->params = $url->getAction($gJConfig->urlengine['notfound_act']); 
     166         $url->params = $url->getAction($gJConfig->urlengine['notfoundAct']); 
    167167         $foundurl = true; 
    168168      } 
     
    227227 
    228228         $url->scriptName = $urlinfo[1]; 
    229          if(!$GLOBALS['gJConfig']->urlengine['multiview_on']){ 
    230             $url->scriptName.=$GLOBALS['gJConfig']->urlengine['entrypoint_extension']; 
     229         if(!$GLOBALS['gJConfig']->urlengine['multiview']){ 
     230            $url->scriptName.=$GLOBALS['gJConfig']->urlengine['entrypointExtension']; 
    231231         } 
    232232         // pour certains types de requete, les param�es ne sont pas dans l'url 
  • trunk/lib/jelix/core/url/jUrlEngine.simple.class.php

    r71 r75  
    3737        global $gJConfig; 
    3838 
    39         $script = $gJConfig->urlengine['default_entrypoint']; 
     39        $script = $gJConfig->urlengine['defaultEntrypoint']; 
    4040 
    4141        if(count($gJConfig->simple_urlengine_entrypoints)){ 
     
    6363           } 
    6464        } 
    65         if(!$gJConfig->urlengine['multiview_on']){ 
    66             $script.=$gJConfig->urlengine['entrypoint_extension']; 
     65        if(!$gJConfig->urlengine['multiview']){ 
     66            $script.=$gJConfig->urlengine['entrypointExtension']; 
    6767        } 
    6868        return $script; 
  • trunk/myapp/var/config/config.classic.ini.php.dist

    r69 r75  
    4444 
    4545[compilation] 
    46 check_cache_filetime  = on 
     46checkCacheFiletime  = on 
    4747force  = off 
    4848 
     
    5252 
    5353; active l'analyse d'url (mettre �ff si vous utilisez le mod_rewrite d'apache) 
    54 enable_parser = on 
     54enableParser = on 
    5555 
    56 multiview_on = off 
     56multiview = off 
    5757 
    5858; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour acc�r �ndex.php etc.) 
    5959; peut �e �le �/" si vous sp�fiez www comme �nt le documentRoot de votre site au niveau du serveur 
    60 basepath = "/myapp/www/" 
     60basePath = "/myapp/www/" 
    6161 
    62 default_entrypoint= index 
     62defaultEntrypoint= index 
    6363 
    64 entrypoint_extension= .php 
     64entrypointExtension= .php 
    6565 
    66 notfound_act = "jelix~notfound" 
     66notfoundAct = "jelix~notfound" 
    6767 
    6868;indique si vous utilisez IIS comme serveur 
    69 use_IIS = off 
     69useIIS = off 
    7070 
    7171;indique le param�e dans $_GET o� indiqu�e path_info 
    72 IIS_path_key = __JELIX_URL__ 
     72IISPathKey = __JELIX_URL__ 
    7373 
    74 ;indique si il faut stripslash�e path_info r�p� par le biais de url_IIS_path_key 
    75 IIS_stripslashes_path_key = on 
     74;indique si il faut stripslash�e path_info r�p� par le biais de IISPathKey 
     75IISStripslashesPathKey = on 
    7676 
    7777 
  • trunk/testapp/modules/unittest/classes/utcreateurls.class.php

    r71 r75  
    4848       $gJConfig->urlengine = array( 
    4949         'engine'=>'simple', 
    50          'enable_parser'=>true, 
    51          'multiview_on'=>false, 
    52          'basepath'=>'/', 
    53          'default_entrypoint'=>'index', 
    54          'entrypoint_extension'=>'.php', 
    55          'notfound_act'=>'jelix~notfound' 
     50         'enableParser'=>true, 
     51         'multiview'=>false, 
     52         'basePath'=>'/', 
     53         'defaultEntrypoint'=>'index', 
     54         'entrypointExtension'=>'.php', 
     55         'notfoundAct'=>'jelix~notfound' 
    5656       ); 
    5757      /* $gJConfig->simple_urlengine_entrypoints = array( 
     
    9090 
    9191      $this->sendMessage("simple, multiview = true"); 
    92       $gJConfig->urlengine['multiview_on']=true; 
     92      $gJConfig->urlengine['multiview']=true; 
    9393      $trueResult=array( 
    9494          "index?mois=10&annee=2005&id=35&module=unittest&action=url1", 
     
    118118       $gJConfig->urlengine = array( 
    119119         'engine'=>'significant', 
    120          'enable_parser'=>true, 
    121          'multiview_on'=>false, 
    122          'basepath'=>'/', 
    123          'default_entrypoint'=>'index', 
    124          'entrypoint_extension'=>'.php', 
    125          'notfound_act'=>'jelix~notfound' 
     120         'enableParser'=>true, 
     121         'multiview'=>false, 
     122         'basePath'=>'/', 
     123         'defaultEntrypoint'=>'index', 
     124         'entrypointExtension'=>'.php', 
     125         'notfoundAct'=>'jelix~notfound' 
    126126       ); 
    127127 
     
    157157 
    158158      $this->sendMessage("significant, multiview = true"); 
    159       $gJConfig->urlengine['multiview_on']=true; 
     159      $gJConfig->urlengine['multiview']=true; 
    160160      $trueResult=array( 
    161161          "index/test/news/2005/10/35", 
     
    174174    } 
    175175} 
    176 /*      // significant 
    177          // parse 
    178             $GLOBALS['gJConfig']->urlengine['enable_parser'] 
    179             jSelectorUrlCfgSig 
    180             $GLOBALS['gJConfig']->urlengine['basepath'] 
    181             $this->dataCreateUrl = & $GLOBALS['SIGNIFICANT_CREATEURL']; 
    182             $this->dataParseUrl = & $GLOBALS['SIGNIFICANT_PARSEURL']; 
    183             $gJConfig->urlengine['notfound_act'] 
    184          //create 
    185             jContext::get() 
    186             $this->dataCreateUrl = & $GLOBALS['SIGNIFICANT_CREATEURL']; 
    187             $this->dataParseUrl = & $GLOBALS['SIGNIFICANT_PARSEURL']; 
    188             $gJConfig->urlengine['multiview_on'] 
    189             $gJConfig->urlengine['entrypoint_extension']; 
    190 */ 
    191176?> 
  • trunk/testapp/modules/unittest/classes/utparseurls.class.php

    r73 r75  
    4747       $gJConfig->urlengine = array( 
    4848         'engine'=>'significant', 
    49          'enable_parser'=>true, 
    50          'multiview_on'=>false, 
    51          'basepath'=>'/', 
    52          'default_entrypoint'=>'index', 
    53          'entrypoint_extension'=>'.php', 
    54          'notfound_act'=>'jelix~notfound' 
     49         'enableParser'=>true, 
     50         'multiview'=>false, 
     51         'basePath'=>'/', 
     52         'defaultEntrypoint'=>'index', 
     53         'entrypointExtension'=>'.php', 
     54         'notfoundAct'=>'jelix~notfound' 
    5555       ); 
    5656 
     
    9090 
    9191      $this->sendMessage("significant, multiview = true"); 
    92       $gJConfig->urlengine['multiview_on']=true; 
     92      $gJConfig->urlengine['multiview']=true; 
    9393      $request=array( 
    9494          array("index","/test/news/2005/10/35",array()), 
  • trunk/testapp/var/config/config.classic.ini.php.dist

    r71 r75  
    4545 
    4646[compilation] 
    47 check_cache_filetime  = on 
     47checkCacheFiletime  = on 
    4848force  = off 
    4949 
     
    5353 
    5454; active l'analyse d'url (mettre �ff si vous utilisez le mod_rewrite d'apache) 
    55 enable_parser = on 
     55enableParser = on 
    5656 
    57 multiview_on = off 
     57multiview = off 
    5858 
    5959; chemin url jusqu'au repertoire www (celui que vous tapez dans le navigateur pour acc�r �ndex.php etc.) 
    6060; peut �e �le �/" si vous sp�fiez www comme �nt le documentRoot de votre site au niveau du serveur 
    61 basepath = "/testapp/www/" 
     61basePath = "/testapp/www/" 
    6262 
    63 default_entrypoint= index 
     63defaultEntrypoint= index 
    6464 
    65 entrypoint_extension= .php 
     65entrypointExtension= .php 
    6666 
    67 notfound_act = "jelix~notfound" 
     67notfoundAct = "jelix~notfound" 
    6868 
    6969;indique si vous utilisez IIS comme serveur 
    70 use_IIS = off 
     70useIIS = off 
    7171 
    7272;indique le param�e dans $_GET o� indiqu�e path_info 
    73 IIS_path_key = __JELIX_URL__ 
     73IISPathKey = __JELIX_URL__ 
    7474 
    75 ;indique si il faut stripslash�e path_info r�p� par le biais de url_IIS_path_key 
    76 IIS_stripslashes_path_key = on 
     75;indique si il faut stripslash�e path_info r�p� par le biais de IISPathKey 
     76IISStripslashesPathKey = on 
    7777 
    7878 
Download in other formats: Unified Diff Zip Archive