Subversion Repositories Kolibri OS

Rev

Rev 9278 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9278 Rev 9280
Line 11... Line 11...
11
 
11
 
12
/*
12
/*
13
 * The default is to use cgibase. With relative html style
13
 * The default is to use cgibase. With relative html style
14
 * we generate URLs of the form "../manX/page.html".
14
 * we generate URLs of the form "../manX/page.html".
15
 */
15
 */
Line 16... Line 16...
16
static int relat_html_style = 0;
16
//static int relat_html_style = 0;
17
 
17
 
18
/*
18
/*
19
 * The default is to use cgibase. With current html style
19
 * The default is to use cgibase. With current html style
20
 * we generate URLs of the form "./page.html".
20
 * we generate URLs of the form "./page.html".
Line 21... Line 21...
21
 */
21
 */
22
static int current_html_style = 0;
22
static int current_html_style = 1;
23
 
23
 
24
/*
24
/*
25
 * Either the user is non-local (or local, but using httpd),
25
 * Either the user is non-local (or local, but using httpd),
Line -... Line 26...
-
 
26
 * in which case we use http:/cgi-bin, or the user is local
-
 
27
 * and uses lynx, and we use lynxcgi:/home/httpd/cgi-bin.
26
 * in which case we use http:/cgi-bin, or the user is local
28
 */
27
 * and uses lynx, and we use lynxcgi:/home/httpd/cgi-bin.
29
 
28
 */
30
#if 0
29
 
31
 
Line -... Line 32...
-
 
32
static char *man2htmlpath = "/cgi-bin/man/man2html"; 	/* default */
-
 
33
static char *cgibase_format = "http://%s"; 		/* host.domain:port */
30
static char *man2htmlpath = "/cgi-bin/man/man2html"; 	/* default */
34
static char *cgibase_ll_format = "lynxcgi:%s"; 		/* directory */
31
static char *cgibase_format = "http://%s"; 		/* host.domain:port */
35
static char *cgibase = "http://localhost";		/* default */
32
static char *cgibase_ll_format = "lynxcgi:%s"; 		/* directory */
36
 
33
static char *cgibase = "http://localhost";		/* default */
37
#endif
34
 
38
 
Line 80... Line 84...
80
			fprintf(out, ""
84
			fprintf(out, ""
81
			       "Return to Main Contents");
85
			       "Return to Main Contents");
82
		else
86
		else
83
			fprintf(out, "%s",
87
			fprintf(out, "%s",
84
			       h, h);
88
			       h, h);
-
 
89
#if 0
85
	} else if (relat_html_style) {
90
	} else if (relat_html_style) {
86
		if (!h)
91
		if (!h)
87
			fprintf(out, ""
92
			fprintf(out, ""
88
			       "Return to Main Contents");
93
			       "Return to Main Contents");
89
		else
94
		else
Line 97... Line 102...
97
			fprintf(out, "%s",
102
			fprintf(out, "%s",
98
			       cgibase, man2htmlpath, sep, h, h);
103
			       cgibase, man2htmlpath, sep, h, h);
99
		else
104
		else
100
			fprintf(out, "%s",
105
			fprintf(out, "%s",
101
			       cgibase, man2htmlpath, sep, sec, h, h);
106
			       cgibase, man2htmlpath, sep, sec, h, h);
-
 
107
#endif
102
	}
108
	}
103
}
109
}
Line -... Line 110...
-
 
110
 
104
 
111
 
105
void
112
void
106
ftp_html(char *f) {
113
ftp_html(char *f) {
107
     fprintf(out, "%s", f, f);
114
     fprintf(out, "%s", f, f);