phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] email/inc/class.mail_dcom_base.inc.php, 1.9.2.3


From: nomail
Subject: [Phpgroupware-cvs] email/inc/class.mail_dcom_base.inc.php, 1.9.2.3
Date: Sat, 6 Nov 2004 17:13:45 +0100

Update of /email/inc
Modified Files:
        Branch: Version-0_9_16-branch
          class.mail_dcom_base.inc.php

date: 2004/11/06 16:13:45;  author: powerstat;  state: Exp;  lines: +18 -18

Log Message:
replaced <br> with <br /> and <hr> with <hr /> for better w3c compatibility
=====================================================================
Index: email/inc/class.mail_dcom_base.inc.php
diff -u email/inc/class.mail_dcom_base.inc.php:1.9.2.2 
email/inc/class.mail_dcom_base.inc.php:1.9.2.3
--- email/inc/class.mail_dcom_base.inc.php:1.9.2.2      Sat Sep 13 01:46:15 2003
+++ email/inc/class.mail_dcom_base.inc.php      Sat Nov  6 16:13:45 2004
@@ -81,14 +81,14 @@
                */
                function utf7_encode($data, $called_by='not_provided')
                {
-                       if ($this->debug_utf7 > 0) { echo 'mail_dcom_base: 
utf7_encode ('.__LINE__.'): ENTERING, $called_by ['.$called_by.']<br>'; } 
-                       if ($this->debug_utf7 > 1) { echo 'mail_dcom_base: 
utf7_encode ('.__LINE__.'): $data ['.serialize($data).']<br>'; } 
+                       if ($this->debug_utf7 > 0) { echo 'mail_dcom_base: 
utf7_encode ('.__LINE__.'): ENTERING, $called_by ['.$called_by.']<br />'; } 
+                       if ($this->debug_utf7 > 1) { echo 'mail_dcom_base: 
utf7_encode ('.__LINE__.'): $data ['.serialize($data).']<br />'; } 
                        // handle utf7 encoding of folder names, if necessary
                        if (($this->enable_utf7 == False)
                        || (function_exists('imap_utf7_encode') == False)
                        || (!isset($data)))
                        {
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING on error, returning param 
unmodified. Check if .. then to see why we exited here, $called_by 
['.$called_by.']<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING on error, returning param 
unmodified. Check if .. then to see why we exited here, $called_by 
['.$called_by.']<br />'; } 
                                return $data;
                        }
 
@@ -101,20 +101,20 @@
                                {
                                        $return_array[$i] = 
$this->utf7_encode_string($data[$i]);
                                }
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING, returning $return_array 
['.serialize($return_array).'], $called_by ['.$called_by.']<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING, returning $return_array 
['.serialize($return_array).'], $called_by ['.$called_by.']<br />'; } 
                                return $return_array;
                        }
                        elseif (gettype($data) == 'string')
                        {
                                // string data
                                $return_string = 
$this->utf7_encode_string($data);
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING, returning $return_string 
['.serialize($return_string).'], $called_by ['.$called_by.']<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING, returning $return_string 
['.serialize($return_string).'], $called_by ['.$called_by.']<br />'; } 
                                return $return_string;
                        }
                        else
                        {
                                // ERROR
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING with ERROR, returning 
param unmodified. Data was not string nor array, $called_by 
['.$called_by.']<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_encode ('.__LINE__.'): LEAVING with ERROR, returning 
param unmodified. Data was not string nor array, $called_by ['.$called_by.']<br 
/>'; } 
                                return $data;
                        }
                }
@@ -162,7 +162,7 @@
                                $name['folder_after'] = 
imap_utf7_encode($name['folder_before']);
                                $name['translated'] = $name['folder_after'];
                        }
-                       if ($this->debug_utf7 > 1) { echo ' _ mail_dcom_base: 
utf7_encode_string ('.__LINE__.'): $name DUMP: 
['.htmlspecialchars(serialize($name)).']<br>'; } 
+                       if ($this->debug_utf7 > 1) { echo ' _ mail_dcom_base: 
utf7_encode_string ('.__LINE__.'): $name DUMP: 
['.htmlspecialchars(serialize($name)).']<br />'; } 
                        return $name['translated'];
                }
 
@@ -174,14 +174,14 @@
                */
                function utf7_decode($data)
                {
-                       if ($this->debug_utf7 > 0) { echo 'mail_dcom_base: 
utf7_decode ('.__LINE__.'): ENTERING<br>'; } 
-                       if ($this->debug_utf7 > 1) { echo 'mail_dcom_base: 
utf7_decode ('.__LINE__.'): $data ['.serialize($data).']<br>'; } 
+                       if ($this->debug_utf7 > 0) { echo 'mail_dcom_base: 
utf7_decode ('.__LINE__.'): ENTERING<br />'; } 
+                       if ($this->debug_utf7 > 1) { echo 'mail_dcom_base: 
utf7_decode ('.__LINE__.'): $data ['.serialize($data).']<br />'; } 
                        // handle utf7 decoding of folder names, if necessary
                        if (($this->enable_utf7 == False)
                        || (function_exists('imap_utf7_decode') == False)
                        || (!isset($data)))
                        {
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING on error, returning param 
unmodified. Check if .. then to see why we exited here<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING on error, returning param 
unmodified. Check if .. then to see why we exited here<br />'; } 
                                return $data;
                        }
 
@@ -194,20 +194,20 @@
                                {
                                        $return_array[$i] = 
$this->utf7_decode_string($data[$i]);
                                }
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING, returning $return_array 
['.serialize($return_array).']<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING, returning $return_array 
['.serialize($return_array).']<br />'; } 
                                return $return_array;
                        }
                        elseif (gettype($data) == 'string')
                        {
                                // string data
                                $return_string = 
$this->utf7_decode_string($data);
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING, returning $return_string 
['.serialize($return_string).']<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING, returning $return_string 
['.serialize($return_string).']<br />'; } 
                                return $return_string;
                        }
                        else
                        {
                                // ERROR
-                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING with ERROR, returning 
param unmodified. Data was not string nor array.<br>'; } 
+                               if ($this->debug_utf7 > 0) { echo 
'mail_dcom_base: utf7_decode ('.__LINE__.'): LEAVING with ERROR, returning 
param unmodified. Data was not string nor array.<br />'; } 
                                return $data;
                        }
                }
@@ -277,14 +277,14 @@
                                || ($name['folder_before'] == 
$name['folder_after']) )
                                {
                                        // no translation occured
-                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning unmodified name, 
NO decoding needed, returning feed $data_str: 
['.htmlspecialchars(serialize($data_str)).']<br>'; } 
+                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning unmodified name, 
NO decoding needed, returning feed $data_str: 
['.htmlspecialchars(serialize($data_str)).']<br />'; } 
                                        return $data_str;
                                }
                                else
                                {
                                        // replace old folder name with new 
folder name
                                        $name['translated'] = 
str_replace($name['folder_before'], $name['folder_after'], $data_str);
-                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning decoded name, 
$name[] DUMP: ['.htmlspecialchars(serialize($name)).']<br>'; } 
+                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning decoded name, 
$name[] DUMP: ['.htmlspecialchars(serialize($name)).']<br />'; } 
                                        return $name['translated'];
                                }
                        }
@@ -300,12 +300,12 @@
                                || ($name['folder_before'] == $data_str) )
                                {
                                        // no translation occured
-                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning unmodified name, 
NO decoding needed, returning feed $data_str: 
['.htmlspecialchars(serialize($data_str)).']<br>'; } 
+                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning unmodified name, 
NO decoding needed, returning feed $data_str: 
['.htmlspecialchars(serialize($data_str)).']<br />'; } 
                                        return $data_str;
                                }
                                else
                                {
-                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning decoded name, 
$name[] DUMP: ['.htmlspecialchars(serialize($name)).']<br>'; } 
+                                       if ($this->debug_utf7 > 0) { echo ' _ 
mail_dcom_base: utf7_decode_string ('.__LINE__.'): returning decoded name, 
$name[] DUMP: ['.htmlspecialchars(serialize($name)).']<br />'; } 
                                        return $name['translated'];
                                }
                        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]