From 01d4a48a8573f78f90bbda44af4da58bafbc281d Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 4 Sep 2014 09:57:51 +0000 Subject: [PATCH] Committing work in progress to force build (last failed because build machine is stupid) --- Site5/Pages/v5/Init/Default.aspx | 82 ++++++++++++++++++++++++++--- Site5/Pages/v5/Init/Default.aspx.cs | 53 +++++++++++++++++++ 2 files changed, 129 insertions(+), 6 deletions(-) diff --git a/Site5/Pages/v5/Init/Default.aspx b/Site5/Pages/v5/Init/Default.aspx index 0eb0679c..d68e4e89 100644 --- a/Site5/Pages/v5/Init/Default.aspx +++ b/Site5/Pages/v5/Init/Default.aspx @@ -33,8 +33,19 @@ @@ -225,7 +236,9 @@ return isValid; } - }); + updateDatabasePermissionsAnalysis(); + + }); // end of document.ready function recheckConfigurationWritability() { @@ -308,7 +321,35 @@ } }); } - + + + function updateDatabasePermissionsAnalysis() { + + $.ajax({ + type: "POST", + url: "Default.aspx/TestDatabasePermissions", + data: "{}", + contentType: "application/json; charset=utf-8", + dataType: "json", + success: function (msg) { + if (!msg.d.AllPermissionsOk) { + updatePermissionsAnalysisDisplay(msg.d); + setTimeout('updateDatabasePermissionsAnalysis();', 2000); + } else { + alert('AllPermissionsOk = true'); + // TODO: PROCEED + } + } + }); + } + + function updatePermissionsAnalysisDisplay(testResults) { + $('#CellPermissionAdminCredentialCanLogin').text(testResults.AdminCredentialsCanLogin); + $('#CellPermissionAdminCredentialCanSelect').text(testResults.AdminCredentialsCanSelect); + $('#CellPermissionAdminCredentialCanExecute').text(testResults.AdminCredentialsCanExecute); + $('#CellPermissionAdminCredentialCanAdmin').text(testResults.AdminCredentialsCanAdmin); + } + function beginInitDatabase() { $.ajax({ @@ -384,7 +425,7 @@

Welcome to Swarmops

Congratulations! Since you're reading this, you have successfully installed the Swarmops packages and set up an Apache virtual server using mod_mono.

-

However, before we proceed, we need to make sure that you are indeed the sysadmin of this server, and not a remote bot who just discovered an unfinished Swarmops installation. To do that, answer these simple questions:

+

However, before we proceed, we need to make sure that you are indeed the sysadmin of this server, and not a remote bot who just discovered an unfinished Swarmops installation. To cross that bridge, answer these three simple questions:

-