/** * Get Current Path Info */ function currentPathInfo() { $base_url = createBaseUrl(); $explodes = explode("/", $base_url); unset($explodes[0]); unset($explodes[1]); unset($explodes[2]); $explodes = array_values($explodes); $path_info = trim($_SERVER["REQUEST_URI"], "/"); foreach ($explodes as $explode) { if (!empty($explode)) { if ($explode . "/" == substr($path_info, 0, strlen($explode) + 1)) { $path_info = substr($path_info, strlen($explode) + 1); } } } return $path_info; }
function jossoSecurityCheckUrl() { // Get JOSSO Agent instance $josso_agent =& jossoagent::getNewInstance(); $securityCheckUrl = createBaseUrl() . $josso_agent->getBaseCode() . '/josso-security-check.php'; return $securityCheckUrl; }