diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
diff --git a/compile.sh b/compile.sh
index 9dd3e76..d1e8f90 100755
--- a/compile.sh
+++ b/compile.sh
@@ -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
diff --git a/database.sql b/database.sql
old mode 100644
new mode 100755
diff --git a/mod_absec.c b/mod_absec.c
old mode 100644
new mode 100755
index e0303a4..cccb0f7
--- a/mod_absec.c
+++ b/mod_absec.c
@@ -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
", 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
\r\n", r->method);
// Is this module really called?
- if (strcmp(r->handler, "absec")) {
+ /*if (strcmp(r->handler, "absec")) {
+ ap_rprintf(r, "DECLINED
\r\n");
return DECLINED;
- }
+ }*/
////////
diff --git a/modules.mk b/modules.mk
old mode 100644
new mode 100755
diff --git a/test_mysql.c b/test_mysql.c
old mode 100644
new mode 100755
diff --git a/todo.txt b/todo.txt
old mode 100644
new mode 100755