<configSchema>
	<sectionSchema name="MivaScript">
		<attribute name="serverAdmin" type="string" defaultValue="webmaster@localhost" />
		<attribute name="htscallerid" type="bool" defaultValue="false" />
		<attribute name="sslSNI" type="enum" defaultValue="default">
			<enum name="disabled" value="0" />
			<enum name="enabled" value="1" />
			<enum name="default" value="-1" />
		</attribute>
		<attribute name="openssl" type="string" defaultValue="SSLEAY32.DLL" validationType="nonEmptyString" />
		<attribute name="opensslCrypto" type="string" defaultValue="LIBEAY32.DLL" validationType="nonEmptyString" />
		<attribute name="sslConfig" type="string" defaultValue="" />
		<attribute name="enableDeprecated" type="string" defaultValue="" />

		<element name="paths">
			<attribute name="root" type="string" />
			<attribute name="data" type="string" />
			<attribute name="temp" type="string" />
			<attribute name="ca" type="string" />
			<attribute name="cafile" type="string" />
		</element>

		<element name="socks">
			<attribute name="version" type="enum" defaultValue="4">
				<enum name="4" value="4" />
				<enum name="5" value="5" />
			</attribute>
			<attribute name="host" type="string" />
			<attribute name="port" type="int" defaultValue="1080" validationType="integerRange" validationParameter="0,65535" />
			<attribute name="username" type="string" />
			<attribute name="password" type="string" />
		</element>

		<element name="timeouts">
			<attribute name="global" type="uint" defaultValue="90" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="call" type="uint" defaultValue="30" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="mail" type="uint" defaultValue="30" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="file" type="uint" defaultValue="30" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="post" type="uint" defaultValue="30" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="asynchronous" type="uint" defaultValue="3600" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="asynchronousSleep" type="uint" defaultValue="86400" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="fileDelay" type="uint" defaultValue="100" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="lockExpiration" type="uint" defaultValue="90" validationType="integerRange" validationParameter="0,2147483647" />
		</element>

		<element name="limits">
			<attribute name="maxFiles" type="uint" defaultValue="0" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="maxDoCache" type="uint" defaultValue="0" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="maxPostVars" type="uint" defaultValue="2000" validationType="integerRange" validationParameter="0,2147483647" />
			<attribute name="maxUnknownContentLength" type="int" defaultValue="1048576" validationType="integerRange" validationParameter="-1,2147483647" />
			<attribute name="maxAsynchronousTasks" type="int" defaultValue="0" validationType="integerRange" validationParameter="-1,2147483647" />
		</element>

		<element name="syslog">
			<attribute name="syslog" type="string" />
			<attribute name="ident" type="string" defaultValue="Miva" />
		</element>

		<element name="slowrequestsyslog">
			<attribute name="syslog" type="uint" defaultValue="0" />
			<attribute name="ident" type="string" defaultValue="Miva" />
		</element>

		<element name="debugLog">
			<attribute name="file" type="string" />
			<attribute name="filter" type="string" />
			<attribute name="cookie" type="string" />
			<attribute name="level" type="flags" defaultValue="None">
				<flag name="None" value="0" />
				<flag name="FunctionCall" value="16" />
				<flag name="FunctionParameters" value="32" />
				<flag name="FunctionReturnValue" value="64" />
				<flag name="FunctionReturn" value="128" />
				<flag name="ExternalFunctionCall" value="256" />
				<flag name="ExternalFunctionParameters" value="512" />
				<flag name="ExternalFunctionReturnValue" value="1024" />
				<flag name="ExternalFunctionReturn" value="2048" />
				<flag name="MvDOEnter" value="4096" />
				<flag name="MvDOExit" value="8192" />
				<flag name="MvCALL" value="1048576" />
				<flag name="MvSMTP" value="2097152" />
				<flag name="RequestStart" value="33554432" />
				<flag name="RequestEnd" value="67108864" />
				<flag name="ApplicationTimeout" value="134217728" />
				<flag name="RuntimeError" value="268435456" />
				<flag name="FatalError" value="536870912" />
				<flag name="Trace" value="1073741824" />
			</attribute>
		</element>

		<element name="securityOptions">
			<attribute name="script" type="flags" defaultValue="None">
				<flag name="None" value="0" />
				<flag name="AllowSymbolicLinks" value="1" />
				<flag name="IgnoreSymbolicLinkOwnership" value="2" />
				<flag name="AllowAbsolutePaths" value="32" />
			</attribute>

			<attribute name="data" type="flags" defaultValue="None">
				<flag name="None" value="0" />
				<flag name="AllowSymbolicLinks" value="4" />
				<flag name="IgnoreSymbolicLinkOwnership" value="8" />
				<flag name="AllowAbsolutePaths" value="16" />
			</attribute>

			<attribute name="temp" type="flags" defaultValue="None">
				<flag name="None" value="0" />
				<flag name="AllowSymbolicLinks" value="256" />
				<flag name="IgnoreSymbolicLinkOwnership" value="512" />
			</attribute>

			<attribute name="ssl" type="flags" defaultValue="None">
				<flag name="None" value="0" />
				<flag name="DisableChainVerification" value="4096" />
				<flag name="DisableHostnameVerification" value="8192" />
				<flag name="EnableIPVerification" value="16384" />
			</attribute>
		</element>

		<element name="libraries">
			<collection addElement="add" removeElement="remove" clearElement="clear">
				<attribute name="type" type="enum" defaultValue="builtin">
					<enum name="builtin" value="0" />
					<enum name="database" value="1" />
					<enum name="commerce" value="2" />
					<enum name="system" value="3" />
				</attribute>

				<attribute name="code" type="string" />
				<attribute name="library" type="string" isUniqueKey="true" validationType="nonEmptyString" />
			</collection>
		</element>
	</sectionSchema>
</configSchema>
