/**
* Implementation of the crawler function
*/
function security_scanner_crawler($path) {
// Create a new object and parse the page
$obj = new drupal_security_scanner_test();
// Set the cookie
$session_cookie =
variable_get('security_scanner_cookie',
'');
$obj->
curl_options =
array(
CURLOPT_COOKIE => $session_cookie,
);
$obj->drupalGet($path);
$obj->parse();
return $obj;
}