<% 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 %> Event Editor
><%=LANG["str_enable_execute"]%>
 
<%=LANG["str_execute_path"]%>:
<%=LANG["str_parameters"]%>:
><%=LANG["str_enable_writelog"]%>
 
<%=LANG["str_writelog_path"]%>:
<%=LANG["str_logtext"]%>:
><%=LANG["str_enable_sendmail"]%>
<%=LANG["str_sendto"]%>:'" onclick="if(this.value =='<%=LANG["str_multiple_emails"]%>' ) this.value=''" style="width:300px;color:#898989;" value="<%=specialhtml_encode(strMailTo)%>">
<%=LANG["str_subject"]%>:
<%=LANG["str_plaintext"]%>:
<%=LANG["str_attachfile"]%>:
<%=LANG["str_priority"]%>:
><%=LANG["str_enablelua"]%>
<%=LANG["str_luascript"]%>:
" id="selectHead" style="width:100px;height:24px;border:0px;cursor:pointer;background:url('images/btn3_1.gif') no-repeat;" onclick="drawSelect('selectHead','selectContent',insertText)">
<%=LANG["str_luahelp"]%>
 
<% else %> <% end %> <% else print("") print("") end %>