unstage
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
#/home/jlcyr/apache2/bin/apxs -lpam -lpam_misc `mysql_config --cflags --libs` -c -i mod_absec.c
|
||||
apxs -lpam -lpam_misc `mysql_config --cflags --libs` -c -i mod_absec.c
|
||||
sudo apxs -lpam -lpam_misc `mysql_config --cflags --libs` -c -i mod_absec.c
|
||||
#/home/jlcyr/apache2/bin/apachectl restart
|
||||
sudo /etc/init.d/apache2 restart
|
||||
|
||||
Regular → Executable
Regular → Executable
+5
-3
@@ -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")) {
|
||||
@@ -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;
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
////////
|
||||
|
||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user