/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/network-stats-mashup/includes/class.cricket_spider.php
ViewVC logotype

Diff of /trunk/nl.nikhef.ndpf.tools/network-stats-mashup/includes/class.cricket_spider.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1283 by aramv, Fri Dec 11 17:00:25 2009 UTC revision 1284 by aramv, Fri Dec 11 19:18:55 2009 UTC
# Line 51  class CricketSpider { Line 51  class CricketSpider {
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      }      }

Legend:
Removed from v.1283  
changed lines
  Added in v.1284

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28