From: Peter Palfrader Date: Sun, 25 May 2008 16:04:55 +0000 (+0200) Subject: Add VoIP field to CGI [zobel]. X-Git-Tag: release-0.3.33~72 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=commitdiff_plain;h=f1cce6d72917e0d399b178e373c0737ce0dcb59f;hp=d807a73baa1d9bf27e6bf4351d5886e5b0761524 Add VoIP field to CGI [zobel]. --- diff --git a/debian/changelog b/debian/changelog index 635708c..513d852 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ userdir-ldap-cgi (0.3.10) unstable; urgency=low * Make machines.cgi display the purpose attribute from LDAP [HE]. + * Add VoIP field to CGI [zobel]. - -- Peter Palfrader Fri, 14 Mar 2008 22:15:17 +0100 + -- Peter Palfrader Sun, 25 May 2008 18:04:35 +0200 userdir-ldap-cgi (0.3.9) unstable; urgency=low diff --git a/search.cgi b/search.cgi index 2a1a51e..96d8135 100755 --- a/search.cgi +++ b/search.cgi @@ -222,6 +222,7 @@ if (!$dosearch) { $outsub{searchresults} .= FormatEntry($dataspecref->{latlong}, $latlong); $outsub{searchresults} .= FormatEntry($dataspecref->{phone}, $data->{telephonenumber}->[0] || "- unlisted -"); $outsub{searchresults} .= FormatEntry($dataspecref->{fax}, $data->{fascimiletelephonenumber}->[0] || "- unlisted -"); + $outsub{searchresults} .= FormatEntry($dataspecref->{VoIP}, $data->{VoIP}->[0] || "- unlisted -"); $outsub{searchresults} .= FormatEntry($dataspecref->{lastseen}, $lastseen); # $outsub{searchresults} .= FormatEntry($dataspecref->{created}, $created); # $outsub{searchresults} .= FormatEntry($dataspecref->{modified}, $modified); diff --git a/update.cgi b/update.cgi index d1aa73a..e1f7c96 100755 --- a/update.cgi +++ b/update.cgi @@ -194,6 +194,7 @@ if (!($query->param('doupdate'))) { &Util::LDAPUpdate($ldap, $editdn, 'postalCode', $query->param('postalcode')); &Util::LDAPUpdate($ldap, $editdn, 'telephoneNumber', $query->param('telephonenumber')); &Util::LDAPUpdate($ldap, $editdn, 'facsimileTelephoneNumber', $query->param('facsimiletelephonenumber')); + &Util::LDAPUpdate($ldap, $editdn, 'VoIP', $query->param('VoIP')); &Util::LDAPUpdate($ldap, $editdn, 'loginShell', $query->param('loginshell')); &Util::LDAPUpdate($ldap, $editdn, 'emailForward', $query->param('email')); &Util::LDAPUpdate($ldap, $editdn, 'privateSub', $query->param('privatesub'));