$TITLE = "Lektoři festivalu - zahraniční hosté";
/*
* @return string
* @param string $url
* @desc Return string content from a remote file
* @author Luiz Miguel Axcar (lmaxcar@yahoo.com.br)
*/
function get_content($url)
{
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec ($ch);
curl_close ($ch);
$string = ob_get_contents();
ob_end_clean();
return $string;
}
#usage:
if (!isset($id_i))
$id_i = "2014";
$content = get_content ("http://www.centrumtance.cz/tanec/UdalostBig.asp?S=&id_i=".$id_i);
preg_match("~
.*~s",$content, $match);
$text = $match[0];
$text = preg_replace("~([\"'])(/images/)~", "\\1http://www.centrumtance.cz\\2", $text);
$text = preg_replace("~
"%3A", "/"=>"%2F", "."=>"%2E", "_"=>"%5F", " "=>"%20", "?"=>"%3E", "="=>"%3D");
$text = preg_replace("~http%3A%2F%2Fwww%2Ecentrumtance%2Ecz%2Ftanec%2FUdalostBig%2Easp~", StrTr("http://www.danceoflove.cz/2011/cz_ctimp.php", $tbl), $text);
include "_inc_base.php";
/*
http://www.centrumtance.cz/tanec/UdalostBig.asp?S=&id_i=1081 - Osama
http://www.centrumtance.cz/tanec/UdalostBig.asp?S=&id_i=1082 - Jillina
http://www.centrumtance.cz/tanec/UdalostBig.asp?S=&id_i=1083 - Lubna
http://www.centrumtance.cz/tanec/UdalostBig.asp?S=&id_i=1099 - Amparo
id_udal_uid=%7B12543612%2D745C%2D4F04%2D869B%2DE8708D45B4F8%7D - Amparo
*/
?>