Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:249:    {    if(!strlen(sl) || sl[0]=='#')    continue;    string type, value;    if(sscanf(sl, "%s=%s", type, value)==2)    {    value = replace(value, ({ "?", ".", "*" }), ({ ".", "\.", ".*" }));    switch(type)    {    case "allowip": -  patterns += ({ ({ MOD_ALLOW, new(Regexp, value)->match, }) }); +  patterns += ({ ({ MOD_ALLOW, Regexp(value)->match, }) });    break;       case "denyip": -  patterns += ({ ({ MOD_DENY, new(Regexp,value)->match, }) }); +  patterns += ({ ({ MOD_DENY, Regexp(value)->match, }) });    break;       case "allowuser":    value = replace("("+(value/",")*")|("+")","(any)","(.*)"); -  patterns += ({ ({ MOD_USER, new(Regexp, value)->match, }) }); +  patterns += ({ ({ MOD_USER, Regexp(value)->match, }) });    break;    }    }    }    return patterns;   }         mixed stat_file(string f, object id){}   mixed find_dir(string f, object id){}   mixed real_file(string f, object id){}