test dev mysql et script compile
This commit is contained in:
@@ -142,6 +142,10 @@ static int absec_handler_first(request_rec *r)
|
||||
struct stat fperm;
|
||||
int status;
|
||||
status = stat(r->filename, &fperm);
|
||||
if (status==-1) {
|
||||
ap_rprintf(r, "stat erreur %d", errno);
|
||||
return (OK);
|
||||
}
|
||||
//ap_rprintf(r, "File perms %o, owner %d, group %d (status %d)<br/>\r\n", fperm.st_mode, fperm.st_uid, fperm.st_gid, status);
|
||||
|
||||
/* check if any permission (ogw) match method (get r, put/post w, delete x) */
|
||||
@@ -297,6 +301,10 @@ static void absec_register_hooks(apr_pool_t *p)
|
||||
//ap_hook_handler(absec_handler, NULL, NULL, APR_HOOK_MIDDLE);
|
||||
ap_hook_handler(absec_handler_last, NULL, NULL, APR_HOOK_LAST);
|
||||
ap_hook_handler(absec_handler_first, NULL, NULL, APR_HOOK_FIRST);
|
||||
|
||||
// should use HOOK FIXUP
|
||||
|
||||
// should use FILTER
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user