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

📄 style.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
📖 第 1 页 / 共 4 页
字号:
	global $sStyleMemo;
	global $nStyleIsSys;
	global $sStyleStateFlag;
	global $sStyleDetectFromWord;
	global $sStyleInitMode;
	global $sStyleBaseUrl;
	global $sStyleUploadObject;
	global $sStyleAutoDir;
	global $sStyleBaseHref;
	global $sStyleContentPath;
	global $sStyleAutoRemote;
	global $sStyleShowBorder;
	global $sAutoDetectLanguage;
	global $sDefaultLanguage;
	global $sSLTFlag;
	global $sSLTMinSize;
	global $sSLTOkSize;
	global $sSYFlag;
	global $sSYText;
	global $sSYFontColor;
	global $sSYFontSize;
	global $sSYFontName;
	global $sSYPicPath;
	global $sSLTSYObject;
	global $sSLTSYExt;
	global $sSYMinSize;
	global $sSYShadowColor;
	global $sSYShadowOffset;
	global $sStyleFileExt;
	global $sStyleFlashExt;
	global $sStyleImageExt;
	global $sStyleMediaExt;
	global $sStyleRemoteExt;
	global $sStyleFileSize;
	global $sStyleFlashSize;
	global $sStyleImageSize;
	global $sStyleMediaSize;
	global $sStyleRemoteSize;
	global $sToolBarID;
	global $sToolBarName;
	global $sToolBarOrder;
	global $sToolBarButton;
	global $nStyleID;
	$b = false;
	$sStyleID = totrim( "id" );
	if ( is_numeric( $sStyleID ) )
	{
		$nStyleID = ( integer )$sStyleID;
		if ( $nStyleID <= count( $GLOBALS['aStyle'] ) )
		{
			$aCurrStyle = explode( "|||", $GLOBALS['aStyle'][$nStyleID] );
			$sStyleName = $aCurrStyle[0];
			$sStyleDir = $aCurrStyle[1];
			$sStyleCSS = $aCurrStyle[2];
			$sStyleUploadDir = $aCurrStyle[3];
			$sStyleBaseHref = $aCurrStyle[22];
			list( , , , , , $sStyleHeight, $sStyleWidth, , , , , , , , , , , , , , , , , , , $sStyleContentPath ) = $aCurrStyle;
			list( , , , , , , , , , , , , , , , , $sStyleStateFlag, $sStyleRemoteSize, $sStyleMediaSize, $sStyleImageSize, $sStyleFlashSize, $sStyleFileSize, $sStyleRemoteExt, $sStyleMediaExt, $sStyleImageExt, $sStyleFlashExt, $sStyleFileExt, , , , , , , , , , , , , , , , , , , , $sStyleMemo ) = $aCurrStyle;
			$sStyleAutoRemote = $aCurrStyle[24];
			$sStyleShowBorder = $aCurrStyle[25];
			$sAutoDetectLanguage = $aCurrStyle[27];
			list( , , , , , , , , , , , , , , , , , , , $sStyleBaseUrl, $sStyleInitMode, $sStyleDetectFromWord, , , , $sStyleAutoDir, $sStyleUploadObject, , , , , , , , $sDefaultLanguage ) = $aCurrStyle;
			$sSLTFlag = $aCurrStyle[29];
			$sSLTMinSize = $aCurrStyle[30];
			$sSLTOkSize = $aCurrStyle[31];
			$sSYFlag = $aCurrStyle[32];
			$sSYText = $aCurrStyle[33];
			$sSYFontColor = $aCurrStyle[34];
			$sSYFontSize = $aCurrStyle[35];
			$sSYFontName = $aCurrStyle[36];
			$sSYPicPath = $aCurrStyle[37];
			$sSLTSYObject = $aCurrStyle[38];
			$sSLTSYExt = $aCurrStyle[39];
			$sSYMinSize = $aCurrStyle[40];
			$sSYShadowColor = $aCurrStyle[41];
			$sSYShadowOffset = $aCurrStyle[42];
			$b = true;
		}
	}
	if ( $b == false )
	{
		goerror( "无效的样式ID号,请通过页面上的链接进行操作!" );
	}
}

function checkstyleform( )
{
	$GLOBALS['sStyleName'] = totrim( "d_name" );
	$GLOBALS['sStyleDir'] = totrim( "d_dir" );
	$GLOBALS['sStyleCSS'] = totrim( "d_css" );
	$GLOBALS['sStyleUploadDir'] = totrim( "d_uploaddir" );
	$GLOBALS['sStyleBaseHref'] = totrim( "d_basehref" );
	$GLOBALS['sStyleContentPath'] = totrim( "d_contentpath" );
	$GLOBALS['sStyleWidth'] = totrim( "d_width" );
	$GLOBALS['sStyleHeight'] = totrim( "d_height" );
	$GLOBALS['sStyleMemo'] = totrim( "d_memo" );
	$GLOBALS['sStyleImageExt'] = totrim( "d_imageext" );
	$GLOBALS['sStyleFlashExt'] = totrim( "d_flashext" );
	$GLOBALS['sStyleMediaExt'] = totrim( "d_mediaext" );
	$GLOBALS['sStyleRemoteExt'] = totrim( "d_remoteext" );
	$GLOBALS['sStyleFileExt'] = totrim( "d_fileext" );
	$GLOBALS['sStyleImageSize'] = totrim( "d_imagesize" );
	$GLOBALS['sStyleFlashSize'] = totrim( "d_flashsize" );
	$GLOBALS['sStyleMediaSize'] = totrim( "d_mediasize" );
	$GLOBALS['sStyleRemoteSize'] = totrim( "d_remotesize" );
	$GLOBALS['sStyleFileSize'] = totrim( "d_filesize" );
	$GLOBALS['sStyleStateFlag'] = totrim( "d_stateflag" );
	$GLOBALS['sStyleAutoRemote'] = totrim( "d_autoremote" );
	$GLOBALS['sStyleShowBorder'] = totrim( "d_showborder" );
	$GLOBALS['sAutoDetectLanguage'] = totrim( "d_autodetectlanguage" );
	$GLOBALS['sDefaultLanguage'] = totrim( "d_defaultlanguage" );
	$GLOBALS['sStyleUploadObject'] = totrim( "d_uploadobject" );
	$GLOBALS['sStyleAutoDir'] = totrim( "d_autodir" );
	$GLOBALS['sStyleDetectFromWord'] = totrim( "d_detectfromword" );
	$GLOBALS['sStyleInitMode'] = totrim( "d_initmode" );
	$GLOBALS['sStyleBaseUrl'] = totrim( "d_baseurl" );
	$GLOBALS['sSLTFlag'] = totrim( "d_sltflag" );
	$GLOBALS['sSLTMinSize'] = totrim( "d_sltminsize" );
	$GLOBALS['sSLTOkSize'] = totrim( "d_sltoksize" );
	$GLOBALS['sSYFlag'] = totrim( "d_syflag" );
	$GLOBALS['sSYText'] = totrim( "d_sytext" );
	$GLOBALS['sSYFontColor'] = totrim( "d_syfontcolor" );
	$GLOBALS['sSYFontSize'] = totrim( "d_syfontsize" );
	$GLOBALS['sSYFontName'] = totrim( "d_syfontname" );
	$GLOBALS['sSYPicPath'] = totrim( "d_sypicpath" );
	$GLOBALS['sSLTSYObject'] = totrim( "d_sltsyobject" );
	$GLOBALS['sSLTSYExt'] = totrim( "d_sltsyext" );
	$GLOBALS['sSYMinSize'] = totrim( "d_syminsize" );
	$GLOBALS['sSYShadowColor'] = totrim( "d_syshadowcolor" );
	$GLOBALS['sSYShadowOffset'] = totrim( "d_syshadowoffset" );
	$GLOBALS['sStyleUploadDir'] = str_replace( "\\", "/", $GLOBALS['sStyleUploadDir'] );
	$GLOBALS['sStyleBaseHref'] = str_replace( "\\", "/", $GLOBALS['sStyleBaseHref'] );
	$GLOBALS['sStyleContentPath'] = str_replace( "\\", "/", $GLOBALS['sStyleContentPath'] );
	if ( substr( $GLOBALS['sStyleUploadDir'], -1 ) != "/" )
	{
		$GLOBALS['sStyleUploadDir'] = $sStyleUploadDir."/";
	}
	if ( substr( $GLOBALS['sStyleBaseHref'], -1 ) != "/" )
	{
		$GLOBALS['sStyleBaseHref'] = $sStyleBaseHref."/";
	}
	if ( substr( $GLOBALS['sStyleContentPath'], -1 ) != "/" )
	{
		$GLOBALS['sStyleContentPath'] = $sStyleContentPath."/";
	}
	if ( $sStyleName == "" )
	{
		goerror( "样式名不能为空!" );
	}
	if ( issafestr( $GLOBALS['sStyleName'] ) == false )
	{
		goerror( "样式名请勿包含特殊字符!" );
	}
	if ( $sStyleDir == "" )
	{
		goerror( "按钮图片目录名不能为空!" );
	}
	if ( issafestr( $GLOBALS['sStyleDir'] ) == false )
	{
		goerror( "按钮图片目录名请勿包含特殊字符!" );
	}
	if ( $sStyleCSS == "" )
	{
		goerror( "样式CSS目录名不能为空!" );
	}
	if ( issafestr( $GLOBALS['sStyleCSS'] ) == false )
	{
		goerror( "样式CSS目录名请勿包含特殊字符!" );
	}
	if ( $sStyleUploadDir == "" )
	{
		goerror( "上传路径不能为空!" );
	}
	if ( issafestr( $GLOBALS['sStyleUploadDir'] ) == false )
	{
		goerror( "上传路径请勿包含特殊字符!" );
	}
	switch ( $sStyleBaseUrl )
	{
	case "0" :
		if ( $sStyleBaseHref == "" )
		{
			goerror( "当使用相对路径模式时,显示路径不能为空!" );
		}
		if ( issafestr( $GLOBALS['sStyleBaseHref'] ) == false )
		{
			goerror( "当使用相对路径模式时,显示路径请勿包含特殊字符!" );
		}
		if ( substr( $GLOBALS['sStyleBaseHref'], 0, 1 ) != "/" )
		{
			goerror( "当使用相对路径模式时,显示路径必须以 / 开头!" );
		}
		if ( $sStyleContentPath == "" )
		{
			goerror( "当使用相对路径模式时,内容路径不能为空!" );
		}
		if ( issafestr( $GLOBALS['sStyleContentPath'] ) == false )
		{
			goerror( "当使用相对路径模式时,内容路径请勿包含特殊字符!" );
		}
		if ( !( substr( $GLOBALS['sStyleContentPath'], 0, 1 ) == "/" ) )
		{
			break;
		}
		goerror( "当使用相对路径模式时,内容路径不能以&quot;/&quot;开头!" );
		break;
	case "1" :
	case "2" :
		$GLOBALS['sStyleBaseHref'] = "";
		$GLOBALS['sStyleContentPath'] = "";
	}
	if ( !is_numeric( $GLOBALS['sStyleWidth'] ) )
	{
		goerror( "请填写有效的最佳引用宽度!" );
	}
	if ( !is_numeric( $GLOBALS['sStyleHeight'] ) )
	{
		goerror( "请填写有效的最佳引用高度!" );
	}
	if ( !is_numeric( $GLOBALS['sStyleImageSize'] ) )
	{
		goerror( "请填写有效的图片限制大小!" );
	}
	if ( !is_numeric( $GLOBALS['sStyleFlashSize'] ) )
	{
		goerror( "请填写有效的Flash限制大小!" );
	}
	if ( !is_numeric( $GLOBALS['sStyleMediaSize'] ) )
	{
		goerror( "请填写有效的媒体文件限制大小!" );
	}
	if ( !is_numeric( $GLOBALS['sStyleFileSize'] ) )
	{
		goerror( "请填写有效的其它文件限制大小!" );
	}
	if ( !is_numeric( $GLOBALS['sStyleRemoteSize'] ) )
	{
		goerror( "请填写有效的远程文件限制大小!" );
	}
	if ( !is_numeric( $GLOBALS['sSLTMinSize'] ) )
	{

⌨️ 快捷键说明

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