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

📄 basexml.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

function SetXmlHeaders( )
{
	ob_end_clean( );
	header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
	header( "Last-Modified: ".gmdate( "D, d M Y H:i:s" )." GMT" );
	header( "Cache-Control: no-store, no-cache, must-revalidate" );
	header( "Cache-Control: post-check=0, pre-check=0", FALSE );
	header( "Pragma: no-cache" );
	header( "Content-Type: text/xml; charset=gb2312" );
}

function CreateXmlHeader( $command, $resourceType, $currentFolder )
{
	setxmlheaders( );
	echo "<?xml version=\"1.0\" encoding=\"gb2312\" ?>";
	echo "<Connector command=\"".$command."\" resourceType=\"".$resourceType."\">";
	echo "<CurrentFolder path=\"".converttoxmlattribute( $currentFolder )."\" url=\"".converttoxmlattribute( geturlfrompath( $resourceType, $currentFolder, $command ) )."\" />";
	$GLOBALS['GLOBALS']['HeaderSent'] = TRUE;
}

function CreateXmlFooter( )
{
	echo "</Connector>";
}

function SendError( $number, $text )
{
	if ( isset( $GLOBALS['HeaderSent'] ) && $GLOBALS['HeaderSent'] )
	{
		senderrornode( $number, $text );
		createxmlfooter( );
		exit( );
	}
	setxmlheaders( );
	echo "<?xml version=\"1.0\" encoding=\"gb2312\" ?><Connector>";
	senderrornode( $number, $text );
	echo "</Connector>";
	exit( );
}

function SendErrorNode( $number, $text )
{
	echo "<Error number=\"".$number."\" text=\"".htmlspecialchars( $text )."\" />";
}

?>

⌨️ 快捷键说明

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