From: Andy Spencer Date: Sun, 22 Nov 2009 00:52:22 +0000 (+0000) Subject: Add htaccess, remove debugging X-Git-Url: http://pileus.org/git/?p=~andy%2Fct;a=commitdiff_plain;h=506ae3a9437ff9f4b409cd133a6c96b442b1926d Add htaccess, remove debugging --- diff --git a/gallery/gallery.c b/gallery/gallery.c index 9b0e432..08590cc 100644 --- a/gallery/gallery.c +++ b/gallery/gallery.c @@ -33,10 +33,8 @@ GList *read_dir(gchar *dirname) GDir *dir = g_dir_open(dirname, 0, NULL); const gchar *name = NULL; GList *images = NULL; - while ((name = g_dir_read_name(dir))) { - g_message("got image %s", name); + while ((name = g_dir_read_name(dir))) images = g_list_prepend(images, g_strdup(name)); - } return images; } diff --git a/gallery/htacces b/gallery/htacces new file mode 100644 index 0000000..dc182aa --- /dev/null +++ b/gallery/htacces @@ -0,0 +1,4 @@ +Options +ExecCGI +AddHandler cgi-script .bin +RewriteEngine on +RewriteRule ^$ "index.bin"