0) { if (Qs_Language::exists($parts[0])) { $info['language'] = $parts[0]; array_shift($parts); $alias = implode('/', $parts); } } if (!isset($info['language'])) { $info['language'] = Qs_Constant::get('DEFAULT_LANGUAGE'); } $info['alias'] = $alias; return $info; } public static function parseTarget($url) { if (empty($url)) { return '_self'; } if (stripos($url, '://')) { $url = substr($url, strpos($url, ':') + 3); $baseUrl = substr(BASE_URL, strpos(BASE_URL, ':') + 3); if (strpos($url, $baseUrl) !== 0) { return '_blank'; } else { return '_self'; } } else { return '_self'; } } }