summaryrefslogtreecommitdiffabout
path: root/cgit.c
Unidiff
Diffstat (limited to 'cgit.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index 09c857c..808ffe9 100644
--- a/cgit.c
+++ b/cgit.c
@@ -1,24 +1,32 @@
1/* cgit.c: cgi for the git scm
2 *
3 * Copyright (C) 2006 Lars Hjemli
4 *
5 * Licensed under GNU General Public License v2
6 * (see COPYING for full license text)
7 */
8
1#include "cgit.h" 9#include "cgit.h"
2 10
3static const char cgit_doctype[] = 11static const char cgit_doctype[] =
4"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" 12"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n"
5" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; 13" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
6 14
7static const char cgit_error[] = 15static const char cgit_error[] =
8"<div class='error'>%s</div>"; 16"<div class='error'>%s</div>";
9 17
10static const char cgit_lib_error[] = 18static const char cgit_lib_error[] =
11"<div class='error'>%s: %s</div>"; 19"<div class='error'>%s: %s</div>";
12 20
13int htmlfd = 0; 21int htmlfd = 0;
14 22
15char *cgit_root = "/usr/src/git"; 23char *cgit_root = "/usr/src/git";
16char *cgit_root_title = "Git repository browser"; 24char *cgit_root_title = "Git repository browser";
17char *cgit_css = "/cgit.css"; 25char *cgit_css = "/cgit.css";
18char *cgit_logo = "/git-logo.png"; 26char *cgit_logo = "/git-logo.png";
19char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; 27char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/";
20char *cgit_virtual_root = NULL; 28char *cgit_virtual_root = NULL;
21 29
22char *cgit_cache_root = "/var/cache/cgit"; 30char *cgit_cache_root = "/var/cache/cgit";
23 31
24int cgit_cache_root_ttl = 5; 32int cgit_cache_root_ttl = 5;