squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

printer_friendly_bottom.php File Reference

Go to the source code of this file.




 pf_clean_string ( $unclean_string, $num_leading_spaces)
 pf_show_attachments ($message, $exclude_id, $mailbox, $id)


const PAGE_NAME 'printer_friendly_bottom'
const SM_PATH '../'
if(! sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET)||! preg_match('/^\d+(\.\d+) *$/', $passed_ent_id) $pf_cleandisplay ) = getPref($data_dir, $username, 'pf_cleandisplay', false)
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0)
 $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox)
if(isset($messages[$mbx_response['UIDVALIDITY']][$passed_id])) else
if($passed_ent_id) $rfc822_header = $message->rfc822_header
 $from = $rfc822_header->getAddr_s('from')
 $date = getLongDateString($rfc822_header->date, $rfc822_header->date_unparsed)
 $subject = trim($rfc822_header->subject)
 $cc = $rfc822_header->getAddr_s('cc')
 $to = $rfc822_header->getAddr_s('to')
 $body = ''
 $attachments = pf_show_attachments($message,$ent_ar,$mailbox,$passed_id)
 if (strlen( $cc) > 0)

Function Documentation

◆ pf_clean_string()

pf_clean_string (   $unclean_string,

Definition at line 184 of file printer_friendly_bottom.php.

References $data_dir, $username, $wrap_at, and getPref().

◆ pf_show_attachments()

pf_show_attachments (   $message,

Displays attachment information

Stripped version of formatAttachments() function from functions/mime.php.

object$messageSquirrelMail message object
array$exclude_idmessage parts that are not attachments.
string$mailboxmailbox name
integer$idmessage id
1.5.1 and 1.4.6
string html formated attachment information.

Definition at line 228 of file printer_friendly_bottom.php.

References $attachments, $color, $filename, $header, $mailbox, $message, $rfc822_header, $type0, $type1, _(), decodeHeader(), html_tag(), and show_readable_size().

Variable Documentation

◆ $attachments

$attachments = pf_show_attachments($message,$ent_ar,$mailbox,$passed_id)

◆ $body

$body = ''

Definition at line 73 of file printer_friendly_bottom.php.

◆ $cc

$cc = $rfc822_header->getAddr_s('cc')

◆ $date

◆ $from

◆ $imapConnection

$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0)

Definition at line 45 of file printer_friendly_bottom.php.

◆ $mbx_response

$mbx_response = sqimap_mailbox_select($imapConnection, $mailbox)

Definition at line 46 of file printer_friendly_bottom.php.

◆ $pf_cleandisplay

if (! sqgetGlobalVar( 'passed_ent_id', $passed_ent_id, SQ_GET)||! preg_match('/^\d+(\.\d+) *$/', $passed_ent_id) $pf_cleandisplay) = getPref($data_dir, $username, 'pf_cleandisplay', false)

Definition at line 44 of file printer_friendly_bottom.php.

◆ $rfc822_header

if ( $passed_ent_id) $rfc822_header = $message->rfc822_header

Definition at line 58 of file printer_friendly_bottom.php.

Referenced by pf_show_attachments().

◆ $subject

$subject = trim($rfc822_header->subject)

Definition at line 62 of file printer_friendly_bottom.php.

◆ $to

◆ else

if ( $ent_ar[0] !='') else
Initial value:

Definition at line 49 of file printer_friendly_bottom.php.

◆ if

if(! empty($attachments))

Definition at line 140 of file printer_friendly_bottom.php.


const PAGE_NAME 'printer_friendly_bottom'

This is the printer_friendly_bottom page

Definition at line 18 of file printer_friendly_bottom.php.


const SM_PATH '../'

Path for SquirrelMail required files. @ignore

Definition at line 24 of file printer_friendly_bottom.php.

Definition: options.php:28
Definition: download.php:54
sqimap_get_message($imap_stream, $id, $mailbox)
Definition: imap_messages.php:1050
Definition: printer_friendly_bottom.php:45