[Affelio-cvs 628] CVS update: affelio_farm/admin/skelton/affelio/apps/album/common

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 10月 25日 (火) 04:20:44 JST


Index: affelio_farm/admin/skelton/affelio/apps/album/common/footer.pl
diff -u affelio_farm/admin/skelton/affelio/apps/album/common/footer.pl:1.1.1.1 affelio_farm/admin/skelton/affelio/apps/album/common/footer.pl:removed
--- affelio_farm/admin/skelton/affelio/apps/album/common/footer.pl:1.1.1.1	Tue Oct 25 04:14:40 2005
+++ affelio_farm/admin/skelton/affelio/apps/album/common/footer.pl	Tue Oct 25 04:20:44 2005
@@ -1,22 +0,0 @@
-# Copyright (C) 2005 FishGrove Inc.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-
-##########################################################################
-#HTML Footer
-#print "\n</div>\n</div>\n\n";
-print $afap->get_HTML_footer();
-
-1;
Index: affelio_farm/admin/skelton/affelio/apps/album/common/header.pl
diff -u affelio_farm/admin/skelton/affelio/apps/album/common/header.pl:1.1.1.1 affelio_farm/admin/skelton/affelio/apps/album/common/header.pl:removed
--- affelio_farm/admin/skelton/affelio/apps/album/common/header.pl:1.1.1.1	Tue Oct 25 04:14:40 2005
+++ affelio_farm/admin/skelton/affelio/apps/album/common/header.pl	Tue Oct 25 04:20:44 2005
@@ -1,71 +0,0 @@
-# Copyright (C) 2005 FishGrove Inc.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-
-use strict;
-use lib("../../extlib");
-use HTML::Template;
-use CGI;
-use Cwd;
-#
-use lib("../../lib");
-use AffelioApp;
-#
-use Album;
-
-our $cgi = new CGI();
-
-#Initialize AFAP
-our $afap = new AffelioApp(ConfigDir => Cwd::getcwd(),
-			   cgi => $cgi);
-
-if(our $mymode eq "owner"){
-    $afap->set_owner_mode();
-}
-
-# put Content-type
-print "Content-type: text/html; charset=UTF-8\n";
-print "Pragma: no-cache", "\n\n"; 
-
-# put HTML Header
-print $afap->get_HTML_header("Affelio Photo Album");
-# check access
-unless ($afap->check_access("DF_access")) {
-    &errorExit('<AF_M text="Access denied">');
-}
-
-our $album = new Album($afap);
-
-#Show Error
-sub errorExit {
-	my $msg = shift;
-  	my $affelio_id = AffelioApp::get_visitor_info("afid");
- 	my $visitor_type=AffelioApp::get_visitor_info("type");
-
-if($visitor_type eq ""){
-    $visitor_type="pb";
-}
-	my $tmpl = HTML::Template->new(filename => "./templates/error.tmpl");
-	$tmpl->param(V_TYPE => $visitor_type);
-	$tmpl->param(AF_ID => $affelio_id);
-	$tmpl->param(MSG => $msg);
-
-	print $afap->{af}->translate_templateL10N( $tmpl->output );
-	require ("./common/footer.pl");
-	exit;
-}
-
-##########################################################################
-1;


Affelio-cvs メーリングリストの案内
Back to archive index