View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd/searches
In directory sc8-pr-cvs1:/tmp/cvs-serv19873/searches

Modified Files:
        fe.xml 
Added Files:
        dyndns.xml 
Log Message:
* fe now takes extensions or single letter or 'num' or 'syn'
* dyndns - search dyndns

--- NEW FILE: dyndns.xml ---
<search function="dyndns">
  <name>Dyndns beta</name>
  <category>Computers</category>
  <contributor>MLL</contributor>
  <link>http://beta.dyndns.org/</link>
  <email></email>
  <description>
    <div class="helpboxDescLabels">Switches:</div>
    <table class="helpboxDescTable">
      <tr><td>/password</td><td> - </td><td></td></tr>
    </table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
      <tr><td></td></tr>
      <tr><td></td></tr>
    </table>
  </description>
  <form name="dyndnsf"
        method="post"
        action="https://beta.dyndns.org/index.html";>
    <input type="hidden" name="__login" value="1" />
    <input type="hidden" name="username" value="mll02" />

    <input type="hidden" name="password" value="" />
  </form>
  <script><![CDATA[
    function dyndns(q)
    {
      if( nullArgs("dyndns", q) )
        return;

      // Parse switches with parseArgs:

      // parseArgs usage:
      // Arguments:
      //    q                - string from the search function
      //    expectedSwitches - list or array of the expected switch values
      //    expandSwitches   - optional parameter [default = true] used to determine 
      //                       if the switch shortcuts should be expanded (i.e. /f 
becomes /foo)
      // Returns an object with these properties:
      //    q        - the input string with the switches removed
      //    switches - array of objects with these two properties:
      //                  name:   expanded name of the matched switch (i.e. foo as in 
/foo:bar)
      //                  value:  value of switch (i.e. bar as in /foo:bar)
      //    switch_val - associative array with the switch name as the key with the 
switch value 
      //                 as the value. (i.e. switch_val["foo"] = "bar" as in /foo:bar)

      var args = parseArgs(q, "password");
      //for (var iSwitch = 0; iSwitch < args.switches.length; iSwitch++)
      //{
      //  switch( args.switches[iSwitch].name )
      //  {
      //    case "username":
      //      break;
      //    case "password":
      //      break;
      //    default:
      //      break;
      //  }
      //}

      // FORM variables for dyndnsf
      //document.dyndnsf.__login.value = "";
      document.dyndnsf.username.value = args.q;

      document.dyndnsf.password.value = args.switch_val["password"];

      submitForm(dyndnsf);
    }
  ]]></script>
  <copyright>
    The following applies if this file is included and distributed with Dave's Quick 
Search Deskbar:
    Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public 
License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
  <created_by>
    This search file was initially created on 02/18/03 at 15:15:13
    by Dave's Quick Search Deskbar Search Wizard version 1.0.1 ,
    Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General 
Public License, Version 2
  </created_by>
</search>

Index: fe.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/fe.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** fe.xml      14 Jan 2003 20:17:42 -0000      1.8
--- fe.xml      29 Mar 2003 08:23:46 -0000      1.9
***************
*** 5,39 ****
      <div class="helpboxDescLabels">Usage:</div>
        <table class="helpboxDescTable">
!               <tr><td>fe {[a..z] | num | sym }</td></tr>
        </table>
      <div class="helpboxDescLabels">Example:</div>
      <table class="helpboxDescTable">
!               <tr><td>fe D</td></tr>
!               <tr><td>fe doc</td></tr>
        <tr><td>fe sym</td></tr>
!               <tr><td>fe num</td></tr>
        </table>
    </description>
    <category>Computers<category>Reference</category></category>
!   <link>http://www.filext.com/</link>
    
    <script><![CDATA[
      function fe(q)
      {
!       if( nullArgs("fe",q) )
!         return false;
  
        q = q.toLowerCase();
!       if (q == 'sym' || q == 'num') {
!         openSearchWindow("http://www.filext.com/"; + q + ".htm");
!       } else if (/^[a-z]/i.test(q)) {
!         openSearchWindow("http://www.filext.com/"; + q.charAt(0) + ".htm");
!       } else if (/^[0-9]/i.test(q)) {
!         openSearchWindow("http://www.filext.com/num.htm";);
        } else if (/^[\W_]/i.test(q)) {
          openSearchWindow("http://www.filext.com/sym.htm";);
        } else {
!           nullArgs("fe","?");
        }
      }
    ]]></script>
--- 5,54 ----
      <div class="helpboxDescLabels">Usage:</div>
        <table class="helpboxDescTable">
!       <tr><td colspan="3">fe {[a..z] | num | sym | extension}</td></tr>
!       <tr><td>[a..z]</td><td> - </td><td>list all extensions starting with this 
letter</td></tr>
!       <tr><td>num</td><td> - </td><td>list all extensions starting with 
numbers</td></tr>
!       <tr><td>sym</td><td> - </td><td>list all extensions starting with 
symbols</td></tr>
!       <tr><td>extension</td><td> - </td><td>show this particular extension</td></tr>
        </table>
      <div class="helpboxDescLabels">Example:</div>
      <table class="helpboxDescTable">
!       <tr><td>fe D</td></tr>
!       <tr><td>fe 8</td></tr>
        <tr><td>fe sym</td></tr>
!       <tr><td>fe num</td></tr>
!               <tr><td>fe doc</td></tr>
        </table>
    </description>
    <category>Computers<category>Reference</category></category>
!   <link>http://filext.com/</link>
!   <form name="fef"
!         method="get"
!         action="http://filext.com/detaillist.php";>
!     <input type="hidden" name="extdetail" value="" />
!   </form>
    
    <script><![CDATA[
      function fe(q)
      {
!       if( nullArgs("fe", q) )
!         return;
  
        q = q.toLowerCase();
! 
!       if (q == 'sym') {
!         openSearchWindow("http://filext.com/alphalist.php?extstart=^[^A-Z0-9]";);
!       } else if (q == 'num') {
!         openSearchWindow("http://filext.com/alphalist.php?extstart=^[0-9]";);
!       } else if (/^[a-z]/i.test(q) && q.length == 1) {
!         openSearchWindow("http://filext.com/alphalist.php?extstart=^"+q);
        } else if (/^[\W_]/i.test(q)) {
          openSearchWindow("http://www.filext.com/sym.htm";);
        } else {
!         document.fef.extdetail.value = q;
!         submitForm(fef);
        }
+ 
+ 
+ 
      }
    ]]></script>




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to