4 const gchar *query_string;
8 query_string = g_getenv("QUERY_STRING");
11 GList *read_dir(gchar *dirname)
13 GDir *dir = g_dir_open(dirname, 0, NULL);
14 const gchar *name = NULL;
16 while ((name = g_dir_read_name(dir)))
17 images = g_list_prepend(images, (gchar*)name);
29 if (query_string == NULL)
31 else if (g_str_equal(query_string, "noframe"))
32 frame_nav(TRUE, read_dir("images"));
33 else if (g_str_equal(query_string, "nav"))
34 frame_nav(FALSE, read_dir("images"));
35 else if (g_str_equal(query_string, "head"))
37 else if (g_str_equal(query_string, "content"))