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

📄 download.php

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

require( "./inc/inc.php" );
if ( $part == "" || $folder == "" || $ix == "" )
{
	header( "Location: error.php?err=3&sid={$sid}&tid={$tid}&lid={$lid}" );
}
$mail_info = $sess['headers'][base64_encode( strtolower( $folder ) )][$ix];
$localname = $mail_info['localname'];
if ( ereg( "\\.\\.", $filename ) )
{
	header( "Location: error.php?err=3&sid={$sid}&tid={$tid}&lid={$lid}" );
	exit( );
}
$filename = $userfolder."_attachments/".md5( base64_decode( $bound ) )."_".$filename;
if ( !file_exists( $localname ) )
{
	header( "Location: error.php?err=3&sid={$sid}&tid={$tid}&lid={$lid}" );
	exit( );
}
if ( $cache )
{
	if ( !file_exists( $filename ) )
	{
		header( "Location: error.php?err=3&sid={$sid}&tid={$tid}&lid={$lid}" );
		exit( );
	}
	clearstatcache( );
	$fp = fopen( $filename, "rb" );
	$email = fread( $fp, filesize( $filename ) );
	fclose( $fp );
	echo $email;
	exit( );
}
$email = $UM->_read_file( $localname );
$email = $UM->fetch_structure( $email );
$header = $email['header'];
$body = $email['body'];
$isdown = isset( $down ) ? 1 : 0;
$UM->download_attach( $header, $body, base64_decode( $bound ), $part, $isdown );
unset( $UM );
?>

⌨️ 快捷键说明

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