﻿<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="AutoTimePlay" value="0" />
    <add key="AutoTimePlayUrl" value="" />
    <!--是否开启全局错误记录。-->
    <add key="AppErrorLog" value="1" />
    <add key="FCKeditor:UserFilesPath" value="/UpLoadFile/" />
    <add key="FCKeditor:FolderPattern" value="%yy/%mm/%dd/" />
    <!--yy为年mm为月dd为天hh为小时mi为分钟ss为秒ms为毫秒random为随机数-->
    <add key="FCKeditor:FilePattern" value="%hh%mi%ss%ms%random" />
    <add key="HtmlPathDepth" value="0" />
    <add key="SyCms_RunKey" value="Free Version" />
    <add key="Watermark" value="1" />
    <!--水印方式选择1为文字.2为图片-->
    <add key="Watermark_WH" value="50" />
    <!--最小加标宽高-->
    <add key="Watermark_Cont" value="" />
    <!--文字-->
    <add key="Watermark_Font" value="宋体" />
    <!--字体-->
    <add key="Watermark_FontSize" value="12" />
    <!--字体大小-->
    <add key="Watermark_FontColor" value="FF0000" />
    <!--字体颜色-->
    <add key="Watermark_PositionNum" value="2" />
    <!--相聚最边保留多少的空位-->
    <add key="Watermark_Position" value="8" />
    <!--0为中间,1为左上,2为上中,3为右上,4为右中,5为右下,6为下中,7为下左,8为左中-->
    <add key="Watermark_Pic" value="images/logo.gif" />
    <!--为图片时图片的路径(绝对地址）-->
    <add key="Watermark_OutTime" value="5000" />
    <!--超时时间-->
    <add key="Watermark_Depth" value="0" />
    <!--为路径上级级数-->
    <add key="GifOpen" value="0" />
    <!--GIF是否打开-->
    <add key="Watermark_Quality" value="99" />
    <!--保存图片质量-->
  </appSettings>
  <connectionStrings>
	<add name="SyCms" connectionString="Server=localhost;User=sa;Password=sa;Database=SyCms;" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <system.web>
    <!-- 
            设置 compilation debug="true" 可将调试符号插入
            已编译的页面中。但由于这会 
            影响性能，因此只在开发过程中将此值 
            设置为 true。
        -->
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
      </assemblies>
    </compilation>
    <!--
            通过 <authentication> 节可以配置 ASP.NET 用来 
            识别进入用户的
            安全身份验证模式。 
        -->
    <authentication mode="Windows" />
    <!--
            如果在执行请求的过程中出现未处理的错误，
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来，
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <httpHandlers>
      <add verb="*" path="*.yq" type="System.Web.HttpForbiddenHandler" />
      <add verb="*" path="log/error/*.txt" type="System.Web.HttpForbiddenHandler" />
      <add verb="*" path="runfile/*.txt" type="System.Web.HttpForbiddenHandler" />
      <add verb="*" path="ftpfile/*.txt" type="System.Web.HttpForbiddenHandler" />
      <add verb="*" path="log/Operating/*.txt" type="System.Web.HttpForbiddenHandler" />
      <add verb="*" path="DbBack/*.bak" type="System.Web.HttpForbiddenHandler" />
      <add verb="*" path="DbBack/*.rar" type="System.Web.HttpForbiddenHandler" />
      <add verb="*" path="*.dhtml" type="HttpHandler.HttpHandler" />
      <add verb="*" path="*.jpg,*.jpeg,*.gif,*.png,*.bmp" type="HttpHandler.ImgProtectHadler" />
      <remove verb="*" path="*.asmx" />
    </httpHandlers>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN" fileEncoding="utf-8" />
    <pages enableEventValidation="false" enableViewStateMac="false" validateRequest="false">
    </pages>
    <httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />
    <httpModules>
      <add name="BigFileUploadModuleHandle " type="HelpSoft.BigFileUploadModuleHandle,BigFileUploadHandle" />
    </httpModules>
  </system.web>
  <!-- 
        在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
        节。对早期版本的 IIS 来说则不需要此节。
    -->
  <system.webServer>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="SyCms.*" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" 

preCondition="classicMode,runtimeVersionv2.0,bitness32" />
      <add name="HttpHadler" verb="*" path="*.dhtml" type="HttpHandler.HttpHandler" preCondition="integratedMode" />
      <add name="HttpHadler_1" verb="*" path="*.yq" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="HttpHadler_2" verb="*" path="log/error/*.txt" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="HttpHadler_3" verb="*" path="log/Operating/*.txt" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="HttpHadler_4" verb="*" path="DbBack/*.bak" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="HttpHadler_5" verb="*" path="DbBack/*.rar" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="HttpHadler_6" verb="*" path="runfile/*.txt" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="HttpHadler_7" verb="*" path="ftpfile/*.txt" type="System.Web.HttpForbiddenHandler" preCondition="integratedMode" />
      <add name="ImgProtectHadler" verb="*" path="*.jpg,*.jpeg,*.gif,*.png,*.bmp" type="HttpHandler.ImgProtectHadler" preCondition="integratedMode" />
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2073741824">
        </requestLimits>
      </requestFiltering>
    </security>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="ScriptModule" />
      <add name="BigFileUploadModuleHandle " type="HelpSoft.BigFileUploadModuleHandle,BigFileUploadHandle" />
    </modules>
    <staticContent>
      <mimeMap fileExtension=".dhtml" mimeType="text/html" />
    </staticContent>
  </system.webServer>
  <runtime>
    <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>