mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
86d2ecf0f2
- this imports the basic css pages from samba.org - i have created some useful ejs scripts in common.js that will be included by all pages - added a real login page, and a logout button showing who you are logged in as - added page_header() and page_footer() functions that take a page type, allowing for "plain" or "columms" pages - added some simple menus on the left of the columns page type, with links to the esp tests and some useful links for samba4 developers
18 lines
556 B
Plaintext
18 lines
556 B
Plaintext
<%
|
|
include("/scripting/common.js");
|
|
|
|
/* this script is called on every web request. If it produces any
|
|
output at all then that output is returned and the requested page
|
|
is not given or processed.
|
|
*/
|
|
if (server['SERVER_PROTOCOL'] == "http" &&
|
|
server['TLS_SUPPORT'] == "True") {
|
|
write("redirect to https");
|
|
redirect("https://" + headers['HOST'] + request['REQUEST_URI']);
|
|
} else if (always_allowed(request['REQUEST_URI']) != true &&
|
|
session['AUTHENTICATED'] == undefined) {
|
|
/* present the login page */
|
|
include("/login.esp");
|
|
}
|
|
%>
|