|
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 | |
3 | static const char cgit_doctype[] = |
11 | static 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 | |
7 | static const char cgit_error[] = |
15 | static const char cgit_error[] = |
8 | "<div class='error'>%s</div>"; |
16 | "<div class='error'>%s</div>"; |
9 | |
17 | |
10 | static const char cgit_lib_error[] = |
18 | static const char cgit_lib_error[] = |
11 | "<div class='error'>%s: %s</div>"; |
19 | "<div class='error'>%s: %s</div>"; |
12 | |
20 | |
13 | int htmlfd = 0; |
21 | int htmlfd = 0; |
14 | |
22 | |
15 | char *cgit_root = "/usr/src/git"; |
23 | char *cgit_root = "/usr/src/git"; |
16 | char *cgit_root_title = "Git repository browser"; |
24 | char *cgit_root_title = "Git repository browser"; |
17 | char *cgit_css = "/cgit.css"; |
25 | char *cgit_css = "/cgit.css"; |
18 | char *cgit_logo = "/git-logo.png"; |
26 | char *cgit_logo = "/git-logo.png"; |
19 | char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; |
27 | char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; |
20 | char *cgit_virtual_root = NULL; |
28 | char *cgit_virtual_root = NULL; |
21 | |
29 | |
22 | char *cgit_cache_root = "/var/cache/cgit"; |
30 | char *cgit_cache_root = "/var/cache/cgit"; |
23 | |
31 | |
24 | int cgit_cache_root_ttl = 5; |
32 | int cgit_cache_root_ttl = 5; |
|