<?xml version="1.0" encoding="utf-8"?>
<extension
	type="module"
	version="3.0.1"
	client="site"
	method="upgrade">
	<name>Simple File Upload v1.3 (for Joomla 3)</name>
	<author>Anders Wasen</author>
	<creationDate>January 2011</creationDate>
	<copyright>Copyright (C) 2011-2012 Anders Wasén. All rights reserved.</copyright>
	<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
	<authorEmail>awasen@gmail.com</authorEmail>
	<authorUrl>wasen.net</authorUrl>
	<version>1.3</version>
	<description>A simple upload module. Will allow a user to upload a file to the given folder fetched from the parameter settings.</description>
	<files>
		<filename module="mod_simplefileuploadv1.3">mod_simplefileuploadv1.3.php</filename>
		<filename>index.html</filename>
		<filename>helper.php</filename>
		<filename>mod_simplefileupload.css</filename>
		<folder>tmpl</folder>
		<folder>elements</folder>
		<folder>images</folder>
	</files>
	<languages>
		<language tag="en-GB">en-GB.mod_simplefileuploadv1.3.ini</language>
		<language tag="fr-FR">fr-FR.mod_simplefileuploadv1.3.ini</language>
		<language tag="sv-SV">sv-SV.mod_simplefileuploadv1.3.ini</language>
		<language tag="de-DE">de-DE.mod_simplefileuploadv1.3.ini</language>
		<language tag="it-IT">it-IT.mod_simplefileuploadv1.3.ini</language>
		<language tag="es-ES">es-ES.mod_simplefileuploadv1.3.ini</language>
		<language tag="lt-LT">lt-LT.mod_simplefileuploadv1.3.ini</language>
		<language tag="el-GR">el-GR.mod_simplefileuploadv1.3.ini</language>
		<language tag="nl-NL">nl-NL.mod_simplefileuploadv1.3.ini</language>
	</languages>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field name="upload_donate" type="donate" default="" label="Do you like it?" description="Feel like showing your appreciation?" addfieldpath="/modules/mod_simplefileuploadv1.3/elements"/>
				<field name="spacer0" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"/>
				<field name="upload_location" type="text" default="./images/" label="Default Upload Location" description="This is the directory where uploaded files are placed if there are no user directories given below (NB! Server path, not web URL)"/>
				<field name="upload_maxsize" type="text" default="100000" label="Max. Upload Size (bytes)" description="This is the maximum allowed upload file size in bytes"/>
				<field name="upload_capthca" type="radio" default="0" label="Use Captcha" description="Force the user to add a Captcha code to be able to upload.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_capthcacase" type="radio" default="0" label="CaSe-iNsEnSiTiVe Captcha" description="Ignore case for Captcha code.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_capthcacasemsg" type="radio" default="0" label="Show message for CaSe-iNsEnSiTiVe Captcha" description="Show a small text that Captcha code is CaSe-insensitive (Only when CaSe-iNsEnSiTiVe Captcha is used).">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_email" type="text" default="" label="Send e-mail at upload" description="If you want an e-mail confirmation sent out when there is a new upload enter the e-mail address here (use comma between addresses to add more than one). Leave it blank to not send e-mail."/>
				<field name="upload_emailmsg" type="radio" default="0" label="Show 'message sent' to user" description="Write 'message sent' on pop-up so user knows Admin has been notified.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_emailhtml" type="radio" default="1" label="Use HTML formated e-mail" description="Send e-mail in HTML format, else plain-text is used.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="spacer1" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br/&gt;&lt;b&gt;File and Security Settings&lt;/b&gt;"/>
				<field name="upload_filetypes" type="text" default="image/gif;image/jpeg;image/pjpeg;image/png;image/x-png" label="Allowed filetypes (separate by semi-colon). &lt;br/&gt;Asterisk (*) allows any type." description="This is a list of allowed filetypes (separated by semi-colon). Put a [*] (asterisk) to allow any type."/>
				<field name="upload_blacklist" type="text" default=".php .php3 .php4 .php5 .php6 .phtml .pl .py .jsp .asp .htm .html .shtml .sh .cgi .exe .bat .cmd" label="Blacklisted file-extensions (separate by space)" description="This is a list of blacklisted file extensions (separated by semi-colon). Leave it blank to allow any type."/>
				<field name="upload_doubleext" type="radio" default="1" label="Block double extension" description="This blocks any double extension upload, e.g. MyFile.php.jpg, MyFile.cgi.gif, which is commonly used to try and insert hostile code. It is strongly recommended to block this!">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_phpext" type="radio" default="1" label="Block double PHP extension" description="This blocks any double extension upload using filename.php.*** which is commonly used to try and insert hostile code. It is strongly recommended to block this!">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_gifcomment" type="radio" default="1" label="Block PHP GIF comments" description="This blocks any GIF comments that contains PHP tags. It is strongly recommended to block this!">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="spacer2" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"/>
				<field name="upload_fileexist" type="radio" default="2" label="If file exist" description="Operation to take incase the uploaded file already exists. Backup - Copies to old file with a new name (adds date); Replace - Removes the existing file; Fail - Notify user the upload failed due to existing file.">
					<option value="2">Backup</option>
					<option value="1">Replace</option>
					<option value="0">Fail</option>
				</field>
				<field name="upload_multi" type="radio" default="0" label="Allow multiple upload" description="Allow user to add files dymamically and upload at the same time.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_maxmulti" type="text" default="" label="Max. for multiple uploads" description="This is the maximum allowed number of files to upload at one time. Leave blank for unlimited."/>
				<field name="upload_startmulti" type="text" default="" label="Number of start for multiple" description="This is the number of files to show from start. Leave blank or zero to only show one."/>
			</fieldset>
		</fields>
		<fields name="params">
			<fieldset name="advanced">
				<field name="upload_useformsfields" type="radio" default="0" label="Use Form Fields" description="Shows the user text-boxes to fill in for each file they want to upload.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_formfields" type="text" default="Label;Date" label="Form fields" description="You can add fields for the user to fill in with information about the uploaded files. Fields can only be text-boxes and names separated by semi-colon can only contain letters A-Z, 0-9, space, dash (-) and underscore (_)."/>
				<field name="upload_formfieldsfile" type="text" default="" label="Form fields file name" description="You can add all Form Fields information into the same file (for some image galleries). Add a file name and all information will get collected into the same file.  File name will be the first parameter, followed by the Form Fields."/>
				<field name="upload_formfieldsdiv" type="text" default="|" label="Form fields divider" description="You can add a Form Fields divider for the above file (for some image galleries a pipe sign is used)."/>
				
				<field name="upload_showdircontent" type="radio" default="0" label="Show files in directory" description="Shows a list of files in the pop-up after uploading.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_disablegdlib" type="radio" default="0" label="Disable the GD library functions" description="This will mean you are not able to resize images, create thumbs, but it will boost performance, especially on large size files.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_disablegdthreshold" type="text" default="0" label="GD library size limit" description="This is the threshold (max size in bytes) for where GD library should not be used. Set to zero for no threshold."/>
				<field name="spacer3" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"/>
				<field name="upload_username" type="text" default="" label="Username for validation" description="You can set a username (not Joomla user) that must match this for a user to be allowed to upload files."/>
				<field name="upload_password" type="text" default="" label="Password" description="This is the password to go wih the above user."/>
				<field name="spacer4" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"/>
				<field name="upload_jqueryinclude" type="radio" default="0" label="Load FancyBox through Joomla" description="This will load FancyBox through Joomla or nativly (hard).">
					<option value="0">Joomla</option>
					<option value="1">Include</option>
				</field>
				<field name="upload_jquery" type="radio" default="1" label="Load FancyBox" description="Load FancyBox or not. If you have several extensions using FancyBox you must only load it once.">
					<option value="1">Yes</option>
					<option value="2">No</option>
				</field>
				
				<field name="upload_nohtmlencoding" type="radio" default="0" label="Disable htmlentities for form fields" description="This will not use htmlentities for Form Fields. You will then get data saved as the inputted data instead of html encoded.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_replacetag" type="radio" default="0" label="Replace tags in Form Fields text" description="Replace any tag (less-than, greater-than) to html entities. This might be good if htmlentities is set to disabled to avoid risk of hacking.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_unzip" type="radio" default="0" label="Allow unzip/untar on server" description="Use unzip/untar for archives (going to Upload Location above).">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<!--field name="settingbackup" type="settings" default="" label="Backup/Restore all settings" description="You can save a copy of all settings and use that to restore back if you update or move the Simple FIle Upload module."/-->
			</fieldset>
		</fields>
		<fields name="params">
			<fieldset name="other" label="Other Settings">
				<field name="upload_mailfrom" type="text" default="noreply@simplefileupload.com" label="From e-mail address" description="If you are having problems sending e-mails from Simple File Upload try adding a &quot;real&quot; e-mail address form teh same domain as your server."/>
				<field name="upload_redirect" type="text" default="" label="Redirect URL" description="A URL for redirect of browser after upload. Can not be used with pop-up or advanced pop-up."/>
				<field name="upload_stdbrowse" type="radio" default="0" label="Standard Browse button" description="Use the standard Browse button and not image">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_filewidth" type="text" default="12" label="File textbox width (chars)" description="The width in number of characters of the file text-box (only for the standard browse button)."/>
				<field name="spacer5" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br/&gt;&lt;b&gt;CAPTCHA Settings&lt;/b&gt;"/>
				<field name="upload_capthcaheight" type="text" default="40" label="Captcha image height" description="The height of the Captcha image."/>
				<field name="upload_capthcawidth" type="text" default="120" label="Captcha image width" description="The width of the Captcha image."/>
				<field name="upload_capthcabg" type="text" default="120-192" label="Captcha Background colors (RGB 0-255)" description="You can set the background color for the CAPTCHA image. Start value and end value must be set, values allowed are 0-255 where 0 is black and 255 is white. Color is then randomized using start-end values."/>
				<field name="spacer6" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br/&gt;&lt;b&gt;PopUp Settings&lt;/b&gt;"/>
				<field name="upload_bgcolor" type="text" default="#e8edf1" label="Pop-up background color" description="The background color of the information pop-up"/>
				<field name="upload_popshowpath" type="radio" default="1" label="Show filename/path" description="Show the filename and path of uploaded file.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_popcaptchamsg" type="radio" default="1" label="Show faulty Captcha pop-up" description="Show the message about faulty Captcha in the pop-up,not in the Module window.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_popshowbytes" type="radio" default="0" label="Show file-size in bytes" description="Show the file-size in bytes.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_showerrmsg" type="radio" default="1" label="Show error message" description="Show a detailed error message to the user.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="spacer7" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br/&gt;&lt;b&gt;Image Settings&lt;/b&gt;"/>
				<field name="upload_maximgwidth" type="text" default="" label="Max. pixel width for image" description="(NB! Requires GD Libraries) If this value (in pixels) for an image, width or height, is exceeded the image will be resized to this set value."/>
				<field name="upload_maximgheight" type="text" default="" label="Max. pixel height for image" description="(NB! Requires GD Libraries) If this value (in pixels) for an image, width or height, is exceeded the image will be resized to this set value."/>
				<field name="upload_compressimg" type="text" default="" label="Compression ratio for image" description="(NB! Requires GD Libraries) Compress JPEG and PNG image to this value (between 0-100 where 100 is best quality and 90 is default). Leave blank to leave JPEG image as uploaded original compression. Image quality WILL get impacted!"/>
				<field name="upload_thumbcreate" type="radio" default="0" label="Create thumbnail image" description="(NB! Requires GD Libraries) Automatically create thumbnail images.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_thumbsize" type="text" default="40x40" label="Pixel size for thumbnail" description="(NB! Requires GD Libraries) The pixel size for a thumbnail of an image, give size as e.g. 30x50 where 30 is the width and 50 the height."/>
				<field name="upload_thumbname" type="text" default="sfuthumb" label="Thumbnail postfix name" description="(NB! Requires GD Libraries) This is the name to be appended to the original filename for thumbnails. The thumbnail is saved in teh same directory as the original image."/>
				<field name="sfu_autorefreshsfl" type="radio" default="0" label="Auto-refresh Simple File Lister" description="If you are using Simple File Lister and are uploading to a moitored directory Simple File Upload can automaticaly refresh the file list.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="spacer8" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"/>
				<field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="Module Class Suffix"/>
				<field name="upload_debug" type="radio" default="0" label="Show debug messages" description="Will post several messages which will help debugging in case of any problem.">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
			</fieldset>
		</fields>
		<fields name="params" addfieldpath="/modules/mod_simplefileuploadv1.3/elements">
			<fieldset name="userdirs" label="User Directories">
				<field name="settingids" type="allowedusers" default="" label="Allowed users" description="This is a list of users allowed to upload files. All other users (and guests if the module is Public) will see a message that they are not allowed to upload files. NB! This list is not connected to User Named Directories or User Defined Directories!"/>
				<field name="spacer9" type="spacer" label="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br/&gt;&lt;b&gt;User Named Directories and User Defined Directories&lt;/b&gt;"/>
				<field name="upload_usernameddir" type="radio" default="0" label="Use User Named Directories" description="Will use sub-directory for selected users named as username">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_usernameddirdefault" type="radio" default="0" label="ONLY show user named directory" description="Will omit the default directory from directory list. Directory list will only be shown if User Defined Directory is also used">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="upload_userlocation" type="text" default="./users/" label="User named directories root path" description="This is the directory where uploaded files for user specific files are placed (NB! Server path, not web URL)"/>
				<field name="upload_createdir" type="radio" default="0" label="Allow Create Directory (if missing)" description="Will allow SFU to create User directories, else the directories must be manually created">
					<option value="0">No</option>
					<option value="1">Yes</option>
				</field>
				<field name="settingidsund" type="allowedusers" default="" label="User named directories for these users" description="This is a list of users who will have user named directories."/>
				<field name="settingidsudd" type="udd" default="" label="Userdefined directories for these users" description="This is a list of users who will have user defined directories."/>
				<field name="cleanup" type="donate" default="" label="" description=""/>
			</fieldset>
		</fields>
	</config>
</extension>
