%
include("language.html")
if _SESSION["logined"] ~= nil then
local domain = _GET["domain"]
if domain ~= nil and _GET["type"] ~= nil and _GET["event"] ~= nil and _GET["eventName"] ~= nil then
local bExecute,strExeFile,strParam,bLogfile,strLogFileName,strLogText,bSendMail
local strMailTo,strSubject,strPlainText,strAttachFile,nPriority,bLua,strLua
local type = string.lower(_GET["type"])
local eventID = tonumber(_GET["event"])
local eventName = _GET["eventName"]
local luaScriptFirst = false
if type == "http" then
bExecute,strExeFile,strParam,bLogfile,strLogFileName,strLogText,bSendMail,strMailTo,strSubject,strPlainText,strAttachFile,nPriority,bLua,strLua = c_GetHTTPEvent(domain, eventID)
if eventID >= WEB_BEFORE_LOGIN_EVENT then
luaScriptFirst = true
end
elseif type == "ssh" then
bExecute,strExeFile,strParam,bLogfile,strLogFileName,strLogText,bSendMail,strMailTo,strSubject,strPlainText,strAttachFile,nPriority,bLua,strLua = c_GetSSHEvent(domain, eventID)
if eventID >= SSH_BEFORE_LOGIN_EVENT then
luaScriptFirst = true
end
else
bExecute,strExeFile,strParam,bLogfile,strLogFileName,strLogText,bSendMail,strMailTo,strSubject,strPlainText,strAttachFile,nPriority,bLua,strLua = c_GetFTPEvent(domain, eventID)
if eventID >= FTP_BEFORE_LOGIN_EVENT then
luaScriptFirst = true
end
end
%>