phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] email/inc/class.mail_msg_display.inc.php, 1.40.2.5


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

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

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

Log Message:
replaced <br> with <br /> and <hr> with <hr /> for better w3c compatibility
=====================================================================
Index: email/inc/class.mail_msg_display.inc.php
diff -u email/inc/class.mail_msg_display.inc.php:1.40.2.4 
email/inc/class.mail_msg_display.inc.php:1.40.2.5
--- email/inc/class.mail_msg_display.inc.php:1.40.2.4   Thu Nov 13 18:43:02 2003
+++ email/inc/class.mail_msg_display.inc.php    Sat Nov  6 16:13:46 2004
@@ -120,8 +120,8 @@
        */
        function common_folder_is($query_fldball='##NOTHING##', 
$match_fld_name='##NOTHING##')
        {
-               if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: ENTERING 
<br>'); }
-               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: param 
$query_fldball ['.htmlspecialchars(serialize($query_fldball)).'] param 
$match_fld_name ['.htmlspecialchars($match_fld_name).']<br>'); }
+               if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: ENTERING 
<br />'); }
+               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: param 
$query_fldball ['.htmlspecialchars(serialize($query_fldball)).'] param 
$match_fld_name ['.htmlspecialchars($match_fld_name).']<br />'); }
 
                //return 'FIX ME: stub function not completed. 
mail_msg_display.common_folder_is LINE '.__LINE__;
                $acctnum = $query_fldball['acctnum'];
@@ -136,19 +136,19 @@
                if (((string)$query_fldball == $this->nothing)
                || ((string)$match_fld_name == $this->nothing))
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING 
with Error, not enough param data supplied, so returning False<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING 
with Error, not enough param data supplied, so returning False<br />'); }
                        return False;
                }
                elseif (($match_fld_name != 'INBOX')
                && (strtolower($match_fld_name) != 'trash')
                && (strtolower($match_fld_name) != 'sent'))
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING 
with Error, param $match_fld_name ['.htmlspecialchars($match_fld_name).'] is 
not INBOX nor Trash, nor Sent, this function can not test for anything else, so 
returning False<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING 
with Error, param $match_fld_name ['.htmlspecialchars($match_fld_name).'] is 
not INBOX nor Trash, nor Sent, this function can not test for anything else, so 
returning False<br />'); }
                        return False;
                }
                elseif ($this->is_ball_data($query_fldball, 'any') == False)
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING 
with Error, input data fails 
$this->is_ball_data('.htmlspecialchars(serialize($query_fldball)).', "any"), so 
returning False<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING 
with Error, input data fails 
$this->is_ball_data('.htmlspecialchars(serialize($query_fldball)).', "any"), so 
returning False<br />'); }
                        return False;
                }
                if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: 
$query_fldball DUMP:', $query_fldball); }
@@ -157,18 +157,18 @@
                if (($match_fld_name == 'INBOX')
                && ($query_fldball['folder'] == 'INBOX'))
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING, 
returning True, tested for and found INBOX<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING, 
returning True, tested for and found INBOX<br />'); }
                        return True;
                }
                else
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: 
match_fld_name and $query_fldball["folder"], either one nor both were INBOX, so 
did not match the test, so continue with more checks...<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: 
match_fld_name and $query_fldball["folder"], either one nor both were INBOX, so 
did not match the test, so continue with more checks...<br />'); }
                }
                // continue ...
                // does the mailserver have folders, if not then there is NO 
trash folder no matter what
                if ($this->get_mailsvr_supports_folders($acctnum) == False)
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING, 
mailserver does NOT support folders, and not testing for INBOX, so returning 
False<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: LEAVING, 
mailserver does NOT support folders, and not testing for INBOX, so returning 
False<br />'); }
                        return False;
                }
                // continue ...
@@ -184,23 +184,23 @@
                }
                else
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: LEAVING, 
with ERROR, we should not ever get here because param sanity test is above, 
param $match_fld_name ['.htmlspecialchars($match_fld_name).'] needs to be 
either "Trash" or "Sent" at this point in the code, but it is not<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: LEAVING, 
with ERROR, we should not ever get here because param sanity test is above, 
param $match_fld_name ['.htmlspecialchars($match_fld_name).'] needs to be 
either "Trash" or "Sent" at this point in the code, but it is not<br />'); }
                        return False;
                }
                // use that $needle to use the same code to handle both Trash 
and Sent matchings
-               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: now 
testing if input data is "'.$needle.'" folder ...<br>'); }
+               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: now 
testing if input data is "'.$needle.'" folder ...<br />'); }
                // are we even supposed to use a trash or sent folder
                if ( (!$this->get_isset_pref('use_'.$needle.'_folder', 
$acctnum))
                || (!$this->get_pref_value('use_'.$needle.'_folder', $acctnum)) 
)
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] LEAVING, returning False, testing for '.$needle.' folder but user 
preferences do NOT even want a '.$needle.' folder<br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] LEAVING, returning False, testing for '.$needle.' folder but user 
preferences do NOT even want a '.$needle.' folder<br />'); }
                        return False;
                }
 
                // does the trash folder actually exist ?
-               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] humm... does the "'.$needle.'" folder actually exist :: 
this->get_pref_value("'.$needle.'_folder_name", '.$acctnum.') = 
['.htmlspecialchars($this->get_pref_value($needle.'_folder_name', 
$acctnum)).']<br>'); }
+               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] humm... does the "'.$needle.'" folder actually exist :: 
this->get_pref_value("'.$needle.'_folder_name", '.$acctnum.') = 
['.htmlspecialchars($this->get_pref_value($needle.'_folder_name', 
$acctnum)).']<br />'); }
                $found_needle_folder_long = $this->folder_lookup('', 
$this->get_pref_value($needle.'_folder_name', $acctnum));
-               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] did lookup on pref value for "'.$needle.'" folder, got 
$found_needle_folder_long 
['.htmlspecialchars($found_needle_folder_long).']<br>'); }
+               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] did lookup on pref value for "'.$needle.'" folder, got 
$found_needle_folder_long ['.htmlspecialchars($found_needle_folder_long).']<br 
/>'); }
                if ((isset($found_needle_folder_long))
                && ($found_needle_folder_long != ''))
                {
@@ -213,21 +213,21 @@
                // do we even need to continue
                if ($havefolder == False)
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] LEAVING, returning False, testing for '.$needle.' folder, user 
preferences DO want a '.$needle.' folder, but that folder does NOT exist, so 
param certainly can not be a real '.$needle.' folder. <br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_display)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] LEAVING, returning False, testing for '.$needle.' folder, user 
preferences DO want a '.$needle.' folder, but that folder does NOT exist, so 
param certainly can not be a real '.$needle.' folder. <br />'); }
                        return False;
                }
                // so the trash folder exists, does it match the param to test 
against
-               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] "'.$needle.'" folder exist, does it match a prepped param fldball, 
get prepped fldball folder string top use for the comparing<br>'); }
+               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] "'.$needle.'" folder exist, does it match a prepped param fldball, 
get prepped fldball folder string top use for the comparing<br />'); }
                $query_folder_long = 
$this->prep_folder_in($query_fldball['folder'], $acctnum);
-               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] now we have folder long names to compare, does $query_folder_long 
['.htmlspecialchars($query_folder_long).'] equal $found_needle_folder_long 
['.htmlspecialchars($found_needle_folder_long).'] <br>'); }
+               if ($this->debug_args_special_handlers > 1) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: [test: 
'.$needle.'] now we have folder long names to compare, does $query_folder_long 
['.htmlspecialchars($query_folder_long).'] equal $found_needle_folder_long 
['.htmlspecialchars($found_needle_folder_long).'] <br />'); }
                if ($query_folder_long == $found_needle_folder_long)
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: LEAVING, 
return True, match '.$needle.', and found '.$needle.' folder exists and matched 
the input ball data <br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: LEAVING, 
return True, match '.$needle.', and found '.$needle.' folder exists and matched 
the input ball data <br />'); }
                        return True;
                }
                else
                {
-                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: LEAVING, 
return False, match '.$needle.', and found '.$needle.' folder exists BUT input 
ball data does not match it. <br>'); }
+                       if ($this->debug_args_special_handlers > 0) { 
$this->dbug->out('mail_msg(_wrappers)('.__LINE__.'): common_folder_is: LEAVING, 
return False, match '.$needle.', and found '.$needle.' folder exists BUT input 
ball data does not match it. <br />'); }
                        return False;
                }
        }
@@ -286,7 +286,7 @@
                if ($debug_widget) { $this->dbug->out('all_folders_listbox 
$feed_args data DUMP:', $feed_args); }
                if (count($feed_args) == 0)
                {
-                       if ($debug_widget) { 
$this->dbug->out('all_folders_listbox $feed_args is 
EMPTY<br>'.serialize($feed_args).'<br>'); }
+                       if ($debug_widget) { 
$this->dbug->out('all_folders_listbox $feed_args is EMPTY<br 
/>'.serialize($feed_args).'<br />'); }
                }
                else
                {
@@ -296,8 +296,8 @@
                        while(list($key,$value) = each($local_args))
                        {
                                // DEBUG
-                               if ($debug_widget) { $this->dbug->out('a: 
local_args: key=['.$key.'] value=['.(string)$value.']<br>'); }
-                               if ($debug_widget) { $this->dbug->out('b: 
feed_args: key=['.$key.'] value=['.(string)$feed_args[$key].']<br>'); }
+                               if ($debug_widget) { $this->dbug->out('a: 
local_args: key=['.$key.'] value=['.(string)$value.']<br />'); }
+                               if ($debug_widget) { $this->dbug->out('b: 
feed_args: key=['.$key.'] value=['.(string)$feed_args[$key].']<br />'); }
                                if ((isset($feed_args[$key]))
                                && ($feed_args[$key] != $value))
                                {
@@ -305,12 +305,12 @@
                                        && ($feed_args[$key] == ''))
                                        {
                                                // do nothing, keep the default 
value, can not over write a good default stream with an empty value
-                                               if ($debug_widget) { 
$this->dbug->out('* keeping default [mailsvr_stream] value, can not override 
with a blank string<br>'); }
+                                               if ($debug_widget) { 
$this->dbug->out('* keeping default [mailsvr_stream] value, can not override 
with a blank string<br />'); }
                                        }
                                        else
                                        {
                                                // we have a specified arg that 
should replace the default value
-                                               if ($debug_widget) { 
$this->dbug->out('*** override default value of ['.$local_args[$key] .'] with 
feed_args['.$key.'] of ['.(string)$feed_args[$key].']<br>'); }
+                                               if ($debug_widget) { 
$this->dbug->out('*** override default value of ['.$local_args[$key] .'] with 
feed_args['.$key.'] of ['.(string)$feed_args[$key].']<br />'); }
                                                $local_args[$key] = 
$feed_args[$key];
                                        }
                                }
@@ -319,7 +319,7 @@
                        @reset($feed_args);
                }
                // at this point, local_args[] has anything that was passed in 
the feed_args[]
-               if ($debug_widget) { $this->dbug->out('FINAL Listbox Local 
Args:<br>'.serialize($local_args).'<br>'); }
+               if ($debug_widget) { $this->dbug->out('FINAL Listbox Local 
Args:<br />'.serialize($local_args).'<br />'); }
                
                // init some important variables
                $item_tags = '';
@@ -457,7 +457,7 @@
        {
                $debug_mega_listbox = 0;
                //$debug_mega_listbox = 3;
-               if ($debug_mega_listbox > 0) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): ENTERING<br>'); }
+               if ($debug_mega_listbox > 0) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): ENTERING<br />'); }
                
                if(!$feed_args)
                {
@@ -483,7 +483,7 @@
                if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $feed_args data DUMP:', 
$feed_args); }
                if (count($feed_args) == 0)
                {
-                       if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $feed_args is 
EMPTY<br>'.serialize($feed_args).'<br>'); }
+                       if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $feed_args is EMPTY<br 
/>'.serialize($feed_args).'<br />'); }
                }
                else
                {
@@ -493,8 +493,8 @@
                        while(list($key,$value) = each($local_args))
                        {
                                // DEBUG
-                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): a: local_args: 
key=['.$key.'] value=['.(string)$value.']<br>'); }
-                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): b: feed_args: 
key=['.$key.'] value=['.(string)$feed_args[$key].']<br>'); }
+                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): a: local_args: 
key=['.$key.'] value=['.(string)$value.']<br />'); }
+                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): b: feed_args: 
key=['.$key.'] value=['.(string)$feed_args[$key].']<br />'); }
                                if ((isset($feed_args[$key]))
                                && ($feed_args[$key] != $value))
                                {
@@ -502,12 +502,12 @@
                                        && ($feed_args[$key] == ''))
                                        {
                                                // do nothing, keep the default 
value, can not over write a good default stream with an empty value
-                                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): * keeping default 
[mailsvr_stream] value, can not override with a blank string<br>'); }
+                                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): * keeping default 
[mailsvr_stream] value, can not override with a blank string<br />'); }
                                        }
                                        else
                                        {
                                                // we have a specified arg that 
should replace the default value
-                                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): *** override default 
value of ['.$local_args[$key] .'] with feed_args['.$key.'] of 
['.(string)$feed_args[$key].']<br>'); }
+                                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): *** override default 
value of ['.$local_args[$key] .'] with feed_args['.$key.'] of 
['.(string)$feed_args[$key].']<br />'); }
                                                $local_args[$key] = 
$feed_args[$key];
                                        }
                                }
@@ -516,7 +516,7 @@
                        @reset($feed_args);
                }
                // at this point, local_args[] has anything that was passed in 
the feed_args[]
-               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'):FINAL Listbox Local 
Args:<br>'.serialize($local_args).'<br>'); }
+               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'):FINAL Listbox Local 
Args:<br />'.serialize($local_args).'<br />'); }
 
                $item_tags = '';
 
@@ -528,14 +528,14 @@
                        if ($this_status != 'enabled')
                        {
                                // Do Nothing, This account is not in use
-                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $this_acctnum 
['.$this_acctnum.'] is not in use, so skip folderlist<br>'); }
+                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $this_acctnum 
['.$this_acctnum.'] is not in use, so skip folderlist<br />'); }
                        }
                        else
                        {
                                // get the actual list of folders we are going 
to put into the combobox
                                //$folder_list = 
$this->get_folder_list($this_acctnum);
                                $folder_list = 
$this->get_arg_value('folder_list', $this_acctnum);
-                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $this_acctnum 
['.$this_acctnum.'] IS enabled, got folder list<br>'); }
+                               if ($debug_mega_listbox > 1) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $this_acctnum 
['.$this_acctnum.'] IS enabled, got folder list<br />'); }
                                if ($debug_mega_listbox > 2) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): $folder_list for 
$this_acctnum ['.$this_acctnum.'] DUMP:', $folder_list); }
                                // NNTP = BORKED CODE!!!  (ignore for now) ...
                                if ($this->get_arg_value('newsmode', 
$this_acctnum))
@@ -608,7 +608,7 @@
                                . $item_tags
                        .'</select>';
                // return a pre-built HTML listbox (selectbox) widget
-               if ($debug_mega_listbox > 0) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): LEAVING<br>'); }
+               if ($debug_mega_listbox > 0) { 
$this->dbug->out('folders_mega_listbox('.__LINE__.'): LEAVING<br />'); }
                return $listbox_widget;
        }
 
@@ -729,9 +729,9 @@
                
                if ($debug_sort)
                {
-                       $this->dbug->out('sort: 
['.$this->get_arg_value('sort').']<br>');
-                       $this->dbug->out('order: 
['.$this->get_arg_value('order').']<br>');
-                       $this->dbug->out('start: 
['.$this->get_arg_value('start').']<br>');
+                       $this->dbug->out('sort: 
['.$this->get_arg_value('sort').']<br />');
+                       $this->dbug->out('order: 
['.$this->get_arg_value('order').']<br />');
+                       $this->dbug->out('start: 
['.$this->get_arg_value('start').']<br />');
                }
        }
        
@@ -748,7 +748,7 @@
                //$debug_nav = True;
                //$debug_nav = False;
                $debug_nav = $this->debug_index_page_display;
-               if ($debug_nav > 0) { $this->dbug->out('mail_msg_display: 
prev_next_navigation('.__LINE__.'): ENTERING, (try debug_index_page_display = 3 
to see data dumps)<br>'); }
+               if ($debug_nav > 0) { $this->dbug->out('mail_msg_display: 
prev_next_navigation('.__LINE__.'): ENTERING, (try debug_index_page_display = 3 
to see data dumps)<br />'); }
                
                // but we do not want a COPY of this data it can be thousands 
of items, so we try to get a reference
                $nav_data = array();
@@ -857,7 +857,7 @@
                        $nav_data['next_msg'] = $this->not_set;
                }
                if ($debug_nav > 2) { $this->dbug->out('mail_msg_display: 
prev_next_navigation('.__LINE__.'): step2 $nav_data[] DUMP:', $nav_data); }
-               if ($debug_nav > 0) { $this->dbug->out('mail_msg_display: 
prev_next_navigation('.__LINE__.'): LEAVING<br>'); }
+               if ($debug_nav > 0) { $this->dbug->out('mail_msg_display: 
prev_next_navigation('.__LINE__.'): LEAVING<br />'); }
                return $nav_data;
        }
 
@@ -898,7 +898,7 @@
                if ($debug_widget) { $this->dbug->out('all_ex_accounts_listbox 
$feed_args data DUMP:', $feed_args); }
                if (count($feed_args) == 0)
                {
-                       if ($debug_widget) { 
$this->dbug->out('all_ex_accounts_listbox $feed_args is 
EMPTY<br>'.serialize($feed_args).'<br>'); }
+                       if ($debug_widget) { 
$this->dbug->out('all_ex_accounts_listbox $feed_args is EMPTY<br 
/>'.serialize($feed_args).'<br />'); }
                }
                else
                {
@@ -908,14 +908,14 @@
                        while(list($key,$value) = each($local_args))
                        {
                                // DEBUG
-                               if ($debug_widget) { $this->dbug->out('* a: 
local_args: key=['.$key.'] value=['.(string)$value.']<br>'); }
-                               if ($debug_widget) { $this->dbug->out('* b: 
feed_args: key=['.$key.'] value=['.(string)$feed_args[$key].']<br>'); }
+                               if ($debug_widget) { $this->dbug->out('* a: 
local_args: key=['.$key.'] value=['.(string)$value.']<br />'); }
+                               if ($debug_widget) { $this->dbug->out('* b: 
feed_args: key=['.$key.'] value=['.(string)$feed_args[$key].']<br />'); }
                                if ((isset($feed_args[$key]))
                                //&& ($feed_args[$key] != $value))
                                && ((string)$feed_args[$key] != (string)$value))
                                {
                                        // we have a specified arg that should 
replace the default value
-                                       if ($debug_widget) { 
$this->dbug->out('*** override default value of ['.$local_args[$key] .'] with 
feed_args['.$key.'] of ['.(string)$feed_args[$key].']<br>'); }
+                                       if ($debug_widget) { 
$this->dbug->out('*** override default value of ['.$local_args[$key] .'] with 
feed_args['.$key.'] of ['.(string)$feed_args[$key].']<br />'); }
                                        $local_args[$key] = $feed_args[$key];
                                }
                        }
@@ -923,7 +923,7 @@
                        @reset($feed_args);
                }
                // at this point, local_args[] has anything that was passed in 
the feed_args[]
-               if ($debug_widget) { $this->dbug->out('all_ex_accounts_listbox: 
FINAL Listbox Local Args:<br>'.serialize($local_args).'<br>'); }
+               if ($debug_widget) { $this->dbug->out('all_ex_accounts_listbox: 
FINAL Listbox Local Args:<br />'.serialize($local_args).'<br />'); }
                
                $item_tags = '';
                
@@ -1173,8 +1173,8 @@
        */
        function get_flat_pgw_struct($struct)
        {
-               if ($this->debug_message_display > 0) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct:  ENTERING <br>'); }
-               //if ($this->debug_message_display > 1) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct:  param $msgball 
['.serialize($msgball).']<br>'); }
+               if ($this->debug_message_display > 0) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct:  ENTERING <br />'); }
+               //if ($this->debug_message_display > 1) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct:  param $msgball 
['.serialize($msgball).']<br />'); }
                if ($this->debug_message_display > 2) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct:  param $struct DUMP:', 
$struct); }
 
                /*
@@ -1200,11 +1200,11 @@
                        //echo '** flat_pgw_struct: $specific_key 
['.$specific_key.'] :: $cache_flat_pgw_struct DUMP<pre>'; 
print_r($cache_phpgw_header); echo '</pre>';
                        if ($cache_flat_pgw_struct)
                        {
-                               if ($this->debug_message_display > 0) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct:  LEAVING returning 
cached data<br>'); }
+                               if ($this->debug_message_display > 0) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct:  LEAVING returning 
cached data<br />'); }
                                return $cache_flat_pgw_struct;
                        }
                }
-               if ($this->debug_message_display > 1) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct: beginning ... no 
cached data available or caching is not enabled<br>'); }
+               if ($this->debug_message_display > 1) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct: beginning ... no 
cached data available or caching is not enabled<br />'); }
                */
 
                if (isset($this->not_set))
@@ -1229,7 +1229,7 @@
                //$part = Array();
                //$part[0] = $struct;
 
-               //echo '<br>INITIAL var part serialized:<br>' .serialize($part) 
.'<br><br>';
+               //echo '<br />INITIAL var part serialized:<br />' 
.serialize($part) .'<br /><br />';
 
                $d1_num_parts = count($part);
                $part_nice = Array();
@@ -1692,7 +1692,7 @@
                        // so we do  not show these images on their own
                        if ($part_nice[$i]['m_description'] == 
'presentable/image')
                        {
-                               //echo '('.__LINE__.') presentable/image , 
$struct->type ['.$struct->type.'] , $struct->subtype 
['.$struct->subtype.']<br>';
+                               //echo '('.__LINE__.') presentable/image , 
$struct->type ['.$struct->type.'] , $struct->subtype ['.$struct->subtype.']<br 
/>';
                                // TEST THIS:
                                // * IS the parent marked as multipart/related
                                // and CHECK 2 TIMES: note that we test 2 times
@@ -1709,7 +1709,7 @@
                                && (stristr($struct->subtype, 'related'))
                                )
                                {
-                                       //echo '('.__LINE__.') 
presentable/image , alt_hide related to top level<br>';
+                                       //echo '('.__LINE__.') 
presentable/image , alt_hide related to top level<br />';
                                        // SET THIS FLAG: then, in presentation 
loop, we can decide not to show it
                                        $part_nice[$i]['m_keywords'] .= 
'alt_hide' .' ';
                                }
@@ -1868,7 +1868,7 @@
 
                // finally, return the customized flat phpgw msg structure array
                if ($this->debug_message_display > 2) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct: returning $part_nice 
DUMP:', $part_nice); }
-               if ($this->debug_message_display > 0) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct: LEAVING we made a 
$part_nice, returning it<br>'); }
+               if ($this->debug_message_display > 0) { 
$this->dbug->out('mail_msg(display).get_flat_pgw_struct: LEAVING we made a 
$part_nice, returning it<br />'); }
                return $part_nice;
        }
 
@@ -1897,9 +1897,9 @@
                        $not_set = '-1';
                }
 
-               //echo 'BEGIN pgw_msg_struct<br>';
+               //echo 'BEGIN pgw_msg_struct<br />';
                //echo var_dump($part);
-               //echo '<br>';
+               //echo '<br />';
 
                // TRANSLATE PART STRUCTURE CONSTANTS INTO STRINGS OR TRUE/FALSE
                // see php manual page function.imap-fetchstructure.php
@@ -2083,9 +2083,9 @@
                $part_nice['ex_level_max_loops'] = $feed_loops;
                $part_nice['ex_level_debth'] = $feed_debth;
 
-               //echo 'BEGIN DUMP<br>';
+               //echo 'BEGIN DUMP<br />';
                //echo var_dump($part_nice);
-               //echo '<br>END DUMP<br>';
+               //echo '<br />END DUMP<br />';
 
                return $part_nice;
        }
@@ -2121,9 +2121,9 @@
                //      $debug = True;
                //}
 
-               if ($debug) { $this->dbug->out('ENTER mime_number_smart<br>'); }
-               if ($debug) { $this->dbug->out('fed var flat_idx: '. 
$flat_idx.'<br>'); }
-               if ($debug) { $this->dbug->out('fed var new_mime_dumb: '. 
$new_mime_dumb.'<br>'); }
+               if ($debug) { $this->dbug->out('ENTER mime_number_smart<br 
/>'); }
+               if ($debug) { $this->dbug->out('fed var flat_idx: '. 
$flat_idx.'<br />'); }
+               if ($debug) { $this->dbug->out('fed var new_mime_dumb: '. 
$new_mime_dumb.'<br />'); }
                //error check
                if ($new_mime_dumb == $not_set)
                {
@@ -2135,12 +2135,12 @@
                $exploded_mime_dumb = Array();
                if (strlen($new_mime_dumb) == 1)
                {
-                       if ($debug) { $this->dbug->out('strlen(new_mime_dumb) = 
1 :: TRUE ; FIRST debth level<br>'); }
+                       if ($debug) { $this->dbug->out('strlen(new_mime_dumb) = 
1 :: TRUE ; FIRST debth level<br />'); }
                        $exploded_mime_dumb[0] = (int)$new_mime_dumb;
                }
                else
                {
-                       if ($debug) { $this->dbug->out('strlen(new_mime_dumb) = 
1 :: FALSE<br>'); }
+                       if ($debug) { $this->dbug->out('strlen(new_mime_dumb) = 
1 :: FALSE<br />'); }
                        $exploded_mime_dumb = explode('.', $new_mime_dumb);
                }
 
@@ -2149,30 +2149,30 @@
                {
                        $exploded_mime_dumb[$i] = (int)$exploded_mime_dumb[$i];
                }
-               if ($debug) { $this->dbug->out('exploded_mime_dumb 
'.serialize($exploded_mime_dumb).'<br>'); }
+               if ($debug) { $this->dbug->out('exploded_mime_dumb 
'.serialize($exploded_mime_dumb).'<br />'); }
 
                // make an array of all parts of this family tree,  from the 
current part (the outermost) to innermost (closest to debth level 1)
                $dumbs_part_nice = Array();
                //loop BACKWARDS
                for ($i = count($exploded_mime_dumb) - 1; $i > -1; $i--)
                {
-                       if ($debug) { $this->dbug->out('exploded_mime_dumb 
reverse loop i=['.$i.']<br>'); }
+                       if ($debug) { $this->dbug->out('exploded_mime_dumb 
reverse loop i=['.$i.']<br />'); }
                        // is this the outermost (current) part ?
                        if ($i == (count($exploded_mime_dumb) - 1))
                        {
                                $dumbs_part_nice[$i] = $part_nice[$flat_idx];
-                               if ($debug) { 
$this->dbug->out('(outermost/current part) dumbs_part_nice[i('.$i.')] = 
part_nice[flat_idx('.$flat_idx.')]<br>'); }
-                               //if ($debug) { $this->dbug->out(' - 
prev_parent_flat_idx: '.$prev_parent_flat_idx.'<br>'); }
+                               if ($debug) { 
$this->dbug->out('(outermost/current part) dumbs_part_nice[i('.$i.')] = 
part_nice[flat_idx('.$flat_idx.')]<br />'); }
+                               //if ($debug) { $this->dbug->out(' - 
prev_parent_flat_idx: '.$prev_parent_flat_idx.'<br />'); }
                        }
                        else
                        {
                                $this_dumbs_idx = 
$dumbs_part_nice[$i+1]['ex_parent_flat_idx'];
                                $dumbs_part_nice[$i] = 
$part_nice[$this_dumbs_idx];
-                               if ($debug) { 
$this->dbug->out('dumbs_part_nice[i('.$i.')] = 
part_nice[this_dumbs_idx('.$this_dumbs_idx.')]<br>'); }
+                               if ($debug) { 
$this->dbug->out('dumbs_part_nice[i('.$i.')] = 
part_nice[this_dumbs_idx('.$this_dumbs_idx.')]<br />'); }
                        }
                }
-               //if ($debug) { $this->dbug->out('dumbs_part_nice serialized: 
'.serialize($dumbs_part_nice) .'<br>'); }
-               //if ($debug) { $this->dbug->out('serialize exploded_mime_dumb: 
'.serialize($exploded_mime_dumb).'<br>'); }
+               //if ($debug) { $this->dbug->out('dumbs_part_nice serialized: 
'.serialize($dumbs_part_nice) .'<br />'); }
+               //if ($debug) { $this->dbug->out('serialize exploded_mime_dumb: 
'.serialize($exploded_mime_dumb).'<br />'); }
 
                // NOTE:  Packagelist -> Container EXCEPTION Conversions
                // a.k.a "Exceptions for Less-Standart Subtypes"
@@ -2253,7 +2253,7 @@
                                }
                        }
                }
-               if ($debug) { $this->dbug->out('FINAL smart_mime_number: 
'.$smart_mime_number.'<br><br>'); }
+               if ($debug) { $this->dbug->out('FINAL smart_mime_number: 
'.$smart_mime_number.'<br /><br />'); }
                return $smart_mime_number;
        }
 
@@ -2468,7 +2468,7 @@
                        {
                                $_tf = 
$this->prep_folder_in($this->get_arg_value('tf'));
                                // NOTE if the folder name has html unfriendly 
chars, like " or <, we need to do this just in case
-                               //echo '$this->htmlspecialchars_encode($_tf) 
['.$this->htmlspecialchars_encode($_tf).'] <br>';
+                               //echo '$this->htmlspecialchars_encode($_tf) 
['.$this->htmlspecialchars_encode($_tf).'] <br />';
                                $_tf = $this->htmlspecialchars_encode($_tf);
                        }
                        else
@@ -2641,7 +2641,7 @@
        {
                //$debug_msg_list_display = 3;
                $debug_msg_list_display = $this->debug_index_page_display;
-               if ($debug_msg_list_display > 0) { 
$this->dbug->out('mail_msg_display: get_msg_list_display('.__LINE__.'): 
ENTERING<br>'); }
+               if ($debug_msg_list_display > 0) { 
$this->dbug->out('mail_msg_display: get_msg_list_display('.__LINE__.'): 
ENTERING<br />'); }
 
                if(!$folder_info)
                {
@@ -2797,8 +2797,8 @@
                        /*
                        // begin GMT handling by "acros"
                        // pongo bien la hora de los correos (GMT)
-#                      echo"hora inicial $hdr_envelope->date<br>";
-#                                              echo"hora inicial 
$hdr_envelope->udate<br>";
+#                      echo"hora inicial $hdr_envelope->date<br />";
+#                                              echo"hora inicial 
$hdr_envelope->udate<br />";
 ///modificacion
 $msg_date2=$hdr_envelope->date;
 $comma = strpos($msg_date2,',');
@@ -2806,7 +2806,7 @@
                        {
                                $msg_date2 = substr($msg_date2,$comma + 2);
                        }
-                       //echo 'Msg Date : '.$msg_date."<br>\n";
+                       //echo 'Msg Date : '.$msg_date."<br />\n";
                        $dta = array();
                        $ta = array();
 
@@ -2836,8 +2836,8 @@
 $new_time2=gmdate("D, d M Y H:m:s",$new_time)." GMT";
 $hdr_envelope->date = $new_time2;
 $hdr_envelope->udate = $new_time;
-#echo"hora final $hdr_envelope->udate<br>";
-#echo"hora final $hdr_envelope->date<br>";
+#echo"hora final $hdr_envelope->udate<br />";
+#echo"hora final $hdr_envelope->date<br />";
                        #$message_date = 
$GLOBALS['phpgw']->common->show_date($msg_headers->udate);
 //fin modificacion
 // end GMT handling by "acros"
@@ -3094,7 +3094,7 @@
 
                }
                if ($debug_msg_list_display > 2) { 
$this->dbug->out('mail_msg_display: get_msg_list_display: exiting 
$msg_list_display[] DUMP', $msg_list_display); }
-               if ($debug_msg_list_display > 0) { 
$this->dbug->out('mail_msg_display: get_msg_list_display('.__LINE__.'): 
LEAVING<br>'); }
+               if ($debug_msg_list_display > 0) { 
$this->dbug->out('mail_msg_display: get_msg_list_display('.__LINE__.'): 
LEAVING<br />'); }
                return $msg_list_display;
        }
 




reply via email to

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