Crawler

  1. /**
  2.    *  Implementation of the crawler function
  3.    */    
  4.   function security_scanner_crawler($path) {
  5.     // Create a new object and parse the page
  6.     $obj = new drupal_security_scanner_test();
  7.     // Set the cookie
  8.     $session_cookie = variable_get('security_scanner_cookie','');
  9.     $obj->curl_options = array(
  10.       CURLOPT_COOKIE => $session_cookie,
  11.     );
  12.     $obj->drupalGet($path);
  13.     $obj->parse();
  14.     return $obj;
  15.   }