cvs-log | 1 Feb 2004 20:01

[otrs-cvs] CVS: otrs/Kernel Language.pm,1.27,1.28

Update of /home/cvs/otrs/Kernel
In directory esanta:/tmp/cvs-serv17816/Kernel

Modified Files:
	Language.pm 
Log Message:
fixed charset convert of translation file

Index: Language.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Language.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** Language.pm	27 Jan 2004 20:55:55 -0000	1.27
--- Language.pm	1 Feb 2004 19:01:46 -0000	1.28
***************
*** 171,178 ****
              }
          }
          # charset convert from source translation into shown charset
          my $Text = $Self->CharsetConvert(
              Text => $Self->{Translation}->{$What}, 
!             From => $Self->GetRecommendedCharset(),
          );
          return $Text; 
--- 171,184 ----
              }
          }
+         # what charset shoud I use (take it from translation file)!
(Continue reading)

cvs-log | 1 Feb 2004 22:01

[otrs-cvs] CVS: otrs/scripts/database initial_insert.sql,1.16,1.17

Attachment: application/octet-stream, 7116 bytes
_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
cvs-log | 1 Feb 2004 22:01

[otrs-cvs] CVS: otrs/scripts DBUpdate-to-1.2.mysql.sql,1.9,1.10 DBUpdate-to-1.2.postgresql.sql,1.8,1.9

Attachment: application/octet-stream, 16 KiB
_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
cvs-log | 1 Feb 2004 22:02

[otrs-cvs] CVS: otrs/Kernel/System/Ticket SendNotification.pm, 1.10, 1.11

Update of /home/cvs/otrs/Kernel/System/Ticket
In directory esanta:/tmp/cvs-serv20614/Kernel/System/Ticket

Modified Files:
	SendNotification.pm 
Log Message:
fixed %CurrentUser and %User replace

Index: SendNotification.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/SendNotification.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** SendNotification.pm	23 Jan 2004 03:55:22 -0000	1.10
--- SendNotification.pm	1 Feb 2004 21:01:59 -0000	1.11
***************
*** 92,99 ****
      # get current user data
      my %CurrentUser = $Self->{UserObject}->GetUserData(UserID => $Param{UserID});
!     foreach (keys %User) {
          if ($CurrentUser{$_}) {
              $Param{Body} =~ s/<OTRS_CURRENT_$_>/$CurrentUser{$_}/gi;
              $Param{Subject} =~ s/<OTRS_CURRENT_$_>/$CurrentUser{$_}/gi;
          }
      }
--- 92,106 ----
      # get current user data
      my %CurrentUser = $Self->{UserObject}->GetUserData(UserID => $Param{UserID});
!     foreach (keys %CurrentUser) {
          if ($CurrentUser{$_}) {
              $Param{Body} =~ s/<OTRS_CURRENT_$_>/$CurrentUser{$_}/gi;
              $Param{Subject} =~ s/<OTRS_CURRENT_$_>/$CurrentUser{$_}/gi;
+         }
+     }
+     # replace it with given user params
+     foreach (keys %User) {
+         if ($User{$_}) {
+             $Param{Body} =~ s/<OTRS_$_>/$User{$_}/gi;
+             $Param{Subject} =~ s/<OTRS_$_>/$User{$_}/gi;
          }
      }

_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log

cvs-log | 1 Feb 2004 22:02

[otrs-cvs] CVS: otrs/Kernel/System Notification.pm,1.2,1.3

Update of /home/cvs/otrs/Kernel/System
In directory esanta:/tmp/cvs-serv20648/Kernel/System

Modified Files:
	Notification.pm 
Log Message:
added Opera workaroud!

Index: Notification.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Notification.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Notification.pm	23 Jan 2004 02:22:55 -0000	1.2
--- Notification.pm	1 Feb 2004 21:02:17 -0000	1.3
***************
*** 76,79 ****
--- 76,81 ----
      my %Data = ();
      while (my  <at> Data = $Self->{DBObject}->FetchrowArray()) {
+         # fix some bad stuff from some browsers (Opera)!
+         $Data[5] =~ s/(\n\r|\r\r\n|\r\n|\r)/\n/g;
          %Data = ( 
              Type => $Data[1],
***************
*** 153,156 ****
--- 155,160 ----
        }
      }
+     # fix some bad stuff from some browsers (Opera)!
+     $Param{Body} =~ s/(\n\r|\r\r\n|\r\n|\r)/\n/g;
      # db quote
      foreach (keys %Param) {

_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log

cvs-log | 1 Feb 2004 22:30

[otrs-cvs] CVS: otrs/Kernel/System Notification.pm,1.3,1.4

Update of /home/cvs/otrs/Kernel/System
In directory esanta:/tmp/cvs-serv21469/Kernel/System

Modified Files:
	Notification.pm 
Log Message:
added utf-8 convert if utf-8 is internal charset

Index: Notification.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Notification.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Notification.pm	1 Feb 2004 21:02:17 -0000	1.3
--- Notification.pm	1 Feb 2004 21:30:14 -0000	1.4
***************
*** 13,16 ****
--- 13,17 ----

  use strict;
+ use Kernel::System::Encode;

  use vars qw($VERSION);
***************
*** 37,40 ****
--- 38,43 ----
      }

+     $Self->{EncodeObject} = Kernel::System::Encode->new(%Param);
+ 
      return $Self;
  }
***************
*** 78,81 ****
--- 81,100 ----
          # fix some bad stuff from some browsers (Opera)!
          $Data[5] =~ s/(\n\r|\r\r\n|\r\n|\r)/\n/g;
+         if ($Self->{EncodeObject}->EncodeInternalUsed()) {
+             # convert body
+             $Data[5] = $Self->{EncodeObject}->Convert(
+                 Text => $Data[5],
+                 From => $Data[2],
+                 To => $Self->{EncodeObject}->EncodeInternalUsed(),
+             );
+             # convert subject 
+             $Data[3] = $Self->{EncodeObject}->Convert(
+                 Text => $Data[3],
+                 From => $Data[2],
+                 To => $Self->{EncodeObject}->EncodeInternalUsed(),
+             );
+             # set new charset
+             $Data[2] = $Self->{EncodeObject}->EncodeInternalUsed();
+         }
          %Data = ( 
              Type => $Data[1],

_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log

cvs-log | 1 Feb 2004 22:30

[otrs-cvs] CVS: otrs/Kernel/System Encode.pm,1.6,1.7

Update of /home/cvs/otrs/Kernel/System
In directory esanta:/tmp/cvs-serv21524/Kernel/System

Modified Files:
	Encode.pm 
Log Message:
added binmode(utf8) again

Index: Encode.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Encode.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Encode.pm	31 Jan 2004 14:48:46 -0000	1.6
--- Encode.pm	1 Feb 2004 21:30:56 -0000	1.7
***************
*** 72,76 ****
      if (eval "require Encode") {
          $Self->{CharsetEncodeSupported} = 1;
! #        $Self->SetIO(\*STDOUT, \*STDERR);
      }
      else {
--- 72,76 ----
      if (eval "require Encode") {
          $Self->{CharsetEncodeSupported} = 1;
!         $Self->SetIO(\*STDOUT, \*STDERR);
      }
      else {

_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log

cvs-log | 1 Feb 2004 22:31

[otrs-cvs] CVS: otrs/Kernel/Output/HTML Generic.pm,1.101,1.102

Update of /home/cvs/otrs/Kernel/Output/HTML
In directory esanta:/tmp/cvs-serv21564/Kernel/Output/HTML

Modified Files:
	Generic.pm 
Log Message:
reset of binmode (without utf-8)

Index: Generic.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Generic.pm,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -r1.101 -r1.102
*** Generic.pm	23 Jan 2004 02:28:19 -0000	1.101
--- Generic.pm	1 Feb 2004 21:31:26 -0000	1.102
***************
*** 981,984 ****
--- 981,986 ----
      my $Self = shift;
      my %Param =  <at> _;
+     # reset binmode, don't use utf8
+     binmode(STDOUT);
      # return attachment  
      my $Output = "Content-Disposition: filename=$Param{Filename}\n";

_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log

cvs-log | 1 Feb 2004 22:33

[otrs-cvs] CVS: otrs/Kernel/System/Email SMTP.pm, 1.5, 1.6 Sendmail.pm, 1.8, 1.9

Update of /home/cvs/otrs/Kernel/System/Email
In directory esanta:/tmp/cvs-serv21673/Kernel/System/Email

Modified Files:
	SMTP.pm Sendmail.pm 
Log Message:
added ContentType to non header emails

Index: SMTP.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Email/SMTP.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** SMTP.pm	1 Jul 2003 18:45:16 -0000	1.5
--- SMTP.pm	1 Feb 2004 21:33:52 -0000	1.6
***************
*** 1,5 ****
  # --
  # Kernel/System/Email/SMTP.pm - the global email send module
! # Copyright (C) 2001-2003 Martin Edenhofer <martin+code <at> otrs.org>
  # --
  # $Id$
--- 1,5 ----
  # --
  # Kernel/System/Email/SMTP.pm - the global email send module
! # Copyright (C) 2001-2004 Martin Edenhofer <martin+code <at> otrs.org>
  # --
  # $Id$
***************
*** 80,83 ****
--- 80,84 ----
          $Param{Header} .= "X-Powered-By: OTRS - Open Ticket Request System (http://otrs.org/)\n";
          $Param{Header} .= "Message-ID: <".time().".".rand(999999)."\ <at> $Self->{FQDN}>\n";
+         $Param{Header} .= "Content-Type: $Param{ContentType}\n" if ($Param{ContentType});
      }
      my  <at> To = ();

Index: Sendmail.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Email/Sendmail.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** Sendmail.pm	1 Jun 2003 19:20:56 -0000	1.8
--- Sendmail.pm	1 Feb 2004 21:33:52 -0000	1.9
***************
*** 1,5 ****
  # --
  # Kernel/System/Email/Sendmail.pm - the global email send module
! # Copyright (C) 2001-2003 Martin Edenhofer <martin+code <at> otrs.org>
  # --
  # $Id$
--- 1,5 ----
  # --
  # Kernel/System/Email/Sendmail.pm - the global email send module
! # Copyright (C) 2001-2004 Martin Edenhofer <martin+code <at> otrs.org>
  # --
  # $Id$
***************
*** 72,75 ****
--- 72,76 ----
          $Param{Header} .= "X-Powered-By: OTRS - Open Ticket Request System (http://otrs.org/)\n";
          $Param{Header} .= "Message-ID: <".time().".".rand(999999)."\ <at> $Self->{FQDN}>\n";
+         $Param{Header} .= "Content-Type: $Param{ContentType}\n" if ($Param{ContentType});

      }

_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log

cvs-log | 1 Feb 2004 23:35

[otrs-cvs] CVS: otrs/Kernel/Output/HTML/Lite CustomerNavigationBar.dtl,1.7,1.8

Update of /home/cvs/otrs/Kernel/Output/HTML/Lite
In directory esanta:/tmp/cvs-serv23497/Kernel/Output/HTML/Lite

Modified Files:
	CustomerNavigationBar.dtl 
Log Message:
removed end link

Index: CustomerNavigationBar.dtl
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/Lite/CustomerNavigationBar.dtl,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** CustomerNavigationBar.dtl	21 Jan 2004 22:46:18 -0000	1.7
--- CustomerNavigationBar.dtl	1 Feb 2004 22:35:41 -0000	1.8
***************
*** 18,23 ****
      <a href="$Env{"Baselink"}Action=CustomerMessage" onmouseover="window.status='$Text{"Create
new Ticket"}'; return true;" onmouseout="window.status='';">$Text{"New Ticket"}</a> |
      <a href="$Env{"Baselink"}Action=CustomerFAQ" onmouseover="window.status='$Text{"FAQ"}';
return true;" onmouseout="window.status='';">$Text{"FAQ"}</a> |
!     <a href="$Env{"Baselink"}Action=CustomerPreferences"
onmouseover="window.status='$Text{"Preferences"}'; return true;"
onmouseout="window.status='';">$Text{"Preferences"}</a> |
!     <a href="#end" onmouseover="window.status='$Text{"end"}'; return true;" onmouseout="window.status='';">$Text{"end"}</a>
    </td>
    <td valign="top" align="right" width="30%" class="table1">
--- 18,22 ----
      <a href="$Env{"Baselink"}Action=CustomerMessage" onmouseover="window.status='$Text{"Create
new Ticket"}'; return true;" onmouseout="window.status='';">$Text{"New Ticket"}</a> |
      <a href="$Env{"Baselink"}Action=CustomerFAQ" onmouseover="window.status='$Text{"FAQ"}';
return true;" onmouseout="window.status='';">$Text{"FAQ"}</a> |
!     <a href="$Env{"Baselink"}Action=CustomerPreferences"
onmouseover="window.status='$Text{"Preferences"}'; return true;"
onmouseout="window.status='';">$Text{"Preferences"}</a> 
    </td>
    <td valign="top" align="right" width="30%" class="table1">

_______________________________________________
OTRS mailing list: cvs-log - Web-CVS http://cvs.otrs.org/
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log


Gmane