Project

General

Profile

Feature #20206 » 0010724_v5.patch

Administrator Admin, 2009-09-01 18:49

View differences:

t3lib/class.t3lib_div.php (Arbeitskopie)
}
/**
* Checks if a given URL matches the host that currently handles this HTTP request.
* Scheme, hostname and (optional) port of the given URL are compared.
*
* @param string $url: URL to compare with the TYPO3 request host
* @return boolean Whether the URL matches the TYPO3 request host
*/
public static function isOnCurrentHost($url) {
return (stripos($url . '/', self::getIndpEnv('TYPO3_REQUEST_HOST') . '/') === 0);
}
/**
* Check for item in list
* Check if an item exists in a comma-separated list of items.
* Usage: 163
......
return self::strtolower(substr($string, 0, 1)) . substr($string, 1);
}
/**
* Checks if a given string is a Uniform Resource Locator (URL).
*
* @param string $url: The URL to be validated
* @return boolean Whether the given URL is valid
*/
public static function isValidUrl($url) {
return (filter_var($url, FILTER_VALIDATE_URL) !== false);
}
......
/*************************
*
* ARRAY FUNCTIONS
(6-6/7)