<xl_doctor version="1.0.0.0">
	<product_info>
		<name>xl7</name>
		<flag>1</flag>
	</product_info>
	
	<param_info>
		<ThunderExePath file="getpath.lua" func="GetThunderExePath" />
		<ThunderInstDir file="getpath.lua" func="GetThunderInstDir" />
		<ThunderAddinDir file="getpath.lua" func="GetThunderAddinDir"/>
	</param_info>
	
	<dll_load_and_registe>
						<!-- demo 请参阅doc目录下的config_readme.txt文件-->
		<!--<dll name="XYZ" path="dll_load_and_registe\XYZ.dll" />-->
						<!-- demo 请参阅doc目录下的config_readme.txt文件-->
	</dll_load_and_registe>
	
	<repair_rules>
		<hosts_repair>
			<def>
				<check file=".\lua\hosts_repair.lua" func="CheckHost"  />
				<repair file=".\lua\hosts_repair.lua" func="FixHost"/>
			</def>
			<rules>
				<rule>
					<domains>
						<domain value="sandai.net" />     
						<domain value="xunlei.com" />
						<domain value="gougou.com" />
						<domain value="xunlei.net" />
						<domain value="xunlei.cn" />
						<domain value="gigaget.com" />		
					</domains>
				</rule>
			</rules>
		</hosts_repair>

		<tcpip_check>
			<def>
				<check file=".\lua\tcpip_repair.lua" func="CheckTcpip"  />
				<repair file=".\lua\tcpip_repair.lua" func="RepairTcpip"  />
			</def>
			<rules>
				<rule>
				</rule>
			</rules>
		</tcpip_check>


		<file_check>
			<def>
				<check file=".\lua\file_check.lua" func="CheckFile" />
				<repair file=".\lua\file_check.lua" func="RepairFile" />
			</def>
			<rules>
				<rule dir="#ThunderInstDir#" path="Program\privatefile.dat" />
			</rules>
		</file_check>
		<!--禁用IE插件-->
		<DisXLIEPlug>
			<def>		
				<check file=".\lua\IESetting.lua" func="" />
				<repair file=".\lua\IESetting.lua" func="DisIESetting" />
			</def>
			<rules>					
				<rule name="XunleiBHO" clsid="{889D2FEB-5411-4565-8998-1DD2C5261283}" enable="1"/>
				<!--	<rule name="TDMediaDetector" clsid="{01443AEC-0FD1-40fd-9C87-E93D1494C233}"/> -->
				<!--  <rule name="thunderagent" clsid="{485463B7-8FB2-4B3B-B29B-8B919B0EACCE}" enable="1" -->
			</rules>
		</DisXLIEPlug>
		<DisKKIEPlug>
			<def>		
				<check file=".\lua\IESetting.lua" func="" />
				<repair file=".\lua\IESetting.lua" func="DisIESetting" />
			</def>
			<rules>
					<rule name="OFrameObject" clsid="{9701758C-4373-482E-B13C-776C048EC890}" enable="1"/>
					<rule name="dapctrl" clsid="{ACACC6EB-1FBA-4E13-A729-53AEB2DF54F8}" enable="1"/>
			</rules>
		</DisKKIEPlug>
		<!--IE 插件 是否被禁用 -->
		<ThunderIESetting>
			<def>		
				<check file=".\lua\IESetting.lua" func="CheckIESetting" />
				<repair file=".\lua\IESetting.lua" func="FixIESetting" />
			</def>
			<rules>
					<rule name="XunleiBHO" clsid="{889D2FEB-5411-4565-8998-1DD2C5261283}" enable="1"/>
				<!--	<rule name="TDMediaDetector" clsid="{01443AEC-0FD1-40fd-9C87-E93D1494C233}"/> -->
					<rule name="thunderagent" clsid="{485463B7-8FB2-4B3B-B29B-8B919B0EACCE}" enable="1"/>  
					<rule name="thunderagent" clsid="{485463B7-8FB2-4B3B-B29B-8B919B0EACCE}" addr="gougou.com"/>  
			</rules>
		</ThunderIESetting>
		<KankanIESetting>
			<def>		
				<check file=".\lua\IESetting.lua" func="CheckIESetting" />
				<repair file=".\lua\IESetting.lua" func="FixIESetting" />
			</def>
			<rules>
					<rule name="OFrameObject" clsid="{9701758C-4373-482E-B13C-776C048EC890}" enable="1"/>
					<rule name="dapctrl" clsid="{ACACC6EB-1FBA-4E13-A729-53AEB2DF54F8}" enable="1"/>
					<rule name="OFrameObject" clsid="{9701758C-4373-482E-B13C-776C048EC890}" addr="xunlei.com"/>
					<rule name="dapctrl" clsid="{ACACC6EB-1FBA-4E13-A729-53AEB2DF54F8}" addr="xunlei.com"/>
					<rule name="aplayer" clsid="{A9322148-C691-4B9D-91FC-B9C461DBE9DD}" enable="1" addr="xunlei.com"/>
					<rule name="stream" clsid="{9EFF1953-9694-47B1-AEF6-B2A3FE8BFE9B}" addr="xunlei.com"/>
			</rules>
		</KankanIESetting>
		<!-- -->
		<IEClickLink>
		 	<def>
				<suc_info>IE点击链接</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file="" func=""/>
				<repair file="" func="" />
			</def>
			<!-- 迅雷IE组件 -->
			<rules>
				<rule check_file=".\lua\IEPlugin.lua" check_func="CheckIEClickLink" repair_file=".\lua\IEPlugin.lua" repair_func="FixIEClickLink">
					<thuderiePlugin instdir="#ThunderInstDir#BHO"  exePath="#ThunderExePath#">
						<items>
							<item  clsid="{889D2FEB-5411-4565-8998-1DD2C5261283}"  name="xunleiBHO"  nametype="1"/>		<!--old-->
						<!--		 <item  clsid="{889D2FEB-5411-4565-8998-1DD2C5261283}"  name="xunleiBHO"  nametype="1"/> new -->
								 <!-- <item  clsid="{01443AEC-0FD1-40fd-9C87-E93D1494C233}" name="#TDMediaDetectorName#" org="TDMediaDetector.dll"/>  	迅雷7未加   -->        
								 <item clsid="{485463B7-8FB2-4B3B-B29B-8B919B0EACCE}"  name="ThunderAgent" progid="ThunderAgent.Agent" nametype="1"/> 			
						 </items>
					</thuderiePlugin>
				</rule>
			</rules>
		</IEClickLink>
		<RestoreBho>	
			<def>
				<suc_info>恢复浏览器默认下载工具为迅雷</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\restorebho.lua" func="CheckBho"/>
				<repair file=".\lua\restorebho.lua" func="FixBho" />
			</def>		
			<rules>
				<rule value="nil" FixExePath="#ThunderInstDir#BHO\XLNonIESvr.exe" bhodir="#ThunderInstDir#BHO"/>
			</rules>
		</RestoreBho>
		<IERMenu>
		 	<def>
				<suc_info>IE右键下载菜单</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file="" func=""/>
				<repair file="" func="" />
			</def>
			<!-- 迅雷IE组件 -->
			<rules>
				<rule check_file=".\lua\IEPlugin.lua" check_func="CheckIERMenu" repair_file=".\lua\IEPlugin.lua" repair_func="FixIERMenu">
					<thuderiePlugin instdir="#ThunderInstDir#BHO" >
						 <iemenutxts>
						 	<iemenutxt  name="使用迅雷下载" />
						 	<iemenutxt  name="使用迅雷下载全部链接" />
						 </iemenutxts>
					</thuderiePlugin>
				</rule>
			</rules>
		</IERMenu>
		
		<UploadLimited>
			<def>
				<check file=".\lua\uploadlimited.lua" func="UploadCheck" />
			</def>
			<rules>
				<rule>
					<limit>14240</limit>
				</rule>
			</rules>
		</UploadLimited>
		
		<ProtocolCheck>
			<def>
				<check file=".\lua\p2scheck.lua" func="P2SCheck" />
				<repair file=".\lua\p2s_repair.lua" func="P2SRepair" />
			</def>
			<rules>
				<rule />
			</rules>
		</ProtocolCheck>
		<KankanIEPlugin>
			<def>
				<suc_info>IE插件 </suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\IEPlugin.lua" func="CheckFireWall" />
				<repair file=".\lua\IEPlugin.lua" func="FixFireWall" />
			</def>			
				<!-- 看看IE插件  -->
				<rules>
				<rule  check_file=".\lua\IEPlugin.lua" check_func="CheckKankanIEPlugin" repair_file=".\lua\IEPlugin.lua" repair_func="FixKankanIEPlugin">
				<!--	<xmpkankanPlugin instdir="#XmpInstDir#" >
						<items>
							<item dllpath="\Xmp\bin\shlext.dll " progid="ShlExt.ContextMenuExt" checkIdispatch="0"/>
							<item dllpath="\Xmp\Depends\Kankan\vd.dll " progid="GVODPlayer.VersionDetector"  checkIdispatch="1"/>
							<item dllpath="\Xmp\Depends\Kankan\tsf.dll" progid=""   checkIdispatch="1"/>
							<item dllpath="\Xmp\Depends\Kankan\streami.dll" progid="StreamIModule.LocalStreamI"   checkIdispatch="1" createcom="0"/>
							<item dllpath="\Xmp\Depends\Kankan\dapctrl.dll" progid="DapCtrlModule.OFrameObject"   checkIdispatch="1"/>
							<item dllpath="\Xmp\Depends\Kankan\dapctrl.dll" progid="DapCtrl.DapCtrl"   checkIdispatch="1"/>
						</items>
					</xmpkankanPlugin> -->
					<thunderkankanPlugin>
						<items>
							<!-- thunder 5.9 							
							<item dllpath="\UserData\Components\Kankan\dapctrl.dll" progid="DapCtrl.DapCtrl" checkIdispatch="1" createcom="1"/>
							<item dllpath="\UserData\Components\Kankan\dapctrl.dll" progid="DapCtrlModule.OFrameObject" checkIdispatch="1" createcom="1"/>
							<item dllpath="\UserData\Components\Kankan\vd.dll" progid="GVODPlayer.VersionDetector"  checkIdispatch="1" createcom="1"/>
							<item dllpath="\UserData\Components\Kankan\tsf.dll" progid=""   checkIdispatch="1" createcom="0" clsid="{238D0F23-5DC9-45A6-9BE2-666160C324DE}"/>
							<item dllpath="\Program\streami.dll " progid="StreamIModule.LocalStreamI"   checkIdispatch="0" createcom="0"/>
							-->	
							<!-- 迅雷7 	-->				
							<item dir="#ThunderAddinDir#" dllpath="Kankan\dapctrl.dll" progid="DapCtrl.DapCtrl" bLocalServer="0"/>              						<!--  checkIdispatch="1" createcom="1" -->
							<item dir="#ThunderAddinDir#" dllpath="Kankan\dapctrl.dll" progid="DapCtrlModule.OFrameObject" bLocalServer="0" /> 											<!--checkIdispatch="1" createcom="1"/=-->
							<item dir="#ThunderAddinDir#" dllpath="Kankan\vd.dll" progid="GVODPlayer.VersionDetector" bLocalServer="0" /> 													<!-- checkIdispatch="1" createcom="1"/-->  
							<item dir="#ThunderAddinDir#" dllpath="Kankan\tsf.dll" progid=""  clsid="{A4E38A50-618A-4B20-ABC6-551B5C661E9F}"  bLocalServer="0"/>				<!--checkIdispatch="0" createcom="1"-->
							<item dir="#ThunderInstDir#" dllpath="Program\streami.dll " progid="StreamIModule.LocalStreamI" bLocalServer="1" />  									<!--checkIdispatch="0" createcom="0"-->
							
						</items>
					</thunderkankanPlugin>	
				</rule>
				
				</rules>
		</KankanIEPlugin>
	<!--	-->
		<FireWall>
			<def>
				<check file=".\lua\FireWall.lua" func="CheckFireWall" />
				<repair file=".\lua\FireWall.lua" func="FixFireWall" />
			</def>
			<rules>
				<rule>
					<file path="#ThunderExePath#" name="Thunder" />
					<file path="#ThunderInstDir#Program\ThunderPlatform.exe" name="ThunderPlatform" />
				</rule>
			</rules>
		</FireWall>

		<Memory>
			<def>
				<suc_info>系统可用内存</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\system.lua" func="CheckAvaildPhys" />
				<repair file=".\lua\system.lua" func="" />
			</def>
			<rules>
					<rule size="100" />
			</rules>
		</Memory>
	
		<FreeSpace>
			<def>
				<suc_info>C盘空间</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\system.lua" func="CheckDiskFreeSpace" />
				<repair file=".\lua\system.lua" func="CleanDisk" />
			</def>
			<rules>
					<rule size="100" />					
			</rules>
		</FreeSpace>
			
		<NetWorkStaus>			
			<def>
				<suc_info>网络链接状态</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="CheckNetWorkStaus" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				<rule>
				</rule>
			</rules>
		</NetWorkStaus>
								
		<SharePass>
			<def>
				<suc_info>共享通道</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="CanConnect" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				<rule addr="if.cdn.vip.xunlei.com"  name="共享通道"/>
			</rules>
		</SharePass>		
		<AccountPass>
			<def>
				<suc_info>账号升级通道</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="CanConnect" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				<rule addr="if.cdn.vip.xunlei.com"  name="账号升级通道"/>
			</rules>
		</AccountPass>		
		<HiSpeedPass>
			<def>
				<suc_info>高速通道</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="CanConnect" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				<rule addr="if.cdn.vip.xunlei.com"  name="高速通道"/>
			</rules>
		</HiSpeedPass>		
		<OfflinePass>
			<def>
				<suc_info>离线通道</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="CanConnect" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				<rule addr="service.lixian.vip.xunlei.com"   name="离线通道"/>
			</rules>
		</OfflinePass>		
		
		<hub_check>			
			<def>
				<suc_info>hub资源查询</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="CanConnect" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				<rule addr="hub5t.sandai.net"   name="hub资源查询"/>
				<rule addr="hub5pr.sandai.net"   name="hub资源查询"/>
			</rules>
		</hub_check>
		<PortTest>
			<def>
				<suc_info>PortTest</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="PortTest" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				
			</rules>
		</PortTest>
		
		<DNSTest>			
			<def>
				<suc_info>DNSTest</suc_info >
				<fail_info></fail_info >
				<repair_tip></repair_tip>
				<level></level>
				<check file=".\lua\connect.lua" func="DNSTest" />
				<repair file=".\lua\connect.lua" func="" />
			</def>
			<rules>
				<rule addr="xunlei.com"  />
			</rules>
		</DNSTest>
		
		
		<P2PCheck>
			<def>
				<check file=".\lua\p2pcheck.lua" func="P2pCheck" />
			</def>
			<rules>
				<rule />
			</rules>
		</P2PCheck>
	</repair_rules>	
</xl_doctor>
