function checkHeader($url)
{
- if(strpos($url, 'https') !== false)
- {
- $this->jerr('accept HTTP url only!');
- }
+ // if(strpos($url, 'https') !== false)
+ // {
+ // $this->jerr('accept HTTP url only!');
+ // }
$headers = get_headers($url, 1);
if(strpos(is_array($headers['Content-Type']) ? $headers['Content-Type'][0] : $headers['Content-Type'], 'text/html') === false)
{
$data = file_get_contents($file);
}
- if(preg_match('/^\s*<!--NOT CONVERT STYLE-->/', $data)){
- return 'got';
+ if(preg_match('/^\s*<!--\s*NOT CONVERT STYLE\s*-->\s*/', $data)){
$inLineCss = false;
}