svnno****@sourc*****
svnno****@sourc*****
2008年 1月 4日 (金) 13:02:25 JST
Revision: 401 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=401 Author: caesar Date: 2008-01-04 13:02:25 +0900 (Fri, 04 Jan 2008) Log Message: ----------- deletion test ok Modified Paths: -------------- slashjp/branches/deluser/plugins/DelUser/deluser.pl slashjp/branches/deluser/plugins/DelUser/templates/deleteUser;deluser;default -------------- next part -------------- Modified: slashjp/branches/deluser/plugins/DelUser/deluser.pl =================================================================== --- slashjp/branches/deluser/plugins/DelUser/deluser.pl 2008-01-03 16:47:28 UTC (rev 400) +++ slashjp/branches/deluser/plugins/DelUser/deluser.pl 2008-01-04 04:02:25 UTC (rev 401) @@ -7,12 +7,9 @@ use strict; use utf8; use Slash; -#use Slash::Apache (); use Slash::Constants qw(:web :messages); use Slash::Display; use Slash::Utility; -use Slash::XML; -use Data::Dumper; sub main { my $user = getCurrentUser(); @@ -72,17 +69,16 @@ my $note = ''; deleteUserForm(@_, $note); } else { -# my $rows = $slashdb->deleteUser($uid); -# if ($rows) { -# $slashdb->deleteLogToken($uid); -# $uid = $constants->{anonymous_coward_uid}; - #delete $cookies->{user}; -# setCookie('user', ''); + my $rows = $slashdb->deleteUser($uid); + if ($rows) { + $slashdb->deleteLogToken($uid); + $uid = $constants->{anonymous_coward_uid}; + setCookie('user', ''); header(); slashDisplay('deleteUserFinished'); footer(); -# } + } } } Modified: slashjp/branches/deluser/plugins/DelUser/templates/deleteUser;deluser;default =================================================================== --- slashjp/branches/deluser/plugins/DelUser/templates/deleteUser;deluser;default 2008-01-03 16:47:28 UTC (rev 400) +++ slashjp/branches/deluser/plugins/DelUser/templates/deleteUser;deluser;default 2008-01-04 04:02:25 UTC (rev 401) @@ -49,6 +49,7 @@ <label> <input id="delete_ok" type="checkbox" name="delete_ok" value="delete_ok" onClick="toggle_form(this.checked)" onKeydown="toggle_form(this.checked)">本当に削除する</label> </div> + [% PROCESS formkey_tag %] <input type="hidden" name="op" value="deleteok"> <input type="submit" value="送信" class="button"> </fieldset>