]> Pileus Git - ~andy/ct/commitdiff
Add htaccess, remove debugging
authorAndy Spencer <andy753421@gmail.com>
Sun, 22 Nov 2009 00:52:22 +0000 (00:52 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 22 Nov 2009 00:52:22 +0000 (00:52 +0000)
gallery/gallery.c
gallery/htacces [new file with mode: 0644]

index 9b0e43231100b5163099159649725a554cf06f76..08590cc0fd067dddc8d13bf6c67696fc0e5dc4ee 100644 (file)
@@ -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 (file)
index 0000000..dc182aa
--- /dev/null
@@ -0,0 +1,4 @@
+Options +ExecCGI
+AddHandler cgi-script .bin
+RewriteEngine on
+RewriteRule ^$ "index.bin"