phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] email/inc/class.ui_mail_debug.inc.php, 1.2.2.3


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

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

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

Log Message:
replaced <br> with <br /> and <hr> with <hr /> for better w3c compatibility
=====================================================================
Index: email/inc/class.ui_mail_debug.inc.php
diff -u email/inc/class.ui_mail_debug.inc.php:1.2.2.2 
email/inc/class.ui_mail_debug.inc.php:1.2.2.3
--- email/inc/class.ui_mail_debug.inc.php:1.2.2.2       Sat Sep 13 01:46:17 2003
+++ email/inc/class.ui_mail_debug.inc.php       Sat Nov  6 16:13:45 2004
@@ -56,11 +56,11 @@
                */
                function ui_mail_debug()
                {
-                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.CONSTRUCTOR'.'<br>'."\r\n"; }
+                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.CONSTRUCTOR'.'<br />'."\r\n"; }
                        
                        $this->widgets = CreateObject("email.html_widgets");
                        $this->ensure_tpl_object();
-                       if ($this->debug > 0) { echo 'EXIT: 
email.ui_mail_debug.CONSTRUCTOR'.'<br>'."\r\n"; }
+                       if ($this->debug > 0) { echo 'EXIT: 
email.ui_mail_debug.CONSTRUCTOR'.'<br />'."\r\n"; }
                }
                
                /*!
@@ -73,14 +73,14 @@
                */
                function invoke_bootatrap()
                {
-                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.invoke_bootatrap'.'<br>'; }
+                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.invoke_bootatrap'.'<br />'; }
                        // make sure we have msg object and a server stream
                        $this->msg_bootstrap = 
CreateObject("email.msg_bootstrap");
                        // FIX ME: do_login False when using msg for UTILITY, 
does that still work?
                        //$this->msg_bootstrap->set_do_login(False);
                        
$this->msg_bootstrap->ensure_mail_msg_exists('emai.ui_mail_debug.invoke_bootatrap',
 $this->debug);              
                        
-                       if ($this->debug > 0) { echo 'EXITing: 
email.ui_mail_debug.invoke_bootatrap'.'<br>'; }
+                       if ($this->debug > 0) { echo 'EXITing: 
email.ui_mail_debug.invoke_bootatrap'.'<br />'; }
                }
                
                /*!
@@ -91,7 +91,7 @@
                */
                function end_msg_session_object()
                {
-                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.end_msg_session_object'.'<br>'; }
+                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.end_msg_session_object'.'<br />'; }
                        // kill this script, we re outa here...
                        if (is_object($GLOBALS['phpgw']->msg))
                        {
@@ -101,7 +101,7 @@
                        }
                        // WHEN do we need to call phpgw_exit now with updated 
phpgw API?
                        //$GLOBALS['phpgw']->common->phpgw_exit(False);
-                       if ($this->debug > 0) { echo 'EXITing: 
email.ui_mail_debug.end_msg_session_object'.'<br>'; }
+                       if ($this->debug > 0) { echo 'EXITing: 
email.ui_mail_debug.end_msg_session_object'.'<br />'; }
                }
 
                /*!
@@ -142,7 +142,7 @@
                */      
                function index()
                {
-                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.index'.'<br>'; }
+                       if ($this->debug > 0) { echo 'ENTERING: 
email.ui_mail_debug.index'.'<br />'; }
                        
                        if (is_object($GLOBALS['phpgw']->xslttpl) == False)
                        {
@@ -302,7 +302,7 @@
                                
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('generic_out' => $data));
                        }
                        
-                       if ($this->debug > 0) { echo 'EXITing...: 
email.ui_mail_debug.index'.'<br>'; }
+                       if ($this->debug > 0) { echo 'EXITing...: 
email.ui_mail_debug.index'.'<br />'; }
                        
                        $this->end_msg_session_object();
                }
@@ -314,10 +314,10 @@
                        
                        // NOW WE HAVE A MSG OBJECT!!! we can use its debug 
functions now
                        
-                       //echo 'REQUEST_URI: 
'.$GLOBALS['phpgw']->msg->ref_SERVER['REQUEST_URI'].'<br>';
-                       //echo 'QUERY_STRING: 
'.$GLOBALS['phpgw']->msg->ref_SERVER['QUERY_STRING'].'<br>';
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 REQUEST_URI: '.$GLOBALS['phpgw']->msg->ref_SERVER['REQUEST_URI'].'<br>');
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 QUERY_STRING: '.$GLOBALS['phpgw']->msg->ref_SERVER['QUERY_STRING'].'<br>');
+                       //echo 'REQUEST_URI: 
'.$GLOBALS['phpgw']->msg->ref_SERVER['REQUEST_URI'].'<br />';
+                       //echo 'QUERY_STRING: 
'.$GLOBALS['phpgw']->msg->ref_SERVER['QUERY_STRING'].'<br />';
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 REQUEST_URI: '.$GLOBALS['phpgw']->msg->ref_SERVER['REQUEST_URI'].'<br />');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 QUERY_STRING: '.$GLOBALS['phpgw']->msg->ref_SERVER['QUERY_STRING'].'<br />');
                        
                        $desired_function = '';
                        $uri_confirm = '';
@@ -326,23 +326,23 @@
                        && ($GLOBALS['phpgw']->msg->ref_GET['dfunc'] != ''))
                        {
                                $desired_function = 
$GLOBALS['phpgw']->msg->ref_GET['dfunc'];
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 You requested: '.$desired_function.'<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 You requested: '.$desired_function.'<br />');
                                
                                // some things require you manually type in 
"&confirn=1" to really make it work
                                if 
((isset($GLOBALS['phpgw']->msg->ref_GET['confirm']))
                                && ($GLOBALS['phpgw']->msg->ref_GET['confirm'] 
!= ''))
                                {
                                        $uri_confirm = 
$GLOBALS['phpgw']->msg->ref_GET['confirm'];
-                                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 confirm token is present in URI: '.$uri_confirm.'<br>');
+                                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 confirm token is present in URI: '.$uri_confirm.'<br />');
                                }
                                else
                                {
-                                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 no confirm token is in the URI'.'<br>');
+                                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 no confirm token is in the URI'.'<br />');
                                }
                        }
                        else
                        {
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 no desired data'.'<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 no desired data'.'<br />');
                                return;
                        }
                        
@@ -432,13 +432,13 @@
                        }
                        else
                        {
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 unknown desired debug request: '.$desired_function.']<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 unknown desired debug request: '.$desired_function.']<br />');
                        }
                        
                        // DAMN, since we invoked bootstrap above, we should 
kill the msg session
                        // BUT WILL WE NEED IT AGAIN?
                        // php does not have a definitive destructor, so we 
have to guess where script will end
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 calling "end_msg_session_object" so I hope you do not need it anymore<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.show_desired_data('.__LINE__.'):
 calling "end_msg_session_object" so I hope you do not need it anymore<br />');
                        
                        // new way to handle debug data, if there is debug 
data, this will put it in the template source data vars
                        //$this->tpl->set_var('debugdata', 
$GLOBALS['phpgw']->msg->dbug->notice_pagedone());
@@ -450,7 +450,7 @@
                function copyinteresting()
                {
                        // this function echos out its data
-                       echo 'This will copy from devel mail account folder 
"Phpgw Interesting" to Brick sysmail folder "Interesting 
Emails"<br><br>'."\r\n";
+                       echo 'This will copy from devel mail account folder 
"Phpgw Interesting" to Brick sysmail folder "Interesting Emails"<br /><br 
/>'."\r\n";
                        // FROM: 
&fldball[folder]=INBOX.Phpgw+Interesting&fldball[acctnum]=1
                        // TO: 
&fldball[folder]=mail%2FInteresting+Emails&fldball[acctnum]=3
                        
@@ -458,11 +458,11 @@
                        // begin TYPICAL CLASS MSG INITALIZATION ROUTINE
                        if (is_object($GLOBALS['phpgw']->msg))
                        {
-                               if ($this->debug > 0) { echo 
'emai.ui_mail_debug.copyinteresting: is_object test: $GLOBALS[phpgw]->msg is 
already set, do not create again<br>'; }
+                               if ($this->debug > 0) { echo 
'emai.ui_mail_debug.copyinteresting: is_object test: $GLOBALS[phpgw]->msg is 
already set, do not create again<br />'; }
                        }
                        else
                        {
-                               if ($this->debug > 0) { echo 
'emai.ui_mail_debug.copyinteresting: is_object test: $GLOBALS[phpgw]->msg is 
NOT set, creating mail_msg object<br>'; }
+                               if ($this->debug > 0) { echo 
'emai.ui_mail_debug.copyinteresting: is_object test: $GLOBALS[phpgw]->msg is 
NOT set, creating mail_msg object<br />'; }
                                $GLOBALS['phpgw']->msg = 
CreateObject("email.mail_msg");
                        }
                        
@@ -512,7 +512,7 @@
                                'order'.','.
                                'start';
                        
-                       echo '$expected_args ['.$expected_args.']<br>';
+                       echo '$expected_args ['.$expected_args.']<br />';
                        /*
                        $exploded_expected_args = array();
                        $exploded_expected_args = explode(',',$expected_args);
@@ -549,7 +549,7 @@
                        // clear existing args, apply the new arg enviornment, 
                        // we get back the menuaction the redirect would have 
asked for
                        $my_menuaction = $boaction_obj->apply_new_args_env();
-                       echo 'returned $my_menuaction ['.$my_menuaction.']<br>';
+                       echo 'returned $my_menuaction ['.$my_menuaction.']<br 
/>';
                        
                        $GLOBALS['phpgw']->msg->end_request();
                }
@@ -557,10 +557,10 @@
                
                function db_admin_make_table($really_do_it=False)
                {
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_make_table('.__LINE__.'):
 ENTERING<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_make_table('.__LINE__.'):
 ENTERING<br />');
                        if ($really_do_it == False)
                        {
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_make_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we are DO NOTHING, and 
we EXIT<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_make_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we are DO NOTHING, and 
we EXIT<br />');
                                return;
                        }
                        // this function makes a table for email in the phpgw DB
@@ -589,21 +589,21 @@
                                'ix' => array(),
                                'uc' => array()
                        */
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_make_table('.__LINE__.'):
 LEAVING<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_make_table('.__LINE__.'):
 LEAVING<br />');
                }
                
                function db_admin_rm_table($really_do_it=False)
                {
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_rm_table('.__LINE__.'):
 ENTERING<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_rm_table('.__LINE__.'):
 ENTERING<br />');
                        if (!$really_do_it)
                        {
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_rm_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we are DO NOTHING, and 
we EXIT<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_rm_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we are DO NOTHING, and 
we EXIT<br />');
                                return;
                        }
                        // this function drops the table for email in the phpgw 
DB
                        $sTableName = 'phpgw_anglemail';
                        $query = "DROP TABLE " . $sTableName;
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_rm_table('.__LINE__.'):
 about to CALL 
$GLOBALS[phpgw]->db->query('.$query.','.__LINE__.','.__FILE__.');<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_rm_table('.__LINE__.'):
 about to CALL 
$GLOBALS[phpgw]->db->query('.$query.','.__LINE__.','.__FILE__.');<br />');
                        $GLOBALS['phpgw']->db->query($query,__LINE__,__FILE__);
                        
                        $table_names = $GLOBALS['phpgw']->db->table_names();
@@ -613,42 +613,42 @@
                
                function db_admin_clear_entire_table($really_do_it=False)
                {
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 ENTERING<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 ENTERING<br />');
                        if (!$really_do_it)
                        {
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we are DO NOTHING, and 
we EXIT<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we are DO NOTHING, and 
we EXIT<br />');
                                return;
                        }
                        // If you issue a DELETE with no WHERE clause, all rows 
are deleted.
                        // THIS WIPES THE TABLE CLEAN OF ALL DATA
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we CALL 
$GLOBALS[phpgw]->db->query("DELETE FROM 
phpgw_anglemail",'.__LINE__.','.__FILE__.');<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 param $really_do_it ['.serialize($really_do_it).'] so we CALL 
$GLOBALS[phpgw]->db->query("DELETE FROM 
phpgw_anglemail",'.__LINE__.','.__FILE__.');<br />');
                        $GLOBALS['phpgw']->db->query("DELETE FROM 
phpgw_anglemail",__LINE__,__FILE__);
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 LEAVING<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_admin_clear_entire_table('.__LINE__.'):
 LEAVING<br />');
                }
                
                function db_am_table_exists()
                {
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 ENTERING<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 ENTERING<br />');
                        $look_for_me = 'phpgw_anglemail';
                        $found_table = False;
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 about to call $GLOBALS[phpgw]->db->table_names()<br>'); 
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 about to call $GLOBALS[phpgw]->db->table_names()<br />'); 
                        $table_names = $GLOBALS['phpgw']->db->table_names();
                        $table_names_serialized = serialize($table_names);
                        if (strstr($table_names_serialized, $look_for_me))
                        {
                                
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 result: table ['.$look_for_me.'] DOES exist<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 result: table ['.$look_for_me.'] DOES exist<br />');
                                $found_table = True;
                        }
                        else
                        {
-                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 result: table ['.$look_for_me.'] does NOT exist<br>');
+                               
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 result: table ['.$look_for_me.'] does NOT exist<br />');
                                $found_table = False;
                        }
                        //echo '$table_names dump:<pre>'; 
print_r($table_names); echo '</pre>';
                        
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 $table_names DUMP:', $table_names);
                        
-                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 LEAVING: returning ['.serialize($found_table).']<br>');
+                       
$GLOBALS['phpgw']->msg->dbug->out('ui_mail_debug.db_am_table_exists('.__LINE__.'):
 LEAVING: returning ['.serialize($found_table).']<br />');
                        return $found_table;
                }
                




reply via email to

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