Wai Iu wrote:
> Jamie:
>
> index.cgi is responsible for generating the contents for a category.
>
> I try to identify which index.cgi is responsible for generating the html
>
> page for the matching function or catgory. I am using MSC style. So it
>
> seems to follow the following rules:
>
> 1. if you click one of the top catgories, such as Webmin, System, Servers, Networking,
>
> ...and Others, the resulting page is generated by /usr/libexec/webmin/mscstyle3/index.cgi
>
> 2. Now, for example, if I click System icon on the top and get a content page, then click
>
> System Logs icon on that page, Webmin will led me to System Logs admin page. It looks
>
> to me that this System Logs admin page is generated by /usr/libexec/webmin/syslog/index.cgi.
>
> However, in rule 2, the header and footer of that System Logs admin page are still coming
>
> from MSC style. Do they come from theme.pl program? If in this way, how does Webmin
>
> combine theme.pl and /usr/libexec/webmin/syslog/index.cgi into a single html output (This
>
> question seems too big, I'd better look at codes more closely.)
The theme.pl script defines a theme_header function which is called by
the header function that almost every CGI (including
mscstyle3/index.cgi and syslog/index.cgi) calls. That's how they get
the same header..
- Jamie
|