[otrs-cvs] CVS: otrs/Kernel/System/Web InterfaceCustomer.pm, 1.14,
1.15 InterfaceAgent.pm,1.15,1.16
cvs-log at otrs.org
cvs-log at otrs.org
Wed Nov 8 17:25:55 CET 2006
- Previous message: [otrs-cvs] CVS: ITSMCMDB ITSMCMDB.sopm,1.6,1.7
- Next message: [otrs-cvs] CVS: otrs/Kernel/Output/HTML/Standard CustomerLogin.dtl,
1.16, 1.17 Login.dtl, 1.25, 1.26 AAABase.dtl, 1.50,
1.51 AAAPreferences.dtl, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/otrs/Kernel/System/Web
In directory lancelot:/tmp/cvs-serv12155/Kernel/System/Web
Modified Files:
InterfaceCustomer.pm InterfaceAgent.pm
Log Message:
added set auto time zone if agent based on java script offset feature on every login
Index: InterfaceCustomer.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Web/InterfaceCustomer.pm,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** InterfaceCustomer.pm 2 Nov 2006 12:20:58 -0000 1.14
--- InterfaceCustomer.pm 8 Nov 2006 16:25:53 -0000 1.15
***************
*** 233,236 ****
--- 233,255 ----
UserType => 'Customer',
);
+ # set time zone offset if TimeZoneFeature is active
+ if ($Self->{ConfigObject}->Get('TimeZoneUser') &&
+ $Self->{ConfigObject}->Get('TimeZoneUserBrowserAutoOffset') &&
+ $Self->{LayoutObject}->{BrowserJavaScriptSupport}) {
+ my $TimeOffset = $Self->{ParamObject}->GetParam(Param => 'TimeOffset') || '';
+ if ($TimeOffset > 0) {
+ $TimeOffset = '+'.$TimeOffset;
+ }
+ $Self->{UserObject}->SetPreferences(
+ UserID => $UserData{UserID},
+ Key => 'UserTimeZone',
+ Value => $TimeOffset,
+ );
+ $Self->{SessionObject}->UpdateSessionID(
+ SessionID => $NewSessionID,
+ Key => 'UserTimeZone',
+ Value => $TimeOffset,
+ );
+ }
# create a new LayoutObject with SessionIDCookie
my $Expires = '+'.$Self->{ConfigObject}->Get('SessionMaxTime').'s';
Index: InterfaceAgent.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Web/InterfaceAgent.pm,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** InterfaceAgent.pm 2 Nov 2006 12:20:58 -0000 1.15
--- InterfaceAgent.pm 8 Nov 2006 16:25:53 -0000 1.16
***************
*** 253,256 ****
--- 253,275 ----
UserType => 'User',
);
+ # set time zone offset if TimeZoneFeature is active
+ if ($Self->{ConfigObject}->Get('TimeZoneUser') &&
+ $Self->{ConfigObject}->Get('TimeZoneUserBrowserAutoOffset') &&
+ $Self->{LayoutObject}->{BrowserJavaScriptSupport}) {
+ my $TimeOffset = $Self->{ParamObject}->GetParam(Param => 'TimeOffset') || '';
+ if ($TimeOffset > 0) {
+ $TimeOffset = '+'.$TimeOffset;
+ }
+ $Self->{UserObject}->SetPreferences(
+ UserID => $UserData{UserID},
+ Key => 'UserTimeZone',
+ Value => $TimeOffset,
+ );
+ $Self->{SessionObject}->UpdateSessionID(
+ SessionID => $NewSessionID,
+ Key => 'UserTimeZone',
+ Value => $TimeOffset,
+ );
+ }
# create a new LayoutObject with SessionIDCookie
my $Expires = '+'.$Self->{ConfigObject}->Get('SessionMaxTime').'s';
***************
*** 259,272 ****
}
my $LayoutObject = Kernel::Output::HTML::Layout->new(
! SetCookies => {
! SessionIDCookie => $Self->{ParamObject}->SetCookie(
! Key => $Param{SessionName},
! Value => $NewSessionID,
! Expires => $Expires,
! ),
! },
! SessionID => $NewSessionID,
! SessionName => $Param{SessionName},
! %{$Self},
);
# redirect with new session id and old params
--- 278,291 ----
}
my $LayoutObject = Kernel::Output::HTML::Layout->new(
! SetCookies => {
! SessionIDCookie => $Self->{ParamObject}->SetCookie(
! Key => $Param{SessionName},
! Value => $NewSessionID,
! Expires => $Expires,
! ),
! },
! SessionID => $NewSessionID,
! SessionName => $Param{SessionName},
! %{$Self},
);
# redirect with new session id and old params
- Previous message: [otrs-cvs] CVS: ITSMCMDB ITSMCMDB.sopm,1.6,1.7
- Next message: [otrs-cvs] CVS: otrs/Kernel/Output/HTML/Standard CustomerLogin.dtl,
1.16, 1.17 Login.dtl, 1.25, 1.26 AAABase.dtl, 1.50,
1.51 AAAPreferences.dtl, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs-log
mailing list