Tadashi Okoshi
slash****@users*****
2006年 1月 28日 (土) 18:06:00 JST
Index: affelio/incoming.cgi
diff -u affelio/incoming.cgi:1.17 affelio/incoming.cgi:1.18
--- affelio/incoming.cgi:1.17 Sat Jan 28 17:47:21 2006
+++ affelio/incoming.cgi Sat Jan 28 18:06:00 2006
@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-# $Id: incoming.cgi,v 1.17 2006/01/28 08:47:21 slash5234 Exp $
+# $Id: incoming.cgi,v 1.18 2006/01/28 09:06:00 slash5234 Exp $
use strict;
@@ -56,7 +56,6 @@
############################################################################
my $session = $af->getSM()->get_session();
-
############################################################################
#Get args
############################################################################
@@ -165,10 +164,11 @@
if($session &&
( (($ck_visitor_type eq "self") && ( $FID_visitor_type ne "self") )
- || ( ($ck_visitor_type eq "f1") &&
- (( $FID_visitor_type eq "f2") || ( $FID_visitor_type eq "pb") ) )
- || ( ($ck_visitor_type eq "f2") && ( $FID_visitor_type eq "pb") )
- )
+
+ || ( ($ck_visitor_type eq "f1") && (( $FID_visitor_type eq "f1") || ( $FID_visitor_type eq "f2") || ( $FID_visitor_type eq "pb") ) )
+
+ || ( ($ck_visitor_type eq "f2") && (( $FID_visitor_type eq "f2") || ( $FID_visitor_type eq "pb")))
+ )
){
#########################
# OK.
@@ -176,7 +176,8 @@
# Use existing session.
#########################
debug_print("incoming.cgi: OK. You already have a cookie, and");
- debug_print("incoming.cgi: the existing session has higher right!");
+ debug_print("incoming.cgi: the existing session has the same or");
+ debug_print("incoming.cgi: higher right!");
debug_print("incoming.cgi: end. Forwarding to my homepage.");
if($dest_URL ne ""){
print $q->redirect( -url => $dest_URL);
@@ -189,7 +190,7 @@
# Startup a new session
#########################
debug_print("incoming.cgi: You don't have a cookie, or you have");
- debug_print("incoming.cgi: a cookie with the same or lower rights.");
+ debug_print("incoming.cgi: a cookie with lower rights.");
debug_print("incoming.cgi: ");
debug_print("incoming.cgi: Let's start up a session with a cooike.");