<?xml version="1.0" encoding="utf-8"?>
<configuration>

	<connectionStrings>
		<add name="SiteSqlServer" connectionString="server=(local);uid=cs;pwd=;Trusted_Connection=no;database=cs" />
	</connectionStrings>

	<appSettings>
		<add key="SiteSqlServer" value="server=(local);uid=cs;pwd=;Trusted_Connection=no;database=cs" />
		<add key="SiteSqlServerOwner" value="dbo" />
		<add key="MachineValidationKey" value="AB15A315E4ABFBC929358F163271BC899B53E874" />
		<add key="MachineDecryptionKey" value="FCCE4D7E8F348F8DE476F4AF934B81D77C0E252AAC5CC536" />
		<add key="MachineValidationMode" value="SHA1" />
		<add key="ComponentArt.Web.UI.ClientScriptLocation" value="~/Utility/componentart_webui_client" />
		<add key="Telligent.Web.UI.ClientScriptPath" value="~/Utility/telligent_web_ui" />
	</appSettings>

	<system.web>

		<!-- Standard Application Settings -->
		<compilation defaultLanguage="c#" debug="false" />

		<!--***** NOTE:  Use this page version in .Net 2.0 *****-->
		<pages validateRequest="false" enableEventValidation="false" autoEventWireup="true" pageBaseType="CommunityServer.Components.CSPage, CommunityServer.Components" />

		<machineKey validationKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902" decryptionKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC" validation="SHA1" />

		<trace enabled="false" requestLimit="40" localOnly="true" />
		<sessionState mode="Off" />

		<!-- Permit detailed errors to be displayed for remote clients -->
		<customErrors mode="RemoteOnly" defaultRedirect="~/error.htm">
			<error statusCode="404" redirect="~/error-notfound.aspx" />
		</customErrors>


		<!-- START - CommunityServer specific application settings here -->
		<httpModules>
			<add name="CommunityServer" type="CommunityServer.CSHttpModule, CommunityServer.Components" />
			<!-- <add name="CSReporting" type="CommunityServer.Reporting.ReportingHttpModule, CommunityServer.Reporting" /> -->
		</httpModules>

		<httpHandlers>
			<add verb="GET" path="Utility/redirect.aspx" type="CommunityServer.Components.Redirect, CommunityServer.Components" />
			<add verb="GET" path="aggbug.aspx" type="CommunityServer.Components.HttpHandler.AggBugHandler, CommunityServer.Components" />
			<add verb="GET" path="avatar.aspx" type="CommunityServer.Components.HttpHandler.AvatarHttpHandler, CommunityServer.Components" />
			<add verb="GET" path="vcard.aspx" type="CommunityServer.Components.HttpHandler.VCardHttpHandler, CommunityServer.Components" />
			<add verb="GET" path="r.ashx" type="CommunityServer.Components.HttpHandler.TinyUrlHttpHandler, CommunityServer.Components" />
		</httpHandlers>

		<!-- 
		authentication :
			To use Windows Authentication, you must turn off Anonymous authentication in IIS
			or IIS will never pass the user credentials to the forums.  

			To enable Windows Authentication, simply comment out the forms authentication section
			below and uncomment the Windows Authentication stuff.

			To use the CookieAuthentication add-on module, set the authentication mode to "None" and
			comment out the forms element. 
		-->
		<authentication mode="Forms">
			<forms name=".CommunityServer" protection="All" timeout="60000" loginUrl="login.aspx" slidingExpiration="true" />
		</authentication>

		<membership userIsOnlineTimeWindow="15" defaultProvider="CommunityServerSqlProvider">
			<providers>
				<clear />
				<add name="CommunityServerSqlProvider" type="CommunityServer.ASPNet20MemberRole.CSMembershipProvider, CommunityServer.ASPNet20MemberRole" connectionStringName="SiteSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Hashed" applicationName="dev" description="Stores and retrieves membership data from the local Microsoft SQL Server database" maxInvalidPasswordAttempts="999" passwordAttemptWindow="999" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" />
			</providers>
		</membership>

		<roleManager defaultProvider="CommunityServerSqlProvider" enabled="true" cacheRolesInCookie="true" cookieName=".CSRoles" cookieTimeout="60000" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" createPersistentCookie="true" cookieProtection="All" maxCachedResults="1000">
			<providers>
				<clear />
				<add name="CommunityServerSqlProvider" type="CommunityServer.ASPNet20MemberRole.CSRoleProvider, CommunityServer.ASPNet20MemberRole" connectionStringName="SiteSqlServer" applicationName="dev" description="Stores and retrieves roles data from the local Microsoft SQL Server database" />
			</providers>
		</roleManager>

		<profile defaultProvider="CommunityServerSqlProvider" enabled="true">
			<providers>
				<clear />
				<add name="CommunityServerSqlProvider" type="CommunityServer.ASPNet20MemberRole.CSProfileProvider, CommunityServer.ASPNet20MemberRole" connectionStringName="SiteSqlServer" applicationName="dev" description="Stores and retrieves profile data from the local Microsoft SQL Server database" />
			</providers>

			<properties>
				<add name="commonName" type="string" />
				<add name="birthdate" type="DateTime" />
				<add name="gender" type="int" defaultValue="0" />
				<add name="dateFormat" type="string" defaultValue="MM-dd-yyyy" />
				<add name="publicEmail" type="string" />
				<add name="language" type="string" />
				<add name="webAddress" type="string" />
				<add name="webLog" type="string" />
				<add name="webGallery" type="string" />
				<add name="signature" type="string" />
				<add name="signatureFormatted" type="string" />
				<add name="location" type="string" />
				<add name="occupation" type="string" />
				<add name="interests" type="string" />
				<add name="msnIM" type="string" />
				<add name="yahooIM" type="string" />
				<add name="aolIM" type="string" />
				<add name="icqIM" type="string" />
				<add name="enablePostPreviewPopup" type="System.Boolean" defaultValue="false" />
				<add name="enableEmoticons" type="System.Boolean" defaultValue="true" />
				<add name="timezone" type="System.Double" defaultValue="0" />
				<add name="fontsize" type="int" defaultValue="0" />
				<add name="bio" type="string" />
			</properties>
		</profile>

		<!-- 
		========================
		Anonymous Identification
		========================
		anonymousIdentification configuration:
			enabled="[true|false]"                            Feature is enabled?
                	cookieName=".ASPXANONYMOUS"                       Cookie Name
                	cookieTimeout="100000"                            Cookie Timeout in minutes
                	cookiePath="/"                                    Cookie Path
                	cookieRequireSSL="[true|false]"                   Set Secure bit in Cookie
                	cookieSlidingExpiration="[true|false]"            Reissue expiring cookies?
                	cookieProtection="[None|Validation|Encryption|All]"    How to protect cookies from being read/tampered
                	domain="[domain]"                                 Enables output of the "domain" cookie attribute set to the specified value
	        -->
		<anonymousIdentification enabled="false" cookieName=".ASPXANONYMOUS" cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="None" domain="" />
	
	</system.web>

	<location path="EditPost.aspx">
		<system.web>
			<authorization>
				<deny users="?" />
			</authorization>
		</system.web>
	</location>

	<location path="PrivateMessage.aspx">
		<system.web>
			<authorization>
				<deny users="?" />
			</authorization>
		</system.web>
	</location>

	<location path="Download.aspx">
		<system.web>
			<authorization>
				<deny users="?" />
			</authorization>
		</system.web>
	</location>

	<location path="License.aspx">
		<system.web>
			<authorization>
				<deny users="?" />
			</authorization>
		</system.web>
	</location>

</configuration>