Changeset 426
- Timestamp:
- 04/27/07 11:14:58 (2 years ago)
- Files:
-
- trunk/lib/jelix/core/jCoordinator.class.php (modified) (3 diffs)
- trunk/lib/jelix/core/jRequest.class.php (modified) (2 diffs)
- trunk/lib/jelix/core/url/jUrlEngine.simple.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix/core/jCoordinator.class.php
r386 r426 13 13 * the main class of the jelix core 14 14 * 15 * this is the "chief orchestra" of the framework. It 's goal is15 * this is the "chief orchestra" of the framework. Its goal is 16 16 * to load the configuration, to get the request parameters 17 17 * used to instancie the correspondant controllers and to run the right method. … … 111 111 if(file_exists(JELIX_APP_CONFIG_PATH.$conff)){ 112 112 if( false === ($conf = @parse_ini_file(JELIX_APP_CONFIG_PATH.$conff,true))) 113 die(" Erreur dans le fichier de configuration duplugin $name ($conff)!");113 die("Jelix Error: Error in the configuration file of plugin $name ($conff)!"); 114 114 }else{ 115 115 $conf = array(); 116 116 } 117 include( $gJConfig->_pluginsPathList[$name].$name. ".plugin.php");117 include( $gJConfig->_pluginsPathList[$name].$name.'.plugin.php'); 118 118 $class= $name.'Plugin'; 119 119 $this->plugins[strtolower($name)] = new $class($conf); … … 289 289 * @return jIPlugin 290 290 */ 291 function getPlugin ($pluginName, $required = true){291 public function getPlugin ($pluginName, $required = true){ 292 292 $pluginName = strtolower ($pluginName); 293 293 if (isset ($this->plugins[$pluginName])){ trunk/lib/jelix/core/jRequest.class.php
r365 r426 15 15 * process depends on the type of request (ex: xmlrpc..) 16 16 * 17 18 17 * @package jelix 19 18 * @subpackage core … … 69 68 70 69 /** 71 * analyse the http request and set the params property70 * analyse the http request and sets the params property 72 71 */ 73 72 abstract protected function _initParams(); trunk/lib/jelix/core/url/jUrlEngine.simple.class.php
r386 r426 75 75 76 76 $usehttps= false; 77 if($action && $action !='' && isset($urlhttps[$module.'~'.$action.'@'.$requestType])){ 77 if($action && isset($urlhttps[$module.'~'.$action.'@'.$requestType])){ 78 $usehttps = true; 79 }elseif($module && isset($urlhttps[$module.'~*@'.$requestType])){ 80 $usehttps = true; 81 }elseif(isset($urlhttps['@'.$requestType])){ 78 82 $usehttps = true; 79 83 } 80 if($module && $module !='' && !$usehttps && isset($urlhttps[$module.'~*@'.$requestType])){81 $usehttps = true;82 }83 if(!$usehttps && isset($urlhttps['@'.$requestType])){84 $usehttps = true;85 }86 87 84 88 85 if(count($gJConfig->simple_urlengine_entrypoints)){ … … 96 93 } 97 94 } 98 $found = false; 99 if($action && $action !='' && isset($urlspe[$module.'~'.$action.'@'.$requestType])){ 100 $script = $urlspe[$module.'~'.$action.'@'.$requestType]; 101 $found = true; 102 } 103 if($module && $module !='' && !$found && isset($urlspe[$module.'~*@'.$requestType])){ 104 $script = $urlspe[$module.'~*@'.$requestType]; 105 $found = true; 106 } 107 if(!$found && isset($urlspe['@'.$requestType])){ 108 $script = $urlspe['@'.$requestType]; 95 if($action && isset($urlspe[$s1 = $module.'~'.$action.'@'.$requestType])){ 96 $script = $urlspe[$s1]; 97 }elseif($module && isset($urlspe[$s2 = $module.'~*@'.$requestType])){ 98 $script = $urlspe[$s2]; 99 }elseif( isset($urlspe[$s3 = '@'.$requestType])){ 100 $script = $urlspe[$s3]; 109 101 } 110 102 }
