home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / setiq.xml < prev    next >
Text File  |  2002-10-23  |  7KB  |  152 lines

  1.  <search function="setiq">
  2.    <name>Setiqueue</name>
  3.    <description>
  4.       Directly login as an admin to your setiqueue web admin interface without having the hassle to go through the login page.<br/>
  5.     <div class="helpboxDescLabels">Usage:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>setiq <<i>password</i>> [/server:<<i>serveraddress</i>> [/port:<<i>portnumber</i>>]] [/connect[:<<i>duration</i>>]] [/display:<<i>page</i>>] [/delay:<<i>delay</i>>]</td></tr>
  8.     </table>
  9.     <div class="helpboxDescLabels">Switches:</div>
  10.     <table class="helpboxDescTable">
  11.       <tr><td>/server:serveraddress</td><td> - </td><td>specify server IP address or name (127.0.0.1 by default)</td></tr>
  12.       <tr><td>/port:portnumber</td><td> - </td><td>specify port number (5517 by default)</td></tr>
  13.       <tr><td>/connect:duration</td><td> - </td><td>tell SetiQueue to connect to the Internet. You can specify one of the following durations (30 minutes by default):
  14.         <table class="helpboxDescTable">
  15.           <tr><td><b>0.5</b> or <b>30</b></td><td> - </td><td>30 minutes</td></tr>
  16.           <tr><td><b>1</b> or <b>60</b></td><td> - </td><td>1 hour</td></tr>
  17.           <tr><td><b>2</b> or <b>120</b></td><td> - </td><td>2 hours</td></tr>
  18.           <tr><td><b>4</b> or <b>240</b></td><td> - </td><td>4 hours</td></tr>
  19.         </table>
  20.       </td></tr>
  21.       <tr><td>/dislay:page</td><td> - </td><td>display specified page (without htm extension)</td></tr>
  22.       <tr><td>/delay:delay</td><td> - </td><td>delay in ms between 2 form submissions (500 by default). Increase for slow computers.</td></tr>
  23.     </table>
  24.     <div class="helpboxDescLabels">Examples:</div>
  25.     <table class="helpBoxDescTable">
  26.       <tr><td>setiq mypassword</td></tr>
  27.       <tr><td>setiq mypassword /server:localhost /port:6000 /connect:4 /display:logs /delay:2000</td></tr>
  28.     </table>
  29.     <div class="helpboxDescLabels" style="color: red">Security warning:<br/>
  30.     <table class="helpBoxDescTable">
  31.       <tr><td style="color: red">Be aware that your password will remain in DQSD's history.</td></tr>
  32.     </table>
  33.     </div>
  34.     <div class="helpboxDescLabels" style="color: red">Compatibility warning:<br/>
  35.     <table class="helpBoxDescTable">
  36.       <tr><td style="color: red">If you are using DQSD v3.0 or earlier and you specify an IP address for the serveraddress parameter, you will need to edit defer_tools.js and change<br/>
  37.         <nobr><span style="font-family: monospace; color: #000000">  var re_switch = /\/((\w+)(?::?(\w*)))\s*/;</span></nobr><br/>
  38.         to<br/>
  39.         <nobr><span style="font-family: monospace; color: #000000">  var re_switch = /\/((\w+)(?::?(\S*)))\s*/;</span></nobr></td></tr>
  40.     </table>
  41.     </div>
  42.    </description>
  43.   <category>Functions</category>
  44.   <link>http://www.setiqueue.org</link>
  45.   <contributor>MLL</contributor>
  46.  
  47.   <form name="setiqf"
  48.         method="post">
  49.     <input type="hidden" name="User"/>
  50.     <input type="hidden" name="Pass"/>
  51.   </form>
  52.  
  53.   <form name="setiqcf"
  54.         method="post">
  55.     <input type="hidden" name="Connect"/>
  56.     <!-- for future other options ?
  57.       <input type="hidden" name="StopService" value='Stop SetiQueue Service'>
  58.       <input type="hidden" name="Exit" value='Terminate Program'>
  59.     -->
  60.   </form>
  61.  
  62.   <form name="setiqlf"
  63.         method="get">
  64.   </form>
  65.  
  66.  
  67.   <script><![CDATA[
  68.     function setiq( q )
  69.     {
  70.       if( nullArgs( "setiq", q ) )
  71.         return false;
  72.       else
  73.       {
  74.         var switch_list = new Array( "server", "port", "connect", "display", "delay" );
  75.         var args = parseArgs( q, switch_list );
  76.         
  77.         var serveraddress="127.0.0.1";
  78.         if( !( typeof args.switch_val["server"] == "undefined" || args.switch_val["server"] == "" ) )
  79.         {
  80.           serveraddress=args.switch_val["server"];
  81.         }
  82.  
  83.         var portnumber="5517";
  84.         if( !( typeof args.switch_val["port"] == "undefined" || args.switch_val["port"] == "" ) )
  85.         {
  86.           portnumber=args.switch_val["port"];
  87.         }
  88.         
  89.         var mydelay="500";
  90.         if( !( typeof args.switch_val["delay"] == "undefined" || args.switch_val["delay"] == "" ) )
  91.         {
  92.           mydelay=args.switch_val["delay"];
  93.         }
  94.         
  95.  
  96.         if( !( typeof args.switch_val["connect"] == "undefined" ) )
  97.         {
  98.           var duration=args.switch_val["connect"];
  99.           switch( duration * 1 )
  100.           {
  101.             case 0: duration = "30 min"; break;
  102.             case .5:  duration = "30 min"; break;
  103.             case 30:  duration = "30 min"; break;
  104.             case 1:   duration = "1 hour"; break;
  105.             case 60:  duration = "1 hour"; break;
  106.             case 2:   duration = "2 hours"; break;
  107.             case 120: duration = "2 hour3"; break;
  108.             case 4:   duration = "4 hours"; break;
  109.             case 240: duration = "4 hours"; break;
  110.             case "": duration = "30 min"; break;
  111.             default:
  112.             {
  113.               nullArgs( "setiq", "?" );
  114.               return false;
  115.             }
  116.           }
  117.         }
  118.  
  119.         document.setiqf.action = "http://"+serveraddress+":"+portnumber+"/login.htm?";
  120.         document.setiqf.User.value="admin";
  121.         document.setiqf.Pass.value=args.q;
  122.         document.setiqf.target=DQSD_BROWSER_WINDOW_NAME + '_setiqf';
  123.         submitForm(document.setiqf, true);
  124.  
  125.         if( duration )
  126.         {
  127.           document.setiqcf.action = "http://"+serveraddress+":"+portnumber+"/connect.htm?";
  128.           document.setiqcf.Connect.value=duration;
  129.           document.setiqcf.target=document.setiqf.target;
  130.           setTimeout( "submitForm(document.setiqcf, true);", mydelay );
  131.         }
  132.  
  133.         if( !( typeof args.switch_val["display"] == "undefined" || args.switch_val["display"] == "" ) )
  134.         {
  135.           //mmh... I use a form, but I'm sure it's overkill. How to change the location URL of the opened window?
  136.           document.setiqlf.action = "http://"+serveraddress+":"+portnumber+"/" + args.switch_val["display"] + ".htm";
  137.           document.setiqlf.target=document.setiqf.target;
  138.           setTimeout( "submitForm(document.setiqlf, true);", mydelay );
  139.         }
  140.  
  141.         return true;
  142.       }
  143.     }
  144.   ]]></script>
  145.  
  146.   <copyright>
  147.     Copyright (c) 2002 David Bau
  148.     Distributed under the terms of the
  149.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  150.   </copyright>
  151. </search>
  152.