url = $url; $fv = file_get_contents (str_replace('&', '&', $url)); if (strpos ($fv, "
")); } $this->content = $fv; } function GetCookies () { ob_start(); $ch = curl_init($this->url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_NOBODY, 1); $ok = curl_exec($ch); curl_close($ch); $head = ob_get_contents(); ob_end_clean(); preg_match_all ("/Set-Cookie\:(.*?)\;/i", $head, $kukiji); for ($x = 0; $x <= sizeof ($kukiji[1]); $x++) { preg_match ("/\ (.*?)\=/i", $kukiji[1][$x], $ime); $this->cookies[sizeof($this->cookies)][0] = str_replace (" ", "", str_replace ("=", "", $ime[0])); $this->cookies[sizeof($this->cookies)-1][1] = str_replace ($ime[0], "", $kukiji[1][$x]); } } function GetTarget () { preg_match ("/\