From 2e7c59c24470766e37309c7a8bfa4c7b81c57614 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Wed, 3 Jan 2007 19:57:40 +0000 Subject: r20515: Continued work on the Web Application Framework. Until we get all of the functionality of the old scripts incorporated into the new framework, the old scripts need to still be available. I've reverted to having the old scripts be the default pages, and added an option to access the preview of the new SWAT. (This used to be commit b43620d4b8eff815f4a6dc02522a8dfc9fdcaef4) --- webapps/index.esp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 webapps/index.esp (limited to 'webapps/index.esp') diff --git a/webapps/index.esp b/webapps/index.esp new file mode 100644 index 0000000000..1924e40210 --- /dev/null +++ b/webapps/index.esp @@ -0,0 +1,30 @@ +<% page_header("columns", "Server Status", "main"); + libinclude("base.js"); + libinclude("management.js"); + libinclude("provision.js"); + + if (install_ok(session.authinfo.session_info, session.authinfo.credentials) == false) { + redirect("/install/"); + } + +%> + +

Server Status

+ +<% +var servers = new Array("nbt_server", "smb_server", "ldap_server", "cldap_server", "kdc_server"); +var i; +var info = new Object(); + +info["NBT Server"] = server_status("nbt"); +info["WINS Server"] = server_status("wins"); +info["CLDAP Server"] = server_status("cldap"); +info["Kerberos Server"] = server_status("kdc"); +info["SMB Server"] = stream_server_status("smb"); +info["LDAP Server"] = stream_server_status("ldap"); +info["RPC Server"] = stream_server_status("rpc"); + +simple_table(info); +%> + +<% page_footer(); %> -- cgit