Tatsuki SUGIURA
sugi****@users*****
2006年 7月 12日 (水) 20:41:48 JST
Index: slashjp/plugins/Events/Events.pm diff -u slashjp/plugins/Events/Events.pm:1.1.1.1 slashjp/plugins/Events/Events.pm:1.2 --- slashjp/plugins/Events/Events.pm:1.1.1.1 Wed Jan 28 06:54:14 2004 +++ slashjp/plugins/Events/Events.pm Wed Jul 12 20:41:48 2006 @@ -1,7 +1,7 @@ # This code is released under the GPL. # Copyright 2001 by Brian Aker. See README # and COPYING for more information, or see http://software.tangent.org/. -# $Id: Events.pm,v 1.1.1.1 2004/01/27 21:54:14 oliver Exp $ +# $Id: Events.pm,v 1.2 2006/07/12 11:41:48 sugi Exp $ package Slash::Events; @@ -19,7 +19,7 @@ use base 'Slash::DB::Utility'; use base 'Slash::DB::MySQL'; -($VERSION) = ' $Revision: 1.1.1.1 $ ' =~ /\$Revision:\s+([^\s]+)/; +($VERSION) = ' $Revision: 1.2 $ ' =~ /\$Revision:\s+([^\s]+)/; # On a side note, I am not sure if I liked the way I named the methods either. # -Brian Index: slashjp/plugins/Events/PLUGIN diff -u slashjp/plugins/Events/PLUGIN:1.2 slashjp/plugins/Events/PLUGIN:1.3 --- slashjp/plugins/Events/PLUGIN:1.2 Fri Dec 24 05:13:35 2004 +++ slashjp/plugins/Events/PLUGIN Wed Jul 12 20:41:48 2006 @@ -1,4 +1,4 @@ -# $Id: PLUGIN,v 1.2 2004/12/23 20:13:35 oliver Exp $ +# $Id: PLUGIN,v 1.3 2006/07/12 11:41:48 sugi Exp $ name=Events description="Events System" htdoc=events.pl Index: slashjp/plugins/Events/calendar.pl diff -u slashjp/plugins/Events/calendar.pl:1.2 slashjp/plugins/Events/calendar.pl:1.3 --- slashjp/plugins/Events/calendar.pl:1.2 Fri Dec 24 05:13:35 2004 +++ slashjp/plugins/Events/calendar.pl Wed Jul 12 20:41:48 2006 @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# $Id: calendar.pl,v 1.2 2004/12/23 20:13:35 oliver Exp $ +# $Id: calendar.pl,v 1.3 2006/07/12 11:41:48 sugi Exp $ use strict; use Slash; Index: slashjp/plugins/Events/dump diff -u slashjp/plugins/Events/dump:1.3 slashjp/plugins/Events/dump:1.4 --- slashjp/plugins/Events/dump:1.3 Fri Dec 31 21:36:47 2004 +++ slashjp/plugins/Events/dump Wed Jul 12 20:41:48 2006 @@ -1,5 +1,5 @@ # -# $Id: dump,v 1.3 2004/12/31 12:36:47 oliver Exp $ +# $Id: dump,v 1.4 2006/07/12 11:41:48 sugi Exp $ # INSERT INTO menus (menu, label, value, seclev, menuorder) VALUES ('admin','Events','[% gSkin.rootdir %]/eventsadmin.pl?op=list',10000,19); Index: slashjp/plugins/Events/events.pl diff -u slashjp/plugins/Events/events.pl:1.3 slashjp/plugins/Events/events.pl:1.4 --- slashjp/plugins/Events/events.pl:1.3 Fri Dec 31 21:36:47 2004 +++ slashjp/plugins/Events/events.pl Wed Jul 12 20:41:48 2006 @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# $Id: events.pl,v 1.3 2004/12/31 12:36:47 oliver Exp $ +# $Id: events.pl,v 1.4 2006/07/12 11:41:48 sugi Exp $ use strict; use Slash; @@ -29,7 +29,7 @@ my $stories = $events->getEventsByDay($date); my $time = timeCalc($date, '%A %B %d', 0); - if ($form->{content_type} eq 'rss') { + if ($form->{content_type} =~ $constants->{feed_types}) { my @items; for my $entry (@$stories) { push @items, { @@ -38,7 +38,7 @@ }; } - xmlDisplay(rss => { + xmlDisplay($form->{content_type} => { channel => { title => "$constants->{sitename} events for nick's $time", 'link' => "$gSkin->{absolutedir}/", Index: slashjp/plugins/Events/eventsadmin.pl diff -u slashjp/plugins/Events/eventsadmin.pl:1.3 slashjp/plugins/Events/eventsadmin.pl:1.4 --- slashjp/plugins/Events/eventsadmin.pl:1.3 Fri Dec 31 21:36:47 2004 +++ slashjp/plugins/Events/eventsadmin.pl Wed Jul 12 20:41:48 2006 @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# $Id: eventsadmin.pl,v 1.3 2004/12/31 12:36:47 oliver Exp $ +# $Id: eventsadmin.pl,v 1.4 2006/07/12 11:41:48 sugi Exp $ use strict; use Slash; @@ -132,7 +132,7 @@ $selectedref->{$_} = $form->{$_} ? $form->{$_} : int(timeCalc($slashdb->getTime(),$formatstring)); } - if ($form->{content_type} eq 'rss') { + if ($form->{content_type} =~ $constants->{feed_types}) { my @items; for my $entry (@$stories) { push @items, { @@ -141,7 +141,7 @@ }; } - xmlDisplay(rss => { + xmlDisplay($form->{content_type} => { channel => { title => "$constants->{sitename} events", 'link' => "$gSkin->{absolutedir}/", Index: slashjp/plugins/Events/mysql_schema diff -u slashjp/plugins/Events/mysql_schema:1.2 slashjp/plugins/Events/mysql_schema:1.3 --- slashjp/plugins/Events/mysql_schema:1.2 Fri Dec 24 05:13:35 2004 +++ slashjp/plugins/Events/mysql_schema Wed Jul 12 20:41:48 2006 @@ -1,5 +1,5 @@ # -# $Id: mysql_schema,v 1.2 2004/12/23 20:13:35 oliver Exp $ +# $Id: mysql_schema,v 1.3 2006/07/12 11:41:48 sugi Exp $ # DROP TABLE IF EXISTS event_dates; Index: slashjp/plugins/Events/vcal.pl diff -u slashjp/plugins/Events/vcal.pl:1.2 slashjp/plugins/Events/vcal.pl:1.3 --- slashjp/plugins/Events/vcal.pl:1.2 Fri Dec 24 05:13:35 2004 +++ slashjp/plugins/Events/vcal.pl Wed Jul 12 20:41:48 2006 @@ -1,8 +1,8 @@ #!/usr/bin/perl -w # This code is a part of Slash, and is released under the GPL. -# Copyright 1997-2004 by Open Source Development Network. See README +# Copyright 1997-2005 by Open Source Technology Group. See README # and COPYING for more information, or see http://slashcode.com/. -# $Id: vcal.pl,v 1.2 2004/12/23 20:13:35 oliver Exp $ +# $Id: vcal.pl,v 1.3 2006/07/12 11:41:48 sugi Exp $ use strict; use Slash;