From 2c4ed3fd34b242ce91e22650446200b4a7e939e7 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Thu, 24 May 2001 10:10:47 +0000 Subject: Bug 71552 - Remove oldemailtech from Bugzilla r= justdave@syndicomm.com --- editusers.cgi | 57 +++++++++------------------------------------------------ 1 file changed, 9 insertions(+), 48 deletions(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index 3fe7ccb8b..a38f86b3c 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -97,10 +97,10 @@ sub EmitElement ($$) # Displays the form to edit a user parameters # -sub EmitFormElements ($$$$$$$$) +sub EmitFormElements ($$$$$$) { my ($user, $password, $realname, $groupset, $blessgroupset, - $emailnotification, $disabledtext, $newemailtech) = @_; + $disabledtext) = @_; print " Login name:\n"; EmitElement("user", $user); @@ -119,25 +119,6 @@ sub EmitFormElements ($$$$$$$$) } print "\n"; - if (!$newemailtech) { - print " Email notification:\n"; - print qq{\n"; - print "\n"; - } - print " Disable text:\n"; print " \n"; @@ -397,7 +378,7 @@ if ($action eq 'add') { print "
\n"; print "\n"; - EmitFormElements('', '', '', 0, 0, 'ExcludeSelfChanges', '', 1); + EmitFormElements('', '', '', 0, 0, ''); print "
\n
\n"; print "\n"; @@ -515,10 +496,9 @@ if ($action eq 'del') { CheckUser($user); # display some data about the user - SendSQL("SELECT realname, groupset, emailnotification, newemailtech - FROM profiles + SendSQL("SELECT realname, groupset FROM profiles WHERE login_name=" . SqlQuote($user)); - my ($realname, $groupset, $emailnotification, $newemailtech) = + my ($realname, $groupset) = FetchSQLData(); $realname ||= "missing"; @@ -535,12 +515,6 @@ if ($action eq 'del') { print " Real name:\n"; print " $realname\n"; - if ( !$newemailtech ) { - print "\n"; - print " E-Mail notification:\n"; - print " $emailnotification\n"; - } - print "\n"; print " Group set:\n"; print " "; @@ -680,18 +654,17 @@ if ($action eq 'edit') { CheckUser($user); # get data of user - SendSQL("SELECT password, realname, groupset, blessgroupset, - emailnotification, disabledtext, newemailtech + SendSQL("SELECT password, realname, groupset, blessgroupset, disabledtext FROM profiles WHERE login_name=" . SqlQuote($user)); - my ($password, $realname, $groupset, $blessgroupset, $emailnotification, - $disabledtext, $newemailtech) = FetchSQLData(); + my ($password, $realname, $groupset, $blessgroupset, + $disabledtext) = FetchSQLData(); print "\n"; print "\n"; EmitFormElements($user, $password, $realname, $groupset, $blessgroupset, - $emailnotification, $disabledtext, $newemailtech); + $disabledtext); print "
\n"; @@ -702,10 +675,6 @@ if ($action eq 'edit') { print "\n"; print "\n"; print "\n"; - if (!$newemailtech) { - print "\n"; - } print "\n"; print "\n"; @@ -731,8 +700,6 @@ if ($action eq 'update') { my $realnameold = trim($::FORM{realnameold} || ''); my $password = trim($::FORM{password} || ''); my $passwordold = trim($::FORM{passwordold} || ''); - my $emailnotification = trim($::FORM{emailnotification} || ''); - my $emailnotificationold = trim($::FORM{emailnotificationold} || ''); my $disabledtext = trim($::FORM{disabledtext} || ''); my $disabledtextold = trim($::FORM{disabledtextold} || ''); my $groupsetold = trim($::FORM{groupsetold} || '0'); @@ -796,12 +763,6 @@ if ($action eq 'update') { print "Updated ability to tweak permissions of other users.\n"; } - if ($editall && $emailnotification ne $emailnotificationold) { - SendSQL("UPDATE profiles - SET emailnotification=" . SqlQuote($emailnotification) . " - WHERE login_name=" . SqlQuote($userold)); - print "Updated email notification.
\n"; - } if(!Param('useLDAP')) { if ($editall && $password ne $passwordold) { my $q = SqlQuote($password); -- cgit v1.2.3-24-g4f1b