<parameters>
	<parameter
		name="AppPath"
		defaultValue="Default Web Site/phpBB3"
		tags="iisapp">
		
		<parameterEntry
			type="ProviderPath"
			scope="iisapp"
			match="phpBB3" />
	</parameter>
	<!--ACLs-->
	<parameter
		name="aclCache"
		description="Sets the ACL on the cache/ folder"
		defaultValue="{AppPath}/cache"
		tags="Hidden">

		<parameterEntry
			type="ProviderPath"
			scope="setAcl"
			match="phpBB3/cache$" />
	</parameter>

	<parameter
		name="aclFiles"
		description="Sets the ACL on the files/ folder"
		defaultValue="{AppPath}/files"
		tags="Hidden">

		<parameterEntry
			type="ProviderPath"
			scope="setAcl"
			match="phpBB3/files$" />
	</parameter>

	<parameter
		name="aclStore"
		description="Sets the ACL on the store/ folder"
		defaultValue="{AppPath}/store"
		tags="Hidden">

		<parameterEntry
			type="ProviderPath"
			scope="setAcl"
			match="phpBB3/store$" />
	</parameter>

	<parameter
		name="aclAvatarUpload"
		description="Sets the ACL on the avatars/upload/ folder"
		defaultValue="{AppPath}/images/avatars/upload"
		tags="Hidden">

		<parameterEntry
			type="ProviderPath"
			scope="setAcl"
			match="phpBB3/images/avatars/upload$" />
	</parameter>

	<parameter
		name="aclConfig"
		description="Sets the ACL on the config.php file"
		defaultValue="{AppPath}/config.php"
		tags="Hidden">

		<parameterEntry
			type="ProviderPath"
			scope="setAcl"
			match="phpBB3/config.php$" />
	</parameter>

	<!-- SQL parameters -->
	<parameter  name="SQL Database Server"  description="Enter the database server (usually machine name ) "  defaultValue="."  tags="SQL">
	</parameter>

	<parameter name="SQL DatabaseServer Instance" description="Enter the database instance name" defaultValue="SQLExpress" tags="SQL">
	</parameter>
	<!-- Read database server from config.php . Update 'dbhost' in config.php on publish -->
	<parameter name="SQL Automatic DatabaseServer" defaultValue="dbhost = '{SQL Database Server}\\{SQL DatabaseServer Instance}';" tags="Hidden,SQL">
		<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbhost\s*=\s*'([^']*)'\s*;" />
	</parameter>
	<parameter
		name="SQL DatabaseName" description="Database name for your application." defaultValue="phpbb" tags="SQL, dbName">

		<parameterEntry type="TextFile" scope="install/mssql.sql" match="PlaceHolderForDb" />   
	</parameter>
	<!-- Read database name from config.php . Update 'dbname' in config.php on publish -->
	<parameter name="SQL Automatic DatabaseName" defaultValue="dbname = '{SQL DatabaseName}';" tags="Hidden,SQL">
		<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbname\s*=\s*'([^']*)'\s*;" />
	</parameter>
  
	<parameter
		name="SQL DatabaseAdministrator"
		description="Database server administartor username."
		defaultValue="sa"
		tags="SQL, DbAdminUsername" >
	</parameter>

	<parameter
		name="SQL DatabaseAdministratorPassword"
		description="Database server administrator password."
		tags="Password,SQL,DbAdminPassword">
	</parameter>

	<parameter
		name="SQL Database Username"
		description="Username to access your database."
		defaultValue="phpbb"
		tags="SQL, DbUsername">

		<parameterEntry
			type="TextFile"
			scope="install/mssql.sql"
			match="PlaceHolderForUser" />
	</parameter>
	<!-- Read database user from config.php . Update 'dbuser' in config.php on publish -->
	<parameter name="SQL Automatic Database User" defaultValue="dbuser = '{SQL Database Username}';" tags="Hidden,SQL">
		<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbuser\s*=\s*'([^']*)'\s*;" />
	</parameter>
  
	<parameter
		name="SQL Database Password"
		description="Password for your phpBB database. (Must be at least 8 characters, contain at least one lower case letter, one upper case letter and one digit)"
		tags="New, Password,SQL,  DbUserPassword">

		<parameterValidation
			type = "RegularExpression"   
			validationString = "^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$" />

		<parameterEntry
			type="TextFile"
			scope="install/mssql.sql"
			match="PlaceHolderForPassword" />
	</parameter>

	<!-- Read database user password from config.php . Update 'dbpasswd' in config.php on publish -->
	<parameter name="SQL Automatic Database Password" defaultValue="dbpasswd = '{SQL Database Password}';" tags="Hidden,SQL">
		<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbpasswd\s*=\s*'([^']*)'\s*;" />
	</parameter>

	<!-- SQL Connection string -->
	<parameter
		name="SQL ConnectionString"
		description="Automatically sets the connection string for the connection request."
		defaultValue="Server={SQL Database Server}\{SQL DatabaseServer Instance};Database={SQL DatabaseName};uid={SQL DatabaseAdministrator};Pwd={SQL DatabaseAdministratorPassword};"
		tags="Hidden,SQLConnectionString,Validate">

		<parameterEntry
			type="ProviderPath"
			scope="dbfullsql"
			match="install/mssql.sql" />
	</parameter>

	<parameter
		name="SQL Database type"
		description="SQL database type"
		defaultValue="mssql"
		tags="SQL,Hidden">
	</parameter>

	<!-- MYSQL parameters -->
	<parameter
		name="MySQL Database Server"
		description="Enter the hostname"
		defaultValue="localhost"
		tags="MySQL, dbServer">

		<parameterEntry
			type="TextFile"
			scope="install/mysql.sql"
			match="PlaceHolderForServer" />
	</parameter>

	<!-- Read database server from config.php . Update 'dbhost' in config.php on publish -->
	<parameter name="Automatic MySQL DatabaseServer" defaultValue="dbhost = '{MySQL Database Server}';" tags="Hidden,MySQL">
		<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbhost\s*=\s*'([^']*)'\s*;" />
	</parameter>
  
	<parameter
		name="MySQL Database Name"
		description="Database Name for your application."
		defaultValue="phpbb"
		tags="MySQL, dbName">

		<parameterEntry
			type="TextFile"
			scope="install/mysql.sql"
			match="PlaceHolderForDb"  />
	</parameter>
	<!-- Read database name from config.php . Update 'dbname' in config.php on publish -->
	<parameter name="Automatic MySQL Database Name" defaultValue="dbname = '{MySQL Database Name}';" tags="Hidden,MySQL">
		<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbname\s*=\s*'([^']*)'\s*;" />
	</parameter>

	<parameter
		name="MySQL Database Username"
		description="Username to access your phpBB database."
		defaultValue="phpbb"
		tags="MySQL, DbUsername">

		<parameterEntry
			type="TextFile"
			scope="install/mysql.sql"
			match="PlaceHolderForUser" />
	</parameter>
	<!-- Read database user from config.php . Update 'dbuser' in config.php on publish -->
	<parameter name="Automatic MySQL Database User" defaultValue="dbuser = '{MySQL Database Username}';" tags="Hidden,MySQL">
		<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbuser\s*=\s*'([^']*)'\s*;" />
	</parameter>

	<parameter
		name="MySQL Database Password"
		description="Password for your phpBB database. (Minimum 4 characters)"
		tags="New, Password,MySQL,DbUserPassword">

		<parameterValidation
			type = "RegularExpression"
			validationString = "^.{4,}$" />

		<parameterEntry
			type="TextFile"
			scope="install/mysql.sql"
			match="PlaceHolderForPassword" />
		</parameter>
		<!-- Read database password from config.php . Update 'dbpasswd' in config.php on publish -->
		<parameter name="MySQL Automatic Database Password" defaultValue="dbpasswd = '{MySQL Database Password}';" tags="Hidden,MySQL">
			<parameterEntry kind="TextFile" scope="\\config\.php$" match="dbpasswd\s*=\s*'([^']*)'\s*;" />
		</parameter>

	<!-- MySQL admin credentials -->
	<parameter
		name="MySQL Database Administrator"
		description="Database administrator username."
		defaultValue="root"
		tags="MySQL, DbAdminUsername" >
	</parameter>
	<parameter
		name="MySQL Database Administrator Password"
		description="Database administrator password."
		tags="Password,MySQL,DbAdminPassword" >
	</parameter>

	<!-- MySQL Connectionstring -->
	<parameter
		name="MySQLConnectionString"
		description="Automatically sets the connection string for the connection request."
		defaultValue="Server={MySQL Database Server};Database={MySQL Database Name};uid={MySQL Database Administrator};Pwd={MySQL Database Administrator Password};"
		tags="Hidden,MySQLConnectionString,Validate">

		<parameterEntry
			type="ProviderPath"
			scope="dbmysql"
			match="install/mysql.sql" />
	</parameter>
</parameters>
