unstage
This commit is contained in:
Regular → Executable
+6
-4
@@ -116,7 +116,7 @@ int mysql_lookup(request_rec *r, struct stat *fperm)
|
||||
return(0);
|
||||
}
|
||||
|
||||
char query[64];
|
||||
char query[256];
|
||||
sprintf(query, "select * from urls where url='%s'", r->uri);
|
||||
/* send SQL query */
|
||||
//if (mysql_query(conn, "show tables")) {
|
||||
@@ -124,7 +124,7 @@ int mysql_lookup(request_rec *r, struct stat *fperm)
|
||||
ap_rprintf(r, "%s\n<br/>", mysql_error(conn));
|
||||
return(-1);
|
||||
}
|
||||
|
||||
|
||||
res = mysql_use_result(conn);
|
||||
|
||||
/* output table name */
|
||||
@@ -183,10 +183,12 @@ static int absec_handler_last(request_rec *r)
|
||||
/* Main routine - called before request processing */
|
||||
static int absec_handler_first(request_rec *r)
|
||||
{
|
||||
ap_rprintf(r, "Before Method: %s<br/>\r\n", r->method);
|
||||
// Is this module really called?
|
||||
if (strcmp(r->handler, "absec")) {
|
||||
/*if (strcmp(r->handler, "absec")) {
|
||||
ap_rprintf(r, "DECLINED<br/>\r\n");
|
||||
return DECLINED;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
////////
|
||||
|
||||
Reference in New Issue
Block a user