View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/searches
In directory usw-pr-cvs1:/tmp/cvs-serv29653/searches
Modified Files:
smlnk.xml
Removed Files:
smlnkey.xml
Log Message:
Merge smlnkey into smlnk. Use smlnk /key {key} now
Index: smlnk.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/smlnk.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** smlnk.xml 10 Sep 2002 14:04:03 -0000 1.2
--- smlnk.xml 10 Sep 2002 14:55:47 -0000 1.3
***************
*** 3,9 ****
--- 3,15 ----
<description>
smLNK is a link-shortening redirector where the URLs are as short as
possible.<br/>
+ <div class="helpboxDescLabels">Switches:</div>
+ <table class="helpboxDescTable">
+ <tr><td>[/url]</td><td> - </td><td>The url that is to be shortened</td></tr>
+ <tr><td>/key</td><td> - </td><td>Get the url that corresponds to the given
+key</td></tr>
+ </table>
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr><td>smlnk http://reallylongurltoannoyyou.com</td></tr>
+ <tr><td>smlnk /key ABCE1234</td></tr>
</table>
</description>
***************
*** 15,19 ****
action="http://smlnk.com/index.php"
method="post">
! <input type="hidden" name="url000"/>
</form>
<script><![CDATA[
--- 21,26 ----
action="http://smlnk.com/index.php"
method="post">
! <input type="hidden" name="url000" />
! <input type="hidden" name="hash000" />
</form>
<script><![CDATA[
***************
*** 22,30 ****
if( nullArgs("smlnk", q) )
return false;
else
{
! document.smlnkf.url000.value = q;
! submitForm(smlnkf);
}
}
]]></script>
--- 29,57 ----
if( nullArgs("smlnk", q) )
return false;
+
+ document.smlnkf.hash000.value = "";
+ document.smlnkf.url000.value = "";
+
+ var args = parseArgs(q, "url, key");
+ if ( args.switches.length > 0 )
+ {
+ switch( args.switches[0].name )
+ {
+ case "key":
+ document.smlnkf.hash000.value = args.q;
+ break;
+ case "url":
+ default:
+ document.smlnkf.url000.value = args.q;
+ break;
+ }
+ }
else
{
! document.smlnkf.url000.value = args.q;
}
+
+ submitForm(smlnkf);
+
}
]]></script>
--- smlnkey.xml DELETED ---
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/