pike.git / lib / modules / Search.pmod / Queue.pmod / MySQL.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:17:    if (ret && !ret->ping()) return ret;    return _db->set(Sql.Sql( url ));   }      Web.Crawler.Stats stats;   Web.Crawler.Policy policy;   Web.Crawler.RuleSet allow, deny;      protected string to_md5(string url)   { -  Crypto.MD5 md5 = Crypto.MD5(); -  md5->update(string_to_utf8(url)); -  return String.string2hex(md5->digest()); +  return String.string2hex(Crypto.MD5.hash(string_to_utf8(url)));   }      //! @param _url   //! @[Sql.Sql] URL for the database to store the queue.   //!   //! @param _table   //! @[Sql.Sql] table name to store the queue in.   //!   //! If the table doesn't exist it will be created.   void create( Web.Crawler.Stats _stats,