51 |
$page_urls = unserialize(file_get_contents($urls_cache)); |
$page_urls = unserialize(file_get_contents($urls_cache)); |
52 |
} else { |
} else { |
53 |
/* makes a list of urls present in the image map html */ |
/* makes a list of urls present in the image map html */ |
54 |
preg_match_all('/(alt="(.+)")?\s?href="(.+)"/', file_get_contents('./'.$file), $page_urls); |
preg_match_all('/(alt="(.+)")?\s?href="(.*)"/', file_get_contents('./'.$file), $page_urls); |
55 |
/* create cache */ |
/* create cache */ |
56 |
file_put_contents($urls_cache, serialize($page_urls)); |
file_put_contents($urls_cache, serialize($page_urls)); |
57 |
} |
} |