pike.git / lib / modules / Search.pmod / Utils.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:690:    }       //! @decl void create(Sql.Sql db_object, int profile, int stderr_logging)    //! @decl void create(string db_url, int profile, int stderr_logging)    void create(string|Sql.Sql _logdb, int _profile, int _stderr_logging) {    logdb = _logdb;    profile = _profile;    stderr_logging = _stderr_logging;       // create table eventlog (event int unsigned auto_increment primary key, -  // at timestamp(14) not null, code int unsigned not null, extra varchar(255)) +  // at timestamp not null, code int unsigned not null, extra varchar(255))       Sql.Sql db = get_db();       if(catch(db->query("SELECT code FROM eventlog WHERE event=0")))    db->query("CREATE TABLE eventlog ("    "event int unsigned auto_increment primary key," -  "at timestamp(14) not null," +  "at timestamp not null,"    "profile int unsigned not null,"    "code int unsigned not null,"    "type enum('error','warning','notice') not null,"    "extra varchar(255))");    }       void werror_event( int code, string type, void|string extra, void|int log_profile )    {    mapping types = ([ "error" : "Error",    "warning" : "Warning",