Annotation of /mambo/branches/4.6/includes/sef.php
Parent Directory
|
Revision Log
Revision 948 - (view) (download)
| 1 : | mambo | 117 | <?php |
| 2 : | /** | ||
| 3 : | oziris | 332 | * @package Mambo Open Source |
| 4 : | cauld | 948 | * @copyright Refer to copyright.php |
| 5 : | mambo | 117 | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
| 6 : | oziris | 332 | * |
| 7 : | * Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure | ||
| 8 : | * that Mambo remained free Open Source software owned and managed by the community. | ||
| 9 : | mambo | 117 | * Mambo is Free Software |
| 10 : | counterpoi | 319 | t */ |
| 11 : | mambo | 117 | |
| 12 : | class mosSEF { | ||
| 13 : | |||
| 14 : | counterpoi | 222 | t var $prefix = ''; |
| 15 : | mambo | 117 | var $custom_code = array(); |
| 16 : | var $custom_name = array(); | ||
| 17 : | var $custom_PHP = array(); | ||
| 18 : | var $custom_short = array(); | ||
| 19 : | var $sef_content_task = array(); | ||
| 20 : | var $sef_name_chars = array(); | ||
| 21 : | var $sef_translate_chars = array(); | ||
| 22 : | counterpoi | 319 | t var $sef_name_string = ''; |
| 23 : | t var $sef_translate_string = ''; | ||
| 24 : | mambo | 117 | var $content_data = null; |
| 25 : | var $content_items = array(); | ||
| 26 : | var $content_sections = array(); | ||
| 27 : | var $content_categories = array(); | ||
| 28 : | var $SEF_SPACE; | ||
| 29 : | |||
| 30 : | function mosSEF () { | ||
| 31 : | /******************************************************************************* | ||
| 32 : | ** The following are parameters for the ReMOSef Search Engine | ||
| 33 : | ** Optimisation component. $this->SEF_SPACE should be set to the | ||
| 34 : | ** character that is to replace blanks in names that form the URL. | ||
| 35 : | ** You can vary this, although the only sensible choices seem to be | ||
| 36 : | ** underscore or hyphen (_ or -). | ||
| 37 : | ** | ||
| 38 : | ** The arrays $this->custom_code and $this->custom_name must be kept exactly | ||
| 39 : | ** in step with each other. $this->custom_code is a list of the components | ||
| 40 : | ** that are to be handled by ReMOSef. | ||
| 41 : | ** | ||
| 42 : | ** The array $this->custom_name is the alternative name that will be used | ||
| 43 : | ** in the optimised URL to identify the component and can be whatever | ||
| 44 : | ** you please so long as it is unique and legal for a URL. Apart from | ||
| 45 : | ** using the custom name for the component, ReMOSef will do no further | ||
| 46 : | ** translation of the URL than is done by the standard Mambo SEF - UNLESS | ||
| 47 : | ** there is a sef_ext.php file installed for that component. The | ||
| 48 : | ** exception to this is ReMOSitory - the optimisation code for Remository | ||
| 49 : | ** is integrated in ReMOSef. For other components, if a sef_ext.php is | ||
| 50 : | ** present, it will be invoked by ReMOSef. | ||
| 51 : | ** | ||
| 52 : | ** The array $remosef_content_task is capable of translating the tasks | ||
| 53 : | ** understood by the Mambo content component. Please DO NOT CHANGE what | ||
| 54 : | ** is to the left of the equals sign. When putting different values on | ||
| 55 : | ** the right hand side, remember that they must all be different, and must | ||
| 56 : | ** also be different from any of the custom names used for components. | ||
| 57 : | ** Without that, Remosef cannot figure out what a SEF URL means and will | ||
| 58 : | ** give unpredictable results. | ||
| 59 : | counterpoi | 237 | t ** |
| 60 : | t ** Note that the names in custom_name must not be allowed to clash with | ||
| 61 : | t ** the names used as tasks by the content component, in their | ||
| 62 : | t ** translated form - see below. | ||
| 63 : | mambo | 117 | *******************************************************************************/ |
| 64 : | $this->SEF_SPACE = "_"; // divide words with underscores | ||
| 65 : | // can be changed to a hyphen "-" | ||
| 66 : | counterpoi | 222 | t $this->custom_code = array('com_frontpage','com_contact'); |
| 67 : | t $this->custom_name = array('Frontpage','Contact_Us'); | ||
| 68 : | mambo | 117 | /******************************************************************************* |
| 69 : | ** The following are the parameters for the optional content specific | ||
| 70 : | counterpoi | 237 | t ** URL optimisation. They are not used within the standard SEF processing |
| 71 : | t ** unless you add in a sef_ext.php that is integrated with the Mambo SEF. | ||
| 72 : | mambo | 117 | ** |
| 73 : | ** The following two lines define the translations that SEF will perform on | ||
| 74 : | ** names of sections and categories when translating them for inclusion in a URL. | ||
| 75 : | ** Each item in $this->sef_name_chars is translated into the corresponding | ||
| 76 : | ** element of $this->sef_translate_chars. | ||
| 77 : | ** | ||
| 78 : | ** NOTE it is important that space be the last translate character, since the | ||
| 79 : | ** characters are processed in the order in which they appear. Since earlier | ||
| 80 : | ** translates may create new spaces, it is vital that the space translation is | ||
| 81 : | ** done last. | ||
| 82 : | ** | ||
| 83 : | ** You can extend these arrays as you wish, although it is obviously important | ||
| 84 : | ** to make sure that the items of one match the items of the other exactly. | ||
| 85 : | *******************************************************************************/ | ||
| 86 : | counterpoi | 319 | t $this->sef_name_chars = array('?', '&', '/', ' '); |
| 87 : | t $this->sef_translate_chars = array('', 'and', ' or ', $this->SEF_SPACE); | ||
| 88 : | cauld | 941 | $this->sef_name_string = '�\''; |
| 89 : | counterpoi | 319 | t $this->sef_translate_string = '--'; |
| 90 : | mambo | 117 | |
| 91 : | counterpoi | 237 | t /************** DO NOT MAKE CHANGES IN THE FOLLOWING LINES EXCEPT AT YOUR OWN RISK! ********************/ |
| 92 : | mambo | 117 | |
| 93 : | counterpoi | 222 | t if (mamboCore::is_set('mosConfig_sef_prefix')) $this->prefix = mamboCore::get('mosConfig_sef_prefix'); |
| 94 : | t else $this->prefix = 'mos'; | ||
| 95 : | t if ($this->prefix == 'content' OR $this->prefix == 'component') $this->prefix = 'mos'; | ||
| 96 : | mambo | 117 | foreach ($this->custom_code as $code) { |
| 97 : | $codefile = "components/$code/sef_ext.php"; | ||
| 98 : | if (file_exists($codefile)) { | ||
| 99 : | include ($codefile); | ||
| 100 : | $this->custom_PHP[] = true; | ||
| 101 : | } | ||
| 102 : | else $this->custom_PHP[] = false; | ||
| 103 : | $split = explode('_',$code); | ||
| 104 : | $this->custom_short[] = $split[1]; | ||
| 105 : | } | ||
| 106 : | |||
| 107 : | $this->sef_content_task['findkey'] = 'findkey'; | ||
| 108 : | $this->sef_content_task['view'] = 'view'; | ||
| 109 : | $this->sef_content_task['section'] = 'section'; | ||
| 110 : | $this->sef_content_task['category'] = 'category'; | ||
| 111 : | $this->sef_content_task['blogsection'] = 'blogsection'; | ||
| 112 : | $this->sef_content_task['blogcategorymulti'] = 'blogcategorymulti'; | ||
| 113 : | $this->sef_content_task['blogcategory'] = 'blogcategory'; | ||
| 114 : | $this->sef_content_task['archivesection'] = 'archivesection'; | ||
| 115 : | $this->sef_content_task['archivecategory'] = 'archivecategory'; | ||
| 116 : | $this->sef_content_task['save'] = 'save'; | ||
| 117 : | $this->sef_content_task['cancel'] = 'cancel'; | ||
| 118 : | $this->sef_content_task['emailform'] = 'emailform'; | ||
| 119 : | $this->sef_content_task['emailsend'] = 'emailsend'; | ||
| 120 : | $this->sef_content_task['vote'] = 'vote'; | ||
| 121 : | $this->sef_content_task['showblogsection'] = 'showblogsection'; | ||
| 122 : | |||
| 123 : | } | ||
| 124 : | |||
| 125 : | function &getInstance () { | ||
| 126 : | static $instance; | ||
| 127 : | if (!is_object($instance)) $instance = new mosSEF(); | ||
| 128 : | return $instance; | ||
| 129 : | } | ||
| 130 : | counterpoi | 319 | t |
| 131 : | t function nameForURL ($string) { | ||
| 132 : | cauld | 941 | $accented = "���������������������������������������������������������������������".$this->sef_name_string; |
| 133 : | counterpoi | 319 | t $nonaccent = "SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy".$this->sef_translate_string; |
| 134 : | t $string = strtr($string, $accented, $nonaccent); | ||
| 135 : | t foreach ($this->sef_name_chars as $i=>$char) $string = str_replace($char, $this->sef_translate_chars[$i], $string); | ||
| 136 : | t $string = urlencode($string); | ||
| 137 : | t return $string; | ||
| 138 : | t } | ||
| 139 : | t | ||
| 140 : | mambo | 117 | |
| 141 : | function sefRetrieval($register_globals){ | ||
| 142 : | |||
| 143 : | if (preg_match('/(\b)GLOBALS|_REQUEST|_SERVER|_ENV|_COOKIE|_GET|_POST|_FILES|_SESSION(\b)/i', $_SERVER['REQUEST_URI']) > 0) { | ||
| 144 : | die('Invalid Request'); | ||
| 145 : | } | ||
| 146 : | if (mamboCore::get('mosConfig_sef')) { | ||
| 147 : | counterpoi | 222 | t $subdir = mamboCore::get('subdirectory'); |
| 148 : | t $uri = substr($_SERVER['REQUEST_URI'], strlen($subdir)); | ||
| 149 : | t $url_array = explode('/', $uri); | ||
| 150 : | mambo | 117 | /** |
| 151 : | * Content | ||
| 152 : | * /$option/$task/$sectionid/$id/$Itemid/$limit/$limitstart | ||
| 153 : | */ | ||
| 154 : | neilt | 516 | if (!isset($url_array[2]) AND strpos($uri, '?')) return 0; |
| 155 : | elseif ($url_array[2] == 'syndstyle') { | ||
| 156 : | counterpoi | 269 | t array_splice($url_array, 2, 1); |
| 157 : | t $_REQUEST['syndstyle'] = $_GET['syndstyle'] = $syndstyle = 'yes'; | ||
| 158 : | t $QUERY_STRING = 'syndstyle=yes&'; | ||
| 159 : | t } | ||
| 160 : | t else $QUERY_STRING = ''; | ||
| 161 : | mambo | 117 | $foundit = false; |
| 162 : | if ($url_array[1] == 'content') { | ||
| 163 : | $foundit = true; | ||
| 164 : | $_REQUEST['option'] = $_GET['option'] = $option = 'com_content'; | ||
| 165 : | |||
| 166 : | // language hook for content | ||
| 167 : | $lang = ""; | ||
| 168 : | $parms = array(); | ||
| 169 : | foreach($url_array as $key=>$value) { | ||
| 170 : | if ( strcasecmp(substr($value,0,5),'lang,') == 0 ) { | ||
| 171 : | $parts = explode(",", $value); | ||
| 172 : | if (count($parts) > 1) { | ||
| 173 : | $lang = $_REQUEST['lang'] = $_GET['lang'] = $parts[1]; | ||
| 174 : | } | ||
| 175 : | } | ||
| 176 : | elseif ( $value != '' AND $key > 1 ) $parms[] = $value; | ||
| 177 : | } | ||
| 178 : | |||
| 179 : | // $option/$task/$sectionid/$id/$Itemid/$limit/$limitstart | ||
| 180 : | $task = array_search($parms[0], $this->sef_content_task); | ||
| 181 : | if ($task === false OR $task === null) return 1; | ||
| 182 : | $_REQUEST['task'] = $_GET['task'] = $task; | ||
| 183 : | counterpoi | 269 | t $QUERY_STRING .= "option=com_content&task=$task"; |
| 184 : | counterpoi | 237 | t if ($task == 'archivecategory') { |
| 185 : | t $_REQUEST['year'] = $_GET['year'] = $year = intval(@$parms[1]); | ||
| 186 : | t $_REQUEST['month'] = $_GET['month'] = $month = intval(@$parms[2]); | ||
| 187 : | t $_REQUEST['module'] = $_GET['module'] = $module = intval(@$parms[3]); | ||
| 188 : | t $QUERY_STRING .= "&year=$year&month=$month&module=$module"; | ||
| 189 : | mambo | 117 | } |
| 190 : | counterpoi | 237 | t else { |
| 191 : | t $num = count($parms); | ||
| 192 : | t for ($i = 1; $i <= $num-1; $i++) { | ||
| 193 : | t if (strcmp($parms[$i], (int)$parms[$i]) !== 0) return 1; | ||
| 194 : | t } | ||
| 195 : | t $i = 1; | ||
| 196 : | t if ($num == 6 OR $num == 4) { | ||
| 197 : | t $_REQUEST['sectionid'] = $_GET['sectionid'] = $sectionid = $parms[$i]; | ||
| 198 : | t $QUERY_STRING .= "§ionid=$sectionid"; | ||
| 199 : | t $i++; | ||
| 200 : | t } | ||
| 201 : | t if ($num > 1) { | ||
| 202 : | t $_REQUEST['id'] = $_GET['id'] = $id = $parms[$i]; | ||
| 203 : | t $QUERY_STRING .= "&id=$id"; | ||
| 204 : | t } | ||
| 205 : | t if ($num > 2) { | ||
| 206 : | t $_REQUEST['Itemid'] = $_GET['Itemid'] = $Itemid = $parms[$i+1]; | ||
| 207 : | t mamboCore::set('Itemid',$Itemid); | ||
| 208 : | t $QUERY_STRING .= "&Itemid=$Itemid"; | ||
| 209 : | t } | ||
| 210 : | t if ($num > 4) { | ||
| 211 : | t $_REQUEST['limit'] = $_GET['limit'] = $limit = $parms[$i+2]; | ||
| 212 : | t $_REQUEST['limitstart'] = $_GET['limitstart'] = $limitstart = $parms[$i+3]; | ||
| 213 : | t $QUERY_STRING .= "&limit=$limit&limitstart=$limitstart"; | ||
| 214 : | t } | ||
| 215 : | mambo | 117 | } |
| 216 : | |||
| 217 : | if ($lang!="") { | ||
| 218 : | $QUERY_STRING .= "&lang=$lang"; | ||
| 219 : | } | ||
| 220 : | } | ||
| 221 : | |||
| 222 : | /* | ||
| 223 : | Components | ||
| 224 : | http://www.domain.com/component/$name,$value | ||
| 225 : | */ | ||
| 226 : | elseif ($url_array[1] == 'component') { | ||
| 227 : | counterpoi | 269 | t $QUERY_STRING .= $this->default_revert('component'); |
| 228 : | counterpoi | 222 | t if ($QUERY_STRING) $foundit = true; |
| 229 : | mambo | 117 | } |
| 230 : | counterpoi | 222 | t elseif ($url_array[1] == $this->prefix) { |
| 231 : | counterpoi | 238 | t $menuhandler =& mosMenuHandler::getInstance(); |
| 232 : | mambo | 117 | foreach ($this->custom_name as $i=>$compname) { |
| 233 : | counterpoi | 222 | t if ($url_array[2] == $compname) { |
| 234 : | mambo | 117 | $origname = $this->custom_code[$i]; |
| 235 : | $_REQUEST['Itemid'] = $_GET['Itemid'] = $Itemid = $menuhandler->getIDLikeLink("index.php?option=$origname"); | ||
| 236 : | mamboCore::set('Itemid', $Itemid); | ||
| 237 : | if ($this->custom_PHP[$i]) { | ||
| 238 : | counterpoi | 269 | t $fixup = '$QUERY_STRING .= "option='.$origname.'&Itemid=".$Itemid.sef_'.$this->custom_short[$i].'::revert($url_array,1);'; |
| 239 : | mambo | 117 | eval($fixup); |
| 240 : | } | ||
| 241 : | counterpoi | 269 | t else $QUERY_STRING .= "option=$origname&Itemid=$Itemid".$this->default_revert($compname); |
| 242 : | mambo | 117 | $_REQUEST['option'] = $this->custom_code[$i]; |
| 243 : | counterpoi | 222 | t $foundit = true; |
| 244 : | mambo | 117 | break; |
| 245 : | } | ||
| 246 : | } | ||
| 247 : | if (!$foundit) { | ||
| 248 : | $content_sef = mamboCore::get('mosConfig_absolute_path').'/components/com_content/sef_ext.php'; | ||
| 249 : | if (file_exists($content_sef)) { | ||
| 250 : | require_once($content_sef); | ||
| 251 : | counterpoi | 269 | t $crevert = sef_content::revert($url_array,1); |
| 252 : | t if ($crevert) { | ||
| 253 : | t $foundit = true; | ||
| 254 : | t $QUERY_STRING .= $crevert; | ||
| 255 : | t } | ||
| 256 : | mambo | 117 | } |
| 257 : | } | ||
| 258 : | } | ||
| 259 : | if ($foundit) { | ||
| 260 : | $_SERVER['QUERY_STRING'] = $QUERY_STRING; | ||
| 261 : | $REQUEST_URI = '/index.php?'.$QUERY_STRING; | ||
| 262 : | $_SERVER['REQUEST_URI'] = $REQUEST_URI; | ||
| 263 : | return 0; | ||
| 264 : | } | ||
| 265 : | else return 1; | ||
| 266 : | } | ||
| 267 : | counterpoi | 222 | t return 0; |
| 268 : | mambo | 117 | } |
| 269 : | |||
| 270 : | function default_revert ($specialname) { | ||
| 271 : | $request = explode($specialname.'/', $_SERVER['REQUEST_URI']); | ||
| 272 : | if (isset($request[1])) $parmset = explode("/", $request[1]); | ||
| 273 : | else $parmset = array(); | ||
| 274 : | $QUERY_STRING = ''; | ||
| 275 : | counterpoi | 238 | t $menuhandler =& mosMenuHandler::getInstance(); |
| 276 : | mambo | 117 | foreach($parmset as $values) { |
| 277 : | $parts = explode(",", $values); | ||
| 278 : | if (count($parts) > 1) { | ||
| 279 : | $_REQUEST[$parts[0]] = $_GET[$parts[0]] = $parts[1]; | ||
| 280 : | if ($parts[0] == 'option') { | ||
| 281 : | $_REQUEST['Itemid'] = $_GET['Itemid'] = $Itemid = $menuhandler->getIDLikeLink("index.php?option=$parts[1]"); | ||
| 282 : | mamboCore::set('Itemid', $Itemid); | ||
| 283 : | $QUERY_STRING .= "$parts[0]=$parts[1]&Itemid=$Itemid"; | ||
| 284 : | } | ||
| 285 : | $QUERY_STRING .= "&$parts[0]=$parts[1]"; | ||
| 286 : | } | ||
| 287 : | } | ||
| 288 : | return $QUERY_STRING; | ||
| 289 : | } | ||
| 290 : | |||
| 291 : | function sefRelToAbs( $string ) { | ||
| 292 : | global $iso_client_lang; | ||
| 293 : | |||
| 294 : | csouza | 149 | $server = mamboCore::get('mosConfig_live_site'); |
| 295 : | counterpoi | 223 | t if ($string == 'index.php') return $server.'/'; |
| 296 : | counterpoi | 269 | t if (strtolower(substr($string,0,9)) != 'index.php' OR eregi('^(([^:/?#]+):)',$string)) return $string; |
| 297 : | t if (mosGetParam($_GET, 'syndstyle', '') == 'yes') $string .= '&syndstyle=yes'; | ||
| 298 : | mambo | 117 | $passed_string = str_replace('&', '&', $string); |
| 299 : | counterpoi | 391 | t if (!mamboCore::get('mosConfig_sef')) return $server.'/'.str_replace( '&', '&', $passed_string ); |
| 300 : | mambo | 117 | $string = substr($passed_string,10); |
| 301 : | if(mamboCore::get('mosConfig_mbf_content') AND strpos("lang=", strtolower($string)) === false) { | ||
| 302 : | $string .= "&lang=$iso_client_lang"; | ||
| 303 : | } | ||
| 304 : | $option = $task = ''; | ||
| 305 : | $oktasks = true; | ||
| 306 : | counterpoi | 269 | t $syndmark = ''; |
| 307 : | mambo | 117 | parse_str($string, $params); |
| 308 : | foreach ($params as $key=>$value) { | ||
| 309 : | $lowkey = strtolower($key); | ||
| 310 : | $lowvalue = strtolower($value); | ||
| 311 : | $unset = true; | ||
| 312 : | switch ($lowkey) { | ||
| 313 : | case 'option': | ||
| 314 : | $option = $lowvalue; | ||
| 315 : | break; | ||
| 316 : | case 'task': | ||
| 317 : | $task = $value; | ||
| 318 : | if ($lowvalue == 'new' OR $lowvalue == 'edit') $oktasks = false; | ||
| 319 : | break; | ||
| 320 : | counterpoi | 269 | t case 'syndstyle': |
| 321 : | t $syndmark = '/syndstyle'; | ||
| 322 : | t break; | ||
| 323 : | mambo | 117 | default: |
| 324 : | $check_params[$lowkey] = $key; | ||
| 325 : | $unset = false; | ||
| 326 : | } | ||
| 327 : | if ($unset) unset($params[$key]); | ||
| 328 : | } | ||
| 329 : | // Process content items | ||
| 330 : | if (($option == 'com_content' OR $option == 'content') AND $oktasks) { | ||
| 331 : | /* | ||
| 332 : | Content | ||
| 333 : | index.php?option=com_content&task=$task§ionid=$sectionid&id=$id&Itemid=$Itemid&limit=$limit&limitstart=$limitstart | ||
| 334 : | */ | ||
| 335 : | $task = $this->sef_content_task[$task]; | ||
| 336 : | $content_sef = mamboCore::get('mosConfig_absolute_path').'/components/com_content/sef_ext.php'; | ||
| 337 : | if (file_exists($content_sef)) { | ||
| 338 : | require_once($content_sef); | ||
| 339 : | counterpoi | 269 | t return $server.'/'.$this->prefix.$syndmark.sef_content::create($task, $params); |
| 340 : | mambo | 117 | } |
| 341 : | counterpoi | 237 | t $keys = array('sectionid', 'id', 'itemid', 'limit', 'limitstart', 'year', 'month', 'module', 'lang'); |
| 342 : | counterpoi | 269 | t $string = '/content'.$syndmark.'/'.$task.'/'; |
| 343 : | mambo | 117 | foreach ($keys as $key) { |
| 344 : | if (isset($check_params[$key])) { | ||
| 345 : | $pkey = $check_params[$key]; | ||
| 346 : | $string .= $params[$pkey].'/'; | ||
| 347 : | } | ||
| 348 : | } | ||
| 349 : | return $server.$string; | ||
| 350 : | } | ||
| 351 : | // Other types of URL than content do not use Itemid in the SEO version | ||
| 352 : | if (isset($check_params['itemid'])) { | ||
| 353 : | $pkey = $check_params['itemid']; | ||
| 354 : | unset($params[$pkey]); | ||
| 355 : | unset($check_params['itemid']); | ||
| 356 : | } | ||
| 357 : | // Process customised components | ||
| 358 : | $i = array_search($option,$this->custom_code); | ||
| 359 : | if ($i !== false AND $i !== null) { | ||
| 360 : | if ($this->custom_PHP[$i]) eval('$string = sef_'.$this->custom_short[$i].'::create($passed_string);'); | ||
| 361 : | else $string = $this->componentDetails($params,$task); | ||
| 362 : | counterpoi | 269 | t return $server.'/'.$this->prefix.$syndmark.'/'.$this->custom_name[$i].'/'.$string; |
| 363 : | mambo | 117 | } |
| 364 : | // Process ordinary components | ||
| 365 : | if (strpos($option,'com_')===0 AND $option != 'com_registration' AND $oktasks) { | ||
| 366 : | counterpoi | 269 | t return "$server/component$syndmark/option,$option/".$this->componentDetails($params,$task); |
| 367 : | mambo | 117 | } |
| 368 : | // Anything else is returned as received, except it is guaranteed that & will be & | ||
| 369 : | return $server.'/'.str_replace( '&', '&', $passed_string ); | ||
| 370 : | } | ||
| 371 : | |||
| 372 : | function componentDetails (&$params, $task) { | ||
| 373 : | $string = ($task ? "task,$task/" : ''); | ||
| 374 : | foreach ($params as $key=>$param) $string .= "$key,$param/"; | ||
| 375 : | return $string; | ||
| 376 : | } | ||
| 377 : | |||
| 378 : | } | ||
| 379 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

