static int geoip_post_read_request(request_rec *r){ geoip_server_config_rec *cfg; cfg = ap_get_module_config(r->server->module_config, &geoip_module); if ( !cfg ) return DECLINED; if ( !cfg->GeoIPEnabled ) return DECLINED; return geoip_header_parser(r); }
static int geoip_per_dir(request_rec * r) { geoip_dir_config_rec *dcfg; geoip_server_config_rec *cfg = ap_get_module_config(r->server->module_config, &geoip_module); if (cfg && cfg->GeoIPEnabled) return DECLINED; dcfg = ap_get_module_config(r->per_dir_config, &geoip_module); if (!dcfg) return DECLINED; if (!dcfg->GeoIPEnabled) return DECLINED; return geoip_header_parser(r); }