setUseSessionInUrl(false); error_reporting(E_ALL | E_STRICT); if (file_exists(BP.DS.'maintenance.flag')) exit; if (class_exists('Extendware') === false) exit; if (Extendware::helper('ewcrawler') === false) exit; if (!isset($argv) or !is_array($argv)) $argv = array(); try { @set_time_limit(0); $crawler = Mage::getModel('ewcrawler/crawler'); if ($crawler) { $options = array('verbose' => in_array('-v', $argv)); $crawler->crawl($options); } } catch (Exception $e) { Mage::logException($e); }