<?php
require(dirname(__FILE__) .'/check.php');
$skin->CheckIframe();


/* **** 版权所有 ****

 程序开发：网钛科技
 网钛CMS官网：http://otcms.com
 网钛IDC官网：http://idccms.com
 ＱＱ：877873666
 微信：QQ877873666
 邮箱：877873666@qq.com

 **** 版权所有 **** */


//用户检测
$MB->Open('','login');

$MB->IsAdminRight('alertBack');


switch($mudi){
	case 'checkFile':
		CheckFile();
		break;

	case 'revLimit':
		RevLimit();
		break;

	case 'testPhpRun':
		TestPhpRun();
		break;

	case 'webConfigDeal':
		WebConfigDeal();
		break;

	case 'checkSoftDir':
		CheckSoftDir();
		break;

	case 'checkUpFilesDir':
		CheckUpFilesDir();
		break;

	case 'checkSoftDirFileInit':
		CheckSoftDirFileInit();
		break;

	case 'checkSoftDirFile':
		CheckSoftDirFile();
		break;

	case 'checkFileDeal':
		CheckFileDeal();
		break;

	case 'calcSiteSize':
		CalcSiteSize();
		break;

	case 'db':
		DbDeal();
		break;

	case 'sql':
		SqlDeal();
		break;

	case 'sqlMore':
		SqlMoreDeal();
		break;

	case 'optionFile':
		OptionFile();
		break;

	case 'del':
		Del();
		break;

	case 'upFilesLook':
		UpFilesLook();
		break;

	case 'upFilesDel':
		UpFilesDel();
		break;

	default:
		die('err');
}

$MB->Close();
$DB->Close();




// 程序文件对比
function CheckFile(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$backURL		= OT::PostStr('backURL');
	$dataType		= OT::PostStr('dataType');
	$dataTypeCN		= OT::PostStr('dataTypeCN');

	$fileStart		= OT::PostInt('fileStart');
	$fileStep		= OT::PostInt('fileStep');
	$fileTotal		= OT::PostInt('fileTotal');
	$fileData		= OT::PostStr('fileData');
	$fileArr = explode('[arr]', $fileData);
//echo('1'. $fileStart .'|'. $fileStep .'|'. $fileTotal .'|'. $fileData);
	$fileEnd = $fileStart+$fileStep;
	for ($i=$fileStart; $i<$fileEnd; $i++){
		if ($i > $fileTotal){ break; }
/*		$pathInfo	= OT::PostStr('pathinfo'. $i);
		$sizeinfo	= OT::PostInt('sizeinfo'. $i);
		$md5info	= OT::PostStr('md5info'. $i);
		$sha1info	= OT::PostStr('sha1info'. $i);*/
//echo('2'. $pathInfo .'|'. $sizeinfo .'|'. $md5info .'|'. $sha1info .'|');
		$oneArr = explode('	', $fileArr[$i-1]);
		$pathInfo	= $oneArr[0];
		$sizeinfo	= $oneArr[1];
		$md5info	= $oneArr[2];
		$sha1info	= $oneArr[3];
		if (count($oneArr) >= 5){ $symd5info = $oneArr[4]; }else{ $symd5info = ''; }

		$chkFilePath = OT_ROOT . $pathInfo;
		if ($md5info == ''){
			if (! file_exists($chkFilePath)){
				echo('
				$id("result'. $i .'").innerHTML=\'<span style="color:red;">文件不存在</span>\';errFileNum++;
				$id("errFile'. $i .'").value="1";
				');
			}else{
				$fileSize = filesize($chkFilePath);
				if ($fileSize == $sizeinfo){
					echo('
					$id("result'. $i .'").innerHTML=\'<span style="color:green;">文件存在，大小一致</span>\';existFileNum++;
					$id("state'. $i .'").value="0";
					// $id("data'. $i .'").style.display="none";
					');
				}else{
					echo('
					$id("result'. $i .'").innerHTML=\'<span style="color:red;" title="当前文件：'. $fileSize .',原版文件：'. $sizeinfo .'">文件存在，大小不一(当前：'. $fileSize .'，原版：'. $sizeinfo .')</span>\';errFileNum++;
					$id("errFile'. $i .'").value="1";
					');
				}
			}
		}else{
			if (! file_exists($chkFilePath)){
				echo('
				$id("result'. $i .'").innerHTML=\'<span style="color:red;">文件不存在</span>\';errFileNum++;
				$id("errFile'. $i .'").value="1";
				');
			}else{
				$fileMd5Str = @md5_file($chkFilePath);
				if ($fileMd5Str == $md5info){
					if ($sha1info == @sha1_file($chkFilePath)){
						echo('
						$id("result'. $i .'").innerHTML=\'<span style="color:green;">完全匹配</span>\';okFileNum++;
						$id("state'. $i .'").value="0";
						// $id("data'. $i .'").style.display="none";
						');
					}else{
						$fileSize = filesize($chkFilePath);
						if ($fileSize == $sizeinfo){
							echo('
							$id("result'. $i .'").innerHTML=\'<span style="color:green;">md5匹配,sha1不匹配,大小一致</span>\';existFileNum++;
							$id("state'. $i .'").value="0";
							');
						}else{
							echo('
							$id("result'. $i .'").innerHTML=\'<span style="color:red;" title="当前文件：'. $fileSize .',原版文件：'. $sizeinfo .'">md5匹配,sha1不匹配,大小不一致</span>\';errFileNum++;
							$id("errFile'. $i .'").value="1";
							');
						}
					}
				}elseif (strlen($symd5info) > 0 && $symd5info == md5(str_replace(array("\r","\n"),'',File::Read($chkFilePath)))){
					echo('
					$id("result'. $i .'").innerHTML=\'<span style="color:green;">完全匹配2</span>\';okFileNum++;
					$id("state'. $i .'").value="0";
					// $id("data'. $i .'").style.display="none";
					');
				}else{
					$fileSize = filesize($chkFilePath);
					if ($fileSize == $sizeinfo){
						echo('
						$id("result'. $i .'").innerHTML=\'<span style="color:#000000;" title="当前文件：'. $fileMd5Str .',原版文件：'. $md5info .'">内容不匹配，但大小一致</span>\';errFileNum++;
						$id("errFile'. $i .'").value="1";
						');
					}else{
						if ($sha1info == sha1_file($chkFilePath)){
							echo('
							$id("result'. $i .'").innerHTML=\'<span style="color:green;">md5值不匹配，sha1值匹配</span>\';okFileNum++;
							$id("state'. $i .'").value="0";
							');
						}else{
							echo('
							$id("result'. $i .'").innerHTML=\'<span style="color:red;">文件被改过或挂马</span>\';errFileNum++;
							$id("errFile'. $i .'").value="1";
							');
						}
					}
				}
			}
		}
	}

}



// 检查文件权限
function RevLimit(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$backURL		= OT::PostStr('backURL');
	$dataType		= OT::PostStr('dataType');
	$dataTypeCN		= OT::PostStr('dataTypeCN');

	$newLimitNum		= OT::PostInt('newLimitNum');
	$limitFileList		= OT::PostStr('limitFileList');

	$fileArr = explode('[arr]', $limitFileList);
	$fileCount = count($fileArr);
	$succNum = $failNum = $existNum = 0;

	for ($i=0; $i<$fileCount; $i++){
		if (file_exists($fileArr[$i])){
			if (@chmod($fileArr[$i], substr('0000'. $newLimitNum,-4))){
				$succNum ++;
			}else{
				$existNum ++;
			}
		}else{
			$failNum ++;
		}
	}

	JS::AlertHrefEnd('修改权限值完毕(成功'. $succNum .'个，失败'. $failNum .'个，不存在'. $existNum .'个)', $backURL);
}



// Window目录权限 - 目录权限检查
function TestPhpRun(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$dataType		= OT::GetStr('dataType');
	$dataTypeCN		= OT::GetStr('dataTypeCN');
	$mudi2			= OT::GetStr('mudi2');
	$fileType		= OT::GetStr('fileType');
		$dataArr = array(
			'cache','cache_html','cache_js','cache_php','cache_session','cache_smarty','cache_taobao','cache_web',
			'upFiles','upFiles_download','upFiles_images','upFiles_infoImg','upFiles_product','upFiles_users',
			'wap_cache'
			);
		if (! in_array($fileType,$dataArr)){
			JS::AlertEnd('fileType目的不明确（'. $fileType .'）');
		}

	$dir = str_replace('_','/',$fileType) .'/';
	switch ($mudi2){
		case 'run':
			$resArr = OT::TestPhpRun(OT_ROOT . $dir, GetUrl::CurrDir(1));
			if ($resArr['res'] == false && $resArr['code'] < 9){
				JS::AlertEnd($resArr['note']);
			}elseif ($resArr['res']){
				JS::AlertEnd('警告！该目录（'. $dir .'）有执行权限，建议关闭掉该目录执行权限。');
			}else{
				JS::AlertEnd('恭喜！该目录（'. $dir .'）没有执行权限。');
			}
			break;
	
		case 'create':
			$resArr = OT::TestPhpRun(OT_ROOT . $dir, GetUrl::CurrDir(1), '|noCheck|noDel|');
			if ($resArr['res'] == false && $resArr['code'] < 9){
				JS::AlertEnd($resArr['note']);
			}elseif ($resArr['res']){
				JS::AlertEnd('恭喜！测试文件创建成功，\r\n请点击【访问测试文件】按钮，最后点击【删除测试文件】按钮。');
			}else{
				JS::AlertEnd('出错！测试文件创建失败。');
			}
			break;
	
		case 'del':
			$resJud = File::Del(OT_ROOT . $dir .'testOtcmsRun.php');
			if ($resJud){
				JS::AlertEnd('删除成功。');
			}else{
				JS::AlertEnd('删除失败。');
			}
			break;
	
		default :
			JS::AlertEnd('mudi2目的不明确（'. $mudi2 .'）');
			break;
	}
}


// Window目录权限 - IIS环境 取消执行权限配置文件 列表
function WebConfigDeal(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$dataType		= OT::GetStr('dataType');
	$dataTypeCN		= OT::GetStr('dataTypeCN');
	$mudi2			= OT::GetStr('mudi2');
	$fileType		= urldecode(OT::GetStr('fileType'));

	$dataArr = array('admin/images', 'admin/js', 'admin/temp', 'admin/tools', 'admin/upFile', 'cache', 'Data', 'Data_backup', 'html', 'inc_img', 'js', 'pay', 'pluDef', 'plugin', 'smarty', 'smarty4.x', 'temp', 'template', 'tools', 'upFiles', 'web_config', 'wap/cache', 'wap/html', 'wap/images', 'wap/js', 'wap/skin', 'wap/template', 'wap/tools');
		if (! in_array($fileType,$dataArr)){
			JS::AlertEnd('fileType目的不明确（'. $fileType .'）');
		}
	if ($fileType == 'Data'){
		$filePath = OT_ROOT . OT_dbDir .'web.config';
	}elseif ($fileType == 'Data_backup'){
		$filePath = OT_ROOT . OT_dbBakDir .'web.config';
	}elseif (strpos($fileType,'admin/') !== false){
		$filePath = str_replace('admin/',OT_adminROOT,$fileType) .'/web.config';
	}else{
		$filePath = OT_ROOT . $fileType .'/web.config';
	}

	switch ($mudi2){
		case 'create':
			$fileData = '<?xml version="1.0" encoding="UTF-8"?>'. PHP_EOL .
						'<configuration>'. PHP_EOL .
						'	<system.webServer>'. PHP_EOL .
						'		<handlers accessPolicy="Read" />'. PHP_EOL .
						'	</system.webServer>'. PHP_EOL .
						'</configuration>'. PHP_EOL .
						'';
			$judRes = File::Write($filePath, $fileData, false, $errStr);
			if ($judRes){
				JS::AlertEnd('恭喜！创建配置文件（web.config）成功。');
			}else{
				JS::AlertEnd('创建失败，原因：'. $errStr);
			}
			break;
	
		case 'del':
			$resJud = File::Del($filePath);
			if ($resJud){
				JS::AlertEnd('删除成功。');
			}else{
				JS::AlertEnd('删除失败。');
			}
			break;
	
		default :
			JS::AlertEnd('mudi2目的不明确（'. $mudi2 .'）');
			break;
	}
}


// 检查异常文件
function CheckSoftDir(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$adminURL	= GetUrl::CurrDir();
	$beforeURL	= GetUrl::CurrDir(1);
	$adminDirName = substr($adminURL,strlen($beforeURL),-1);

	if (OT_Database == 'mysql'){
		$softDirList = '|Data|';
	}else{
		$softDirList = '|'. substr(OT_dbDir,0,-1) .'|';
	}
	$softDirList .= $adminDirName .'|'. substr(OT_dbBakDir,0,-1) .'|api|cache|html|go|goods|inc|inc_img|install|js|news|oneWeb|pay|pluDef|plugin|smarty|smarty4.x|temp|template|tools|upFiles|wap|message|onePage|web_config|';

	$infoTypeDirList='|announ||new|';
	$checkexe=$DB->query('select IT_htmlName from '. OT_dbPref .'infoType');
	while ($row = $checkexe->fetch()){
		if (strlen($row['IT_htmlName']) > 0){ $infoTypeDirList .= '|'. $row['IT_htmlName'] .'|'; }
	}
	unset($checkexe);


	$folderI = 0;

	echo('
	<div style="color:red;padding:8px 0;">检查结果：</div>
	<table cellpadding="0" cellspacing="0" class="tabList1 padd5td">
	<tr><td>目录名</td><td>大小</td><td>创建时间</td><td>最后修改时间</td><td>状态</td></tr>
	');

	$SYS_htmlUrlDir = $DB->GetOne('select SYS_htmlUrlDir from '. OT_dbPref .'system');
	if ($handle = opendir(OT_ROOT)) {
		while (($file = readdir($handle)) !== false) {
			if ($file != '.' && $file != '..' && is_dir(OT_ROOT . $file)) {
				$folderI ++;
				if (strpos($softDirList,'|'. $file .'|') === false){
					$stateStr = '<span style="color:red;">非程序目录</span>';
					if (strpos($infoTypeDirList,'|'. $file .'|') !== false){
						$stateStr = '<span style="color:blue;">疑似栏目静态目录</span>';
					}elseif ($SYS_htmlUrlDir == $file){
						$stateStr = '<span style="color:green;">疑似纯静态目录</span>';
					}elseif (substr($file,0,8) == 'install.'){
						$stateStr = '<span style="color:red;">疑似安装向导目录</span>';
					}
					echo('
					<tr>
						<td>'. Str::GB2UTF($file) .'</td>
						<td>'. File::SizeUnit(filesize(OT_ROOT . $file)) .'</td>
						<td>'. File::GetCreateTime(OT_ROOT . $file) .'</td>
						<td>'. File::GetRevTime(OT_ROOT . $file) .'</td>
						<td>'. $stateStr .'</td>
					</tr>
					');
				}
			}
		}
	}
	closedir($handle);

	echo('
	</table>
	');

}


// upFiles/目录图片木马检查
function CheckUpFilesDir(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$folderI = 0;

	echo('
	<div style="color:red;padding:8px 0;">检查结果：</div>
	<table cellpadding="0" cellspacing="0" class="tabList1 padd5td">
	<tr><td>文件名</td><td>大小</td><td>创建时间</td><td>最后修改时间</td><td>状态</td><td align="center">操作</td></tr>
	');

	$dirPath = OT_ROOT .'upFiles/';
	if ($handle = opendir($dirPath)) {
		while (($file = readdir($handle)) !== false) {
			if ($file != '.' && $file != '..' && is_dir($dirPath . $file)) {
				$folderI ++;
				$retTab2Str = GetDirAndFileImgList(OT_ROOT .'upFiles/'. $file .'/', '', $file);
				if (strlen($retTab2Str) > 3){
					$retTab2Str = '<tr><td colspan="6"><b>'. $file .'/ 目录</b></td></tr>'. $retTab2Str;
				}
				echo($retTab2Str);
			}
		}
	}
	closedir($handle);
	
	echo('
	</table>
	');

}


function CheckSoftDirFileInit(){
	global $DB;

	$DB->query('delete from '. OT_dbPref .'htmlFile where HF_mode="check"');
	if (OT_Database == 'mysql'){
		if ($DB->GetOne('select count(1) from '. OT_dbPref .'htmlFile') == 0){
			$DB->query('TRUNCATE TABLE '. OT_dbPref .'htmlFile');
		}
	}

	CheckSoftDirFile();
}

// 检查目录异常文件
function CheckSoftDirFile(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$dirName	= OT::GetStr('dirName');

	$dirTitle = $dirName;
	$forePath = OT_ROOT . $dirName .'/';
	//	$extList = '/html/htm/xml/js/css/bmp/jpg/jpeg/gif/png/tif/tiff/swf/doc/xls/txt/ppt/docx/xlsx/pptx/pdf/rar/zip/avi/mpeg/mpg/ra/rm/rmvb/mov/qt/asf/wmv/iso/bin/img/mp3/wma/wav/mod/cd/md/aac/mid/ogg/m4a/';
	$extList = $fileList='';
	$beforeAddi = $adminAddi = $cacheAddi = $apiAddi = $onePageAddi = $goAddi = $goodsAddi = $incAddi = $payAddi = $pluginAddi = $toolsAddi = $wapAddi = $messageAddi = '';

	// 100_文章神马收录检查
	if (AreaApp::Jud(100)){
		$pluginAddi .= 'classAppResShenma.php|';
	}
	// 101_会员数据导出功能
	if (AreaApp::Jud(101)){
		$pluginAddi .= 'classAppUserExport.php|';
	}
	// 105_扫码充值手动录入
	if (AreaApp::Jud(105)){
		$adminAddi .= 'diyPayData.php|diyPayData_deal.php|diyPayList.php|diyPayList_deal.php|diyPaySys.php|diyPaySys_deal.php|';
		$pluginAddi .= 'classAppDiyPay.php|';
		$cacheAddi .= 'php/diyPaySys.php|';
	}
	// 106_充值支付_支付宝当面付
	if (AreaApp::Jud(106)){
		$payAddi .= 'f2fpay/AopSdk.php|f2fpay/aop/AlipayMobilePublicMultiMediaClient.php|f2fpay/aop/AlipayMobilePublicMultiMediaExecute.php|f2fpay/aop/AopClient.php|f2fpay/aop/AopEncrypt.php|f2fpay/aop/EncryptParseItem.php|f2fpay/aop/EncryptResponseData.php|f2fpay/aop/SignData.php|f2fpay/aop/request/AlipayAcquireCancelRequest.php|f2fpay/aop/request/AlipayAcquireCloseRequest.php|f2fpay/aop/request/AlipayAcquireCreateandpayRequest.php|f2fpay/aop/request/AlipayAcquirePrecreateRequest.php|f2fpay/aop/request/AlipayAcquireQueryRequest.php|f2fpay/aop/request/AlipayAcquireRefundRequest.php|f2fpay/aop/request/AlipayAppTokenGetRequest.php|f2fpay/aop/request/AlipayBossProdArrangementOfflineQueryRequest.php|f2fpay/aop/request/AlipayMarketingFacetofaceDecodeUseRequest.php|f2fpay/aop/request/AlipayTradeAppPayRequest.php|f2fpay/aop/request/AlipayTradeCancelRequest.php|f2fpay/aop/request/AlipayTradeCloseRequest.php|f2fpay/aop/request/AlipayTradeCreateRequest.php|f2fpay/aop/request/AlipayTradeCustomsDeclareRequest.php|f2fpay/aop/request/AlipayTradeCustomsQueryRequest.php|f2fpay/aop/request/AlipayTradeFastpayRefundQueryRequest.php|f2fpay/aop/request/AlipayTradeOrderSettleRequest.php|f2fpay/aop/request/AlipayTradePagePayRequest.php|f2fpay/aop/request/AlipayTradePayRequest.php|f2fpay/aop/request/AlipayTradePrecreateRequest.php|f2fpay/aop/request/AlipayTradeQueryRequest.php|f2fpay/aop/request/AlipayTradeRefundRequest.php|f2fpay/aop/request/AlipayTradeVendorpayDevicedataUploadRequest.php|f2fpay/aop/request/AlipayTradeWapPayRequest.php|f2fpay/aop/request/AntMerchantExpandContractFacetofaceQueryRequest.php|f2fpay/aop/request/AntMerchantExpandContractFacetofaceSignRequest.php|f2fpay/aop/test/TestImage.php|f2fpay/f2fpay/config/config.php|f2fpay/f2fpay/model/builder/AlipayTradeCancelContentBuilder.php|f2fpay/f2fpay/model/builder/AlipayTradePayContentBuilder.php|f2fpay/f2fpay/model/builder/AlipayTradePrecreateContentBuilder.php|f2fpay/f2fpay/model/builder/AlipayTradeQueryContentBuilder.php|f2fpay/f2fpay/model/builder/AlipayTradeRefundContentBuilder.php|f2fpay/f2fpay/model/builder/ContentBuilder.php|f2fpay/f2fpay/model/builder/ExtendParams.php|f2fpay/f2fpay/model/builder/GoodsDetail.php|f2fpay/f2fpay/model/builder/RoyaltyDetailInfo.php|f2fpay/f2fpay/model/result/AlipayF2FPayResult.php|f2fpay/f2fpay/model/result/AlipayF2FPrecreateResult.php|f2fpay/f2fpay/model/result/AlipayF2FQueryResult.php|f2fpay/f2fpay/model/result/AlipayF2FRefundResult.php|f2fpay/f2fpay/service/AlipayTradeService.php|f2fpay/lotusphp_runtime/Config.php|f2fpay/lotusphp_runtime/ConfigExpression.php|f2fpay/lotusphp_runtime/Lotus.php|f2fpay/lotusphp_runtime/shortcut.php|f2fpay/lotusphp_runtime/Store.php|f2fpay/lotusphp_runtime/StoreFile.php|f2fpay/lotusphp_runtime/StoreMemory.php|f2fpay/lotusphp_runtime/Autoloader/Autoloader.php|f2fpay/lotusphp_runtime/Cache/Cache.php|f2fpay/lotusphp_runtime/Cache/CacheAdapterFactory.php|f2fpay/lotusphp_runtime/Cache/CacheConfigBuilder.php|f2fpay/lotusphp_runtime/Cache/CacheConnectionManager.php|f2fpay/lotusphp_runtime/Cache/CacheHandle.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapter.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapterApc.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapterEAccelerator.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapterFile.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapterMemcache.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapterMemcached.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapterPhps.php|f2fpay/lotusphp_runtime/Cache/Adapter/CacheAdapterXcache.php|f2fpay/lotusphp_runtime/Cache/QueryEngine/TableDataGateway/CacheTableDataGateway.php|f2fpay/lotusphp_runtime/Captcha/Captcha.php|f2fpay/lotusphp_runtime/Captcha/CaptchaImageEngine.php|f2fpay/lotusphp_runtime/Cookie/Cookie.php|f2fpay/lotusphp_runtime/DB/Db.php|f2fpay/lotusphp_runtime/DB/DbAdapterFactory.php|f2fpay/lotusphp_runtime/DB/DbConfigBuilder.php|f2fpay/lotusphp_runtime/DB/DbConnectionManager.php|f2fpay/lotusphp_runtime/DB/DbHandle.php|f2fpay/lotusphp_runtime/DB/DbSqlExpression.php|f2fpay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapter.php|f2fpay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterMysql.php|f2fpay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterMysqli.php|f2fpay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterPdo.php|f2fpay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterPgsql.php|f2fpay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterSqlite.php|f2fpay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapter.php|f2fpay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapterMysql.php|f2fpay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapterPgsql.php|f2fpay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapterSqlite.php|f2fpay/lotusphp_runtime/DB/QueryEngine/SqlMap/AbstractDbSqlMapFilterObject.php|f2fpay/lotusphp_runtime/DB/QueryEngine/SqlMap/DbSqlMapClient.php|f2fpay/lotusphp_runtime/DB/QueryEngine/SqlMap/DbSqlMapResultFactory.php|f2fpay/lotusphp_runtime/DB/QueryEngine/TableDataGateway/DbTableDataGateway.php|f2fpay/lotusphp_runtime/DB/QueryEngine/TableDataGateway/DbTableRelation.php|f2fpay/lotusphp_runtime/DB/QueryEngine/TableDataGateway/DbWhereCondition.php|f2fpay/lotusphp_runtime/Inflector/Inflector.php|f2fpay/lotusphp_runtime/Logger/Logger.php|f2fpay/lotusphp_runtime/MVC/Action.php|f2fpay/lotusphp_runtime/MVC/Component.php|f2fpay/lotusphp_runtime/MVC/Context.php|f2fpay/lotusphp_runtime/MVC/Dispatcher.php|f2fpay/lotusphp_runtime/MVC/TemplateView.php|f2fpay/lotusphp_runtime/MVC/View.php|f2fpay/lotusphp_runtime/ObjectUtil/ObjectUtil.php|f2fpay/lotusphp_runtime/Pagination/Pagination.php|f2fpay/lotusphp_runtime/RBAC/Rbac.php|f2fpay/lotusphp_runtime/Router/Router.php|f2fpay/lotusphp_runtime/Session/Session.php|f2fpay/lotusphp_runtime/Session/Store/SessionStoreFile.php|f2fpay/lotusphp_runtime/Session/Store/SessionStoreMemcache.php|f2fpay/lotusphp_runtime/Session/Store/SessionStoreMysql.php|f2fpay/lotusphp_runtime/Session/Store/SessionStoreSqlite.php|f2fpay/lotusphp_runtime/Url/Url.php|f2fpay/lotusphp_runtime/Validator/Validator.php|f2fpay/lotusphp_runtime/Validator/ValidatorDtd.php|f2fpay/lotusphp_runtime/XML/Xml.php|';
		$pluginAddi .= 'classAppMoneyF2fpay.php|';
	}
	// 107_文章头条收录检查
	if (AreaApp::Jud(107)){
		$pluginAddi .= 'classAppResToutiao.php|';
	}
	// 108_站长工具API
	if (AreaApp::Jud(108)){
		$pluginAddi .= 'classAppChinaz.php|';
	}
	// 10_淘宝客基础包
	if (AreaApp::Jud(10)){
		$adminAddi .= 'readTaoke.php|taokeGoods.php|taokeGoods_deal.php|taokeGoods_outDeal.php|taokeItem.php|taokeItem_deal.php|taokeOut.php|taokeOut_deal.php|taokeSys.php|taokeSys_deal.php|taokeWord.php|taokeWord_deal.php|';
		$pluginAddi .= 'classApiTaobaoke.php|classAppTaobaoke.php|classAppTaobaokeDeal.php|classAppTaobaokeWap.php|';
		$toolsAddi .= 'taobaoApi/Autoloader.php|taobaoApi/TopSdk.php|taobaoApi/aliyun/AliyunClient.php|taobaoApi/dingtalk/DingTalkClient.php|taobaoApi/QimenCloud/QimenCloudClient.php|taobaoApi/top/ApplicationVar.php|taobaoApi/top/ClusterTopClient.php|taobaoApi/top/HttpdnsGetRequest.php|taobaoApi/top/RequestCheckUtil.php|taobaoApi/top/ResultSet.php|taobaoApi/top/SpiUtils.php|taobaoApi/top/TopClient.php|taobaoApi/top/TopLogger.php|taobaoApi/top/domain/Data.php|taobaoApi/top/domain/Extend.php|taobaoApi/top/domain/GenPwdIsvParamDto.php|taobaoApi/top/domain/Items.php|taobaoApi/top/domain/MapData.php|taobaoApi/top/domain/NTbkItem.php|taobaoApi/top/domain/NTbkShop.php|taobaoApi/top/domain/PaginationResult.php|taobaoApi/top/domain/Results.php|taobaoApi/top/domain/TbkCoupon.php|taobaoApi/top/domain/TbkEvent.php|taobaoApi/top/domain/TbkFavorites.php|taobaoApi/top/domain/TbkSpread.php|taobaoApi/top/domain/TbkSpreadRequest.php|taobaoApi/top/domain/TopItemQuery.php|taobaoApi/top/domain/Trackparams.php|taobaoApi/top/domain/UatmTbkItem.php|taobaoApi/top/request/JuItemsSearchRequest.php|taobaoApi/top/request/TbkCouponGetRequest.php|taobaoApi/top/request/TbkDgItemCouponGetRequest.php|taobaoApi/top/request/TbkDgNewuserOrderGetRequest.php|taobaoApi/top/request/TbkItemGetRequest.php|taobaoApi/top/request/TbkItemInfoGetRequest.php|taobaoApi/top/request/TbkItemRecommendGetRequest.php|taobaoApi/top/request/TbkJuTqgGetRequest.php|taobaoApi/top/request/TbkScMaterialOptionalRequest.php|taobaoApi/top/request/TbkScNewuserOrderGetRequest.php|taobaoApi/top/request/TbkShopGetRequest.php|taobaoApi/top/request/TbkShopRecommendGetRequest.php|taobaoApi/top/request/TbkSpreadGetRequest.php|taobaoApi/top/request/TbkTpwdCreateRequest.php|taobaoApi/top/request/TbkUatmEventGetRequest.php|taobaoApi/top/request/TbkUatmEventItemGetRequest.php|taobaoApi/top/request/TbkUatmFavoritesGetRequest.php|taobaoApi/top/request/TbkUatmFavoritesItemGetRequest.php|taobaoApi/top/request/WirelessShareTpwdCreateRequest.php|taobaoApi/top/request/WirelessShareTpwdQueryRequest.php|taobaoApi/top/security/iCache.php|taobaoApi/top/security/MagicCrypt.php|taobaoApi/top/security/SecretContext.php|taobaoApi/top/security/SecretCounterUtil.php|taobaoApi/top/security/SecretGetRequest.php|taobaoApi/top/security/SecurityClient.php|taobaoApi/top/security/SecurityTest.php|taobaoApi/top/security/SecurityUtil.php|taobaoApi/top/security/TopSdkFeedbackUploadRequest.php|taobaoApi/top/security/YacCache.php|';
		$wapAddi .= 'goods/index.php|';
		$goodsAddi .= 'index.php|';
		$cacheAddi .= 'php/taokeSys.php|';
	}
	// 110_文章浏览记录
	if (AreaApp::Jud(110)){
		$adminAddi .= 'userView.php|userView_deal.php|';
		$pluginAddi .= 'classAppUserView.php|';
	}
	// 111_文章收藏记录
	if (AreaApp::Jud(111)){
		$adminAddi .= 'userMark.php|userMark_deal.php|';
		$pluginAddi .= 'classAppUserMark.php|';
	}
	// 112_文章下载记录
	if (AreaApp::Jud(112)){
		$adminAddi .= 'infoDown.php|infoDown_deal.php|';
		$pluginAddi .= 'classAppInfoDown.php|';
	}
	// 113_举报模块
	if (AreaApp::Jud(113)){
		$adminAddi .= 'report.php|report_deal.php|';
		$pluginAddi .= 'classAppReport.php|';
	}
	// 115_直接在线支付
	if (AreaApp::Jud(115)){
		$adminAddi .= 'moneyQuick.php|moneyQuick_deal.php|';
		$pluginAddi .= 'classAppMoneyQuick.php|';
	}
	// 117_tag标签聚合
	if (AreaApp::Jud(117)){
		$adminAddi .= 'tag.php|tag_deal.php|';
		$pluginAddi .= 'classAppTag.php|';
	}
	// 118_API接口基础包 
	if (AreaApp::Jud(118)){
		// $apiAddi .= 'data.php|';
		$pluginAddi .= 'classAppSiteApi.php|';
	}
	// 119_IDC主控模块
	if (AreaApp::Jud(119)){
		$adminAddi .= 'idcMoneyData.php|idcMoneyData_deal.php|idcServData.php|idcServData_deal.php|idcServIp.php|idcServIp_deal.php|idcServList.php|idcServList_deal.php|idcServOs.php|idcServOs_deal.php|idcServPro.php|idcServPro_deal.php|idcServSys.php|idcServSys_deal.php|idcServVps.php|idcServVps_deal.php|idcUsers.php|idcUsers_deal.php|idcVpsDel.php|idcVpsDel_deal.php|';
		$pluginAddi .= 'classAppIdcServ.php|';
		$beforeAddi .= 'api/idcServ.php|servLogin/home.php|servLogin/home_deal.php|servLogin/login.php|servLogin/ssh.php|';
	}
	// 120_实名认证_微信扫码
	if (AreaApp::Jud(120)){
		$pluginAddi .= 'classAppNameWeixin.php|';
		$toolsAddi .= 'nameWeixin/QcloudApi.php|nameWeixin/Common/Base.php|nameWeixin/Common/Error.php|nameWeixin/Common/Request.php|nameWeixin/Common/Sign.php|nameWeixin/Module/Account.php|nameWeixin/Module/Apigateway.php|nameWeixin/Module/Athena.php|nameWeixin/Module/Base.php|nameWeixin/Module/Batch.php|nameWeixin/Module/Bgpip.php|nameWeixin/Module/Bill.php|nameWeixin/Module/Bm.php|nameWeixin/Module/Bmeip.php|nameWeixin/Module/Bmlb.php|nameWeixin/Module/Bmvpc.php|nameWeixin/Module/Cbs.php|nameWeixin/Module/Ccr.php|nameWeixin/Module/Ccs.php|nameWeixin/Module/Cdb.php|nameWeixin/Module/Cdn.php|nameWeixin/Module/Cloudaudit.php|nameWeixin/Module/Cmem.php|nameWeixin/Module/Cns.php|nameWeixin/Module/Cvm.php|nameWeixin/Module/Dfw.php|nameWeixin/Module/Eip.php|nameWeixin/Module/Emr.php|nameWeixin/Module/Faceid.php|nameWeixin/Module/Feecenter.php|nameWeixin/Module/Image.php|nameWeixin/Module/Lb.php|nameWeixin/Module/Live.php|nameWeixin/Module/Market.php|nameWeixin/Module/Monitor.php|nameWeixin/Module/Morphling.php|nameWeixin/Module/Partners.php|nameWeixin/Module/Redis.php|nameWeixin/Module/Scaling.php|nameWeixin/Module/Scf.php|nameWeixin/Module/Sec.php|nameWeixin/Module/Snapshot.php|nameWeixin/Module/Sts.php|nameWeixin/Module/Tbaas.php|nameWeixin/Module/Tdsql.php|nameWeixin/Module/Tmt.php|nameWeixin/Module/Trade.php|nameWeixin/Module/Vod.php|nameWeixin/Module/Vpc.php|nameWeixin/Module/Wenzhi.php|nameWeixin/Module/Yunsou.php|';
		$wapAddi .= 'nameWeixin.php|';
		$beforeAddi .= 'nameWeixin.php|';
	}
	// 121_实名认证_支付宝扫码
	if (AreaApp::Jud(121)){
		$pluginAddi .= 'classAppNameAlipay.php|';
		$toolsAddi .= 'nameAlipay/.DS_Store|nameAlipay/AlipayMobilePublicMultiMediaClient.php|nameAlipay/AlipayMobilePublicMultiMediaExecute.php|nameAlipay/AopCertClient.php|nameAlipay/AopCertification.php|nameAlipay/AopClient.php|nameAlipay/AopEncrypt.php|nameAlipay/EncryptParseItem.php|nameAlipay/EncryptResponseData.php|nameAlipay/SignData.php|nameAlipay/request/AlipayUserCertifyActionApplyRequest.php|nameAlipay/request/AlipayUserCertifyCustomerRelativenumApplyRequest.php|nameAlipay/request/AlipayUserCertifyIdentifyFileQueryRequest.php|nameAlipay/request/AlipayUserCertifyIdentifyInfoQueryRequest.php|nameAlipay/request/AlipayUserCertifyIdentifyVerifyRequest.php|nameAlipay/request/AlipayUserCertifyImgUploadRequest.php|nameAlipay/request/AlipayUserCertifyInfoApplyRequest.php|nameAlipay/request/AlipayUserCertifyInfoPersonApplyRequest.php|nameAlipay/request/AlipayUserCertifyOpenCertifyRequest.php|nameAlipay/request/AlipayUserCertifyOpenInitializeRequest.php|nameAlipay/request/AlipayUserCertifyOpenQueryRequest.php|nameAlipay/request/AlipayUserCertifyStudentinfoSyncRequest.php|nameAlipay/request/AlipayUserCertifyVerificationQueryRequest.php|nameAlipay/request/AlipayUserCertinfoMaskedQueryRequest.php|';
		$wapAddi .= 'nameAlipay.php|';
		$beforeAddi .= 'nameAlipay.php|';
	}
	// 122_白天黑夜模板
	if (AreaApp::Jud(122)){
		$pluginAddi .= 'classAppTplDayNight.php|';
	}
	// 123_WAP白天黑夜模板
	if (AreaApp::Jud(123)){
		$pluginAddi .= 'classAppWapTplDayNight.php|';
	}
	// 124_IDC接口_景安网络
	if (AreaApp::Jud(124)){
		$pluginAddi .= 'classApiJingan.php|classAppJingan.php|';
	}
	// 125_IDC接口_星外
	if (AreaApp::Jud(125)){
		$pluginAddi .= 'classApiXingwai.php|classAppXingwai.php|';
	}
	// 127_IDC工单系统
	if (AreaApp::Jud(127)){
		$adminAddi .= 'workOrder.php|workOrder_deal.php|';
		$pluginAddi .= 'classAppWorkOrder.php|';
		$beforeAddi .= 'workOrder.php|';
	}
	// 128_IDC代理系统（未上架）
	if (AreaApp::Jud(128)){
		$adminAddi .= 'agentPrice.php|agentPrice_deal.php|';
		$incAddi .= 'classAgentUsers.php|';
		$pluginAddi .= 'classAppAgent.php|classAppAgentUsers.php|';
		$beforeAddi .= 'agentUsers/index.php|agentUsers/read.php|agentUsers/readDeal2.php|agentUsers/usersCenter.php|agentUsers/users_deal.php|agentUsers/web.config|agentUsers/tools/font-awesome/fonts/fontawesome-webfont.woff|agentUsers/tools/font-awesome/fonts/fontawesome-webfont.woff2|agentUsers/tools/font-awesome/fonts/FontAwesome.otf|agentUsers/tools/font-awesome/less/animated.less|agentUsers/tools/font-awesome/less/bordered-pulled.less|agentUsers/tools/font-awesome/less/core.less|agentUsers/tools/font-awesome/less/fixed-width.less|agentUsers/tools/font-awesome/less/font-awesome.less|agentUsers/tools/font-awesome/less/icons.less|agentUsers/tools/font-awesome/less/larger.less|agentUsers/tools/font-awesome/less/list.less|agentUsers/tools/font-awesome/less/mixins.less|agentUsers/tools/font-awesome/less/path.less|agentUsers/tools/font-awesome/less/rotated-flipped.less|agentUsers/tools/font-awesome/less/screen-reader.less|agentUsers/tools/font-awesome/less/stacked.less|agentUsers/tools/font-awesome/less/variables.less|agentUsers/tools/font-awesome/scss/font-awesome.scss|agentUsers/tools/font-awesome/scss/_animated.scss|agentUsers/tools/font-awesome/scss/_bordered-pulled.scss|agentUsers/tools/font-awesome/scss/_core.scss|agentUsers/tools/font-awesome/scss/_fixed-width.scss|agentUsers/tools/font-awesome/scss/_icons.scss|agentUsers/tools/font-awesome/scss/_larger.scss|agentUsers/tools/font-awesome/scss/_list.scss|agentUsers/tools/font-awesome/scss/_mixins.scss|agentUsers/tools/font-awesome/scss/_path.scss|agentUsers/tools/font-awesome/scss/_rotated-flipped.scss|agentUsers/tools/font-awesome/scss/_screen-reader.scss|agentUsers/tools/font-awesome/scss/_stacked.scss|agentUsers/tools/font-awesome/scss/_variables.scss|agentUsers/tools/geetest/class.geetestlib.php|agentUsers/tools/VerCode/VerCode1.php|agentUsers/tools/VerCode/VerCode2.php|agentUsers/tools/VerCode/VerCode3.php|agentUsers/tools/VerCode/VerCode4.php|';
	}
	// 129_API接口_IDC模块
	if (AreaApp::Jud(129)){
		$pluginAddi .= 'classAppIdcApi.php|';
	}
	// 132_IDC推广提现（未上架）
	if (AreaApp::Jud(132)){
		$pluginAddi .= 'classAppGain.php|classAppIdcGain.php|';
	}
	// 133_IDC违禁词检测
	if (AreaApp::Jud(133)){
		$adminAddi .= 'siteIpDomain.php|siteIpDomain_deal.php|';
		$pluginAddi .= 'classAppSiteIpDomain.php|';
	}
	// 134_IDC财务基础包
	if (AreaApp::Jud(134)){
		$adminAddi .= 'moneyPay.php|moneyPay_deal.php|moneySys.php|moneySys_deal.php|';
		$pluginAddi .= 'classAppMoneyPay.php|classAppMoneyPayDeal.php|';
		$wapAddi .= 'pay.php|payReturn.php|payServer.php|payWeb.php|pay_deal.php|';
		$beforeAddi .= 'pay.php|payReturn.php|payServer.php|payWeb.php|pay_deal.php|';
	}
	// 135_IDC接口_西部数码
	if (AreaApp::Jud(135)){
		$pluginAddi .= 'classApiWest.php|classApiWest2.php|classAppWest.php|';
	}
	// 139_IDC主控_创梦被控接口
	if (AreaApp::Jud(139)){
		$pluginAddi .= 'classAppIdcServAdream.php|';
	}
	// 141_IDC PPTP模块（未上架）
	if (AreaApp::Jud(141)){
		$adminAddi .= 'pptpData.php|pptpData_deal.php|pptpUsers.php|pptpUsers_deal.php|';
		$pluginAddi .= 'classApiPptp.php|classAppIdcPptp.php|classAppPptp.php|classAppPptpDeal.php|classAppPptpWap.php|';
	}
	// 142_爱站网API
	if (AreaApp::Jud(142)){
		$pluginAddi .= 'classAppAizhan.php|';
	}
	// 143_充值支付_虎皮椒支付
	if (AreaApp::Jud(143)){
		$pluginAddi .= 'classAppMoneyHpjpay.php|';
	}
	// 144_IDC主控_星外被控接口（未上架）
	if (AreaApp::Jud(144)){
		$pluginAddi .= 'classAppIdcServAdream.php|';
	}
	// 145_钉钉群机器人
	if (AreaApp::Jud(145)){
		$pluginAddi .= 'classAppDingding.php|';
	}
	// 148_授权软件管理
	if (AreaApp::Jud(148)){
		$adminAddi .= 'authSoft.php|authSoft_deal.php|authSys.php|authSys_deal.php|authUsers.php|authUsers_deal.php|';
		$incAddi .= 'classSoft.php|';
		$pluginAddi .= 'classAppAuthSoft.php|';
	}
	// 149_充值支付_易支付
	if (AreaApp::Jud(149)){
		$payAddi .= 'epay/EpayCore.class.php|';
		$pluginAddi .= 'classAppMoneyEpay.php|';
	}
	// 155_新广告管理
	if (AreaApp::Jud(155)){
		$adminAddi .= 'caData.php|caData_deal.php|caGroup.php|caGroup_deal.php|caType.php|caType_deal.php|';
		$pluginAddi .= 'classAppCa.php|';
	}
	// 156_数据同步API
	if (AreaApp::Jud(156)){
		$adminAddi .= 'apiItem.php|apiItem_deal.php|apiUsers.php|apiUsersLog.php|apiUsersLog_deal.php|apiUsers_deal.php|';
		$pluginAddi .= 'classAppApiItem.php|';
		$apiAddi .= 'info.php|';
	}
	// 158_功能单页
	if (AreaApp::Jud(158)){
		$adminAddi .= 'onePage.php|onePage_deal.php|';
		$pluginAddi .= 'classAppOnePage.php|';
		$onePageAddi .= 'index.php|plugin_deal.php|usersNewsUpImg.php|inc/VerCode/VerCode1.php|inc/VerCode/VerCode2.php|inc/VerCode/VerCode3.php|inc/VerCode/VerCode4.php|';
	}
	// 15_微信公众号基础包
	if (AreaApp::Jud(15)){
		$adminAddi .= 'weixinAdmin.php|weixinInfo.php|weixinInfo_deal.php|weixinLog.php|weixinLog_deal.php|weixinMenu.php|weixinMenu_deal.php|weixinMenu_V1.00.php|weixinNews.php|weixinNews_deal.php|weixinOther.php|weixinOther_deal.php|weixinReply.php|weixinReply_deal.php|weixinSys.php|weixinSys_deal.php|weixinSys_V1.00.php|weixinTpl.php|weixinTplSend.php|weixinTplSend_deal.php|weixinTpl_deal.php|weixinUsers.php|weixinUsers_deal.php|';
		$pluginAddi .= 'classApiWeixin.php|classAppWeixin.php|';
		$wapAddi .= 'weixin/api.php|weixin/form_deal.php|weixin/receive.php|weixin/success.php|weixin/userInfo.php|weixin/userInfo2.php|weixin/userInfo_deal.php|weixin/webBottom.php|weixin/webTop.php|weixin/writeInfo_deal.php|';
		$cacheAddi .= 'php/weixinSys.php|php/wx_access_token.php|php/wx_jsapi_ticket.php|php/wx_siteAccessToken.php|php/wxTaoke_qiandao.php|php/wxTaoke_qiandao_arr.php|php/wxTaoke_qiandao.php|';
	}
	// 161_后台多网站登录管理
	if (AreaApp::Jud(161)){
		$adminAddi .= 'siteLogin.php|siteLogin_deal.php|';
	}
	// 162_文章导入导出
	if (AreaApp::Jud(162)){
		$adminAddi .= 'infoImport.php|infoImport_deal.php|';
		$pluginAddi .= 'classAppInfoImport.php|';
	}
	// 163_企业微信群机器人
	if (AreaApp::Jud(163)){
		$pluginAddi .= 'classAppWeixinWork.php|';
	}
	// 164_后台大文件上传
	if (AreaApp::Jud(164)){
		$adminAddi .= 'info_upKeepBigFile.php|info_upKeepBigFile_deal.php|tools/upKeepBigFile/fonts/glyphicons-halflings-regular.woff|';
		$pluginAddi .= 'classAppUpKeepBigFile.php|';
		$toolsAddi .= 'upKeepBigFile/fonts/glyphicons-halflings-regular.woff|';
		$wapAddi .= 'usersNewsUpBigFile.php|usersNewsUpBigFile_deal.php|tools/upKeepBigFile/fonts/glyphicons-halflings-regular.woff|users/upBigFile.php|users/upBigFile_deal.php|';
		$beforeAddi .= 'usersNewsUpBigFile.php|usersNewsUpBigFile_deal.php|';
	}
	// 165_自动配缩略图
	if (AreaApp::Jud(165)){
		$pluginAddi .= 'classAppAutoImg.php|';
	}
	// 166_文章必应收录检查
	if (AreaApp::Jud(166)){
		$pluginAddi .= 'classAppResBing.php|';
	}
	// 167_积分互换
	if (AreaApp::Jud(167)){
		$pluginAddi .= 'classAppScoreTo.php|';
	}
	// 170_访客雷达
	if (AreaApp::Jud(170)){
		$adminAddi .= 'robot.php|robot_deal.php|';
		$pluginAddi .= 'classAppRobot.php|';
	}
	// 172_抽奖活动
	if (AreaApp::Jud(172)){
		$adminAddi .= 'getGift.php|getGift_deal.php|getUsers.php|getUsers_deal.php|';
		$pluginAddi .= 'classAppGetGift.php|';
	}
	// 173_卡密自动发卡销售
	if (AreaApp::Jud(173)){
		$adminAddi .= 'quanSell.php|quanSell_deal.php|';
	}
	// 174_节日倒计时
	if (AreaApp::Jud(174)){
		$pluginAddi .= 'classAppJieri.php|';
	}
	// 175_小程序基础包
	if (AreaApp::Jud(175)){
		$adminAddi .= 'xcxApiUsers.php|xcxApiUsers_deal.php|xcxDingyue.php|xcxDingyue_deal.php|xcxFamily.php|xcxFamily_deal.php|xcxLog.php|xcxLog_deal.php|xcxSys.php|xcxSys_deal.php|xcxTixing.php|xcxTixing_deal.php|xcxUsers.php|xcxUsers_deal.php|xcxYaopin.php|xcxYaopin_deal.php|';
		$pluginAddi .= 'classApiXcx.php|classAppXcx.php|classAppXcxDingyue.php|classAppXcxFamily.php|classAppXcxTixing.php|classAppXcxYaopin.php|';
		$apiAddi .= 'xcx.php|';
	}
	// 176_小程序宝宝喂养
	if (AreaApp::Jud(176)){
		$adminAddi .= 'xcxBaby.php|xcxBabyDeve.php|xcxBabyDeve_deal.php|xcxBabyFeed.php|xcxBabyFeed_deal.php|xcxBabyNote.php|xcxBabyNote_deal.php|xcxBaby_deal.php|';
		$pluginAddi .= 'classAppXcxBaby.php|classAppXcxBabyDeve.php|classAppXcxBabyFeed.php|classAppXcxBabyNote.php|';
	}
	// 178_收款码领奖励
	if (AreaApp::Jud(178)){
		$adminAddi .= 'payCodeList.php|payCodeList_deal.php|payCodeReward.php|payCodeReward_deal.php|payCodeSys.php|payCodeSys_deal.php|';
		$pluginAddi .= 'classAppPayCode.php|';
	}
	// 179_小程序看广告领奖励
	if (AreaApp::Jud(179)){
		$adminAddi .= 'xcxAdOrder.php|xcxAdOrder_deal.php|xcxAdSys.php|xcxAdSys_deal.php|xcxAdWord.php|xcxAdWord_deal.php|';
		$pluginAddi .= 'classAppXcxAd.php|';
	}
	// 17_百度主动推送和快速收录
	if (AreaApp::Jud(17)){
		$pluginAddi .= 'classAppMapBaidu.php|';
	}
	// 180_小程序天天测量
	if (AreaApp::Jud(180)){
		$adminAddi .= 'xcxShopGoods.php|xcxShopGoods_deal.php|xcxShopOrder.php|xcxShopOrder_deal.php|xcxShopType.php|xcxShopType_deal.php|';
		$pluginAddi .= 'classAppXcxLifeDay.php|classAppXcxLifeMember.php|classAppXcxLifeRecord.php|';
	}
	// 18_后台批量文件上传
	if (AreaApp::Jud(18)){
		$adminAddi .= 'info_upBigFile.php|info_upBigFile_deal.php|info_upMoreFile.php|info_upMoreFile_deal.php|';
		$pluginAddi .= 'classAppUpload.php|';
	}
	// 19_多用途表单
	if (AreaApp::Jud(19)){
		$adminAddi .= 'formType.php|formType_deal.php|formUsers.php|formUsers_deal.php|';
		$pluginAddi .= 'classAppForm.php|';
	}
	// 21_专题功能
	if (AreaApp::Jud(21)){
		$pluginAddi .= 'classAppTopic.php|';
	}
	// 22_前台友链申请
	if (AreaApp::Jud(22)){
		$pluginAddi .= 'classAppLogoAdd.php|';
	}
	// 23_财务基础包
	if (AreaApp::Jud(23)){
		$adminAddi .= 'moneyPay.php|moneyPay_deal.php|moneyRecord.php|moneyRecord_deal.php|moneySys.php|moneySys_deal.php|';
		$pluginAddi .= 'classAppMoneyPay.php|classAppMoneyPayDeal.php|classAppMoneyRecord.php|';
		$wapAddi .= 'payReturn.php|payServer.php|payWeb.php|users/payWeb.php|';
		$beforeAddi .= 'payReturn.php|payServer.php|payWeb.php|';
		$cacheAddi .= 'php/moneySys.php|';
	}
	// 25_微信多用途表单
	if (AreaApp::Jud(25)){
		$adminAddi .= 'weixinFormType.php|weixinFormType_deal.php|weixinFormUsers.php|weixinFormUsers_deal.php|';
	}
	// 26_会员积分记录
	if (AreaApp::Jud(26)){
		$adminAddi .= 'userMoney.php|userMoney_deal.php|';
		$pluginAddi .= 'classAppUserScore.php|';
	}
	// 27_淘客订单管理
	if (AreaApp::Jud(27)){
		$adminAddi .= 'taokeOrder.php|taokeOrderUsers.php|taokeOrderUsers_deal.php|taokeOrder_deal.php|taokeReport.php|';
		$pluginAddi .= 'classAppTaokeOrder.php|';
	}
	// 28_积分商城
	if (AreaApp::Jud(28)){
		$adminAddi .= 'giftData.php|giftData_deal.php|giftSys.php|giftSys_deal.php|giftUsers.php|giftUsers_deal.php|';
		$pluginAddi .= 'classAppGift.php|';
		$cacheAddi .= 'php/giftSys.php|';
	}
	// 29_充值支付_支付宝支付
	if (AreaApp::Jud(29)){
		$payAddi .= 'alipay/alipayConfig.php|alipay/cacert.pem|alipay/classAlipayNotify.php|alipay/classAlipaySubmit.php|alipay/functionAlipay.php|';
		$pluginAddi .= 'classAppMoneyAlipay.php|';
	}
	// 2_RSS订阅
	if (AreaApp::Jud(2)){
		$pluginAddi .= 'classAppRss.php|';
		$beforeAddi .= 'rss.php|';
	}
	// 30_网址跳转管理 
	if (AreaApp::Jud(30)){
		$adminAddi .= 'goUrl.php|goUrl_deal.php|';
		$goAddi .= 'index.php|';
	}
	// 31_打赏功能
	if (AreaApp::Jud(31)){
		$adminAddi .= 'dashang.php|dashang_deal.php|';
		$pluginAddi .= 'classAppDashang.php|';
	}
	// 32_快捷登录_微信
	if (AreaApp::Jud(32)){
		$pluginAddi .= 'classApiWeixinLogin.php|';
	}
	// 33_内容页正文部分可见
	if (AreaApp::Jud(33)){
		$pluginAddi .= 'classAppNewsEnc.php|';
	}
	// 39_视频音乐播放器
	if (AreaApp::Jud(39)){
		$pluginAddi .= 'classAppVideo.php|';
	}
	// 3_外部调用代码
	if (AreaApp::Jud(3)){
		$adminAddi .= 'outCall.php|outCall_deal.php|';
		$beforeAddi .= 'outCall.php|';
	}
	// 41_畅言评论模块
	if (AreaApp::Jud(41)){
		$pluginAddi .= 'classAppChangyan.php|';
	}
	// 42_会员订单记录
	if (AreaApp::Jud(42)){
		$adminAddi .= 'buyOrders.php|buyOrders_deal.php|';
		$pluginAddi .= 'classAppBuyOrders.php|';
		$cacheAddi .= 'php/buySys.php|';
	}
	// 43_内容页正文输入密码可见
	if (AreaApp::Jud(43)){
		$pluginAddi .= 'classAppNewsPwd.php|';
	}
	// 46_邀请注册&分销
	if (AreaApp::Jud(46)){
		$pluginAddi .= 'classAppRecom.php|';
	}
	// 47_会员打卡签到
	if (AreaApp::Jud(47)){
		$adminAddi .= 'qiandaoSys.php|qiandaoSys_deal.php|';
		$pluginAddi .= 'classAppQiandao.php|';
		$cacheAddi .= 'php/qiandaoSys.php|';
	}
	// 48_IDC商业版基础包
	if (AreaApp::Jud(48)){
		$adminAddi .= 'makeDiy.php|makeDiy_deal.php|makeHtml.php|makeHtml_deal.php|memberGroup.php|memberGroup_deal.php|memberRight.php|memberRight_deal.php|';
		$pluginAddi .= 'classAppBase.php|';
		$wapAddi .= 'usersNewsUpFile.php|usersNewsUpImg.php|';
		$beforeAddi .= 'makeHtml_deal.php|usersNewsUpFile.php|usersNewsUpImg.php|';
	}
	// 49_IDC虚拟主机模块
	if (AreaApp::Jud(49)){
		$adminAddi .= 'hostData.php|hostData_deal.php|hostUsers.php|hostUsers_deal.php|';
		$pluginAddi .= 'classAppHost.php|classAppHostDeal.php|classAppHostWap.php|classAppIdcHost.php|';
	}
	// 4_商业版基础包
	if (AreaApp::Jud(4)){
		$adminAddi .= 'banner.php|banner_deal.php|htmlFile.php|htmlFile_deal.php|makeDiy.php|makeDiy_deal.php|makeHtml.php|makeHtml_deal.php|memberGroup.php|memberGroup_deal.php|memberRight.php|memberRight_deal.php|';
		$incAddi .= 'classMakeDiy.php|';
		$pluginAddi .= 'classAppBase.php|';
		$wapAddi .= 'usersNewsUpFile.php|usersNewsUpImg.php|users/upFile.php|users/upImg.php|';
		$beforeAddi .= 'makeHtml_deal.php|usersNewsUpFile.php|usersNewsUpImg.php|';
	}
	// 52_IDC服务器租用模块
	if (AreaApp::Jud(52)){
		$adminAddi .= 'servData.php|servData_deal.php|servUsers.php|servUsers_deal.php|';
		$pluginAddi .= 'classAppServ.php|classAppServDeal.php|classAppServWap.php|';
	}
	// 53_IDC域名模块
	if (AreaApp::Jud(53)){
		$adminAddi .= 'domainApi.php|domainApi_deal.php|domainData.php|domainData_deal.php|domainPrice.php|domainPrice_deal.php|domainSys.php|domainSys_deal.php|domainTpl.php|domainTpl_deal.php|';
		$pluginAddi .= 'classAppDomain.php|classAppDomainTpl.php|classAppDomainWap.php|classAppIdcDomain.php|';
		$wapAddi .= 'domain.php|domainCheck.php|domainReg.php|domainWhois.php|';
		$beforeAddi .= 'domain.php|domainCheck.php|domainReg.php|domainWhois.php|';
	}
	// 54_卡密卡券
	if (AreaApp::Jud(54)){
		$adminAddi .= 'quanData.php|quanData_deal.php|quanSys.php|quanSys_deal.php|';
		$pluginAddi .= 'classAppQuan.php|';
		$cacheAddi .= 'php/quanSys.php|';
	}
	// 55_邮件验证通知
	if (AreaApp::Jud(55)){
		$adminAddi .= 'mail.php|mailInfo.php|mailInfo_deal.php|mailOthers.php|mailTpl.php|mailTpl_deal.php|mail_deal.php|';
		$pluginAddi .= 'classAppMail.php|';
		$toolsAddi .= 'PHPMailer/DSNConfigurator.php|PHPMailer/Exception.php|PHPMailer/OAuth.php|PHPMailer/OAuthTokenProvider.php|PHPMailer/PHPMailer.php|PHPMailer/POP3.php|PHPMailer/SMTP.php|PHPMailer/language/phpmailer.lang-zh.php|PHPMailer/language/phpmailer.lang-zh_cn.php|';
	}
	// 56_短信验证通知
	if (AreaApp::Jud(56)){
		$adminAddi .= 'phone.php|phoneOthers.php|phoneSys.php|phoneSys_deal.php|phoneTpl.php|phoneTpl_deal.php|phone_deal.php|';
		$pluginAddi .= 'classApiAlidayu.php|classAppPhone.php|';
		$cacheAddi .= 'php/phoneSys.php|';
	}
	// 57_推广提现
	if (AreaApp::Jud(57)){
		$adminAddi .= 'gainHistory.php|gainHistory_deal.php|gainItem.php|gainItem_deal.php|gainMoney.php|gainMoney_deal.php|';
		$pluginAddi .= 'classAppGain.php|';
	}
	// 58_投稿积分分成
	if (AreaApp::Jud(58)){
		$pluginAddi .= 'classAppNewsGain.php|';
	}
	// 59_充值支付_微信支付
	if (AreaApp::Jud(59)){
		$payAddi .= 'weixin/WxPay.Api.php|weixin/WxPay.Config.Interface.php|weixin/WxPay.Config.php|weixin/WxPay.Data.php|weixin/WxPay.Exception.php|weixin/WxPay.JsApiPay.php|weixin/WxPay.MicroPay.php|weixin/WxPay.NativePay.php|weixin/WxPay.Notify.php|weixin/cert/apiclient_cert.pem|weixin/cert/apiclient_key.pem|';
		$pluginAddi .= 'classAppMoneyWeixin.php|';
	}
	// 5_采集基础包
	if (AreaApp::Jud(5)){
		$adminAddi .= 'collConobj.php|collDatabase.php|collDatabase_deal.php|collHistory.php|collHistory_deal.php|collItem.php|collItem_deal.php|collResult.php|collResult_deal.php|collRun.php|collRun2.php|collSys.php|collSys_deal.php|collType.php|collType_deal.php|';
		$cacheAddi .= 'php/collSys.php|';
		$pluginAddi .= 'classAppColl.php|';
	}
	// 61_IDC拨号VPS模块
	if (AreaApp::Jud(61)){
		$adminAddi .= 'dialingCity.php|dialingCity_deal.php|dialingData.php|dialingData_deal.php|dialingProv.php|dialingProv_deal.php|dialingUsers.php|dialingUsers_deal.php|';
		$pluginAddi .= 'classAppDialing.php|classAppDialingDeal.php|classAppDialingWap.php|classAppIdcDialing.php|';
		$wapAddi .= 'dialing.php|';
		$beforeAddi .= 'dialing.php|';
	}
	// 62_微信分享带缩略图摘要
	if (AreaApp::Jud(62)){
		$pluginAddi .= 'classAppWeixinJs.php|';
	}
	// 63_火箭图标返回顶部
	if (AreaApp::Jud(63)){
		$pluginAddi .= 'classAppToTop.php|';
	}
	// 64_企业蓝色模板
	if (AreaApp::Jud(64)){
		$pluginAddi .= 'classAppTplQiyeBlue.php|';
	}
	// 66_自动生成静态页
	if (AreaApp::Jud(66)){
		$pluginAddi .= 'classAppAutoHtml.php|';
	}
	// 67_自动采集
	if (AreaApp::Jud(67)){
		$pluginAddi .= 'classAppAutoColl.php|';
		$beforeAddi .= 'collRun2.php|';
	}
	// 68_后台增加栏目文章权限设置 
	if (AreaApp::Jud(68)){
		$pluginAddi .= 'classAppAdminRightNews.php|';
	}
	// 69_IDC SSL证书模块
	if (AreaApp::Jud(69)){
		$adminAddi .= 'sslData.php|sslData_deal.php|sslUsers.php|sslUsers_deal.php|';
		$pluginAddi .= 'classAppSsl.php|classAppSslDeal.php|classAppSslWap.php|';
	}
	// 6_WAP手机版
	if (AreaApp::Jud(6)){
		$adminAddi .= 'makeHtml_runWap.php|wap.php|wap_deal.php|';
		$pluginAddi .= 'classAppWap.php|';
		$wapAddi .= '404.php|deal.php|index.php|makeHtml_runWap.php|message.php|news_deal.php|p.php|plugin_deal.php|read.php|users.php|usersCenter.php|usersCenter_deal.php|usersNews_deal.php|users_deal.php|w.php|wapCheck.php|cache/web.config|html/web.config|inc/classTemplate.php|inc/classTemplateOTCMS.php|inc/classUsersCenter.php|inc/classUsersNews.php|inc/classWapArea.php|inc/classWapContent.php|inc/classWapIndex.php|inc/classWapJS.php|inc/classWapList.php|inc/VerCode/VerCode1.php|inc/VerCode/VerCode2.php|inc/VerCode/VerCode3.php|inc/VerCode/VerCode4.php|news/index.php|tools/geetest/class.geetestlib.php|';
		$beforeAddi .= 'makeHtml_runWap.php|';
		$cacheAddi .= 'php/wap.php|';
	}
	// 71_清爽黑白调模板
	if (AreaApp::Jud(71)){
		$pluginAddi .= 'classAppTplBlack.php|';
	}
	// 72_七牛云云存储
	if (AreaApp::Jud(72)){
		$pluginAddi .= 'classAppOssQiniu.php|classAppOssQiniuDeal.php|';
		$toolsAddi .= 'ossQiniu/autoload.php|ossQiniu/src/Qiniu/Auth.php|ossQiniu/src/Qiniu/Config.php|ossQiniu/src/Qiniu/Etag.php|ossQiniu/src/Qiniu/functions.php|ossQiniu/src/Qiniu/Region.php|ossQiniu/src/Qiniu/Zone.php|ossQiniu/src/Qiniu/Cdn/CdnManager.php|ossQiniu/src/Qiniu/Enum/QiniuEnum.php|ossQiniu/src/Qiniu/Enum/SplitUploadVersion.php|ossQiniu/src/Qiniu/Http/Client.php|ossQiniu/src/Qiniu/Http/Error.php|ossQiniu/src/Qiniu/Http/Header.php|ossQiniu/src/Qiniu/Http/Request.php|ossQiniu/src/Qiniu/Http/RequestOptions.php|ossQiniu/src/Qiniu/Http/Response.php|ossQiniu/src/Qiniu/Processing/ImageUrlBuilder.php|ossQiniu/src/Qiniu/Processing/Operation.php|ossQiniu/src/Qiniu/Processing/PersistentFop.php|ossQiniu/src/Qiniu/Rtc/AppClient.php|ossQiniu/src/Qiniu/Sms/Sms.php|ossQiniu/src/Qiniu/Storage/ArgusManager.php|ossQiniu/src/Qiniu/Storage/BucketManager.php|ossQiniu/src/Qiniu/Storage/FormUploader.php|ossQiniu/src/Qiniu/Storage/ResumeUploader.php|ossQiniu/src/Qiniu/Storage/UploadManager.php|';
	}
	// 73_阿里云OSS云存储
	if (AreaApp::Jud(73)){
		$pluginAddi .= 'classAppOssAliyun.php|classAppOssAliyunDeal.php|';
		$toolsAddi .= 'ossAliyun/OSS/OssClient.php|ossAliyun/OSS/Core/MimeTypes.php|ossAliyun/OSS/Core/OssException.php|ossAliyun/OSS/Core/OssUtil.php|ossAliyun/OSS/Http/RequestCore.php|ossAliyun/OSS/Http/RequestCore_Exception.php|ossAliyun/OSS/Http/ResponseCore.php|ossAliyun/OSS/Model/BucketInfo.php|ossAliyun/OSS/Model/BucketListInfo.php|ossAliyun/OSS/Model/CnameConfig.php|ossAliyun/OSS/Model/CorsConfig.php|ossAliyun/OSS/Model/CorsRule.php|ossAliyun/OSS/Model/GetLiveChannelHistory.php|ossAliyun/OSS/Model/GetLiveChannelInfo.php|ossAliyun/OSS/Model/GetLiveChannelStatus.php|ossAliyun/OSS/Model/LifecycleAction.php|ossAliyun/OSS/Model/LifecycleConfig.php|ossAliyun/OSS/Model/LifecycleRule.php|ossAliyun/OSS/Model/ListMultipartUploadInfo.php|ossAliyun/OSS/Model/ListPartsInfo.php|ossAliyun/OSS/Model/LiveChannelConfig.php|ossAliyun/OSS/Model/LiveChannelHistory.php|ossAliyun/OSS/Model/LiveChannelInfo.php|ossAliyun/OSS/Model/LiveChannelListInfo.php|ossAliyun/OSS/Model/LoggingConfig.php|ossAliyun/OSS/Model/ObjectInfo.php|ossAliyun/OSS/Model/ObjectListInfo.php|ossAliyun/OSS/Model/PartInfo.php|ossAliyun/OSS/Model/PrefixInfo.php|ossAliyun/OSS/Model/RefererConfig.php|ossAliyun/OSS/Model/StorageCapacityConfig.php|ossAliyun/OSS/Model/UploadInfo.php|ossAliyun/OSS/Model/WebsiteConfig.php|ossAliyun/OSS/Model/XmlConfig.php|ossAliyun/OSS/Result/AclResult.php|ossAliyun/OSS/Result/AppendResult.php|ossAliyun/OSS/Result/BodyResult.php|ossAliyun/OSS/Result/CallbackResult.php|ossAliyun/OSS/Result/CopyObjectResult.php|ossAliyun/OSS/Result/DeleteObjectsResult.php|ossAliyun/OSS/Result/ExistResult.php|ossAliyun/OSS/Result/GetCnameResult.php|ossAliyun/OSS/Result/GetCorsResult.php|ossAliyun/OSS/Result/GetLifecycleResult.php|ossAliyun/OSS/Result/GetLiveChannelHistoryResult.php|ossAliyun/OSS/Result/GetLiveChannelInfoResult.php|ossAliyun/OSS/Result/GetLiveChannelStatusResult.php|ossAliyun/OSS/Result/GetLocationResult.php|ossAliyun/OSS/Result/GetLoggingResult.php|ossAliyun/OSS/Result/GetRefererResult.php|ossAliyun/OSS/Result/GetStorageCapacityResult.php|ossAliyun/OSS/Result/GetWebsiteResult.php|ossAliyun/OSS/Result/HeaderResult.php|ossAliyun/OSS/Result/InitiateMultipartUploadResult.php|ossAliyun/OSS/Result/ListBucketsResult.php|ossAliyun/OSS/Result/ListLiveChannelResult.php|ossAliyun/OSS/Result/ListMultipartUploadResult.php|ossAliyun/OSS/Result/ListObjectsResult.php|ossAliyun/OSS/Result/ListPartsResult.php|ossAliyun/OSS/Result/PutLiveChannelResult.php|ossAliyun/OSS/Result/PutSetDeleteResult.php|ossAliyun/OSS/Result/Result.php|ossAliyun/OSS/Result/SymlinkResult.php|ossAliyun/OSS/Result/UploadPartResult.php|';
	}
	// 75_又拍云云存储
	if (AreaApp::Jud(75)){
		$pluginAddi .= 'classAppOssUpyun.php|classAppOssUpyunDeal.php|';
		$toolsAddi .= 'ossUpyun/src/Upyun/Config.php|ossUpyun/src/Upyun/Signature.php|ossUpyun/src/Upyun/Uploader.php|ossUpyun/src/Upyun/Upyun.php|ossUpyun/src/Upyun/Util.php|ossUpyun/src/Upyun/Api/Form.php|ossUpyun/src/Upyun/Api/Pretreat.php|ossUpyun/src/Upyun/Api/Rest.php|ossUpyun/src/Upyun/Api/SyncVideo.php|ossUpyun/vendor/autoload.php|ossUpyun/vendor/composer/autoload_classmap.php|ossUpyun/vendor/composer/autoload_files.php|ossUpyun/vendor/composer/autoload_namespaces.php|ossUpyun/vendor/composer/autoload_psr4.php|ossUpyun/vendor/composer/autoload_real.php|ossUpyun/vendor/composer/autoload_static.php|ossUpyun/vendor/composer/ClassLoader.php|ossUpyun/vendor/composer/installed.json|ossUpyun/vendor/guzzlehttp/guzzle/CHANGELOG.md|ossUpyun/vendor/guzzlehttp/guzzle/composer.json|ossUpyun/vendor/guzzlehttp/guzzle/README.md|ossUpyun/vendor/guzzlehttp/guzzle/UPGRADING.md|ossUpyun/vendor/guzzlehttp/guzzle/src/Client.php|ossUpyun/vendor/guzzlehttp/guzzle/src/ClientInterface.php|ossUpyun/vendor/guzzlehttp/guzzle/src/functions.php|ossUpyun/vendor/guzzlehttp/guzzle/src/functions_include.php|ossUpyun/vendor/guzzlehttp/guzzle/src/HandlerStack.php|ossUpyun/vendor/guzzlehttp/guzzle/src/MessageFormatter.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Middleware.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Pool.php|ossUpyun/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php|ossUpyun/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php|ossUpyun/vendor/guzzlehttp/guzzle/src/RequestOptions.php|ossUpyun/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php|ossUpyun/vendor/guzzlehttp/guzzle/src/TransferStats.php|ossUpyun/vendor/guzzlehttp/guzzle/src/UriTemplate.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php|ossUpyun/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php|ossUpyun/vendor/guzzlehttp/promises/CHANGELOG.md|ossUpyun/vendor/guzzlehttp/promises/composer.json|ossUpyun/vendor/guzzlehttp/promises/README.md|ossUpyun/vendor/guzzlehttp/promises/src/AggregateException.php|ossUpyun/vendor/guzzlehttp/promises/src/CancellationException.php|ossUpyun/vendor/guzzlehttp/promises/src/Coroutine.php|ossUpyun/vendor/guzzlehttp/promises/src/EachPromise.php|ossUpyun/vendor/guzzlehttp/promises/src/FulfilledPromise.php|ossUpyun/vendor/guzzlehttp/promises/src/functions.php|ossUpyun/vendor/guzzlehttp/promises/src/functions_include.php|ossUpyun/vendor/guzzlehttp/promises/src/Promise.php|ossUpyun/vendor/guzzlehttp/promises/src/PromiseInterface.php|ossUpyun/vendor/guzzlehttp/promises/src/PromisorInterface.php|ossUpyun/vendor/guzzlehttp/promises/src/RejectedPromise.php|ossUpyun/vendor/guzzlehttp/promises/src/RejectionException.php|ossUpyun/vendor/guzzlehttp/promises/src/TaskQueue.php|ossUpyun/vendor/guzzlehttp/promises/src/TaskQueueInterface.php|ossUpyun/vendor/guzzlehttp/psr7/CHANGELOG.md|ossUpyun/vendor/guzzlehttp/psr7/composer.json|ossUpyun/vendor/guzzlehttp/psr7/README.md|ossUpyun/vendor/guzzlehttp/psr7/src/AppendStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/BufferStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/CachingStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/DroppingStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/FnStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/functions.php|ossUpyun/vendor/guzzlehttp/psr7/src/functions_include.php|ossUpyun/vendor/guzzlehttp/psr7/src/InflateStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/LazyOpenStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/LimitStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/MessageTrait.php|ossUpyun/vendor/guzzlehttp/psr7/src/MultipartStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/NoSeekStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/PumpStream.php|ossUpyun/vendor/guzzlehttp/psr7/src/Request.php|ossUpyun/vendor/guzzlehttp/psr7/src/Response.php|ossUpyun/vendor/guzzlehttp/psr7/src/ServerRequest.php|ossUpyun/vendor/guzzlehttp/psr7/src/Stream.php|ossUpyun/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php|ossUpyun/vendor/guzzlehttp/psr7/src/StreamWrapper.php|ossUpyun/vendor/guzzlehttp/psr7/src/UploadedFile.php|ossUpyun/vendor/guzzlehttp/psr7/src/Uri.php|ossUpyun/vendor/guzzlehttp/psr7/src/UriNormalizer.php|ossUpyun/vendor/guzzlehttp/psr7/src/UriResolver.php|ossUpyun/vendor/psr/http-message/CHANGELOG.md|ossUpyun/vendor/psr/http-message/composer.json|ossUpyun/vendor/psr/http-message/README.md|ossUpyun/vendor/psr/http-message/src/MessageInterface.php|ossUpyun/vendor/psr/http-message/src/RequestInterface.php|ossUpyun/vendor/psr/http-message/src/ResponseInterface.php|ossUpyun/vendor/psr/http-message/src/ServerRequestInterface.php|ossUpyun/vendor/psr/http-message/src/StreamInterface.php|ossUpyun/vendor/psr/http-message/src/UploadedFileInterface.php|ossUpyun/vendor/psr/http-message/src/UriInterface.php|';
	}
	// 76_会员积分转正
	if (AreaApp::Jud(76)){
		$pluginAddi .= 'classAppUserState1.php|';
	}
	// 77_会员组积分开通
	if (AreaApp::Jud(77)){
		$pluginAddi .= 'classAppUserGroup.php|';
	}
	// 78_会员组领工资
	if (AreaApp::Jud(78)){
		$pluginAddi .= 'classAppUserGroupWork.php|';
	}
	// 79_站内信息
	if (AreaApp::Jud(79)){
		$adminAddi .= 'siteMessage.php|siteMessage_deal.php|';
		$pluginAddi .= 'classAppSiteMessage.php|';
		$beforeAddi .= 'siteMessage.php|';
	}
	// 7_快捷登录基础包（含QQ登录）
	if (AreaApp::Jud(7)){
		$adminAddi .= 'userApi.php|userApi_deal.php|';
		$pluginAddi .= 'classApiQQ.php|classAppLogin.php|';
		$wapAddi .= 'apiSuccess.php|users/apiSuccess.php|';
		$beforeAddi .= 'apiSuccess.php|';
		$cacheAddi .= 'php/userApi.php|';
	}
	// 80_任务中心
	if (AreaApp::Jud(80)){
		$adminAddi .= 'workData.php|workData_deal.php|workUsers.php|workUsers_deal.php|';
		$pluginAddi .= 'classAppWorkCenter.php|';
	}
	// 81_清爽白色风模板
	if (AreaApp::Jud(81)){
		$pluginAddi .= 'classAppTplWhite.php|';
	}
	// 82_WAP清爽白色风模板
	if (AreaApp::Jud(82)){
		$pluginAddi .= 'classAppWapTplWhite.php|';
	}
	// 83_充值满送活动
	if (AreaApp::Jud(83)){
		$adminAddi .= 'moneyGive.php|moneyGive_deal.php|';
		$pluginAddi .= 'classAppMoneyGive.php|';
	}
	// 84_会员登录_手机号
	if (AreaApp::Jud(84)){
		$pluginAddi .= 'classAppLoginPhone.php|';
	}
	// 85_会员登录_邮箱
	if (AreaApp::Jud(85)){
		$pluginAddi .= 'classAppLoginMail.php|';
	}
	// 86_FTP云存储
	if (AreaApp::Jud(86)){
		$pluginAddi .= 'classAppOssFtp.php|classAppOssFtpDeal.php|';
	}
	// 87_WAP自动复制口令
	if (AreaApp::Jud(87)){
		$pluginAddi .= 'classAppCopyKouling.php|';
	}
	// 89_小刀娱乐模板
	if (AreaApp::Jud(89)){
		$pluginAddi .= 'classAppTplXiaodao.php|';
	}
	// 8_快捷登录_新浪微博
	if (AreaApp::Jud(8)){
		$pluginAddi .= 'classApiWeibo.php|';
	}
	// 90_WAP小刀娱乐模板
	if (AreaApp::Jud(90)){
		$pluginAddi .= 'classAppWapTplXiaodao.php|';
	}
	// 91_新媒体模板
	if (AreaApp::Jud(91)){
		$pluginAddi .= 'classAppTplMedia.php|';
	}
	// 92_WAP新媒体模板
	if (AreaApp::Jud(92)){
		$pluginAddi .= 'classAppWapTplMedia.php|';
	}
	// 94_推广单页系统
	if (AreaApp::Jud(94)){
		$adminAddi .= 'oneWebTpl.php|oneWebTpl_deal.php|oneWebType.php|oneWebType_deal.php|oneWebUsers.php|oneWebUsers_deal.php|';
	}
	// 97_文章百度收录检查
	if (AreaApp::Jud(97)){
		$pluginAddi .= 'classAppResBaidu.php|';
	}
	// 98_文章360收录检查
	if (AreaApp::Jud(98)){
		$pluginAddi .= 'classAppRes360.php|';
	}
	// 99_文章搜狗收录检查
	if (AreaApp::Jud(99)){
		$pluginAddi .= 'classAppResSogou.php|';
	}
	// 9_简易小论坛
	if (AreaApp::Jud(9)){
		$adminAddi .= 'bbsData.php|bbsData_deal.php|bbsReply.php|bbsReply_deal.php|bbsSys.php|bbsSys_deal.php|';
		$pluginAddi .= 'classAppBbs.php|classAppBbsDeal.php|classAppBbsTpl.php|classAppBbsTplWap.php|';
		$wapAddi .= 'message/index.php|message/posts.php|';
		$messageAddi .= 'index.php|posts.php|';
		$cacheAddi .= 'php/bbsSys.php|';
	}

	switch ($dirName){
		case 'before':
			$dirTitle = '前台目录';
			$forePath = OT_ROOT;
			$extList = '/xml/';
			$fileList='|.htaccess|404err.html|404.php|apiRun.php|check.php|config.php|configVer.php|conobj.php|deal.php|httpd.ini|index.php|makeHtml_run.php|message.php|news_deal.php|nginx.conf|plugin_deal.php|read.php|users.php|usersCenter.php|usersCenter_deal.php|usersNews_deal.php|users_deal.php|favicon.ico|robots.txt|sitemap.html|p.php|w.php|历史更新记录.txt|使用教程【必看】.txt|'. $beforeAddi;
			break;

		case 'admin':
			$dirTitle = '后台目录';
			$forePath = OT_adminROOT;
			$extList = '/html/htm/xml/js/css/svg/bmp/jpg/jpeg/gif/png/swf/doc/xls/txt/ppt/docx/xlsx/pptx/pdf/pack/md/htc/ttf/eot/woff/';
			$fileList='|admin.php|adminMenu.php|adminMenu_deal.php|admin_cl.php|appShop.php|appShop_deal.php|appSys.php|appSys_deal.php|autoRunLog.php|autoRunLog_deal.php|autoRunSys.php|autoRunSys_deal.php|ca.php|ca_deal.php|check.php|dataDeal.php|dataDeal_deal.php|dbBak.php|dbBakMySQL.php|dbBakMySQL_deal.php|dbBak_deal.php|dbErr.php|dbErr_deal.php|editFile.php|extCheck.php|index.php|ind_backstage.php|info.php|infoMessage.php|infoMessage_deal.php|infoMove.php|infoMove_deal.php|infoSys.php|infoSys_deal.php|infoType.php|infoType_deal.php|infoWeb.php|infoWeb_deal.php|info_deal.php|info_upFile.php|info_upImg.php|ipRecord.php|ipRecord_deal.php|keyWord.php|keyWord_deal.php|left_menuNote.php|makeHtml_run.php|member.php|memberLog.php|memberLog_deal.php|memberOnline.php|memberOnline_deal.php|member_deal.php|message.php|message_deal.php|read.php|readDeal.php|readDeal2.php|serverFile.php|serverFile_deal.php|share_switch.php|siteMap.php|siteMap_deal.php|softBak.php|softBak_deal.php|sysAdmin.php|sysAdmin_deal.php|sysCheckFile.php|sysCheckFile_deal.php|sysCheckFile_recur.php|sysImages.php|sysImages_deal.php|system.php|system_deal.php|template.php|template_deal.php|tplSys.php|tplSys_deal.php|type.php|type_deal.php|update.php|updateV2.php|update_deal.php|userFile.php|userFile_deal.php|userGroup.php|userGroup_deal.php|userLevel.php|userLevel_deal.php|userLog.php|userLog_deal.php|users.php|userScore.php|userScore_deal.php|userSys.php|userSys_deal.php|users_deal.php|apiRecord.php|apiRecord_deal.php|tabField.php|tabField_deal.php|infoPayData.php|infoPayData_deal.php|'.
			'inc/classAdm.php|inc/classAdmArea.php|inc/classInfoType.php|inc/classMember.php|inc/classServerFile.php|inc/classSkin.php|inc/classStrArr.php|inc/VerCode/VerCode1.php|inc/VerCode/VerCode2.php|inc/VerCode/VerCode3.php|inc/VerCode/VerCode4.php|inc/classAdmTpl.php|inc/classAdmTplDef.php|inc/classAdmTplYouyou.php|'.
			'images/web.config|js/web.config|temp/web.config|tools/web.config|upFile/web.config|'.
			'tools/submitShow.inc|'. $adminAddi;
			break;

		case 'Data':
			$dirTitle = '数据库目录';
			$forePath = OT_ROOT . OT_dbDir;
			$extList = '/db/';
			$fileList='|softErr.log|web.config|';
			break;

		case 'Data_backup':
			$dirTitle = '数据库备份目录';
			$forePath = OT_ROOT . OT_dbBakDir;
			$extList = '/txt/bak/zip/';
			$fileList='|web.config|';
			break;

		case 'cache':
			$extList = '/txt/html/js/log/css/xml/lock/jpg/png/gif/';
			$fileList='|web.config|php/autoRunSys.php|php/infoSys.php|php/paySoft.php|php/sysAdmin.php|php/sysImages.php|php/system.php|php/tplSys.php|php/userGroup.php|php/userSys.php|php/appSys.php|php/idcProSys.php|php/vpsSys.php|'. $cacheAddi;
			break;

		case 'api':
			$fileList='|lock.txt|'. $apiAddi;
			break;

		case 'onePage':
			$extList = '/html/htm/css/js/xml/txt/swf/bmp/jpg/jpeg/gif/png/less/scss/svg/ttf/';
			$fileList='|lock.txt|'. $onePageAddi;
			break;

		case 'go':
			$fileList='|lock.txt|'. $goAddi;
			break;

		case 'goods':
			$fileList='|lock.txt|'. $goodsAddi;
			break;

		case 'inc':
			$fileList='|classCa.php|classArea.php|classAreaApp.php|classCache.php|classContent.php|classEncrypt.php|classFile.php|classFtp.php|classGeetest.php|classGetUrl.php|classImages.php|classIpInfo.php|classIs.php|classJS.php|classKeyWord.php|classMakeDiy.php|classMySqlManage.php|classNav.php|classOT.php|classPayInfo.php|classPdoDb.php|classPinYin.php|classProvCity.php|classReqUrl.php|classSaveImg.php|classStr.php|classStrCN.php|classStrInfo.php|classTemplate.php|classTemplateOTCMS.php|classTimeDate.php|classTplArea.php|classTplBottom.php|classTplIndex.php|classTplList.php|classTplTop.php|classUrl.php|classUserGroup.php|classUsers.php|classUsersCenter.php|classUsersNews.php|classWebCache.php|classWebHtml.php|classZip.php|phpqrcode.php|Snoopy.class.php|imageWatermark.ttf|keyWord.txt|classAutoRun.php|classInfo.php|classBatchRun.php|classUcBase.php|classUcMain.php|classUcNews.php|classUcUsers.php|'.
			'QrReader/Binarizer.php|QrReader/BinaryBitmap.php|QrReader/ChecksumException.php|QrReader/FormatException.php|QrReader/GDLuminanceSource.php|QrReader/IMagickLuminanceSource.php|QrReader/LuminanceSource.php|QrReader/NotFoundException.php|QrReader/PlanarYUVLuminanceSource.php|QrReader/QrReader.php|QrReader/Reader.php|QrReader/ReaderException.php|QrReader/Result.php|QrReader/ResultPoint.php|QrReader/RGBLuminanceSource.php|QrReader/common/AbstractEnum.php|QrReader/common/BitArray.php|QrReader/common/BitMatrix.php|QrReader/common/BitSource.php|QrReader/common/CharacterSetEci.php|QrReader/common/customFunctions.php|QrReader/common/DecoderResult.php|QrReader/common/DefaultGridSampler.php|QrReader/common/DetectorResult.php|QrReader/common/GlobalHistogramBinarizer.php|QrReader/common/GridSampler.php|QrReader/common/HybridBinarizer.php|QrReader/common/PerspectiveTransform.php|QrReader/common/detector/MathUtils.php|QrReader/common/detector/MonochromeRectangleDetector.php|QrReader/common/reedsolomon/GenericGF.php|QrReader/common/reedsolomon/GenericGFPoly.php|QrReader/common/reedsolomon/ReedSolomonDecoder.php|QrReader/common/reedsolomon/ReedSolomonException.php|QrReader/qrcode/QRCodeReader.php|QrReader/qrcode/decoder/BitMatrixParser.php|QrReader/qrcode/decoder/DataBlock.php|QrReader/qrcode/decoder/DataMask.php|QrReader/qrcode/decoder/DecodedBitStreamParser.php|QrReader/qrcode/decoder/Decoder.php|QrReader/qrcode/decoder/ErrorCorrectionLevel.php|QrReader/qrcode/decoder/FormatInformation.php|QrReader/qrcode/decoder/Mode.php|QrReader/qrcode/decoder/Version.php|QrReader/qrcode/detector/AlignmentPattern.php|QrReader/qrcode/detector/AlignmentPatternFinder.php|QrReader/qrcode/detector/Detector.php|QrReader/qrcode/detector/FinderPattern.php|QrReader/qrcode/detector/FinderPatternFinder.php|QrReader/qrcode/detector/FinderPatternInfo.php|'.
			'VerCode/VerCode1.php|VerCode/VerCode2.php|VerCode/VerCode3.php|VerCode/VerCode4.php|VerCode/VerCode.ttf|VerCode/VerCode_zh.ttf|'.
			$incAddi;
			break;

		case 'inc_img':
			$extList = '/bmp/jpg/jpeg/gif/png/css/mp3/psd/';
			$fileList='|web.config|';
			break;

		case 'js':
			$extList = '/js/';
			$fileList='|web.config|';
			break;

		case 'news':
			$extList = '/html/';
			$fileList='|index.php|lock.txt|';
			break;

		case 'pay':
			$extList = '/txt/css/jpg/gif/png/js/ttf/';
			$fileList='|web.config|'. $payAddi;
			break;

		case 'pluDef':
			$fileList='|web.config|classApiAlidayu.php|classApiQQ.php|classApiWeibo.php|classApiWeixin.php|classApiWeixinLogin.php|classAppAdminRightNews.php|classAppAutoColl.php|classAppAutoHtml.php|classAppBase.php|classAppBbs.php|classAppBbsDeal.php|classAppBbsTpl.php|classAppBbsTplWap.php|classAppBuyOrders.php|classAppChangyan.php|classAppChinaz.php|classAppCopyKouling.php|classAppDashang.php|classAppDiyPay.php|classAppFans.php|classAppForm.php|classAppGain.php|classAppGift.php|classAppInfoDown.php|classAppJob.php|classAppLogin.php|classAppLoginMail.php|classAppLoginPhone.php|classAppLogoAdd.php|classAppMail.php|classAppMapBaidu.php|classAppMoneyAlipay.php|classAppMoneyCodepay.php|classAppMoneyF2fpay.php|classAppMoneyGive.php|classAppMoneyPay.php|classAppMoneyPayDeal.php|classAppMoneyQuick.php|classAppMoneyRecord.php|classAppMoneyWeixin.php|classAppNameAlipay.php|classAppNameWeixin.php|classAppNewsEnc.php|classAppNewsGain.php|classAppNewsPwd.php|classAppOssAliyun.php|classAppOssAliyunDeal.php|classAppOssFtp.php|classAppOssFtpDeal.php|classAppOssQiniu.php|classAppOssQiniuDeal.php|classAppOssUpyun.php|classAppOssUpyunDeal.php|classAppPhone.php|classAppQiandao.php|classAppQuan.php|classAppRecom.php|classAppReport.php|classAppRes360.php|classAppResBaidu.php|classAppResShenma.php|classAppResSogou.php|classAppRss.php|classAppSiteApi.php|classAppSiteMessage.php|classAppTag.php|classAppTaobaoke.php|classAppTaobaokeDeal.php|classAppTaobaokeWap.php|classAppTaokeOrder.php|classAppTopic.php|classAppToTop.php|classAppTplBlack.php|classAppTplBlog.php|classAppTplBlue.php|classAppTplDayNight.php|classAppTplInfo.php|classAppTplMedia.php|classAppTplQiyeBlue.php|classAppTplWhite.php|classAppTplXiaodao.php|classAppTplYule.php|classAppUpload.php|classAppUserExport.php|classAppUserGroup.php|classAppUserGroupWork.php|classAppUserMark.php|classAppUserScore.php|classAppUserState1.php|classAppUserView.php|classAppVideo.php|classAppVote.php|classAppWap.php|classAppWapTplDayNight.php|classAppWapTplMedia.php|classAppWapTplWhite.php|classAppWapTplXiaodao.php|classAppWeixin.php|classAppWeixinJs.php|classAppWorkCenter.php|classAppWxTaoke.php|classAppAizhan.php|classAppAuthSoft.php|classAppDingding.php|classAppIdcPro.php|classAppMoneyEpay.php|classAppMoneyHpjpay.php|classAppNamePhone.php|classAppSiteIpDomain.php|classAppCa.php|classAppApiItem.php|classAppAutoApiItem.php|classAppColl.php|classAppInfoImport.php|classAppWeixinWork.php|classAppAutoImg.php|classAppUpKeepBigFile.php|classAppAudioVideo.php|classAppOnePage.php|classAppResBing.php|classAppResToutiao.php|classAppRobot.php|classAppScoreTo.php|';
			break;

		case 'plugin':
			$fileList='|web.config|classAppTplYule.php|'. $pluginAddi;
			/*
			.
			'del_classAppRss.php|del_classAppBase.php|del_classAppWap.php|del_classAppLogin.php|del_classAppBbs.php|del_classAppBbsDeal.php|del_classAppBbsTpl.php|del_classAppBbsTplWap.php|del_classAppTaobaoke.php|del_classAppTaobaokeWap.php|del_classAppTaobaokeDeal.php|del_classAppTplInfo.php|del_classAppTplBlog.php|del_classAppTplBlue.php|del_classAppWeixin.php|del_classAppMapBaidu.php|del_classAppUpload.php|del_classAppForm.php|del_classAppTopic.php|del_classAppLogoAdd.php|del_classAppMoneyPay.php|del_classAppUserScore.php|del_classAppGift.php|del_classAppDashang.php|del_classAppNewsEnc.php|del_classAppVideo.php|del_classAppChangyan.php|del_classAppBuyOrders.php|del_classAppNewsPwd.php|del_classAppRecom.php|del_classAppQiandao.php|del_classAppQuan.php|del_classAppMail.php|del_classAppPhone.php|del_classAppNewsGain.php|del_classAppWeixinJs.php|del_classAppToTop.php|del_classAppTplQiyeBlue.php|del_classAppAutoHtml.php|del_classAppAutoColl.php|del_classAppAdminRightNews.php|del_classAppTplYule.php|del_classAppTplBlack.php|del_classAppMoneyRecord.php|del_classAppIdcPro.php|'
			*/
			break;

		case 'smarty':
			$fileList='|web.config|Autoloader.php|bootstrap.php|debug.tpl|Smarty.class.php|SmartyBC.class.php|plugins/block.textformat.php|plugins/function.counter.php|plugins/function.cycle.php|plugins/function.fetch.php|plugins/function.html_checkboxes.php|plugins/function.html_image.php|plugins/function.html_options.php|plugins/function.html_radios.php|plugins/function.html_select_date.php|plugins/function.html_select_time.php|plugins/function.html_table.php|plugins/function.mailto.php|plugins/function.math.php|plugins/modifier.capitalize.php|plugins/modifier.date_format.php|plugins/modifier.debug_print_var.php|plugins/modifier.escape.php|plugins/modifier.mb_wordwrap.php|plugins/modifier.regex_replace.php|plugins/modifier.replace.php|plugins/modifier.spacify.php|plugins/modifier.truncate.php|plugins/modifiercompiler.cat.php|plugins/modifiercompiler.count_characters.php|plugins/modifiercompiler.count_paragraphs.php|plugins/modifiercompiler.count_sentences.php|plugins/modifiercompiler.count_words.php|plugins/modifiercompiler.default.php|plugins/modifiercompiler.escape.php|plugins/modifiercompiler.from_charset.php|plugins/modifiercompiler.indent.php|plugins/modifiercompiler.lower.php|plugins/modifiercompiler.noprint.php|plugins/modifiercompiler.string_format.php|plugins/modifiercompiler.strip.php|plugins/modifiercompiler.strip_tags.php|plugins/modifiercompiler.to_charset.php|plugins/modifiercompiler.unescape.php|plugins/modifiercompiler.upper.php|plugins/modifiercompiler.wordwrap.php|plugins/outputfilter.trimwhitespace.php|plugins/shared.escape_special_chars.php|plugins/shared.literal_compiler_param.php|plugins/shared.make_timestamp.php|plugins/shared.mb_str_replace.php|plugins/shared.mb_unicode.php|plugins/variablefilter.htmlspecialchars.php|sysplugins/smartycompilerexception.php|sysplugins/smartyexception.php|sysplugins/smarty_cacheresource.php|sysplugins/smarty_cacheresource_custom.php|sysplugins/smarty_cacheresource_keyvaluestore.php|sysplugins/smarty_data.php|sysplugins/smarty_internal_block.php|sysplugins/smarty_internal_cacheresource_file.php|sysplugins/smarty_internal_compilebase.php|sysplugins/smarty_internal_compile_append.php|sysplugins/smarty_internal_compile_assign.php|sysplugins/smarty_internal_compile_block.php|sysplugins/smarty_internal_compile_block_child.php|sysplugins/smarty_internal_compile_block_parent.php|sysplugins/smarty_internal_compile_break.php|sysplugins/smarty_internal_compile_call.php|sysplugins/smarty_internal_compile_capture.php|sysplugins/smarty_internal_compile_child.php|sysplugins/smarty_internal_compile_config_load.php|sysplugins/smarty_internal_compile_continue.php|sysplugins/smarty_internal_compile_debug.php|sysplugins/smarty_internal_compile_eval.php|sysplugins/smarty_internal_compile_extends.php|sysplugins/smarty_internal_compile_for.php|sysplugins/smarty_internal_compile_foreach.php|sysplugins/smarty_internal_compile_function.php|sysplugins/smarty_internal_compile_if.php|sysplugins/smarty_internal_compile_include.php|sysplugins/smarty_internal_compile_include_php.php|sysplugins/smarty_internal_compile_insert.php|sysplugins/smarty_internal_compile_ldelim.php|sysplugins/smarty_internal_compile_make_nocache.php|sysplugins/smarty_internal_compile_nocache.php|sysplugins/smarty_internal_compile_parent.php|sysplugins/smarty_internal_compile_private_block_plugin.php|sysplugins/smarty_internal_compile_private_foreachsection.php|sysplugins/smarty_internal_compile_private_function_plugin.php|sysplugins/smarty_internal_compile_private_modifier.php|sysplugins/smarty_internal_compile_private_object_block_function.php|sysplugins/smarty_internal_compile_private_object_function.php|sysplugins/smarty_internal_compile_private_php.php|sysplugins/smarty_internal_compile_private_print_expression.php|sysplugins/smarty_internal_compile_private_registered_block.php|sysplugins/smarty_internal_compile_private_registered_function.php|sysplugins/smarty_internal_compile_private_special_variable.php|sysplugins/smarty_internal_compile_rdelim.php|sysplugins/smarty_internal_compile_section.php|sysplugins/smarty_internal_compile_setfilter.php|sysplugins/smarty_internal_compile_shared_inheritance.php|sysplugins/smarty_internal_compile_while.php|sysplugins/smarty_internal_configfilelexer.php|sysplugins/smarty_internal_configfileparser.php|sysplugins/smarty_internal_config_file_compiler.php|sysplugins/smarty_internal_data.php|sysplugins/smarty_internal_debug.php|sysplugins/smarty_internal_errorhandler.php|sysplugins/smarty_internal_extension_handler.php|sysplugins/smarty_internal_method_addautoloadfilters.php|sysplugins/smarty_internal_method_adddefaultmodifiers.php|sysplugins/smarty_internal_method_append.php|sysplugins/smarty_internal_method_appendbyref.php|sysplugins/smarty_internal_method_assignbyref.php|sysplugins/smarty_internal_method_assignglobal.php|sysplugins/smarty_internal_method_clearallassign.php|sysplugins/smarty_internal_method_clearallcache.php|sysplugins/smarty_internal_method_clearassign.php|sysplugins/smarty_internal_method_clearcache.php|sysplugins/smarty_internal_method_clearcompiledtemplate.php|sysplugins/smarty_internal_method_clearconfig.php|sysplugins/smarty_internal_method_compileallconfig.php|sysplugins/smarty_internal_method_compilealltemplates.php|sysplugins/smarty_internal_method_configload.php|sysplugins/smarty_internal_method_createdata.php|sysplugins/smarty_internal_method_getautoloadfilters.php|sysplugins/smarty_internal_method_getconfigvariable.php|sysplugins/smarty_internal_method_getconfigvars.php|sysplugins/smarty_internal_method_getdebugtemplate.php|sysplugins/smarty_internal_method_getdefaultmodifiers.php|sysplugins/smarty_internal_method_getglobal.php|sysplugins/smarty_internal_method_getregisteredobject.php|sysplugins/smarty_internal_method_getstreamvariable.php|sysplugins/smarty_internal_method_gettags.php|sysplugins/smarty_internal_method_gettemplatevars.php|sysplugins/smarty_internal_method_literals.php|sysplugins/smarty_internal_method_loadfilter.php|sysplugins/smarty_internal_method_loadplugin.php|sysplugins/smarty_internal_method_mustcompile.php|sysplugins/smarty_internal_method_registercacheresource.php|sysplugins/smarty_internal_method_registerclass.php|sysplugins/smarty_internal_method_registerdefaultconfighandler.php|sysplugins/smarty_internal_method_registerdefaultpluginhandler.php|sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php|sysplugins/smarty_internal_method_registerfilter.php|sysplugins/smarty_internal_method_registerobject.php|sysplugins/smarty_internal_method_registerplugin.php|sysplugins/smarty_internal_method_registerresource.php|sysplugins/smarty_internal_method_setautoloadfilters.php|sysplugins/smarty_internal_method_setdebugtemplate.php|sysplugins/smarty_internal_method_setdefaultmodifiers.php|sysplugins/smarty_internal_method_unloadfilter.php|sysplugins/smarty_internal_method_unregistercacheresource.php|sysplugins/smarty_internal_method_unregisterfilter.php|sysplugins/smarty_internal_method_unregisterobject.php|sysplugins/smarty_internal_method_unregisterplugin.php|sysplugins/smarty_internal_method_unregisterresource.php|sysplugins/smarty_internal_nocache_insert.php|sysplugins/smarty_internal_parsetree.php|sysplugins/smarty_internal_parsetree_code.php|sysplugins/smarty_internal_parsetree_dq.php|sysplugins/smarty_internal_parsetree_dqcontent.php|sysplugins/smarty_internal_parsetree_tag.php|sysplugins/smarty_internal_parsetree_template.php|sysplugins/smarty_internal_parsetree_text.php|sysplugins/smarty_internal_resource_eval.php|sysplugins/smarty_internal_resource_extends.php|sysplugins/smarty_internal_resource_file.php|sysplugins/smarty_internal_resource_php.php|sysplugins/smarty_internal_resource_registered.php|sysplugins/smarty_internal_resource_stream.php|sysplugins/smarty_internal_resource_string.php|sysplugins/smarty_internal_runtime_cachemodify.php|sysplugins/smarty_internal_runtime_cacheresourcefile.php|sysplugins/smarty_internal_runtime_capture.php|sysplugins/smarty_internal_runtime_codeframe.php|sysplugins/smarty_internal_runtime_filterhandler.php|sysplugins/smarty_internal_runtime_foreach.php|sysplugins/smarty_internal_runtime_getincludepath.php|sysplugins/smarty_internal_runtime_inheritance.php|sysplugins/smarty_internal_runtime_make_nocache.php|sysplugins/smarty_internal_runtime_tplfunction.php|sysplugins/smarty_internal_runtime_updatecache.php|sysplugins/smarty_internal_runtime_updatescope.php|sysplugins/smarty_internal_runtime_writefile.php|sysplugins/smarty_internal_smartytemplatecompiler.php|sysplugins/smarty_internal_template.php|sysplugins/smarty_internal_templatebase.php|sysplugins/smarty_internal_templatecompilerbase.php|sysplugins/smarty_internal_templatelexer.php|sysplugins/smarty_internal_templateparser.php|sysplugins/smarty_internal_testinstall.php|sysplugins/smarty_internal_undefined.php|sysplugins/smarty_resource.php|sysplugins/smarty_resource_custom.php|sysplugins/smarty_resource_recompiled.php|sysplugins/smarty_resource_uncompiled.php|sysplugins/smarty_security.php|sysplugins/smarty_template_cached.php|sysplugins/smarty_template_compiled.php|sysplugins/smarty_template_config.php|sysplugins/smarty_template_resource_base.php|sysplugins/smarty_template_source.php|sysplugins/smarty_undefined_variable.php|sysplugins/smarty_variable.php|';
			break;

		case 'smarty4.x':
			$fileList='|Autoloader.php|bootstrap.php|debug.tpl|functions.php|Smarty.class.php|plugins/block.textformat.php|plugins/function.counter.php|plugins/function.cycle.php|plugins/function.fetch.php|plugins/function.html_checkboxes.php|plugins/function.html_image.php|plugins/function.html_options.php|plugins/function.html_radios.php|plugins/function.html_select_date.php|plugins/function.html_select_time.php|plugins/function.html_table.php|plugins/function.mailto.php|plugins/function.math.php|plugins/modifier.capitalize.php|plugins/modifier.count.php|plugins/modifier.date_format.php|plugins/modifier.debug_print_var.php|plugins/modifier.escape.php|plugins/modifier.explode.php|plugins/modifier.mb_wordwrap.php|plugins/modifier.number_format.php|plugins/modifier.regex_replace.php|plugins/modifier.replace.php|plugins/modifier.spacify.php|plugins/modifier.truncate.php|plugins/modifiercompiler.cat.php|plugins/modifiercompiler.count_characters.php|plugins/modifiercompiler.count_paragraphs.php|plugins/modifiercompiler.count_sentences.php|plugins/modifiercompiler.count_words.php|plugins/modifiercompiler.default.php|plugins/modifiercompiler.escape.php|plugins/modifiercompiler.from_charset.php|plugins/modifiercompiler.indent.php|plugins/modifiercompiler.lower.php|plugins/modifiercompiler.nl2br.php|plugins/modifiercompiler.noprint.php|plugins/modifiercompiler.round.php|plugins/modifiercompiler.string_format.php|plugins/modifiercompiler.strip.php|plugins/modifiercompiler.strip_tags.php|plugins/modifiercompiler.strlen.php|plugins/modifiercompiler.str_repeat.php|plugins/modifiercompiler.to_charset.php|plugins/modifiercompiler.unescape.php|plugins/modifiercompiler.upper.php|plugins/modifiercompiler.wordwrap.php|plugins/outputfilter.trimwhitespace.php|plugins/shared.escape_special_chars.php|plugins/shared.literal_compiler_param.php|plugins/shared.make_timestamp.php|plugins/shared.mb_str_replace.php|plugins/shared.mb_unicode.php|plugins/variablefilter.htmlspecialchars.php|sysplugins/smartycompilerexception.php|sysplugins/smartyexception.php|sysplugins/smarty_cacheresource.php|sysplugins/smarty_cacheresource_custom.php|sysplugins/smarty_cacheresource_keyvaluestore.php|sysplugins/smarty_data.php|sysplugins/smarty_internal_block.php|sysplugins/smarty_internal_cacheresource_file.php|sysplugins/smarty_internal_compilebase.php|sysplugins/smarty_internal_compile_append.php|sysplugins/smarty_internal_compile_assign.php|sysplugins/smarty_internal_compile_block.php|sysplugins/smarty_internal_compile_block_child.php|sysplugins/smarty_internal_compile_block_parent.php|sysplugins/smarty_internal_compile_break.php|sysplugins/smarty_internal_compile_call.php|sysplugins/smarty_internal_compile_capture.php|sysplugins/smarty_internal_compile_child.php|sysplugins/smarty_internal_compile_config_load.php|sysplugins/smarty_internal_compile_continue.php|sysplugins/smarty_internal_compile_debug.php|sysplugins/smarty_internal_compile_eval.php|sysplugins/smarty_internal_compile_extends.php|sysplugins/smarty_internal_compile_for.php|sysplugins/smarty_internal_compile_foreach.php|sysplugins/smarty_internal_compile_function.php|sysplugins/smarty_internal_compile_if.php|sysplugins/smarty_internal_compile_include.php|sysplugins/smarty_internal_compile_insert.php|sysplugins/smarty_internal_compile_ldelim.php|sysplugins/smarty_internal_compile_make_nocache.php|sysplugins/smarty_internal_compile_nocache.php|sysplugins/smarty_internal_compile_parent.php|sysplugins/smarty_internal_compile_private_block_plugin.php|sysplugins/smarty_internal_compile_private_foreachsection.php|sysplugins/smarty_internal_compile_private_function_plugin.php|sysplugins/smarty_internal_compile_private_modifier.php|sysplugins/smarty_internal_compile_private_object_block_function.php|sysplugins/smarty_internal_compile_private_object_function.php|sysplugins/smarty_internal_compile_private_print_expression.php|sysplugins/smarty_internal_compile_private_registered_block.php|sysplugins/smarty_internal_compile_private_registered_function.php|sysplugins/smarty_internal_compile_private_special_variable.php|sysplugins/smarty_internal_compile_rdelim.php|sysplugins/smarty_internal_compile_section.php|sysplugins/smarty_internal_compile_setfilter.php|sysplugins/smarty_internal_compile_shared_inheritance.php|sysplugins/smarty_internal_compile_while.php|sysplugins/smarty_internal_configfilelexer.php|sysplugins/smarty_internal_configfileparser.php|sysplugins/smarty_internal_config_file_compiler.php|sysplugins/smarty_internal_data.php|sysplugins/smarty_internal_debug.php|sysplugins/smarty_internal_errorhandler.php|sysplugins/smarty_internal_extension_handler.php|sysplugins/smarty_internal_method_addautoloadfilters.php|sysplugins/smarty_internal_method_adddefaultmodifiers.php|sysplugins/smarty_internal_method_append.php|sysplugins/smarty_internal_method_appendbyref.php|sysplugins/smarty_internal_method_assignbyref.php|sysplugins/smarty_internal_method_assignglobal.php|sysplugins/smarty_internal_method_clearallassign.php|sysplugins/smarty_internal_method_clearallcache.php|sysplugins/smarty_internal_method_clearassign.php|sysplugins/smarty_internal_method_clearcache.php|sysplugins/smarty_internal_method_clearcompiledtemplate.php|sysplugins/smarty_internal_method_clearconfig.php|sysplugins/smarty_internal_method_compileallconfig.php|sysplugins/smarty_internal_method_compilealltemplates.php|sysplugins/smarty_internal_method_configload.php|sysplugins/smarty_internal_method_createdata.php|sysplugins/smarty_internal_method_getautoloadfilters.php|sysplugins/smarty_internal_method_getconfigvariable.php|sysplugins/smarty_internal_method_getconfigvars.php|sysplugins/smarty_internal_method_getdebugtemplate.php|sysplugins/smarty_internal_method_getdefaultmodifiers.php|sysplugins/smarty_internal_method_getglobal.php|sysplugins/smarty_internal_method_getregisteredobject.php|sysplugins/smarty_internal_method_getstreamvariable.php|sysplugins/smarty_internal_method_gettags.php|sysplugins/smarty_internal_method_gettemplatevars.php|sysplugins/smarty_internal_method_literals.php|sysplugins/smarty_internal_method_loadfilter.php|sysplugins/smarty_internal_method_loadplugin.php|sysplugins/smarty_internal_method_mustcompile.php|sysplugins/smarty_internal_method_registercacheresource.php|sysplugins/smarty_internal_method_registerclass.php|sysplugins/smarty_internal_method_registerdefaultconfighandler.php|sysplugins/smarty_internal_method_registerdefaultpluginhandler.php|sysplugins/smarty_internal_method_registerdefaulttemplatehandler.php|sysplugins/smarty_internal_method_registerfilter.php|sysplugins/smarty_internal_method_registerobject.php|sysplugins/smarty_internal_method_registerplugin.php|sysplugins/smarty_internal_method_registerresource.php|sysplugins/smarty_internal_method_setautoloadfilters.php|sysplugins/smarty_internal_method_setdebugtemplate.php|sysplugins/smarty_internal_method_setdefaultmodifiers.php|sysplugins/smarty_internal_method_unloadfilter.php|sysplugins/smarty_internal_method_unregistercacheresource.php|sysplugins/smarty_internal_method_unregisterfilter.php|sysplugins/smarty_internal_method_unregisterobject.php|sysplugins/smarty_internal_method_unregisterplugin.php|sysplugins/smarty_internal_method_unregisterresource.php|sysplugins/smarty_internal_nocache_insert.php|sysplugins/smarty_internal_parsetree.php|sysplugins/smarty_internal_parsetree_code.php|sysplugins/smarty_internal_parsetree_dq.php|sysplugins/smarty_internal_parsetree_dqcontent.php|sysplugins/smarty_internal_parsetree_tag.php|sysplugins/smarty_internal_parsetree_template.php|sysplugins/smarty_internal_parsetree_text.php|sysplugins/smarty_internal_resource_eval.php|sysplugins/smarty_internal_resource_extends.php|sysplugins/smarty_internal_resource_file.php|sysplugins/smarty_internal_resource_php.php|sysplugins/smarty_internal_resource_stream.php|sysplugins/smarty_internal_resource_string.php|sysplugins/smarty_internal_runtime_cachemodify.php|sysplugins/smarty_internal_runtime_cacheresourcefile.php|sysplugins/smarty_internal_runtime_capture.php|sysplugins/smarty_internal_runtime_codeframe.php|sysplugins/smarty_internal_runtime_filterhandler.php|sysplugins/smarty_internal_runtime_foreach.php|sysplugins/smarty_internal_runtime_getincludepath.php|sysplugins/smarty_internal_runtime_inheritance.php|sysplugins/smarty_internal_runtime_make_nocache.php|sysplugins/smarty_internal_runtime_tplfunction.php|sysplugins/smarty_internal_runtime_updatecache.php|sysplugins/smarty_internal_runtime_updatescope.php|sysplugins/smarty_internal_runtime_writefile.php|sysplugins/smarty_internal_smartytemplatecompiler.php|sysplugins/smarty_internal_template.php|sysplugins/smarty_internal_templatebase.php|sysplugins/smarty_internal_templatecompilerbase.php|sysplugins/smarty_internal_templatelexer.php|sysplugins/smarty_internal_templateparser.php|sysplugins/smarty_internal_testinstall.php|sysplugins/smarty_internal_undefined.php|sysplugins/smarty_resource.php|sysplugins/smarty_resource_custom.php|sysplugins/smarty_resource_recompiled.php|sysplugins/smarty_resource_uncompiled.php|sysplugins/smarty_security.php|sysplugins/smarty_template_cached.php|sysplugins/smarty_template_compiled.php|sysplugins/smarty_template_config.php|sysplugins/smarty_template_resource_base.php|sysplugins/smarty_template_source.php|sysplugins/smarty_undefined_variable.php|sysplugins/smarty_variable.php|';
			break;

		case 'temp':
			$fileList='|web.config|';
			break;

		case 'template':
			$extList = '/html/css/js/xml/txt/swf/bmp/jpg/jpeg/gif/png/eot/svg/ttf/woff/';
			$fileList='|web.config|';
			break;

		case 'tools':
			$extList = '/html/htm/css/js/xml/txt/swf/bmp/jpg/jpeg/gif/png/less/scss/svg/ttf/otf/ttc/eot/woff/';
			$fileList='|web.config|ip.dat|simsun.otf|simsun.ttf|simsun.ttc|'.
				'font-awesome/fonts/fontawesome-webfont.eot|font-awesome/fonts/fontawesome-webfont.svg|font-awesome/fonts/fontawesome-webfont.ttf|font-awesome/fonts/fontawesome-webfont.woff|font-awesome/fonts/fontawesome-webfont.woff2|font-awesome/fonts/FontAwesome.otf|'.
				'geetest/class.geetestlib.php|'.
				'iconfont/iconfont.json|iconfont/iconfont.eot|iconfont/iconfont.svg|iconfont/iconfont.ttf|iconfont/iconfont.woff|iconfont/iconfont.woff2|'.
				'pscws4/pscws4.class.php|pscws4/xdb_r.class.php|pscws4/etc/00dict.utf8.xdb|pscws4/etc/dict.utf8.xdb|pscws4/etc/rules.ini|pscws4/etc/rules.utf8.ini|pscws4/etc/rules_cht.utf8.ini|'.
				'swfobject/src/expressInstall.as|swfobject/src/expressInstall.fla|'. $toolsAddi;
			break;

		case 'upFiles':
			$extList = '/html/htm/xml/js/css/bmp/jpg/jpeg/gif/png/webp/tif/tiff/swf/doc/xls/txt/ppt/docx/xlsx/pptx/pdf/rar/zip/avi/mpeg/mpg/ra/rm/rmvb/mov/qt/asf/wmv/iso/bin/img/mp3/mp4/wma/wav/mod/cd/md/aac/mid/ogg/m4a/';
			$fileList='|web.config|';
			break;

		case 'wap':
			$extList = '/html/htm/xml/js/css/bmp/jpg/jpeg/gif/png/tif/tiff/swf/doc/xls/txt/ppt/docx/xlsx/pptx/pdf/rar/zip/avi/mpeg/mpg/ra/rm/rmvb/mov/qt/asf/wmv/iso/bin/img/mp3/mp4/wma/wav/mod/cd/md/aac/mid/ogg/m4a/eot/svg/ttf/';
			$fileList='|web.config|.htaccess|404.php|deal.php|index.php|makeHtml_runWap.php|message.php|news_deal.php|plugin_deal.php|read.php|users.php|usersCenter.php|usersCenter_deal.php|usersNews_deal.php|users_deal.php|wapCheck.php|p.php|w.php|'.
				'users/apiSuccess.php|users/index.php|users/p.php|users/plugin_deal.php|users/read.php|users/ucCheck.php|users/upBigFile.php|users/upBigFile_deal.php|users/upFile.php|users/upImg.php|users/usersCenter.php|users/usersCenter_deal.php|users/usersNews_deal.php|users/users_deal.php|users/w.php|users/static/fonts/iconfont.woff|users/static/fonts/otcms-uc.woff|'.
				'inc/classTemplate.php|inc/classTemplateOTCMS.php|inc/classUsersCenter.php|inc/classUsersNews.php|inc/classWapArea.php|inc/classWapContent.php|inc/classWapIndex.php|inc/classWapJS.php|inc/classWapList.php|inc/VerCode/VerCode1.php|inc/VerCode/VerCode2.php|inc/VerCode/VerCode3.php|inc/VerCode/VerCode4.php|'.
				'cache/web.config|html/web.config|images/web.config|js/web.config|skin/web.config|template/web.config|tools/web.config|'.
				'news/index.php|'.
				'tools/geetest/class.geetestlib.php|'. $wapAddi;
			break;

		case 'message':
			$fileList='|'. $messageAddi;
			break;

		case 'web_config':
			$fileList='|web.config|rewrite.config|lock.txt|';
			break;

	}

	$retTabStr='';
	switch ($dirName){
		case 'before':
			$filePath = OT_ROOT . 'config.php';
			$fileContent = File::Read($filePath);

			if (strpos($fileContent,'eval') !== false || strpos($fileContent,'request') !== false){
				$retTabStr .= '
				<tr>
					<td>config.php <span style="color:red;">（里面含[eval][request]等危险敏感字符，请检查）</span></td>
					<td>'. File::SizeUnit(filesize($filePath)) .'</td>
					<td>'. File::GetCreateTime($filePath) .'</td>
					<td>'. File::GetRevTime($filePath) .'</td>
					<td><br /></td>
				</tr>
				';
			}

			$retTabStr .= GetDirFileList(OT_ROOT, $fileList, $extList);

			$extList = '/html/htm/xml/js/css/bmp/jpg/jpeg/gif/png/tif/tiff/swf/doc/xls/txt/ppt/docx/xlsx/pptx/pdf/rar/zip/avi/mpeg/mpg/ra/rm/rmvb/mov/qt/asf/wmv/iso/bin/img/mp3/wma/wav/mod/cd/md/aac/mid/ogg/m4a/eot/';
			$fileList='||';

			$adminURL	= GetUrl::CurrDir();
			$beforeURL	= GetUrl::CurrDir(1);
			$adminDirName = substr($adminURL,strlen($beforeURL),-1);

			$softDirList = '|'. $adminDirName .'|'. substr(OT_dbDir,0,-1) .'|'. substr(OT_dbBakDir,0,-1) .'|cache|go|goods|inc|inc_img|install|js|news|pay|pluDef|plugin|smarty|smarty4.x|temp|template|tools|upFiles|wap|message|web_config|goods|api|onePage|';

			$folderI = 0;

			if ($handle = opendir(OT_ROOT)) {
				while (($file = readdir($handle)) !== false) {
					if ($file != '.' && $file != '..' && is_dir(OT_ROOT . $file)) {
						$folderI ++;
						if (strpos($softDirList,'|'. $file .'|') === false){
							if ($file == 'html'){ $fileList = '|web.config|'; }else{ $fileList = '||'; }
							$retTab2Str = GetDirAndFileList(OT_ROOT . $file .'/', $fileList, $extList, '', $file);
							if (strlen($retTab2Str) > 3){
								$retTab2Str = '<tr><td colspan="5"><b>'. $file .'/ 目录</b></td></tr>'. $retTab2Str;
							}
							$retTabStr .= $retTab2Str;
						}
					}
				}
			}
			closedir($handle);

			echo('
			</table>
			');
			break;

		default:
			if (file_exists($forePath)){
				$retTabStr = GetDirAndFileList($forePath, $fileList, $extList, '', $dirName);
			}else{
				$retTabStr = 'False';
			}
	}

	if ($retTabStr == 'False'){
		echo('
		<div style="color:red;padding:8px 0;"><b>'. $dirTitle .'/</b> 检查结果：<span style="color:blue;">不存在</span></div>
		');
	}else{	// if (strlen($retTabStr) > 3)
		if (strlen($retTabStr) < 3){
			echo('<div style="color:red;padding:8px 0;"><b>'. $dirTitle .'/</b> 检查结果：<span style="color:#000;">无异常文件</span></div>');
		}else{
			echo('
			<div style="color:red;padding:8px 0;"><b>'. $dirTitle .'/</b> 检查结果：</div>
			<table style="width:95%;" cellpadding="0" cellspacing="0" class="tabList1 padd5td">
			<tr><td width="45%">文件名</td><td width="10%">大小</td><td width="15%">创建时间</td><td width="15%">最后修改时间</td><td width="15%" align="center">操作</td></tr>
			'. $retTabStr .'
			</table>
			');
		}
	}

}



// 非程序文件处理
function CheckFileDeal(){
	global $DB,$mudi,$menuFileID,$menuTreeID,$dataType,$dataTypeCN;

	$mode	= OT::GetStr('mode');
	$dataID	= OT::GetInt2( OT::ParaArr('id') );

	$chkRow = $DB->GetRow('select HF_mode,HF_filePath from '. OT_dbPref .'htmlFile where HF_ID='. $dataID);
		if (! $chkRow){
			JS::AlertEnd('查找不到该记录');
		}
		if ($chkRow['HF_mode'] != 'check'){
			JS::AlertEnd('类型不对（'. $chkRow['HF_mode'] .'）');
		}
		/* if (substr($chkRow['HF_filePath'],0,6) == 'admin/'){
			$filePath = OT_adminROOT . substr($chkRow['HF_filePath'],6);
		}else{
			$filePath = OT_ROOT . $chkRow['HF_filePath'];
		} */

	if ($mode == 'code'){	// 
		die('<div>'. basename($chkRow['HF_filePath']) .' <b>源代码：</b></div><div style="padding:12px;line-height:1.6;font-size:16px;">'. Str::MoreReplace(File::Read($chkRow['HF_filePath']),'html') .'</div>');
	
	}elseif ($mode == 'del'){
		$delJud = File::Del($chkRow['HF_filePath']);
		if ($delJud){
			$alertRes = '成功';
			$DB->query('delete from '. OT_dbPref .'htmlFile where HF_ID='. $dataID);
		}else{
			$alertRes = '失败';
		}

		Adm::AddLog(array(
			'note'	=> '【检查多余/问题文件】删除“'. $chkRow['HF_filePath'] .'”'. $alertRes .'！',
			));
		
		JS::ParentHiddenEnd('data'. $dataID);	
	}else{
		JS::AlertEnd('类型mode不对（'. $mode .'）');
	}

}



// 检查文件
function CalcSiteSize(){
/*
	forePath = server.mappath('../')


	Dim fso,folderObj,subFolderObj,folderI,folderSize,fileI,fileSize

    Set fso = CreateObject("Scripting.FileSystemObject")
	Set folderObj=fso.GetFolder(forePath)

	folderI=0
	folderSize=0
	Set subFolderObj=folderObj.Subfolders
	For Each subFolder In subFolderObj
		folderI = folderI + 1 
		folderSize = folderSize + subFolder.size
	Next

	fileI=0
	fileSize=0
	Set fileObj=folderObj.Files
	For Each file In fileObj
		fileI = fileI + 1 
		fileSize = fileSize + file.size
	Next

	Set folderObj=Nothing
	Set subFolderObj=Nothing

	" 根目录下有'. $folderI .'个目录，'. $fileI .'个文件，
	echo('alert("程序空间占用预计'. File::SizeUnit(folderSize+fileSize) .'");')
	*/
}


// 批量设置表处理
function DbDeal(){
	global $DB,$mudi,$menuFileID,$menuTreeID,$dataType,$dataTypeCN,$systemArr,$skin;

	$backURL		= OT::PostStr('backURL');
	$dataType		= OT::PostStr('dataType');
	$dataTypeCN		= OT::PostStr('dataTypeCN');
	$mode			= OT::PostStr('mode');
	$selDataID		= OT::Post('selDataID');

	$itemName = $sqlStr = '';
	switch ($mode){
		case 'check':
			$itemName = '检查';
			$sqlStr = 'CHECK TABLE ';
			break;

		case 'optimize':
			$itemName = '优化';
			$sqlStr = 'OPTIMIZE TABLE ';
			break;

		case 'repair':
			$itemName = '修复';
			$sqlStr = 'REPAIR TABLE ';
			break;

		case 'analyze':
			$itemName = '分析';
			$sqlStr = 'ANALYZE TABLE ';
			break;

		case 'utf8':
			$itemName = '编码[utf8]';
			$sqlStr = 'ALTER TABLE [表名] CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci';
			break;

		case 'utf8mb4':
			$itemName = '编码[utf8mb4]';
			$sqlStr = 'ALTER TABLE [表名] CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci';
			break;

		case 'InnoDB':
			$itemName = '存储引擎[InnoDB]';
			$sqlStr = 'ALTER TABLE [表名] ENGINE=InnoDB';
			break;

		case 'MyISAM':
			$itemName = '存储引擎[MyISAM]';
			$sqlStr = 'ALTER TABLE [表名] ENGINE=MyISAM';
			break;

		case 'Compact':
			$itemName = '行格式[Compact]';
			$sqlStr = 'ALTER TABLE [表名] ROW_FORMAT=Compact';
			break;

		case 'Dynamic':
			$itemName = '行格式[Dynamic]';
			$sqlStr = 'ALTER TABLE [表名] ROW_FORMAT=Dynamic';
			break;

		case 'Redundant':
			$itemName = '行格式[Redundant]';
			$sqlStr = 'ALTER TABLE [表名] ROW_FORMAT=Redundant';
			break;

		case 'Compressed':
			$itemName = '行格式[Compressed]';
			$sqlStr = 'ALTER TABLE [表名] ROW_FORMAT=Compressed';
			break;
	}

	$selCount = OT::NewCount($selDataID);
	if ($selCount <= 0){
		JS::AlertBackEnd('请先选择要设置的记录.');
	}

	$tabArr = array();
	for ($i=0; $i<$selCount; $i++){
		$tabArr[] = '`'. Str::RegExp($selDataID[$i],'sql') .'`';
	}
	$tabCount = count($tabArr);
	if ($tabCount == 0){
		JS::AlertBackEnd('请先选择要设置的表记录.');
	}

	$showStr = '';
	if (strpos($sqlStr, '[表名]') !== false){
		$totalNum = $succNum = $failNum = 0;
		for ($i=0; $i<$selCount; $i++){
			$totalNum ++;
			$tabName = Str::RegExp($selDataID[$i],'sql');
			$judRes = $DB->query( str_replace('[表名]', $tabName, $sqlStr) );
			if ($judRes){
				$succNum ++;
			}else{
				$failNum ++;
			}
		}
		JS::AlertHref($itemName .' 共：'. $totalNum .'条，成功：'. $succNum .'条，失败：'. $failNum .'条！.', $backURL);

	}else{
		$whereStr = implode(',', $tabArr);
		$judRes = $DB->query($sqlStr . $whereStr);
		if ($judRes){
			$alertRes = '成功';
			if ($row = $judRes->fetchAll()){
				// $showStr .= '<pre>'. print_r($row,true) .'</pre>';
				$number = 0;
				$titleStr = '
					<table cellpadding="0" cellspacing="0" class="tabList1 padd8td" style="margin-top:5px;">
					<tr>
						<td align="center">编号</td>
						';
				foreach($row as $val){
					$number ++;
					$showStr .= '
						<tr>
							<td align="center">'. $number .'</td>
							';
					foreach($val as $key => $val2){
						if ($number == 1){ $titleStr .= '<td align="center">'. $key .'</td>'; }
						$showStr .= '<td>'. $val2 .'</td>';
					}
					if ($number == 1){ $titleStr .= '</tr>'; }
					$showStr .= '</tr>';
				}
			}
			$showStr = $titleStr . $showStr .'</table>';
		}else{
			JS::AlertBackEnd($itemName .' '. $whereStr .' 执行失败！',$backURL);
		}

		Adm::AddLog(array(
			'note'		=> '【获取数据库结构】'. $itemName .' '. $tabCount .'张表 完成！',
			));

		if (strlen($showStr) > 5){
			$skin->WebTop();

			echo('
			<div style="padding:10px;font-size:14px;">
			返回结果：'. $showStr .'<br />
			<div style="margin-top:15px;"><b>'. $itemName .'表 执行完毕</b>。&ensp;<a href="'. $backURL .'" style="color:red;">&gt;&gt;点击返回</a></div>
			<script language="javascript" type="text/javascript">
			WindowHeight(0);
			</script>
			</div>
			');
		}else{
			JS::AlertHref($itemName .' '. $whereStr .' 完成！.',$backURL);
		}
	}

}


// SQL语句调试
function SqlDeal(){
	global $DB,$MB,$skin,$mudi,$menuFileID,$menuTreeID;

	$backURL		= OT::PostStr('backURL');
	$sqlContent		= OT::PostStr('sqlContent');
	$pwdMode		= OT::PostStr('pwdMode');
	$pwdKey			= OT::PostStr('pwdKey');
	$userpwd		= OT::PostStr('userpwd');
	$dbErrMode		= OT::PostInt('dbErrMode');

	if (strlen($sqlContent) == 0){
		JS::AlertBackEnd('SQL语句不能为空.');
	}

	$newSql = strtolower($sqlContent);
	if (strpos($newSql,'into outfile') !== false){
		JS::AlertBackEnd('SQL语句中不能含有内容“into outfile”.');
	}elseif (strpos($newSql,'global general_log') !== false){
		JS::AlertBackEnd('SQL语句中不能含有内容“global general_log”.');
	}elseif (strpos($newSql,'0x') !== false){
		JS::AlertBackEnd('SQL语句中不能含有内容“0x”.');
	}

	$DB->SetAttr($dbErrMode);

	$urow = $DB->GetRow('select MB_userpwd,MB_userKey from '. OT_dbPref .'member where MB_ID='. $MB->mUserID);
	$userpwd	= OT::DePwdData($userpwd, $pwdMode, $pwdKey);
	$userpwd = md5(md5($userpwd) . $urow['MB_userKey']);
		if ($urow['MB_userpwd'] != $userpwd){
			JS::AlertBackEnd('登录密码错误！');
		}
	unset($urow);

	$sqlArr = array();
	if (strpos($sqlContent, ';') !== false){
		preg_match_all( "@([\s\S]+?;)\h*[\n\r]@" , $sqlContent . PHP_EOL , $sqlArr ); // 数据以分号;\n\r换行  为分段标记
		!empty( $sqlArr[1] ) && $sqlArr = $sqlArr[1];
		$sqlArr = array_filter($sqlArr);
	}else{
		$sqlArr[] = $sqlContent;
	}
	$count = count($sqlArr);

	$succNum = $failNum = 0;
	$showStr = '';
	for($i=0; $i<$count ;$i++){
		$judRes = $DB->query($sqlArr[$i]);
			if ($judRes){
				$succNum ++;
				if ($row = $judRes->fetchAll()){
					$showStr .= '<pre>'. print_r($row,true) .'</pre>';
				}
			}else{
				$failNum ++;
			}
	}


	if (strlen($showStr) > 5 || $failNum > 0){
		echo('
		返回结果：'. $showStr .'<br />
		<div style="margin-top:15px;">
			<b>执行完毕</b>，共'. ($succNum+$failNum) .'条，成功'. $succNum .'条，失败'. $failNum .'条。
			<a href="'. $backURL .'" style="color:red;">点击返回</a>
		</div>
		');
		// JS::DiyEnd('setTimeout(\'alert("执行'. $alertRes .'");document.location.href="'. $backURL .'";\','. 1000 .');');
	}else{
		JS::AlertHrefEnd('执行完成，共'. ($succNum+$failNum) .'条，成功'. $succNum .'条，失败'. $failNum .'条。', $backURL);
	}

}


// SQL语句调试-快捷指令
function SqlMoreDeal(){
	global $DB;

	$type = OT::GetStr('type');

	if ($type == 'infoClear'){
		$total = $DB->GetOne('select count(1) from '. OT_dbPref .'info');
		if ($total > 0){
			JS::AlertHrefEnd('文章还有 '. $total .' 篇，请先删除所有文章再进行该操作','info.php?mudi=manage&dataType=news&dataTypeCN='. urlencode('文章'));
		}else{
			$DB->query('TRUNCATE TABLE '. OT_dbPref .'info');
			$maxTab = $DB->GetOne('select IS_tabNum from '. OT_dbPref .'infoSys');
			for ($i=1; $i<=$maxTab; $i++){
				$DB->query('TRUNCATE TABLE '. OT_dbPref .'infoContent'. $i);
			}
			JS::AlertHrefEnd('执行完成','sysCheckFile.php?mudi=sql');
		}
	
	}elseif ($type == 'infoTypeClear'){
		$total = $DB->GetOne('select count(1) from '. OT_dbPref .'infoType');
		if ($total > 0){
			JS::AlertHrefEnd('栏目还有 '. $total .' 个，请先删除所有栏目再进行该操作','infoType.php?mudi=manage&dataType=news&dataTypeCN='. urlencode('栏目'));
		}else{
			$DB->query('TRUNCATE TABLE '. OT_dbPref .'infoType');
			JS::AlertHrefEnd('执行完成','sysCheckFile.php?mudi=sql');
		}

	}elseif ($type == 'usersClear'){
		$total = $DB->GetOne('select count(1) from '. OT_dbPref .'users');
		if ($total > 0){
			JS::AlertHrefEnd('会员还有 '. $total .' 个，请先删除所有会员再进行该操作','users.php?mudi=manage&dataType=&dataTypeCN='. urlencode('会员'));
		}else{
			$DB->query('TRUNCATE TABLE '. OT_dbPref .'users');
			JS::AlertHrefEnd('执行完成','sysCheckFile.php?mudi=sql');
		}

	}elseif ($type == 'infoWebClear'){
		$total = $DB->GetOne('select count(1) from '. OT_dbPref .'infoWeb');
		if ($total > 0){
			JS::AlertHrefEnd('单篇页还有 '. $total .' 个，请先删除所有单篇页（【专题管理】【单篇页管理】【底部栏目】【附加内容管理】）再进行该操作','infoWeb.php?mudi=dynWeb&dataType=news&dataTypeCN='. urlencode('单篇页'));
		}else{
			$DB->query('TRUNCATE TABLE '. OT_dbPref .'infoWeb');
			JS::AlertHrefEnd('执行完成','sysCheckFile.php?mudi=sql');
		}

	}else{
		JS::AlertBackEnd('目的不明确（'. $type .'）');
	}
}


// 可选文件
function OptionFile(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$mode = OT::GetStr('mode');
	$file = OT::GetStr('file');
	$fontArr = array('alibabaPuHuiTi', 'alimamaShuHeiTi', 'alimamaDongFangDaKai', 'alimamaFangYuanTi', 'dingDingJinBuTi', 'siyuansongti', 'siyuanheiti');
	$editorArr = array('tinymce', 'tinymce5', 'kindeditor4', 'kindeditor3', 'ckeditor4', 'ckeditor3', 'fckeditor', 'ueditor');
		if (! in_array($file, array_merge(array('ip','pscws4'), $fontArr, $editorArr))){
			JS::AlertBackEnd('文件参数有错.');
		}

	if (in_array($file,$fontArr)){
		$fileUrl = 'http://d.otcms.com/phpExt/font_'. $file .'.zip';	// 要下载的字体字库文件
	}elseif (in_array($file,$editorArr)){
		$fileUrl = 'http://d.otcms.com/phpExt/editor_'. $file .'.zip';	// 要下载的编辑器文件
	}else{
		$fileUrl = 'http://d.otcms.com/phpExt/'. $file .'.zip';			// 要下载的文件地址
	}
	$filePath = OT_ROOT .'upFiles/download/'. $file .'.zip';			// 本地存放位置

	@ini_set('max_execution_time', 0);
	@set_time_limit(0); 

	switch ($mode){
		// 下载文件
		case 'down':
			if (! File::IsRemoteExists($fileUrl)){
				JS::AlertBackEnd('文件不存在，下载失败');
			}
			?>
			<table border="1" width="300">
			<tr><td width="100">文件大小</td><td width="200"><div id="downSize">未知长度</div></td></tr>
			<tr><td>已经下载</td><td><div id="downRate">0</div></td></tr> <tr><td>完成进度</td>
			<td>
				<div id="downBar" style="float:left;width:1px;text-align:center;color:#FFFFFF;background-color:#0066CC"></div>
				<div id="downText" style=" float:left">0%</div>
			</td>
			</tr>
			</table>

			<script language='javascript' type='text/javascript'>
			// 文件长度
			var filesize=0;
			function $id(obj) {return document.getElementById(obj);}

			// 设置文件长度
			function SetFileSize(fsize) { filesize=fsize; $id("downSize").innerHTML=fsize; }

			// 设置已经下载的,并计算百分比
			function SetFileRate(fsize) {
				$id("downRate").innerHTML = fsize;
				if(filesize > 0) {
					var percent = Math.round(fsize*100/filesize);
					$id("downBar").style.width = (percent +"%");
					if(percent > 0) {
						$id("downBar").innerHTML = percent +"%";
						$id("downText").innerHTML = "";
					} else {
						$id("downText").innerHTML = percent +"%";
					}
				}
			}
			</script>
			<?php
			ob_start();
			$file = fopen ($fileUrl, "rb");
			if ($file) {
				// 获取文件大小
				$filesize = -1;
				$headers = get_headers($fileUrl, 1);
				if (! array_key_exists("Content-Length", $headers)) $filesize=0;
				$filesize = $headers["Content-Length"];
				
				// 不是所有的文件都会先返回大小的，有些动态页面不先返回总大小，这样就无法计算进度了
				if ($filesize != -1) {
					echo "<script language='javascript' type='text/javascript'>SetFileSize('". $filesize ."');</script>";//在前台显示文件大小
				}
				$newf = fopen ($filePath, "wb");
				$downlen=0;
				if ($newf) {
					while(!feof($file)) {
						$data = fread($file, 1024 * 8 );
						// 默认获取8K
						$downlen += strlen($data);
						// 累计已经下载的字节数
						fwrite($newf, $data, 1024 * 8 );
						echo "<script language='javascript' type='text/javascript'>SetFileRate('". $downlen ."');</script>";
						// 在前台显示已经下载文件大小
						ob_flush();
						flush();
					}
				}
				if ($file) { fclose($file); }
				if ($newf) { fclose($newf); }
			}
			$alertRes = '成功';
			/*
			$SaveImg = new SaveImg();
			$srfArr = $SaveImg->SaveRemoteFile(OT_ROOT .'upFiles/download/'. $file .'.zip', 'http://d.otcms.com/phpExt/'. $file .'.zip', 0, 0)
			if ($srfArr['res']){
				$alertRes = '成功';
			}else{
				$alertRes = '失败';
			} */
			$alertStr = '下载'. $alertRes;
			break;
	
		// 解压
		case 'jieya':
			if (! file_exists($filePath)){
				JS::AlertBackEnd('文件不存在，无法解压');
			}
			if (! extension_loaded('zip')){
				JS::AlertBackEnd('不支持zip扩展，无法解压');
			}
			switch ($file){
				case 'pscws4':
					$toPath = OT_ROOT .'tools/pscws4/etc/';
					break;
				// case 'ip': case 'simsun': case 'siyuansongti': case 'siyuanheiti':
				// case 'ckeditor4': case 'ckeditor3': case 'fckeditor': case 'kindeditor3': case 'ueditor':
				default:
					$toPath = OT_ROOT .'tools/';
					break;
			}
			$resArr = Zip::Jieya($filePath,$toPath);
			if ($resArr['res']) {
				$alertRes = '成功';
				if ( in_array($file, $editorArr) ){
					// 编辑器专用代码
					$succNum = 1;
					if ( in_array($file, array('tinymce', 'tinymce5')) ){
						$res2Arr = Zip::Jieya($filePath, OT_adminROOT .'tools/');
							if ($res2Arr['res']) { $succNum ++; }
					
						$res2Arr = Zip::Jieya($filePath, OT_ROOT .'wap/users/tools/');
							if ($res2Arr['res']) { $succNum ++; }

						$alertRes .= '('. $succNum .'/3)';
					}else{
						$res2Arr = Zip::Jieya($filePath, OT_adminROOT .'tools/');
							if ($res2Arr['res']) { $succNum ++; }

						File::CreateMoreDir(OT_ROOT .'wap/tools/');
						$res2Arr = Zip::Jieya($filePath, OT_ROOT .'wap/tools/');
							if ($res2Arr['res']) { $succNum ++; }

						if ($file == 'ueditor'){
							$res2Arr = Zip::Jieya($filePath, OT_ROOT .'wap/users/tools/');
								if ($res2Arr['res']) { $succNum ++; }
							$alertRes .= '('. $succNum .'/4)';
						}else{
							$alertRes .= '('. $succNum .'/3)';
						}
					}
				}elseif ( in_array($file, $fontArr) ){
					// 字体专用代码
					$ext = OT::GetStr('ext');
					$extArr = array('otf','ttf','ttc');
					foreach ($extArr as $val){
						if ($val != $ext){
							File::Del(OT_ROOT .'tools/simsun.'. $val);
						}
					}
				}
			}else{
				$alertRes = '失败，原因：'. $resArr['note'];
			}
			$alertStr = '解压'. $alertRes;
			break;
	
		// 删除
		case 'del':
			if ( File::Del($filePath) ){
				$alertRes = '成功';
			}else{
				$alertRes = '失败，请检查文件是否存在';
			}
			$alertStr = '删除'. $alertRes;
			break;

		default :
			JS::AlertBackEnd('mode参数错误（'. $mode .'）');
			break;
	}

	JS::AlertHrefEnd($alertStr, 'sysCheckFile.php?mudi=file');
}


// 删除无用文件
function Del(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$theme		= OT::GetStr('theme');
	$fileType	= OT::GetStr('fileType');

	switch ($fileType){
		case 'admin':
			File::Del(OT_adminROOT .'inc/classBackupMySql.php');
			File::Del(OT_adminROOT .'inc/classSaveImg.php');
			File::Del(OT_adminROOT .'inc/classWebHtml.php');
			File::Del(OT_adminROOT .'js/inc/jquery-1.11.0.min.js');
			File::Del(OT_adminROOT .'js/ad.js');
			File::Del(OT_adminROOT .'js/database.js');
			File::Del(OT_adminROOT .'js/databaseMySQL.js');
			File::Del(OT_adminROOT .'ad.php');
			File::Del(OT_adminROOT .'ad_deal.php');
			File::Del(OT_adminROOT .'database.php');
			File::Del(OT_adminROOT .'database_deal.php');
			File::Del(OT_adminROOT .'databaseMySQL.php');
			File::Del(OT_adminROOT .'databaseMySQL_deal.php');
			break;

		case 'before':
			File::Del(OT_ROOT .'configDeal.php');
			File::Del(OT_ROOT .'configJs.php');
			File::Del(OT_ROOT .'usersApi.php');
			File::Del(OT_ROOT .'usersNews.php');
			File::Del(OT_ROOT .'usersWeb.php');
			break;

		case 'inc':
			File::Del(OT_ROOT .'inc/class_ip.php');
			break;

		case 'pluDef':
			File::Del(OT_ROOT .'pluDef/classAppApiQQ.php');
			File::Del(OT_ROOT .'pluDef/classAppApiWeibo.php');
			File::Del(OT_ROOT .'pluDef/classAppApiWeixin.php');
			File::Del(OT_ROOT .'pluDef/classAppUserMoney.php');
			File::Del(OT_ROOT .'pluDef/classAppVpsApi.php');
			File::Del(OT_ROOT .'pluDef/classAppVpsBase.php');
			File::Del(OT_ROOT .'pluDef/classAppVpsXingwai.php');
			break;

		case 'plugin':
			File::Del(OT_ROOT .'plugin/classAppApiQQ.php');
			File::Del(OT_ROOT .'plugin/classAppApiWeibo.php');
			File::Del(OT_ROOT .'plugin/classAppUserMoney.php');
			File::Del(OT_ROOT .'plugin/classTplBlue.php');
			break;

		case 'smarty':
			File::Del(OT_ROOT .'smarty/plugins/shared.mb_wordwrap.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_extension_clear.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_extension_codeframe.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_extension_config.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_extension_defaulttemplatehandler.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_filter_handler.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_function_call_handler.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_get_include_path.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_utility.php');
			File::Del(OT_ROOT .'smarty/sysplugins/smarty_internal_write_file.php');
			break;

		case 'template':
			File::Del(OT_ROOT .'template/def_blog/bbs.html');
			File::Del(OT_ROOT .'template/def_blog/sitemap.html');
			File::Del(OT_ROOT .'template/def_blog/usersCenter.html');
			File::Del(OT_ROOT .'template/def_blue/sitemap.html');
			File::Del(OT_ROOT .'template/def_blue/usersCenter.html');
			break;

		case 'tools':
			File::Del(OT_ROOT .'tools/CuPlayer/CuSunV2set.xml');
			File::DelDir(OT_ROOT .'tools/kindeditor/');
			break;

		case 'wap':
			File::Del(OT_ROOT .'wap/css/share.css');
			File::Del(OT_ROOT .'wap/inc/classWapUrl.php');
			File::Del(OT_ROOT .'wap/js/webIndex.js');
			File::Del(OT_ROOT .'wap/js/webMessage.js');
			File::Del(OT_ROOT .'wap/js/webNewsShow.js');
			File::Del(OT_ROOT .'wap/js/webTop.js');
			File::Del(OT_ROOT .'wap/js/webUsers.js');
			File::Del(OT_ROOT .'wap/js/webUsersCenter.js');
			File::Del(OT_ROOT .'wap/form_deal.php');
			File::Del(OT_ROOT .'wap/usersNews.php');
			break;

	}

	echo('<script language="javascript" type="text/javascript">alert("删除完成！");parent.location.reload();</script>');

}


// 查看图片木马源码
function UpFilesLook(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$file	= OT::GetStr('file');
	$file = str_replace(array('../',"..\\",'%'), array('','',''), $file);

	$fileExt = File::GetExt($file);
	if (! in_array($fileExt,array('bmp','gif','jpg','jpeg','png','ico','webp'))){
		die('非法文件后缀（'. $fileExt .'）');
	}

	$filePath = OT_ROOT .'upFiles/'. $file;
	if (file_exists($filePath)){
		die(Str::MoreReplace(File::Read($filePath),'html'));
	}else{
		die('该文件不存在（../upFiles/'. $file .'）');
	}

}


// 删除图片木马
function UpFilesDel(){
	global $DB,$skin,$mudi,$menuFileID,$menuTreeID;

	$file	= OT::GetStr('file');
	$file = str_replace(array('../',"..\\",'%'), array('','',''), $file);

	$filePath = OT_ROOT .'upFiles/'. $file;
	if (Is::ImgMuma($filePath)){
		File::Del($filePath);
		echo('<script language="javascript" type="text/javascript">parent.$id("img'. md5($file) .'").style.display="none";</script>');
	}else{
		echo('<script language="javascript" type="text/javascript">alert("该图片('. $file .')不是图片木马，不提供删除！\n请刷新页面重新检查看看.");</script>');
	}

}



function GetDirFileList($dirPath, $fileList, $extList){
	global $DB;

	$retStr='';
	$folderI=0;

	if ($handle = opendir($dirPath)) {
		while (($file = readdir($handle)) !== false) {
			if ($file != '.' && $file != '..' && (! is_dir($dirPath . $file))) {
				$folderI ++;
				if (strpos($fileList,'|'. $file .'|') === false){
					$fileExt = File::GetExt($file);
					if (strpos($extList,'/'. $fileExt .'/')===false && $file!='Thumbs.db'){
						$lookPath = '';
						$fileNote = '';
						switch ($file){
							case 'web.config':		$fileNote = '&ensp;&ensp;<span style="color:blue;">（IIS配置文件）</span>'; break;
							case '.htaccess':		$fileNote = '&ensp;&ensp;<span style="color:blue;">（Apache伪静态规则）</span>'; break;
							case '.user.ini':		$fileNote = '&ensp;&ensp;<span style="color:blue;">（防跨站配置文件）</span>'; break;
							default:
								if (strpos($file,'del_classApp') !== false){
									$fileNote = '&ensp;&ensp;<span style="color:blue;">（疑似禁用状态下的插件文件）</span>';
								}elseif ($fileExt == 'php'){
									$fileNote = '&ensp;&ensp;<span style="color:red;">（PHP脚本）</span>';
								}elseif ($fileExt == 'asp'){
									$fileNote = '&ensp;&ensp;<span style="color:red;">（ASP脚本）</span>';
								}elseif ($fileExt == 'aspx'){
									$fileNote = '&ensp;&ensp;<span style="color:red;">（ASP.NET脚本）</span>';
								}
								break;
						}

						$lastID = 0;
						$dataArr = array();
						$dataArr['HF_mode']		= 'check';
						$dataArr['HF_type']		= 'file';
						$dataArr['HF_dataID']	= 0;
						$dataArr['HF_theme']	= str_replace('&ensp;','',$fileNote);
						$dataArr['HF_filePath']	= $dirPath . $file;
						$resJud = $DB->InsertParam('htmlFile',$dataArr);
							if ($resJud){
								$lastID = $DB->GetOne('select max(HF_ID) from '. OT_dbPref .'htmlFile');
								$lookPath .= '&ensp;&ensp;<a href="sysCheckFile_deal.php?mudi=checkFileDeal&mode=code&dataID='. $lastID .'" target="_blank" style="color:blue;">源码</a>&ensp;&ensp;<a href="javascript:void();" onclick=\'if(confirm("你确定要删除“"+ $id("filePath'. $lastID .'").innerText +"”？")==true){DataDeal.location.href="sysCheckFile_deal.php?mudi=checkFileDeal&mode=del&dataID='. $lastID .'"}return false;\' style="color:blue;">删除</a>';
							}

						$retStr .= '
						<tr id="data'. $lastID .'">
							<td id="filePath'. $lastID .'" style="word-break:break-all;">'. Str::GB2UTF($file) . $fileNote .'</td>
							<td>'. File::SizeUnit(filesize($dirPath . $file)) .'</td>
							<td>'. File::GetCreateTime($dirPath . $file) .'</td>
							<td>'. File::GetRevTime($dirPath . $file) .'</td>
							<td align="center"><a href="../'. $file .'" target="_blank" style="color:blue;">查看</a>'. $lookPath .'</td>
						</tr>
						';
					}
				}
			}
		}
	}
	closedir($handle);

	return $retStr;
}


function GetDirAndFileList($path, $fileList, $extList, $dirPath, $chkDirName){
	global $DB;

	$retStr = '';
	$dirArr = array();

	if ($handle = opendir($path)) {
		while (($file = readdir($handle)) !== false) {
			if ($file != '.' && $file != '..') {
				if (is_dir($path . $file)){
					$dirArr[] = $file;
				}else{
					if (strpos($fileList,'|'. $dirPath . $file .'|') === false){
						$fileExt = File::GetExt($file);
						if (strpos($extList,'/'. $fileExt .'/')===false && $file!='Thumbs.db'){
							if (in_array($chkDirName,array('Data','Data_backup'))){
								$lookPath = '';
							}elseif ($chkDirName == 'admin'){
								$lookPath = '<a href="'. $dirPath . $file .'" target="_blank" style="color:blue;">查看</a>';
							}else{
								$lookPath = '<a href="../'. $chkDirName .'/'. $dirPath . $file .'" target="_blank" style="color:blue;">查看</a>';
							}
							$fileNote = '';
							switch ($file){
								case 'web.config':		$fileNote = '&ensp;&ensp;<span style="color:blue;">（IIS配置文件）</span>'; break;
								case '.htaccess':		$fileNote = '&ensp;&ensp;<span style="color:blue;">（Apache伪静态规则）</span>'; break;
								case '.user.ini':		$fileNote = '&ensp;&ensp;<span style="color:blue;">（防跨站配置文件）</span>'; break;
								default:
									if (strpos($file,'del_classApp') !== false){
										$fileNote = '&ensp;&ensp;<span style="color:blue;">（疑似禁用状态下的插件文件）</span>';
									}elseif ($fileExt == 'php'){
										$fileNote = '&ensp;&ensp;<span style="color:red;">（PHP脚本）</span>';
									}elseif ($fileExt == 'asp'){
										$fileNote = '&ensp;&ensp;<span style="color:red;">（ASP脚本）</span>';
									}elseif ($fileExt == 'aspx'){
										$fileNote = '&ensp;&ensp;<span style="color:red;">（ASP.NET脚本）</span>';
									}
									break;
							}

							$lastID = 0;
							$dataArr = array();
							$dataArr['HF_mode']		= 'check';
							$dataArr['HF_type']		= 'file';
							$dataArr['HF_dataID']	= 0;
							$dataArr['HF_theme']	= str_replace('&ensp;','',$fileNote);
							$dataArr['HF_filePath']	= $path . $file;
							$resJud = $DB->InsertParam('htmlFile',$dataArr);
								if ($resJud){
									$lastID = $DB->GetOne('select max(HF_ID) from '. OT_dbPref .'htmlFile');
									$lookPath .= '&ensp;&ensp;<a href="sysCheckFile_deal.php?mudi=checkFileDeal&mode=code&dataID='. $lastID .'" target="_blank" style="color:blue;">源码</a>&ensp;&ensp;<a href="javascript:void();" onclick=\'if(confirm("你确定要删除“"+ $id("filePath'. $lastID .'").innerText +"”？")==true){DataDeal.location.href="sysCheckFile_deal.php?mudi=checkFileDeal&mode=del&dataID='. $lastID .'"}return false;\' style="color:blue;">删除</a>';
								}

							$retStr .= '
								<tr id="data'. $lastID .'">
									<td id="filePath'. $lastID .'" style="word-break:break-all;">'. Str::GB2UTF($dirPath . $file) . $fileNote .'</td>
									<td>'. File::SizeUnit(filesize($path . $file)) .'</td>
									<td>'. File::GetCreateTime($path . $file) .'</td>
									<td>'. File::GetRevTime($path . $file) .'</td>
									<td align="center">'. $lookPath .'</td>
								</tr>
								';
						}
					}
				}
			}
		}
	}
	closedir($handle);

	foreach ($dirArr as $val){
		$nowpath=$path .'/'. $val .'/';
		$retStr .= GetDirAndFileList($nowpath, $fileList, $extList, $dirPath . $val .'/', $chkDirName);
	}

	return $retStr;
}


function GetDirAndFileImgList($path, $dirPath, $firstDir){
	$retStr = '';
	$extList = '/bmp/jpg/jpeg/gif/png/';
	$dirArr = array();

	if ($handle = opendir($path)) {
		while (($file = readdir($handle)) !== false) {
			if ($file != '.' && $file != '..') {
				if (is_dir($path . $file)){
					$dirArr[] = $file;
				}else{
					$fileExt = File::GetExt($file);
					if (strpos($extList,'/'. $fileExt .'/')!==false){
						$imgPath = $path . $file;
						if (Is::ImgMuma($imgPath)){
							$retStr .= '
								<tr id="img'. md5($firstDir .'/'. $dirPath . $file) .'">
									<td>'. $dirPath . $file .'</td>
									<td>'. File::SizeUnit(filesize($imgPath)) .'</td>
									<td>'. File::GetCreateTime($imgPath) .'</td>
									<td>'. File::GetRevTime($imgPath) .'</td>
									<td>疑似木马图片</td>
									<td>
										<a href="../upFiles/'. $firstDir .'/'. $dirPath . $file .'" target="_blank" style="color:blue;">访问</a>&ensp;
										<a href="sysCheckFile_deal.php?mudi=upFilesLook&file='. urlencode($firstDir .'/'. $dirPath . $file) .'" target="_blank">看源码</a>&ensp;
										<a href="#" onclick=\'DataDeal.location.href="sysCheckFile_deal.php?mudi=upFilesDel&file='. urlencode($firstDir .'/'. $dirPath . $file) .'";return false;\' style="color:red;">删除</a>
									</td>
								</tr>
								';
						}
					}
				}
			}
		}
	}

	foreach ($dirArr as $val){
		$nowpath=$path .'/'. $val .'/';
		$retStr .= GetDirAndFileImgList($nowpath,$dirPath . $val ."/", $firstDir);
	}

	return $retStr;
}


?>