<?xml version="1.0" encoding="utf-8"?>
<install type="plugin" group="system" version="1.6">
	<name>PLG_SYSTEM_SOURCERER</name>
	<description>PLG_SYSTEM_SOURCERER_DESC</description>
	<version>2.11.1</version>
	<creationDate>October 2011</creationDate>
	<author>NoNumber! (Peter van Westen)</author>
	<authorEmail>peter@nonumber.nl</authorEmail>
	<authorUrl>http://www.nonumber.nl</authorUrl>
	<copyright>Copyright © 2011 NoNumber! All Rights Reserved</copyright>
	<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>

	<!-- Files -->
	<files>
		<filename plugin="sourcerer">sourcerer.php</filename>
		<filename>helper.php</filename>
		<filename>index.html</filename>
		<folder>images</folder>
	</files>

	<!-- Parameters -->
	<config>
		<fields name="params" addfieldpath="/plugins/system/nnframework/fields">
			<fieldset name="basic">
				<field name="@loadlanguage" type="nn_loadlanguage" extension="plg_system_sourcerer" />
				<field name="@license" type="nn_license" extension="Sourcerer" />
				<field name="@version" type="nn_version" extension="Sourcerer" xml="/plugins/system/sourcerer/sourcerer.xml" />
				<field name="@header" type="nn_header"
					label="SOURCERER"
					description="SOURCERER_DESC"
					xml="/plugins/system/sourcerer/sourcerer.xml"
					image="/plugins/system/sourcerer/images/logo.png"
					image_w="60" image_h="80"
					url="http://www.nonumber.nl/sourcerer"
					help_url="http://www.nonumber.nl/sourcerer" />

				<field name="syntax_word" type="text" size="20" default="source" label="SRC_SYNTAX_WORD" description="SRC_SYNTAX_WORD_DESC" />
				<field name="debug_php" type="radio" default="0" label="SRC_ENABLE_PHP_DEBUGGING" description="SRC_ENABLE_PHP_DEBUGGING_DESC">
					<option value="0">JNO</option>
					<option value="1">JYES</option>
				</field>
			</fieldset>

			<fieldset name="SRC_SECURITY_SETTINGS_DEFAULT">
				<field name="@block_default" type="nn_block" description="SRC_SECURITY_SETTINGS_DEFAULT_DESC" />
				<field name="@block_default_css_a" type="nn_block" start="1" label="SRC_CSS" />
					<field name="enable_css" type="radio" default="1" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC">
						<option value="0">JNO</option>
						<option value="1">JYES</option>
					</field>
				<field name="@block_default_css_b" type="nn_block" end="1" />

				<field name="@block_default_js_a" type="nn_block" start="1" label="SRC_JAVASCRIPT" />
					<field name="enable_js" type="radio" default="1" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC">
						<option value="0">JNO</option>
						<option value="1">JYES</option>
					</field>
				<field name="@block_default_js_b" type="nn_block" end="1" />

				<field name="@block_default_php_a" type="nn_block" start="1" label="SRC_PHP" />
					<field name="enable_php" type="radio" default="1" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC">
						<option value="0">JNO</option>
						<option value="1">JYES</option>
					</field>
					<field name="@toggler_default_php_a" type="nn_toggler" param="enable_php" value="1" />
						<field name="forbidden_php" type="textarea" rows="3" cols="40" default="dl, escapeshellarg, escapeshellcmd, exec, passthru, popen, proc_close, proc_open, shell_exec, symlink, system" label="SRC_FORBIDDEN_PHP_FUNCTIONS" description="SRC_FORBIDDEN_PHP_FUNCTIONS_DESC" />
						<field name="forbidden_tags" type="nn_textareaplus" width="400" height="80" default="" label="SRC_FORBIDDEN_HTML_TAGS" description="SRC_FORBIDDEN_HTML_TAGS_DESC" />
					<field name="@toggler_default_php_b" type="nn_toggler" />
				<field name="@block_default_php_b" type="nn_block" end="1" />

			</fieldset>

			<fieldset name="SRC_SECURITY_SETTINGS_ARTICLES">
				<field name="@block_articles" type="nn_block" description="SRC_SECURITY_SETTINGS_ARTICLES_DESC" />
				<field name="articles_enable" type="radio" default="1" label="NN_ENABLE_IN_ARTICLES" description="SRC_ENABLE_IN_ARTICLES_DESC">
					<option value="0">JNO</option>
					<option value="1">JYES</option>
				</field>
				<field name="@toggler_articles_a" type="nn_toggler" param="articles_enable" value="1" />
					<field name="articles_security_level" type="nn_grouplevel" default="-1" multiple="1" show_all="1" label="SRC_SECURITY_LEVEL" description="SRC_SECURITY_LEVEL_DESC" />

					<field name="@block_articles_css_a" type="nn_block" start="1" label="SRC_CSS" />
						<field name="articles_enable_css" type="radio" default="-1" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
						<field name="@toggler_articles_css_a" type="nn_toggler" param="articles_enable_css" value="1,-1" />
							<field name="articles_security_level_default_css" type="radio" default="1" label="SRC_SECURITY_LEVEL">
								<option value="0">JSELECT</option>
								<option value="1">JDEFAULT</option>
							</field>
							<field name="@toggler_articles_security_css_a" type="nn_toggler" param="articles_security_level_default_css" value="0" />
								<field name="articles_security_level_css" type="nn_grouplevel" default="-1" multiple="1" show_all="1" label="SRC_CSS_SECURITY_LEVEL" description="SRC_CSS_SECURITY_LEVEL_DESC" />
							<field name="@toggler_articles_security_css_b" type="nn_toggler" />
						<field name="@toggler_articles_css_b" type="nn_toggler" />
					<field name="@block_articles_css_b" type="nn_block" end="1" />

					<field name="@block_articles_js_a" type="nn_block" start="1" label="SRC_JAVASCRIPT" />
						<field name="articles_enable_js" type="radio" default="-1" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
						<field name="@toggler_articles_js_a" type="nn_toggler" param="articles_enable_js" value="1,-1" />
							<field name="articles_security_level_default_js" type="radio" default="1" label="SRC_SECURITY_LEVEL">
								<option value="0">JSELECT</option>
								<option value="1">JDEFAULT</option>
							</field>
							<field name="@toggler_articles_security_js_a" type="nn_toggler" param="articles_security_level_default_js" value="0" />
								<field name="articles_security_level_js" type="nn_grouplevel" default="-1" multiple="1" show_all="1" label="SRC_JAVASCRIPT_SECURITY_LEVEL" description="SRC_JAVASCRIPT_SECURITY_LEVEL_DESC" />
							<field name="@toggler_articles_security_js_b" type="nn_toggler" />
						<field name="@toggler_articles_js_b" type="nn_toggler" />
					<field name="@block_articles_js_b" type="nn_block" end="1" />

					<field name="@block_articles_php_a" type="nn_block" start="1" label="SRC_PHP" />
						<field name="articles_enable_php" type="radio" default="-1" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
						<field name="@toggler_articles_php_a" type="nn_toggler" param="articles_enable_php" value="1,-1" />
							<field name="articles_security_level_default_php" type="radio" default="1" label="SRC_SECURITY_LEVEL">
								<option value="0">JSELECT</option>
								<option value="1">JDEFAULT</option>
							</field>
							<field name="@toggler_articles_security_php_a" type="nn_toggler" param="articles_security_level_default_php" value="0" />
								<field name="articles_security_level_php" type="nn_grouplevel" default="-1" multiple="1" show_all="1" label="SRC_PHP_SECURITY_LEVEL" description="SRC_PHP_SECURITY_LEVEL_DESC" />
							<field name="@toggler_articles_security_php_b" type="nn_toggler" />
							<field name="articles_forbidden_php" type="nn_textareaplus" width="400" height="80" default="" label="SRC_EXTRA_FORBIDDEN_PHP_FUNCTIONS" description="SRC_EXTRA_FORBIDDEN_PHP_FUNCTIONS_DESC" />
							<field name="articles_forbidden_tags" type="nn_textareaplus" width="400" height="80" default="" label="SRC_EXTRA_FORBIDDEN_HTML_TAGS" description="SRC_EXTRA_FORBIDDEN_HTML_TAGS_DESC" />
						<field name="@toggler_articles_php_b" type="nn_toggler" />
					<field name="@block_articles_php_b" type="nn_block" end="1" />
				<field name="@toggler_articles_b" type="nn_toggler" />
			</fieldset>

			<fieldset name="SRC_SECURITY_SETTINGS_COMPONENTS">
				<field name="@block_components" type="nn_block" description="SRC_SECURITY_SETTINGS_COMPONENTS_DESC" />
				<field name="components_enable" type="radio" default="1" label="NN_ENABLE_IN_COMPONENTS" description="SRC_ENABLE_IN_COMPONENTS_DESC">
					<option value="0">JNO</option>
					<option value="1">JYES</option>
				</field>
				<field name="@toggler_components_a" type="nn_toggler" param="components_enable" value="1" />
					<field name="components" type="nn_components" default="" admin="0" label="NN_DISABLE_ON_COMPONENTS" description="SRC_DISABLE_ON_COMPONENTS_DESC" />

					<field name="@block_components_css_a" type="nn_block" start="1" label="SRC_CSS" />
						<field name="components_enable_css" type="radio" default="-1" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
					<field name="@block_components_css_b" type="nn_block" end="1" />

					<field name="@block_components_js_a" type="nn_block" start="1" label="SRC_JAVASCRIPT" />
						<field name="components_enable_js" type="radio" default="-1" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
					<field name="@block_components_js_b" type="nn_block" end="1" />

					<field name="@block_components_php_a" type="nn_block" start="1" label="SRC_PHP" />
						<field name="components_enable_php" type="radio" default="-1" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
						<field name="@toggler_components_php_a" type="nn_toggler" param="components_enable_php" value="1,-1" />
							<field name="components_forbidden_php" type="nn_textareaplus" width="400" height="80" default="" label="SRC_EXTRA_FORBIDDEN_PHP_FUNCTIONS" description="SRC_EXTRA_FORBIDDEN_PHP_FUNCTIONS_DESC" />
							<field name="components_forbidden_tags" type="nn_textareaplus" width="400" height="80" default="" label="SRC_EXTRA_FORBIDDEN_HTML_TAGS" description="SRC_EXTRA_FORBIDDEN_HTML_TAGS_DESC" />
						<field name="@toggler_components_php_b" type="nn_toggler" />

						<field name="@hr_wizard" type="nn_hr" />

						<field name="@wizard" type="radio" default="0" label="SRC_SHOW_WIZARD">
							<option value="0">JNO</option>
							<option value="">JYES</option>
						</field>
						<field name="@toggler_wizard_a" type="nn_toggler" param="@wizard" value="" />
							<field name="@block_wizard" type="nn_block"
								label="&#84;&#104;&#101;&#32;&#68;&#97;&#121;&#32;&#111;&#102;&#32;&#116;&#104;&#101;&#32;&#83;&#111;&#117;&#114;&#99;&#101;&#114;&#101;&#114;"
								description="&#60;&#105;&#109;&#103;&#32;&#115;&#114;&#99;&#61;&#34;&#46;&#46;&#47;&#112;&#108;&#117;&#103;&#105;&#110;&#115;&#47;&#115;&#121;&#115;&#116;&#101;&#109;&#47;&#115;&#111;&#117;&#114;&#99;&#101;&#114;&#101;&#114;&#47;&#105;&#109;&#97;&#103;&#101;&#115;&#47;&#119;&#105;&#122;&#97;&#114;&#100;&#46;&#103;&#105;&#102;&#34;&#32;&#98;&#111;&#114;&#100;&#101;&#114;&#61;&#34;&#48;&#34;&#32;&#115;&#116;&#121;&#108;&#101;&#61;&#34;&#102;&#108;&#111;&#97;&#116;&#58;&#114;&#105;&#103;&#104;&#116;&#59;&#109;&#97;&#114;&#103;&#105;&#110;&#45;&#108;&#101;&#102;&#116;&#58;&#49;&#48;&#112;&#120;&#34;&#32;&#97;&#108;&#116;&#61;&#34;&#34;&#32;&#119;&#105;&#100;&#116;&#104;&#61;&#34;&#57;&#54;&#34;&#32;&#104;&#101;&#105;&#103;&#104;&#116;&#61;&#34;&#57;&#52;&#34;&#32;&#47;&#62;&#60;&#98;&#114;&#32;/&#62;&#72;&#101;&#32;&#115;&#116;&#97;&#110;&#100;&#115;&#32;&#117;&#112;&#32;&#97;&#110;&#100;&#32;&#104;&#101;&#32;&#119;&#97;&#107;&#101;&#115;,&#60;&#98;&#114;&#32;/&#62;&#72;&#101;&#32;&#97;&#100;&#100;&#115;&#32;&#97;&#110;&#100;&#32;&#104;&#101;&#32;&#116;&#97;&#107;&#101;&#115;,&#60;&#98;&#114;&#32;/&#62;&#72;&#101;&#32;&#109;&#105;&#120;&#101;&#115;&#32;&#97;&#110;&#100;&#32;&#104;&#101;&#32;&#115;&#104;&#97;&#107;&#101;&#115;,&#60;&#98;&#114;&#32;/&#62;&#72;&#101;&#32;&#101;&#120;&#112;&#108;&#111;&#100;&#101;&#115;&#32;&#97;&#110;&#100;&#32;&#104;&#101;&#32;&#98;&#97;&#107;&#101;&#115;,&#60;&#98;&#114;&#32;/&#62;&#66;&#117;&#116;&#32;&#104;&#101;&#32;&#109;&#97;&#107;&#101;&#115;&#32;&#110;&#111;&#32;&#109;&#105;&#115;&#116;&#97;&#107;&#101;&#115;!" />
						<field name="@toggler_wizard_b" type="nn_toggler" />
					<field name="@block_components_php_b" type="nn_block" end="1" />
				<field name="@toggler_components_b" type="nn_toggler" />
			</fieldset>

			<fieldset name="SRC_SECURITY_SETTINGS_OTHER_AREAS">
				<field name="@block_otherareas" type="nn_block" description="SRC_SECURITY_SETTINGS_OTHER_AREAS_DESC" />
				<field name="other_enable" type="radio" default="1" label="NN_ENABLE_OTHER_AREAS" description="SRC_ENABLE_OTHER_AREAS_DESC">
					<option value="0">JNO</option>
					<option value="1">JYES</option>
				</field>
				<field name="@toggler_otherareas_a" type="nn_toggler" param="other_enable" value="1" />
					<field name="@block_otherareas_css_a" type="nn_block" start="1" label="SRC_CSS" />
						<field name="other_enable_css" type="radio" default="-1" label="SRC_ALLOW_CSS_TAGS" description="SRC_ALLOW_CSS_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
					<field name="@block_otherareas_css_b" type="nn_block" end="1" />

					<field name="@block_otherareas_js_a" type="nn_block" start="1" label="SRC_JAVASCRIPT" />
						<field name="other_enable_js" type="radio" default="-1" label="SRC_ALLOW_JAVASCRIPT_TAGS" description="SRC_ALLOW_JAVASCRIPT_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
					<field name="@block_otherareas_js_b" type="nn_block" end="1" />

					<field name="@block_otherareas_php_a" type="nn_block" start="1" label="SRC_PHP" />
						<field name="other_enable_php" type="radio" default="-1" label="SRC_ALLOW_PHP_TAGS" description="SRC_ALLOW_PHP_TAGS_DESC">
							<option value="0">JNO</option>
							<option value="1">JYES</option>
							<option value="-1">JDEFAULT</option>
						</field>
						<field name="@toggler_otherareas_php_a" type="nn_toggler" param="other_enable_php" value="1,-1" />
							<field name="other_forbidden_php" type="nn_textareaplus" width="400" height="80" default="" label="SRC_EXTRA_FORBIDDEN_PHP_FUNCTIONS" description="SRC_EXTRA_FORBIDDEN_PHP_FUNCTIONS_DESC" />
							<field name="other_forbidden_tags" type="nn_textareaplus" width="400" height="80" default="" label="SRC_EXTRA_FORBIDDEN_HTML_TAGS" description="SRC_EXTRA_FORBIDDEN_HTML_TAGS_DESC" />
						<field name="@toggler_otherareas_php_b" type="nn_toggler" />
					<field name="@block_otherareas_php_b" type="nn_block" end="1" />
				<field name="@toggler_otherareas_b" type="nn_toggler" />
			</fieldset>
		</fields>
	</config>
</install>