Hi everybody,
If you search for ET through the seti@home project, and use setiqueue (a great
setiqueue proxy / statistic tool), this "search" file is for you. As its description
says, it allows you to "Directly login as an admin to your setiqueue web admin
interface without having the hassle to go through the login page."
Please read the warning in its description before using the /server parameter.
Happy to contribute once more.
Note for the CVSmasters : please feel free to edit it before uploading, especially the
awkward english sentences.
Cheers,
MLL
<search function="setiq">
<name>Setiqueue</name>
<description>
Directly login as an admin to your setiqueue web admin interface without having the hassle to go through the login page.<br/>
<a class="helpboxDescLabels">Switches:</a><br />
<table class="helpboxDescTable">
<tr><td>/server:serveradress</td><td> - </td><td>Specifiy server IP address or name (127.0.0.1 if not specified)</td></tr>
<tr><td>/port:portnumber</td><td> - </td><td>Specifiy port number (5517 if not specified)</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpBoxDescTable">
<tr><td class="helpboxDescColumns">setiq mypassword</td></tr>
<tr><td class="helpboxDescColumns">setiq mypassword /server:localhost /port:6000</td></tr>
</table>
<div class="helpboxDescLabels">Warning</div>
<table class="helpBoxDescTable">
<tr><td class="helpboxDescColumns">If you specifiy an IP address for the serveraddress parameter, you might need to edit defer_tools.js and change<br/>
<nobr><span style="font-family: monospace"> var re_switch = /\/((\w+)(?::?(\w*)))\s*/;</span></nobr><br/>
for<br/>
<nobr><span style="font-family: monospace"> var re_switch = /\/((\w+)(?::?(\S*)))\s*/;</span></nobr></td></tr>
</table>
</description>
<category>Functions</category>
<link>http://www.setiqueue.org</link>
<contributor>MLL</contributor>
<version>1.0</version>
<form method="POST" name='setiqForm'>
Please enter the access password<br/>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="40"></td>
<td>
<table>
<tr>
<td>User Name:</td>
<td><input type="text" name="User" size="20"/></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="Pass" size="32"/></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<script><![CDATA[
function setiq(q)
{
if(nullArgs("setiq", q))
return false;
else
{
var switch_list = new Array("server", "port");
var args = parseArgs(q, switch_list);
var serveraddress="127.0.0.1";
if (! ( typeof args.switch_val["server"] == "undefined" || args.switch_val["server"] == "" ) )
{
serveraddress=args.switch_val["server"];
}
var portnumber="5517";
if (! ( typeof args.switch_val["port"] == "undefined" || args.switch_val["port"] == "" ) )
{
portnumber=args.switch_val["port"];
}
var formaction = "http://"+serveraddress+":"+portnumber+"/login.htm?";
setiqForm.action = formaction;
setiqForm.User.value="admin" ;
setiqForm.Pass.value=args.q ;
submitForm(setiqForm);
return true;
}
}
]]></script>
</search>