Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
[samba.git] / swat / index.esp
index 325deeddaeef39139f061026d7e0ead21fb57221..1924e4021056ac095cb2f45a235ba6e6f4939b12 100644 (file)
@@ -1,7 +1,30 @@
-<% page_header("columns", "Welcome to SWAT"); %>
+<% page_header("columns", "Server Status", "main");
+  libinclude("base.js");
+  libinclude("management.js");
+  libinclude("provision.js");
 
-<h1>Welcome to SWAT!</h1>
+  if (install_ok(session.authinfo.session_info, session.authinfo.credentials) == false) {
+         redirect("/install/");
+  }
 
-Please select a menu item from the selection on the left
+%>
+
+<h1>Server Status</h1>
+
+<%
+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(); %>