Source for file Debug.php
Documentation is available at Debug.php
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//\\\ @@ @@\\\\\\| Mail_IMAPv2 \\
//\\ @@@@ @@@@\\\\\|___________________________________________________________\\
//\\\ @@ |\\@@\\\\\\|(c) Copyright 2004-2005 Richard York, All rights Reserved \\
//\\\\ || \\\\\\\|___________________________________________________________\\
//\\\\ \\_ \\\\\\|Redistribution and use in source and binary forms, with or \\
//\\\\\ \\\\\|without modification, are permitted provided that the \\
//\\\\\ ---- \@@@@|following conditions are met: \\
//@@@@@@\ \@@@@@| o Redistributions of source code must retain the above \\
//\\\\\\\\\\\\\\\\\\| copyright notice, this list of conditions and the \\
// following disclaimer. \\
// o Redistributions in binary form must reproduce the above copyright notice, \\
// this list of conditions and the following disclaimer in the documentation \\
// and/or other materials provided with the distribution. \\
// o The names of the authors may not be used to endorse or promote products \\
// derived from this software without specific prior written permission. \\
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" \\
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \\
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \\
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE \\
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \\
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \\
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \\
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN \\
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \\
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \\
// POSSIBILITY OF SUCH DAMAGE. \\
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
* This class provides an extension to Mail_IMAPv2 that adds debugging
* utilities for the base IMAP.php class. The debugging functionality
* provided by this class is currently accessed by supplying various
* $_GET method arguments.
* @author Richard York <rich_y@php.net>
* @copyright (c) Copyright 2004-2005, Richard York, All Rights Reserved.
* @tutorial http://www.smilingsouls.net/Mail_IMAP
if (isset ($_GET['dump_mid'])) {
$this->debug($_GET['dump_mid']);
$this->error->push (Mail_IMAPv2_ERROR, 'error', array ('method' => 'Mail_IMAPv2_Debug', 'error_string' => 'No mid was specified for debugging.'));
* Dumps various information about a message for debugging. Specify $_GET
* variables to view information.
* Calling on the debugger exits script execution after debugging operations
* @param int $mid $mid to debug
* @tutorial http://www.smilingsouls.net/Mail_IMAP?content=Mail_IMAP_Debug/debug
if (isset ($_GET['dump_mb_info'])) {
if (isset ($_GET['dump_cid'])) {
$this->dump($this->msg[$mid]['in']['cid']);
if (isset ($_GET['dump_related'])) {
if (isset ($_GET['dump_msg']) && isset ($_GET['dump_pid'])) {
$this->getParts($mid, $_GET['dump_pid']);
if (isset ($_GET['dump_pid'])) {
if (isset ($_GET['dump_ftype'])) {
if (isset ($_GET['dump_structure'])) {
if (isset ($_GET['test_pid'])) {
echo imap_fetchbody ($this->mailbox, $mid, $_GET['test_pid'], NULL );
if (isset ($_GET['dump_mb_list'])) {
if (isset ($_GET['dump_headers'])) {
if ($this->error->hasErrors ()) {
* Calls on var_dump and outputs with HTML <pre> tags.
* @param mixed $thing $thing to dump.
* @tutorial http://www.smilingsouls.net/Mail_IMAP?content=Mail_IMAP_Debug/dump
echo "<pre style='display: block; font-family: monospace; white-space: pre;'>\n";
Documentation generated on Mon, 11 Mar 2019 15:40:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|