Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/managers/plain_url_processor.php
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | |||||
$mixed_part = Array(); | $mixed_part = Array(); | ||||
foreach ($escaped_part as $escaped_val) { | foreach ($escaped_part as $escaped_val) { | ||||
$mixed_part[] = str_replace('_&+$$+&_', '-', $escaped_val); | $mixed_part[] = str_replace('_&+$$+&_', '-', $escaped_val); | ||||
} | } | ||||
$vars = Array (); | $vars = Array (); | ||||
$prefix_special = array_shift($mixed_part); // l.pick, l | $prefix_special = array_shift($mixed_part); // l.pick, l | ||||
$http_query = $this->Application->recallObject('HTTPQuery'); | $http_query = $this->Application->recallObject('kHTTPQuery'); | ||||
/* @var $http_query kHTTPQuery */ | /* @var $http_query kHTTPQuery */ | ||||
$query_map = $http_query->discoverUnit($prefix_special); // from $_GET['env'] | $query_map = $http_query->discoverUnit($prefix_special); // from $_GET['env'] | ||||
// if config is not defined for prefix in QueryString, then don't process it | // if config is not defined for prefix in QueryString, then don't process it | ||||
if ($query_map) { | if ($query_map) { | ||||
foreach ($query_map as $index => $var_name) { | foreach ($query_map as $index => $var_name) { | ||||
// l_id, l_page, l_bla-bla-bla | // l_id, l_page, l_bla-bla-bla | ||||
▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | |||||
$ret = implode('-', $escaped); | $ret = implode('-', $escaped); | ||||
if ( $config->getPortalStyleEnv() == true ) { | if ( $config->getPortalStyleEnv() == true ) { | ||||
$ret = preg_replace('/^([a-zA-Z]+)-([0-9]+)-(.*)/', '\\1\\2-\\3', $ret); | $ret = preg_replace('/^([a-zA-Z]+)-([0-9]+)-(.*)/', '\\1\\2-\\3', $ret); | ||||
} | } | ||||
return $ret; | return $ret; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |