home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 August / INTERNET94.ISO / pc / software / windows / mail / ft_gate_office / ftgateoffice105.exe / Main / command.fts < prev    next >
Encoding:
Text File  |  2002-03-08  |  3.9 KB  |  176 lines

  1. <%
  2. #include </utility/security.fts>
  3. #include </utility/global.fts>
  4. #include </utility/theme.fts>
  5. #include </utility/ftgate.fts>
  6.  
  7. var d = new server.domain
  8. var m
  9.  
  10. var domain
  11. var name
  12.  
  13. session.system.error=0
  14.  
  15. if ((form.command==1)||(form.command==3))
  16. {
  17.     domain = form.domain
  18.     name = form.name
  19.  
  20.     d.domainname = form.domain
  21.     m = new d.mailbox
  22.     m.name=name
  23.  
  24.     m.command=form.path
  25.  
  26.     output.redirect("script.fts?domain="+form.domain+"&name="+form.name)
  27. }
  28. else if (form.command=="2")
  29. {
  30.     d.domainname = form.domain
  31.     m = new d.mailbox
  32.     m.name=form.name
  33.  
  34.     var suffix = ".fts?domain="+form.domain+"&name="+form.name
  35.     output.redirect("general"+suffix)
  36. }
  37. else
  38. {
  39.     domain = request.domain
  40.     name = request.name
  41.  
  42.     d.domainname = request.domain
  43.     m = new d.mailbox
  44.     m.name=name
  45. }
  46. %>
  47. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  48. <HTML>
  49. <HEAD>
  50. <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
  51. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  52. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  53. <TITLE>Mailbox Wizard</TITLE>
  54. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  55. <!--
  56. var dir="<%=buttons%>";
  57.  
  58. <%
  59. if (netscape)
  60. {
  61.   %>
  62.   document.captureEvents(Event.KEYPRESS);
  63.   document.onkeypress = keypress;
  64.  
  65.   function keypress(event)
  66.   {
  67.     if (event.which==13)
  68.     {
  69.       onNext();
  70.       return false;
  71.     }
  72.  
  73.     return true;
  74.   }
  75.   <%
  76. }
  77. else
  78. {
  79.   %>
  80.   function keypress()
  81.   {
  82.     if (event.keyCode==13)
  83.     {
  84.       event.returnValue=null;
  85.       onNext();
  86.     }
  87.   }
  88.   <%
  89. }
  90. %>
  91.  
  92. function isOK(form)
  93. {
  94.     return true;
  95. }
  96.  
  97. function onLoad()
  98. {
  99.     <%
  100.     if (session.system.error)
  101.     {
  102.         output.writeln("alert(aspError("+session.system.error+"));")
  103.     }
  104.     %>
  105.   document.ftgate.path.focus();
  106. }
  107. //-->
  108. </SCRIPT>
  109. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  110. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  111. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/wizard.js" TYPE="text/javascript"></SCRIPT>
  112. </HEAD>
  113.  
  114. <%
  115. var pagetitle="Command"
  116. #include <header.fts>
  117. %>
  118.  
  119. <!--- start of the tabs ---->
  120. <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="command.fts">
  121. <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
  122. <INPUT TYPE="HIDDEN" NAME="domain" VALUE="<%=domain%>">
  123. <INPUT TYPE="HIDDEN" NAME="name" VALUE="<%=name%>">
  124.  
  125. <!--- start of the tab body --->
  126. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  127. <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
  128.   <!----- start of block --->
  129.   <TR>
  130.     <TD VALIGN="TOP">
  131.         <!----- sub table goes here --->
  132.         <TABLE BORDER="0" WIDTH="100%">
  133.           <TR>
  134.                 <TD>
  135.                         <TABLE BORDER="0" WIDTH="100%">
  136.                             <TR>
  137.                                 <TD>
  138.                                     <TABLE BORDER="0" WIDTH="100%">
  139.                                         <TR>
  140.                                             <TH>Enter the command line that you wish to execute.<P></TH>
  141.                                         </TR>
  142.                                         <TR>
  143.                                             <TD>
  144.                                                 Note: you must specify the full path to the file and include the extension
  145.                                                 (.exe).  You may use command line option %FILE% to represent
  146.                                                 the mail message that will be processed by te command.<P>
  147.  
  148.                                                 e.g. c:\windows\notepad.exe %FILE%<p>
  149.  
  150.                                                 <INPUT TYPE="EDIT" NAME="path" SIZE="<%=size60%>" VALUE="<%=m.command%>">
  151.                                             </TD>
  152.                                         </TR>
  153.                                     </TABLE>
  154.                                 </TD>
  155.                             </TR>
  156.                         </TABLE>
  157.           </TD>
  158.             </TR>
  159.                 <%
  160.                 #include <footer.fts>
  161.                 %>
  162.         </TABLE>
  163.         <!----- sub table ends here --->
  164.     </TD>
  165.   </TR>
  166.   <!------ end of block ----->
  167. </TABLE>
  168. <!--- end of the tab body --->
  169. </TD></TR></TABLE>
  170. <INPUT TYPE="HIDDEN" NAME="href" VALUE="/mailboxes/wizard/command.fts?domain=<%=domain%>&name=<%=name%>">
  171. </FORM>
  172.  
  173. </TD><TD WIDTH="10"> </TD></TR></TABLE>
  174. </BODY>
  175. </HTML>
  176.