diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-02 02:02:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-02 02:02:30 +0000 |
commit | b68d65d4bc5de98356863d640ebb3d0985066064 (patch) | |
tree | 4c2a9375fc15b970e11749b737d2b1dce3d2441c /source3/web/swat.c | |
parent | 80ec5e4a4de434d267d7c8ca10a5e2627bce80f9 (diff) | |
download | samba-b68d65d4bc5de98356863d640ebb3d0985066064.tar.gz samba-b68d65d4bc5de98356863d640ebb3d0985066064.tar.bz2 samba-b68d65d4bc5de98356863d640ebb3d0985066064.zip |
use /swat/ prefix in both inetd and cgi modes, to enable a static header.html
(This used to be commit ddb788c24d043b18506138a7759b8128df1673aa)
Diffstat (limited to 'source3/web/swat.c')
-rw-r--r-- | source3/web/swat.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c index 504552ec40..2665df5d1b 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -107,7 +107,7 @@ static void print_header(void) if (!include_html("include/header.html")) { printf("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n"); - printf("<HTML>\n<HEAD>\n<TITLE>Samba Web Administration Tool</TITLE>\n</HEAD>\n<BODY background=\"%simages/background.jpg\">\n\n", cgi_rooturl()); + printf("<HTML>\n<HEAD>\n<TITLE>Samba Web Administration Tool</TITLE>\n</HEAD>\n<BODY background=\"/swat/images/background.jpg\">\n\n"); } } @@ -132,8 +132,8 @@ static void show_parameter(int snum, struct parm_struct *parm) ptr = lp_local_ptr(snum, ptr); } - printf("<tr><td><A HREF=\"%shelp/parameters.html#%s\">?</A> %s</td><td>", - cgi_rooturl(), parm->label, parm->label); + printf("<tr><td><A HREF=\"/swat/help/parameters.html#%s\">?</A> %s</td><td>", + parm->label, parm->label); switch (parm->type) { case P_CHAR: @@ -355,10 +355,9 @@ static void load_config(void) /* spit out the html for a link with an image */ static void image_link(char *name,char *hlink, char *src, int width, int height) { - printf("<A HREF=\"%s/%s\"><img width=%d height=%d src=\"%s%s\" alt=\"%s\"></A>\n", + printf("<A HREF=\"%s/%s\"><img width=%d height=%d src=\"/swat/%s\" alt=\"%s\"></A>\n", cgi_baseurl(), hlink, width, height, - cgi_rooturl(), src, name); } |