#!/usr/bin/perl
-# $Id: search.cgi,v 1.5 2000/01/11 05:43:18 tausq Exp $
+# $Id: search.cgi,v 1.6 2000/03/26 22:13:25 tausq Exp $
# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
use lib '.';
$data = $entries->{$dn};
# These are local variables.. i have enough global vars as it is... <sigh>
- my ($ufdn, $login, $name, $email, $fingerprint, $address, $latlong, $vacation, $created, $modified, $lastseen) = undef;
+ my ($ufdn, $login, $name, $icquin, $email, $fingerprint, $address, $latlong, $vacation, $created, $modified, $lastseen) = undef;
$ufdn = $dn; # Net::LDAP does not have a dn2ufn function, but this is close enough :)
$email .= "<a href=\"mailto:$_\">$_</a>";
}
+ # ICQ
+ if ($data->{icquin}->[0]) {
+ $icquin = sprintf("<a href=\"http://wwp.icq.com/?icqnumber=%s\">%s</a>", $data->{icquin}->[0], $data->{icquin}->[0]);
+ }
+
# Format PGP/GPG key fingerprints
my $fi;
foreach (@{$data->{keyfingerprint}}) {
$outsub{searchresults} .= FormatEntry($dataspecref->{ircnick}, $data->{ircnick}->[0]);
$outsub{searchresults} .= FormatEntry($dataspecref->{loginshell}, $data->{loginshell}->[0]);
$outsub{searchresults} .= FormatEntry($dataspecref->{fingerprint}, $fingerprint);
+ if ($icquin) {
+ $outsub{searchresults} .= FormatEntry($dataspecref->{icquin}, $icquin);
+ }
if ($auth) {
# Some data should only be available to authorized users...
<META NAME="Language" CONTENT="English">
<meta name="Author" content="Debian Webmaster, webmaster@debian.org">
<meta name="Generator" content="WML 1.7.2 (28-06-1999)">
-<meta name="Modified" content="10-01-2000 21:51:34">
+<meta name="Modified" content="26-03-2000 14:52:42">
</HEAD>
<BODY text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#800080" alink="#FF0000">
<TABLE border="0" cellpadding="3" cellspacing="0" width="100%">
<?searchresults
(login, uid)
(irc Nickname, ircnick)
+(ICQ UIN, icquin)
(Preferred shell, loginshell)
(e-mail forwarded to, email)
(PGP/GPG fingerprint, fingerprint)
<P>Back to the <A href="http://www.debian.org/">Debian Project homepage</A>.
<HR>
<SMALL>You can contact us at <A href="mailto:admin@db.debian.org">admin@db.debian.org</A>.</SMALL><P>
-<SMALL>Last Modified: Tue, Jan 11 04:51:34 UTC 2000<BR>
+<SMALL>Last Modified: Sun, Mar 26 21:52:42 UTC 2000<BR>
Copyright © 1997-1999 <A href="http://www.spi-inc.org/">SPI</A>; See <A href="http://www.debian.org/license">license terms</A>
</SMALL>
<?searchresults
(login, uid)
(irc Nickname, ircnick)
+(ICQ UIN, icquin)
(Preferred shell, loginshell)
(e-mail forwarded to, email)
(PGP/GPG fingerprint, fingerprint)
#!/usr/bin/perl
-# $Id: update.cgi,v 1.5 1999/12/13 04:56:48 tausq Exp $
+# $Id: update.cgi,v 1.6 2000/03/26 22:13:25 tausq Exp $
# (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
use lib '.';
LDAPUpdate($ldap, $editdn, 'emailForward', $query->param('email'));
LDAPUpdate($ldap, $editdn, 'privatesub', $query->param('privatesub'));
LDAPUpdate($ldap, $editdn, 'ircNick', $query->param('ircnick'));
+ LDAPUpdate($ldap, $editdn, 'icquin', $query->param('icquin'));
LDAPUpdate($ldap, $editdn, 'labeledUrl', $query->param('labeledurl'));
LDAPUpdate($ldap, $editdn, 'onvacation', $query->param('onvacation'));
<META NAME="Keywords" CONTENT="debian, GNU, linux, unix, open source, free, DFSG ">
<META NAME="Language" CONTENT="English">
<meta name="Author" content="Debian Webmaster, webmaster@debian.org">
-<meta name="Generator" content="WML 1.6.8 (12-01-1999)">
-<meta name="Modified" content="14-02-2000 12:23:51">
+<meta name="Generator" content="WML 1.7.2 (28-06-1999)">
+<meta name="Modified" content="26-03-2000 15:03:09">
</HEAD>
<BODY text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#800080" alink="#FF0000">
<TABLE border="0" cellpadding="3" cellspacing="0" width="100%">
</td><td>
<input name="facsimiletelephonenumber" value="~facsimiletelephonenumber~" size="30">
</td></tr>
+ <tr><td align="right">
+ <b>ICQ UIN:</b>
+ </td><td>
+ <input name="icquin" value="~icquin~" size="30">
+ </td></tr>
<tr><td align="right">
<b>Preferred shell:</b>
</td><td>
<P>Back to the <A href="http://www.debian.org/">Debian Project homepage</A>.
<HR>
<SMALL>You can contact us at <A href="mailto:admin@db.debian.org">admin@db.debian.org</A>.</SMALL><P>
-<SMALL>Last Modified: Mon, Feb 14 19:23:51 UTC 2000<BR>
+<SMALL>Last Modified: Sun, Mar 26 22:03:09 UTC 2000<BR>
Copyright © 1997-1999 <A href="http://www.spi-inc.org/">SPI</A>; See <A href="http://www.debian.org/license">license terms</A>
</SMALL>
<input name=facsimiletelephonenumber value="~facsimiletelephonenumber~" size=30>
</td></tr>
+ <tr><td align=right>
+ <b>ICQ UIN:</b>
+ </td><td>
+ <input name=icquin value="~icquin~" size=30>
+ </td></tr>
+
<tr><td align=right>
<b>Preferred shell:</b>
</td><td>