if (UrlUtils::$_query != null && array_key_exists($key, UrlUtils::$_query)) { return UrlUtils::$_query[$key]; } if (array_key_exists($key, $_GET)) { return $_GET[$key]; } } if ($verb == "all" || $verb == "post") { if (UrlUtils::$_query != null && array_key_exists($key, UrlUtils::$_query)) { return UrlUtils::$_query[$key]; } if (array_key_exists($key, $_POST)) { return $_POST[$key]; } } if ($verb == "all" || $verb == "put" || $verb == "post") { if (is_array(UrlUtils::$_data) && array_key_exists($key, UrlUtils::$_data)) { return UrlUtils::$_data[$key]; } } return $default; } public static function SafeBase64encode($string) { $data = base64_encode($string); $data = str_replace(array('+', '/', '='), array('-', '_', ''), $data); return $data; } } UrlUtils::StaticInitialize();