⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 printmsg.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

require( "./inc/inc.php" );
if ( !isset( $folder ) || !isset( $ix ) )
{
	exit( "Expected parameters" );
}
$mail_info = $sess['headers'][base64_encode( strtolower( $folder ) )][$ix];
echo $nocache;
if ( !file_exists( $mail_info['localname'] ) )
{
	exit( "File not found" );
}
$email = $UM->_read_file( $mail_info['localname'] );
$email = $UM->decode( $email );
$body = $email['body'];
if ( eregi( "<[ ]*body.*background[ ]*=[ ]*[\"']?([A-Za-z0-9._&?=:/{}%+-]+)[\"']?.*>", $body, $regs ) )
{
	$backimg = " background=\"".$regs[1]."\"";
}
$smarty->assign( "umBackImg", $backimg );
if ( eregi( "<[ ]*body[A-Z0-9._&?=:/\"' -]*bgcolor=[\"']?([A-Z0-9#]+)[\"']?[A-Z0-9._&?=:/\"' -]*>", $body, $regs ) )
{
	$backcolor = " bgcolor=\"".$regs[1]."\"";
}
$smarty->assign( "umBackColor", $backcolor );
$body = eregi_replace( "<body", "<uebimiau_body_not_alowed", $body );
$body = eregi_replace( "a:(link|visited|hover)", ".".uniqid( "" ), $body );
$body = eregi_replace( "(body)[ ]?\\{", ".".uniqid( "" ), $body );
$smarty->assign( "umMessageBody", $body );
$ARFrom = $email['from'];
$useremail = $sess['email'];
$name = $ARFrom[0]['name'];
$thismail = $ARFrom[0]['mail'];
$ARFrom[0]['link'] = "newmsg.php?nameto=".urlencode( $name )."&mailto={$thismail}&sid={$sid}&tid={$tid}&lid={$lid}";
$ARRom[0]['title'] = "{$name} <{$thismail}>";
$smarty->assign( "umFromList", $ARFrom );
$ARTo = $email['to'];
$i = 0;
for ( ;	$i < count( $ARTo );	++$i	)
{
	$name = $ARTo[$i]['name'];
	$thismail = $ARTo[$i]['mail'];
	$link = "newmsg.php?nameto=".urlencode( $name )."&mailto={$thismail}&sid={$sid}&tid={$tid}&lid={$lid}";
	$ARTo[$i]['link'] = $link;
	$ARTo[$i]['title'] = "{$name} <{$thismail}>";
	$smarty->assign( "umTOList", $ARTo );
}
$ARCC = $email['cc'];
if ( 0 < count( $ARCC ) )
{
	$smarty->assign( "umHaveCC", 1 );
	$i = 0;
	for ( ;	$i < count( $ARCC );	++$i	)
	{
		$name = $ARCC[$i]['name'];
		$thismail = $ARCC[$i]['mail'];
		$link = "newmsg.php?nameto=".urlencode( $name )."&mailto={$thismail}&sid={$sid}&tid={$tid}&lid={$lid}";
		$ARCC[$i]['link'] = $link;
		$ARCC[$i]['title'] = "{$name} <{$thismail}>";
	}
	$smarty->assign( "umCCList", $ARCC );
}
$smarty->assign( "umPageTitle", $email['subject'] );
$smarty->assign( "umSubject", $email['subject'] );
$smarty->assign( "umDate", $email['date'] );
$anexos = $email['attachments'];
$haveattachs = 0 < count( $anexos ) ? 1 : 0;
$smarty->assign( "umHaveAttachments", $haveattachs );
if ( 0 < count( $anexos ) )
{
	$i = 0;
	for ( ;	$i < count( $anexos );	++$i	)
	{
		$link1 = "download.php?folder={$folder}&ix={$ix}&mnum={$mnum}&bound=".base64_encode( $anexos[$i]['boundary'] )."&part=".$anexos[$i]['part']."&sid={$sid}&tid={$tid}&lid={$lid}";
		$link2 = "{$link1}&down=1";
		$anexos[$i]['normlink'] = $link1;
		$anexos[$i]['downlink'] = $link2;
		$anexos[$i]['size'] = ceil( $anexos[$i]['size'] / 1024 );
		$anexos[$i]['type'] = trim( $anexos[$i]['content-type'] );
	}
	$smarty->assign( "umAttachList", $anexos );
}
unset( $UM );
$smarty->display( "neotech.net/print-message.htm" );
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -