<?php

/**
 * Constants and Strings of Plugin
 *
 * This file initializes all constants and translatable strings of the plugin.
 *
 * @link /lib/wfu_constants.php
 *
 * @package Iptanus File Upload Plugin
 * @subpackage Core Components
 * @since 2.1.2
 */

if ( ! defined( 'ABSPATH' ) ) exit;

$siteurl = site_url();

/**
 * Translatable Strings Initialization.
 *
 * This function initializes all translatable strings of the plugin.
 *
 * @since 4.7.0
 */
function wfu_initialize_i18n_strings() {
	if ( defined("WFU_I18_LOADED") ) return;
	DEFINE("WFU_I18_LOADED", 1);
	//plugin default values
	DEFINE("WFU_UPLOADTITLE", __('Upload files', 'wp-file-upload'));
		DEFINE("WFU_SELECTBUTTON", __('Select File', 'wp-file-upload'));
		DEFINE("WFU_UPLOADBUTTON", __('Upload File', 'wp-file-upload'));
	DEFINE("WFU_NOTIFYSUBJECT", __('File Upload Notification', 'wp-file-upload'));
	DEFINE("WFU_NOTIFYMESSAGE", __("Dear Recipient,%%n%%%%n%%   This is an automatic delivery message to notify you that a new file has been uploaded.%%n%%%%n%%Best Regards", 'wp-file-upload'));
	DEFINE("WFU_SUCCESSMESSAGE", __('File %%filename%% uploaded successfully', 'wp-file-upload'));
	DEFINE("WFU_WARNINGMESSAGE", __('File %%filename%% uploaded successfully but with warnings', 'wp-file-upload'));  
	DEFINE("WFU_ERRORMESSAGE", __('File %%filename%% not uploaded', 'wp-file-upload'));
	DEFINE("WFU_WAITMESSAGE", __('File %%filename%% is being uploaded', 'wp-file-upload'));  
	DEFINE("WFU_USERDATALABEL", __('Your message', 'wp-file-upload')."|t:text|s:left|r:0|a:0|p:inline|d:");
	DEFINE("WFU_CAPTCHAPROMPT", __('Please fill in the above words: ', 'wp-file-upload'));
	DEFINE("WFU_UPLOADMEDIABUTTON", __('Upload Media', 'wp-file-upload'));
	DEFINE("WFU_VIDEONAME", __('videostream', 'wp-file-upload'));
	DEFINE("WFU_IMAGENAME", __('screenshot', 'wp-file-upload'));
	DEFINE("WFU_CONSENTQUESTION", __('By activating this option I agree to let the website keep my personal data', 'wp-file-upload'));
	DEFINE("WFU_CONSENTREJECTMESSAGE", __('You have denied to let the website keep your personal data. Upload cannot continue!', 'wp-file-upload'));
	DEFINE("WFU_CONSENTYES", __('Yes', 'wp-file-upload'));
	DEFINE("WFU_CONSENTNO", __('No', 'wp-file-upload'));
	//browser default values
	DEFINE("WFU_FILETITLE", __('File', 'wp-file-upload'));
	DEFINE("WFU_DATETITLE", __('Date', 'wp-file-upload'));
	DEFINE("WFU_SIZETITLE", __('Size', 'wp-file-upload'));
	DEFINE("WFU_USERTITLE", __('User', 'wp-file-upload'));
	DEFINE("WFU_POSTTITLE", __('Page', 'wp-file-upload'));
	DEFINE("WFU_FIELDSTITLE", __('User Fields', 'wp-file-upload'));
	DEFINE("WFU_DOWNLOADLABEL", __('Download', 'wp-file-upload'));
	DEFINE("WFU_DOWNLOADTITLE", __('Download this file', 'wp-file-upload'));
	DEFINE("WFU_DELETELABEL", __('Delete', 'wp-file-upload'));
	DEFINE("WFU_DELETETITLE", __('Delete this file', 'wp-file-upload'));
	DEFINE("WFU_REMOVEREMOTELABEL", __('Remove Remote', 'wp-file-upload'));
	DEFINE("WFU_REMOVEREMOTETITLE", __('Remove this remote file', 'wp-file-upload'));
	DEFINE("WFU_SORTTITLE", __('Sort list based on this column', 'wp-file-upload'));
	DEFINE("WFU_GUESTTITLE", __('guest', 'wp-file-upload'));
	DEFINE("WFU_UNKNOWNTITLE", __('unknown', 'wp-file-upload'));
	//error messages
	DEFINE("WFU_ERROR_ADMIN_FTPDIR_RESOLVE", __("Error. Could not resolve ftp target filedir. Check the domain in 'ftpinfo' attribute.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPINFO_INVALID", __("Error. Invalid ftp information. Check 'ftpinfo' attribute.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPINFO_EXTRACT", __("Error. Could not extract ftp information from 'ftpinfo' attribute. Check its syntax.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPFILE_RESOLVE", __("Error. Could not resolve ftp target filename. Check the domain in 'ftpinfo' attribute.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPSOURCE_FAIL", __("Error. Could not open source file for ftp upload. Check if file is accessible.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPTRANSFER_FAIL", __("Error. Could not send data to ftp target file.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPHOST_FAIL", __("Error. Could not connect to ftp host. Check the domain in 'ftpinfo' attribute.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPLOGIN_FAIL", __("Error. Could not authenticate to ftp host. Check username and password in 'ftpinfo' attribute.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_SFTPINIT_FAIL", __("Error. Could not initialize sftp subsystem. Please check if the server supports sftp.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_SFTP_UNSUPPORTED", __("Error. The web server does not support sftp.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FTPS_UNSUPPORTED", __("Error. The web server does not support ftps.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_PHP_SIZE", __("Error. The upload size limit of PHP directive upload_max_filesize is preventing the upload of big files.\nPHP directive upload_max_filesize limit is: %s.\nTo increase the limit change the value of the directive from php.ini.\nIf you don't have access to php.ini, then try adding the following line to your .htaccess file:\n\nphp_value upload_max_filesize 10M\n\n(adjust the size according to your needs)\n\nThe file .htaccess is found in your website root directory (where index.php is found).\nIf your don't have this file, then create it.\nIf this does not work either, then contact your domain provider.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_PHP_TIME", __("The upload time limit of PHP directive max_input_time is preventing the upload of big files.\nPHP directive max_input_time limit is: %s seconds.\nTo increase the limit change the value of the directive from php.ini.\nIf you don't have access to php.ini, then add the following line to your .htaccess file:\n\nphp_value max_input_time 500\n\n(adjust the time according to your needs)\n\nThe file .htaccess is found in your website root directory (where index.php is found).\nIf your don't have this file, then create it.\nIf this does not work either, then contact your domain provider.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_DIR_PERMISSION", __("Error. Permission denied to write to target folder.\nCheck and correct read/write permissions of target folder.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_WRONGEXT", __("Error. This file was rejected because its extension is not correct. Its proper filename is: ", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_NOMIME", __("Error. This file was rejected because it does not have a MIME type.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_NOEXT", __("Error. This file was rejected because it does not have an extension.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_NOASSOCMIME", __("Error. This file was rejected because its extension does not have any associated MIME types.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_INVALIDMIME", __("Error. This file was rejected because its MIME type is invalid. Its MIME type is: ", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_MIMEUKNOWN", __("Error. This file was rejected because of an unknown error during MIME check.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_NOIMAGE", __("Error. This file was rejected because its not a valid image.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_HASSCRIPTTAGS", __("Error. This file was rejected because script tags were detected in its contents.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_HASHEURISTIC", __("Error. This file was rejected because heuristic patterns were detected in its contents.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_FILE_NOREADCONTENTS", __("Error. This file was rejected because its contents could not be read.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_DOS_ATTACK", __("Too many files are uploaded in a short period of time. This may be a Denial-Of-Service attack, so file was rejected. Please check the upload log for suspicious behaviour.", "wp-file-upload"));
	DEFINE("WFU_ERROR_DOS_ATTACK", __("File not uploaded in order to prevent overflow of the website. Please contact administrator.", "wp-file-upload"));
	DEFINE("WFU_ERROR_DIR_EXIST", __("Target folder doesn't exist.", "wp-file-upload"));
	DEFINE("WFU_ERROR_DIR_NOTEMP", __("Upload failed! Missing a temporary folder.", "wp-file-upload"));
	DEFINE("WFU_ERROR_DIR_ALLOW", __("Not allowed to upload to target folder.", "wp-file-upload"));
	DEFINE("WFU_ERROR_DIR_PERMISSION", __("Upload failed! Permission denied to write to target folder.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_ALLOW", __("File not allowed.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_REJECT", __("File is suspicious and was rejected.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_PLUGIN_SIZE", __("The uploaded file exceeds the file size limit.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_PLUGIN_2GBSIZE", __("The uploaded file exceeds 2GB and is not supported by this server.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_PHP_SIZE", __("Upload failed! The uploaded file exceeds the file size limit of the server. Please contact the administrator.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_PHP_TIME", __("Upload failed! The duration of the upload exceeded the time limit of the server. Please contact the administrator.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_HTML_SIZE", __("Upload failed! The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_PARTIAL", __("Upload failed! The uploaded file was only partially uploaded.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_NOTHING", __("Upload failed! No file was uploaded.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_WRITE", __("Upload failed! Failed to write file to disk.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_MOVE", __("Upload failed! Error occured while moving temporary file. Please contact administrator.", "wp-file-upload"));
	DEFINE("WFU_ERROR_FILE_CANCELLED", __("Upload cancelled!", "wp-file-upload"));
	DEFINE("WFU_ERROR_UPLOAD_STOPPED", __("Upload failed! A PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop; examining the list of loaded extensions with phpinfo() may help.", "wp-file-upload"));
	DEFINE("WFU_ERROR_UPLOAD_FAILED_WHILE", __("Upload failed! Error occured while attemting to upload the file.", "wp-file-upload"));
	DEFINE("WFU_ERROR_UPLOAD_FAILED", __("Upload failed!", "wp-file-upload"));
	DEFINE("WFU_ERROR_UPLOAD_NOFILESELECTED", __("No file!", "wp-file-upload"));
	DEFINE("WFU_ERROR_UPLOAD_CANCELLED", __("Upload failed! The upload has been canceled by the user or the browser dropped the connection.", "wp-file-upload"));
	DEFINE("WFU_ERROR_UNKNOWN", __("Upload failed! Unknown error.", "wp-file-upload"));
	DEFINE("WFU_ERROR_CONTACT_ADMIN", __("Please contact the administrator.", "wp-file-upload"));
	DEFINE("WFU_ERROR_REMOTESERVER_NORESULT", __("No result from remote server!", "wp-file-upload"));
	DEFINE("WFU_ERROR_JSONPARSE_FILEMESSAGE", __(" but with warnings", "wp-file-upload"));
	DEFINE("WFU_ERROR_JSONPARSE_MESSAGE", __("Warning: JSON parse error.", "wp-file-upload"));
	DEFINE("WFU_ERROR_JSONPARSE_ADMINMESSAGE", __("Upload parameters of this file, passed as JSON string to the handler, could not be parsed.", "wp-file-upload"));
	DEFINE("WFU_ERROR_JSONPARSE_HEADERMESSAGE", __("Warning: JSON parse error.", "wp-file-upload"));
	DEFINE("WFU_ERROR_JSONPARSE_HEADERADMINMESSAGE", __("UploadStates, passed as JSON string to the handler, could not be parsed.", "wp-file-upload"));
	DEFINE("WFU_ERROR_REDIRECTION_ERRORCODE0", __("Redirection to classic form functionality occurred due to unknown error.", "wp-file-upload"));
	DEFINE("WFU_ERROR_REDIRECTION_ERRORCODE1", __("Redirection to classic form functionality occurred because AJAX is not supported.", "wp-file-upload"));
	DEFINE("WFU_ERROR_REDIRECTION_ERRORCODE2", __("Redirection to classic form functionality occurred because HTML5 is not supported.", "wp-file-upload"));
	DEFINE("WFU_ERROR_REDIRECTION_ERRORCODE3", __("Redirection to classic form functionality occurred due to JSON parse error.", "wp-file-upload"));
	DEFINE("WFU_ERROR_ENABLE_POPUPS", __("Please enable popup windows from the browser's settings!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATA_EMPTY", __("cannot be empty!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATANUMBER_INVALID", __("number not valid!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATAEMAIL_INVALID", __("email not valid!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATACONFIRMEMAIL_NOMATCH", __("emails do not match!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATACONFIRMEMAIL_NOBASE", __("no base email field in group!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATACONFIRMPASSWORD_NOMATCH", __("passwords do not match!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATACONFIRMPASSWORD_NOBASE", __("no base password field in group!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATACHECKBOX_NOTCHECKED", __("checkbox unchecked!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATARADIO_NOTSELECTED", __("no option selected!", "wp-file-upload"));
	DEFINE("WFU_ERROR_USERDATALIST_NOITEMSELECTED", __("no item selected!", "wp-file-upload"));
	DEFINE("WFU_ERROR_SUBFOLDER_NOTSELECTED", __("No subfolder selected!", "wp-file-upload"));
	DEFINE("WFU_ERROR_SAME_PLUGINID", __("There are more than one instances of the plugin in this page with the same id. Please change it.", "wp-file-upload"));
	DEFINE("WFU_ERROR_PAGE_OBSOLETE", __("Cannot edit the shortcode because the page has been modified. Please reload the page.", "wp-file-upload"));
	DEFINE("WFU_ERROR_WEBCAM_NOTSUPPORTED", __("Your browser does not support webcam capture!", "wp-file-upload"));
	DEFINE("WFU_ERROR_WEBCAM_VIDEO_NOTSUPPORTED", __("Your browser does not support video recording from the webcam!", "wp-file-upload"));
	DEFINE("WFU_ERROR_WEBCAM_VIDEO_NOTHINGRECORDED", __("No video was recorded!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_OLDPHP", __("ERROR: Captcha not supported! You have an old PHP version. Upgrade your PHP or use RecaptchaV2 (no account).", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_MULTIPLE_NOTALLOWED", __("ERROR: Only one instance of RecaptchaV1 can exist on the same page. Please notify administrator.", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_MULTIPLE_NOTALLOWED_ADMIN", __("ERROR: Only one instance of RecaptchaV1 can exist on the same page. Please use RecaptchaV1 (no account).", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_NOSITEKEY", __("ERROR: No site key. Please contact administrator!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_NOSITEKEY_ADMIN", __("ERROR: No site key defined! Please go to the plugin settings in Dashboard to define Google Recaptcha keys.", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_NOCHALLENGE", __("Bad captcha image!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_NOINPUT", __("No input!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_EMPTY", __("Captcha not completed!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_WRONGCAPTCHA", __("Wrong captcha!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_REFRESHING", __("Error refreshing captcha!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_UNKNOWNERROR", __("Unknown captcha error!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_NOTSUPPORTED", __("Captcha not supported by your browser!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_MISSINGINPUTSECRET", __("the secret parameter is missing", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_INVALIDINPUTSECRET", __("the secret parameter is invalid or malformed", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_MISSINGINPUTRESPONSE", __("the response parameter is missing", "wp-file-upload"));
	DEFINE("WFU_ERROR_CAPTCHA_INVALIDINPUTRESPONSE", __("the response parameter is invalid or malformed", "wp-file-upload"));
	DEFINE("WFU_ERROR_REDIRECTION_NODRAGDROP", __("Please do not use drag drop due to an internal problem.", "wp-file-upload"));
	DEFINE("WFU_ERROR_CHUNKEDUPLOAD_UNIQUEIDEMPTY", __("Error during chunked upload. Unique ID empty in chunk %d", "wp-file-upload"));
	DEFINE("WFU_ERROR_CHUNKEDUPLOAD_NOTALLOWED", __("Chunked upload is not allowed!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CHUNKEDUPLOAD_ABORTED", __("Chunked upload aborted due to error in previous chunk!", "wp-file-upload"));
	DEFINE("WFU_ERROR_CHUNKEDUPLOAD_CONCATFAILED", __("Chunked upload failed, final file could not be created!", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_CHUNKWRITEFAILED", __("Could not write file chuck to destination on chunk %d", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_CHUNKENLARGEFAILED", __("Could not enlarge destination file on chunk %d", "wp-file-upload"));
	DEFINE("WFU_ERROR_ADMIN_CHUNKHANDLEFAILED", __("Could not open file handles on chunk %d", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DOWNLOADFILE_NOTALLOWED", __("You are not allowed to download this file!", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DOWNLOADFILE_NOTEXIST", __("File does not exist!", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DOWNLOADFILE_FAILED", __("Could not download file!", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DELETEFILE_NOTALLOWED", __("You are not allowed to delete this file!", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DELETEFILE_FAILED", __("File was not deleted!", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DELETEFILES_ALLFAILED", __("No file was deleted!", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DELETEFILES_SOMEFAILED", __("Some files were not deleted!", "wp-file-upload"));
	//warning messages
	DEFINE("WFU_WARNING_FILE_EXISTS", __("Upload skipped! File already exists.", "wp-file-upload"));
	DEFINE("WFU_WARNING_FILE_SUSPICIOUS", __("The extension of the file does not match its contents.", "wp-file-upload"));
	DEFINE("WFU_WARNING_ADMIN_FILE_SUSPICIOUS", __("Upload succeeded but the file is suspicious because its contents do not match its extension. Its proper filename is: ", "wp-file-upload"));
	DEFINE("WFU_WARNING_NOFILES_SELECTED", __("No files have been selected!", "wp-file-upload"));
	DEFINE("WFU_WARNING_CONSENT_NOTCOMPLETED", __("Please complete the consent question before continuing the upload!", "wp-file-upload"));
	DEFINE("WFU_WARNING_WPFILEBASE_NOTUPDATED_NOFILES", __("WPFilebase Plugin not updated because there were no files uploaded.", "wp-file-upload"));
	DEFINE("WFU_WARNING_NOTIFY_NOTSENT_NOFILES", __("Notification email was not sent because there were no files uploaded.", "wp-file-upload"));
	DEFINE("WFU_WARNING_NOTIFY_NOTSENT_NORECIPIENTS", __("Notification email was not sent because no recipients were defined. Please check notifyrecipients attribute in the shortcode.", "wp-file-upload"));
	DEFINE("WFU_WARNING_NOTIFY_NOTSENT_UNKNOWNERROR", __("Notification email was not sent due to an error. Please check notifyrecipients, notifysubject and notifymessage attributes for errors.", "wp-file-upload"));
	DEFINE("WFU_WARNING_REDIRECT_NOTEXECUTED_EMPTY", __("Redirection not executed because redirection link is empty. Please check redirectlink attribute.", "wp-file-upload"));
	DEFINE("WFU_WARNING_REDIRECT_NOTEXECUTED_FILESFAILED", __("Redirection not executed because not all files were successfully uploaded.", "wp-file-upload"));
	DEFINE("WFU_WARNING_POTENTIAL_DOS_EMAIL_SUBJECT", __("Potential Denial-Of-Service Attack on {SITE}", "wp-file-upload"));
	DEFINE("WFU_WARNING_POTENTIAL_DOS_EMAIL_MESSAGE", __("Hello admin\n\nThis is a message from Iptanus File Upload Plugin to notify you that a potential Denial-Of-Service attack has been detected on {SITE}.\n\nThe plugin detected more than {FILENUM} uploads within {INTERVAL} seconds.\n\nAll file uploads that exceed this limit are rejected to protect the website from overflowing.\n\nPlease check the upload history log in the plugin's area in Dashboard for any suspicious behaviour.\n\nA new message will follow if the situation remains.\n\nThanks", "wp-file-upload"));
	DEFINE("WFU_WARNING_ALT_IPTANUS_SERVER_ACTIVATED", __("You have activated an alternative insecure Iptanus Services Server. For details please contact info@iptanus.com.", "wp-file-upload"));
	DEFINE("WFU_WARNING_IPTANUS_SERVER_UNREACHABLE", __("Iptanus Services Server is unreachable. This may cause problems on some plugin functions. Please read this :article: for resolution.", "wp-file-upload"));
	//admin area messages
	DEFINE("WFU_DASHBOARD_ADD_SHORTCODE_REJECTED", __("Failed to add the shortcode to the page/post. Please try again. If the message persists, contact administrator.", "wp-file-upload"));
	DEFINE("WFU_DASHBOARD_EDIT_SHORTCODE_REJECTED", __("Failed to edit the shortcode because the contents of the page changed. Try again to edit the shortcode.", "wp-file-upload"));
	DEFINE("WFU_DASHBOARD_DELETE_SHORTCODE_REJECTED", __("Failed to delete the shortcode because the contents of the page changed. Try again to delete it.", "wp-file-upload"));
	DEFINE("WFU_DASHBOARD_PAGE_OBSOLETE", __("The page containing the shortcode has been modified and it is no longer valid. Please go back to reload the shortcode.", "wp-file-upload"));
	DEFINE("WFU_DASHBOARD_UPDATE_SHORTCODE_REJECTED", __("Failed to update the shortcode because the contents of the page changed. Go back to reload the shortcode.", "wp-file-upload"));
	DEFINE("WFU_DASHBOARD_UPDATE_SHORTCODE_FAILED", __("Failed to update the shortcode. Please try again. If the problem persists, go back and reload the shortcode.", "wp-file-upload"));
	//test messages
	DEFINE("WFU_TESTMESSAGE_MESSAGE", __('This is a test message', 'wp-file-upload'));
	DEFINE("WFU_TESTMESSAGE_ADMINMESSAGE", __('This is a test administrator message', 'wp-file-upload'));
	DEFINE("WFU_TESTMESSAGE_FILE1_HEADER", __('File testfile 1 under test', 'wp-file-upload'));
	DEFINE("WFU_TESTMESSAGE_FILE1_MESSAGE", __('File testfile 1 message', 'wp-file-upload'));
	DEFINE("WFU_TESTMESSAGE_FILE1_ADMINMESSAGE", __('File testfile 1 administrator message', 'wp-file-upload'));
	DEFINE("WFU_TESTMESSAGE_FILE2_HEADER", __('File testfile 2 under test', 'wp-file-upload'));
	DEFINE("WFU_TESTMESSAGE_FILE2_MESSAGE", __('File testfile 2 message', 'wp-file-upload'));
	DEFINE("WFU_TESTMESSAGE_FILE2_ADMINMESSAGE", __('File testfile 2 administrator message', 'wp-file-upload'));
	//variables tool-tips
	DEFINE("WFU_VARIABLE_TITLE_USERID", __("Insert variable %%userid%% inside text. It will be replaced by the id of the current user.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_USERNAME", __("Insert variable %%username%% inside text. It will be replaced by the username of the current user.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_USEREMAIL", __("Insert variable %%useremail%% inside text. It will be replaced by the email of the current user.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_FILENAME", __("Insert variable %%filename%% inside text. It will be replaced by the filename of the uploaded file.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_FILEPATH", __("Insert variable %%filepath%% inside text. It will be replaced by the full filepath of the uploaded file.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_BLOGID", __("Insert variable %%blogid%% inside text. It will be replaced by the blog id of the website.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_PAGEID", __("Insert variable %%pageid%% inside text. It will be replaced by the id of the current page.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_PAGETITLE", __("Insert variable %%pagetitle%% inside text. It will be replaced by the title of the current page.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_USERDATAXXX", __("Insert variable %%userdataXXX%% inside text. Select the user field from the drop-down list. It will be replaced by the value that the user entered in this field.", "wp-file-upload"));
	DEFINE("WFU_VARIABLE_TITLE_N", __("Insert variable %%n%% inside text to denote a line change.", "wp-file-upload"));
	//other plugin values
	DEFINE("WFU_WARNINGMESSAGE_NOSAVE", __('File %%filename%% uploaded successfully but not saved', 'wp-file-upload'));  
	DEFINE("WFU_NOTIFY_TESTMODE", __("Test Mode", "wp-file-upload"));
	DEFINE("WFU_SUBDIR_SELECTDIR", __("select dir...", "wp-file-upload"));
	DEFINE("WFU_SUBDIR_TYPEDIR", __("type dir", "wp-file-upload"));
	DEFINE("WFU_SUCCESSMESSAGE_DETAILS", __('Upload path: %%filepath%%', 'wp-file-upload'));
	DEFINE("WFU_FAILMESSAGE_DETAILS", __('Failed upload path: %%filepath%%', 'wp-file-upload'));
	DEFINE("WFU_USERDATA_REQUIREDLABEL", __(' (required)', 'wp-file-upload'));
	DEFINE("WFU_PAGEEXIT_PROMPT", __('Files are being uploaded. Are you sure you want to exit the page?', 'wp-file-upload'));
	DEFINE("WFU_MESSAGE_CAPTCHA_CHECKING", __("checking captcha...", "wp-file-upload"));
	DEFINE("WFU_MESSAGE_CAPTCHA_REFRESHING", __("refreshing...", "wp-file-upload"));
	DEFINE("WFU_MESSAGE_CAPTCHA_OK", __("correct captcha", "wp-file-upload"));
	DEFINE("WFU_CONFIRMBOX_CAPTION", __("click to continue the upload", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DELETEFILE_PROMPT", __("Are you sure you want to delete this file?", "wp-file-upload"));
	DEFINE("WFU_BROWSER_DELETEFILES_PROMPT", __("Are you sure you want to delete these files?", "wp-file-upload"));
	DEFINE("WFU_BROWSER_BULKACTION_TITLE", __("Bulk Actions", "wp-file-upload"));
	DEFINE("WFU_BROWSER_BULKACTION_LABEL", __("Apply", "wp-file-upload"));
	DEFINE("WFU_PAGINATION_PAGE", __("Page", "wp-file-upload"));
	DEFINE("WFU_PAGINATION_OF", __("of ", "wp-file-upload"));
	DEFINE("WFU_CANCEL_UPLOAD_PROMPT", __("Are you sure that you want to cancel the upload?", "wp-file-upload"));
	DEFINE("WFU_FILE_CANCEL_HINT", __("cancel upload of this file", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE0", __("Upload in progress", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE1", __("Upload in progress with warnings!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE2", __("Upload in progress but some files already failed!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE3", __("Upload in progress but no files uploaded so far!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE4", __("All files uploaded successfully", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE5", __("All files uploaded successfully but there are warnings!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE5_SINGLEFILE", __("File uploaded successfully but there are warnings!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE6", __("Some files failed to upload!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE7", __("All files failed to upload", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE7_SINGLEFILE", __("File failed to upload", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE8", __("There are no files to upload!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE9", __("Test upload message", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE10", __("JSON parse warning!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE11", __("please wait while redirecting...", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE12", __("Upload failed!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE13", __("Submitting data", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE14", __("Data submitted successfully!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE15", __("Data were not submitted!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE16", __("Cancelling upload", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE17", __("Upload cancelled!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE18", __("Upload succeeded!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE19", __("Upload completed but no files were saved!", "wp-file-upload"));
	DEFINE("WFU_UPLOAD_STATE19_SINGLEFILE", __("File was not saved due to personal data policy!", "wp-file-upload"));
	DEFINE("WFU_PAGE_PLUGINEDITOR_BUTTONTITLE", __("Open visual shortcode editor in new window", "wp-file-upload"));
	DEFINE("WFU_PAGE_PLUGINEDITOR_LOADING", __("loading visual editor", "wp-file-upload"));
	DEFINE("WFU_CONFIRM_CLEARFILES", __("Clear file list?", "wp-file-upload"));
	DEFINE("WFU_DROP_HERE_MESSAGE", __('DROP HERE', 'wp-file-upload'));
	//webcam values
	DEFINE("WFU_WEBCAM_RECVIDEO_BTN", __('record video', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_TAKEPIC_BTN", __('take a picture', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_TURNONOFF_BTN", __('turn webcam on/off', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_SWITCHCAM_BTN", __('switch camera', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_GOLIVE_BTN", __('go live again', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_STOPREC_BTN", __('end recording', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_PLAY_BTN", __('play', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_PAUSE_BTN", __('pause', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_GOBACK_BTN", __('go to the beginning', 'wp-file-upload'));
	DEFINE("WFU_WEBCAM_GOFWD_BTN", __('go to the end', 'wp-file-upload'));
	//widget values
	DEFINE("WFU_WIDGET_PLUGINFORM_TITLE", __('Iptanus File Upload Form', 'wp-file-upload'));
	DEFINE("WFU_WIDGET_PLUGINFORM_DESCRIPTION", __('Iptanus File Upload plugin uploader for sidebars', 'wp-file-upload'));
	DEFINE("WFU_WIDGET_SIDEBAR_DEFAULTTITLE", __('Upload Files', 'wp-file-upload'));


//}

/*********** Environment Variables ************/
//plugin default values
$GLOBALS["WFU_GLOBALS"] = array(
	"WFU_UPLOADID" => array( __('Default Upload ID', 'wp-file-upload'), "string", "1", __('The default upload ID of the uploader shortcode. It can be any integer from 1 and above.', 'wp-file-upload') ),
	"WFU_SINGLEBUTTON" => array( __('Default Single-Button Status', 'wp-file-upload'), "string", "false", __('The default single-button status of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_UPLOADROLE" => array( __('Default Upload Role', 'wp-file-upload'), "string", "all,guests", __('The default upload role of the uploader shortcode. It can be a comma-separated list of role slugs, including keywords \'all\' and \'guests\'.', 'wp-file-upload') ),
	"WFU_UPLOADPATH" => array( __('Default Upload Path', 'wp-file-upload'), "string", "uploads", __('The default upload path of the uploader shortcode. It must be a folder relative to wp-content dir.', 'wp-file-upload') ),
	"WFU_FITMODE" => array( __('Default Fit Mode', 'wp-file-upload'), "string", "fixed", __('The default fit mode of the uploader shortcode. It can be \'fixed\' or \'responsive\'.', 'wp-file-upload') ),
	"WFU_ALLOWNOFILE" => array( __('Default Allow No File Mode', 'wp-file-upload'), "string", "false", __('The default mode for allowing no file uploads. If it is set to \'true\' then an upload form can be submitted even if a file has not been selected. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_RESETMODE" => array( __('Default Reset Form Mode', 'wp-file-upload'), "string", "always", __('The default reset mode of the upload form. It can be \'always\', \'onsuccess\' or \'never\'.', 'wp-file-upload') ),
	"WFU_FORCEFILENAME" => array( __('Default Force Filename State', 'wp-file-upload'), "string", "false", __('The default force filename state (force plugin to leave filename unchanged) of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_UPLOADPATTERNS" => array( __('Default Upload Extensions', 'wp-file-upload'), "string", "*.*", __('The default allowed file extensions of the uploader shortcode. It can be a comma-separated list of wildcard extensions.', 'wp-file-upload') ),
	"WFU_MAXSIZE" => array( __('Default Maximum File Size', 'wp-file-upload'), "string", "50", __('The default maximum allowed file size of the uploader shortcode in Megabytes. It can be any positive number.', 'wp-file-upload') ),
	"WFU_ACCESSMETHOD" => array( __('Default Access Method', 'wp-file-upload'), "string", "normal", __('The default access method (of the website filesystem) of the uploader shortcode. It can be \'normal\' or \'ftp\'.', 'wp-file-upload') ),
	"WFU_FTPINFO" => array( __('Default FTP Access Information', 'wp-file-upload'), "string", "", __('The default FTP access parameters of the uploader shortcode. It\'s syntax is \'username:password@ftp_domain\'.', 'wp-file-upload') ),
	"WFU_USEFTPDOMAIN" => array( __('Default Use FTP Domain State', 'wp-file-upload'), "string", "false", __('The default use FTP domain state (use the FTP domain defined in ftpinfo to store the uploaded files) of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FTPPASSIVEMODE" => array( __('Default FTP Passive Mode State', 'wp-file-upload'), "string", "false", __('The default FTP passive mode (use passive mode or not for FTP access) of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FTPFILEPERMISSIONS" => array( __('Default FTP File Permissions', 'wp-file-upload'), "string", "", __('The default FTP passive mode (use passive mode or not for FTP access) of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_DUBLICATESPOLICY" => array( __('Default Duplicate File Action', 'wp-file-upload'), "string", "overwrite", __('The default duplicate file action of the uploader shortcode. It can be \'overwrite\', \'reject\' or \'mantain both\'.', 'wp-file-upload') ),
	"WFU_UNIQUEPATTERN" => array( __('Default Duplicate File Pattern', 'wp-file-upload'), "string", "index", __('The default duplicate file pattern of the uploader shortcode. It can be \'index\' or \'datetimestamp\'.', 'wp-file-upload') ),
	"WFU_FILEBASELINK" => array( __('Default WPFilebase Update State', 'wp-file-upload'), "string", "false", __('The default WPFilebase plugin update state of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_NOTIFY" => array( __('Default Email Notification State', 'wp-file-upload'), "string", "false", __('The default email notification state of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_NOTIFYRECIPIENTS" => array( __('Default Email Recipients', 'wp-file-upload'), "string", "", __('The default email recipients of the uploader shortcode. It can be a comma-separated list of email addresses.', 'wp-file-upload') ),
	"WFU_NOTIFYHEADERS" => array( __('Default Email Headers', 'wp-file-upload'), "string", "", __('The default email headers of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_ATTACHFILE" => array( __('Default Attach File State', 'wp-file-upload'), "string", "false", __('The default attach file to email state of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_REDIRECT" => array( __('Default Redirection State', 'wp-file-upload'), "string", "false", __('The default redirection state of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_REDIRECTLINK" => array( __('Default Redirect URL', 'wp-file-upload'), "string", "", __('The default redirect URL of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_ADMINMESSAGES" => array( __('Default State for Admin Messages', 'wp-file-upload'), "string", "false", __('The default state of displaying or not admin messages of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_BLOCKCOMPATIBILITY" => array( __('Default Block Themes Compatibility Mode', 'wp-file-upload'), "string", "off", __('The default state of block themes compatibility mode. It can be \'auto\', \'on\' or \'off\'.', 'wp-file-upload') ),
	"WFU_MATERIALUI" => array( __('Default Material UI State', 'wp-file-upload'), "string", "false", __('The default Material UI state of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_MUIPRIMARYCOLOR" => array( __('Default Material UI Primary Color', 'wp-file-upload'), "string", "#556CD6", __('The default Material UI theme primary color.', 'wp-file-upload') ),
	"WFU_MUITEXTCOLOR" => array( __('Default Material UI Text Color', 'wp-file-upload'), "string", "rgba(0, 0, 0, 0.87)", __('The default Material UI theme text color.', 'wp-file-upload') ),
	"WFU_MUIERRORCOLOR" => array( __('Default Material UI Error Color', 'wp-file-upload'), "string", "#FF1744", __('The default Material UI theme error color.', 'wp-file-upload') ),
	"WFU_MUIDARKMODE" => array( __('Default Material UI Dark Mode', 'wp-file-upload'), "string", "false", __('The default Material UI theme dark mode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_MUIOVERRIDECSSMETHOD" => array( __('Default Material UI Override CSS Method', 'wp-file-upload'), "string", "shadow-dom", __('The default Material UI override CSS method. It can be \'strongstyles-selected\', \'strongstyles-all\', \'layers\' or \'shadow-dom\'.', 'wp-file-upload') ),
	"WFU_SUCCESSMESSAGECOLORS" => array( __('Default Colors for Success Message', 'wp-file-upload'), "string", "#006600,#EEFFEE,#006666", __('The default color triplet (text, background and border colors) of success message of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_WARNINGMESSAGECOLORS" => array( __('Default Colors for Warning Message', 'wp-file-upload'), "string", "#F88017,#FEF2E7,#633309", __('The default color triplet (text, background and border colors) of warning message of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_FAILMESSAGECOLORS" => array( __('Default Colors for Fail Message', 'wp-file-upload'), "string", "#660000,#FFEEEE,#666600", __('The default color triplet (text, background and border colors) of fail message of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_WAITMESSAGECOLORS" => array( __('Default Colors for Wait Message', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The default color triplet (text, background and border colors) of wait message of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_SHOWTARGETFOLDER" => array( __('Default State for Target Folder', 'wp-file-upload'), "string", "false", __('The default state of displaying or not the target folder of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_TARGETFOLDERLABEL" => array( __('Default Text for Target Folder Label', 'wp-file-upload'), "string", "Upload Directory", __('The default text of the target folder label of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_ASKFORSUBFOLDERS" => array( __('Default Subfolders State', 'wp-file-upload'), "string", "false", __('The default state of displaying or not a list of subfolders of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_SUBFOLDERLABEL" => array( __('Default Text of Subfolders Label', 'wp-file-upload'), "string", "Select Subfolder", __('The default text of subfolders label of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_SUBFOLDERTREE" => array( __('Default Subfolders List', 'wp-file-upload'), "string", "", __('The default list of subfolders of the uploader shortcode. Check plugin\'s support page for syntax.', 'wp-file-upload') ),
	"WFU_FORCECLASSIC" => array( __('Default Disable AJAX State', 'wp-file-upload'), "string", "false", __('The default state of disabling or not AJAX functionality of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_TESTMODE" => array( __('Default Test Mode State', 'wp-file-upload'), "string", "false", __('The default state of test mode of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_DEBUGMODE" => array( __('Default Debug Mode State', 'wp-file-upload'), "string", "false", __('The default state of debug mode of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_WIDTHS" => array( __('Default Element Widths', 'wp-file-upload'), "string", "", __('The default widths of the elements of the uploader shortcode. It is a comma-separated list of element widths.', 'wp-file-upload') ),
	"WFU_HEIGHTS" => array( __('Default Element Heights', 'wp-file-upload'), "string", "", __('The default heights of the elements of the uploader shortcode. It is a comma-separated list of element heights.', 'wp-file-upload') ),
	"WFU_PLACEMENTS" => array( __('Default Element Placements', 'wp-file-upload'), "string", "title/filename+selectbutton+uploadbutton/subfolders"."/userdata"."/message", __('The default placements of the elements of the uploader shortcode. Check plugin\'s support page for syntax.', 'wp-file-upload') ),
	"WFU_USERDATA" => array( __('Default User Fields State', 'wp-file-upload'), "string", "false", __('The default state of custom user fields of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_MEDIALINK" => array( __('Default Add to Media State', 'wp-file-upload'), "string", "false", __('The default state for adding files to Media of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_POSTLINK" => array( __('Default Attachment to Post State', 'wp-file-upload'), "string", "false", __('The default state for attaching files to current post of the uploader shortcode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_WEBCAM" => array( __('Default Webcam State', 'wp-file-upload'), "string", "false", __('The default state for webcam capture. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_WEBCAMSELFILE" => array( __('Default Allow File Selection', 'wp-file-upload'), "string", "false", __('The default state for allowing file selection when webcam is active. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_AUDIOCAPTURE" => array( __('Default Capture Audio State', 'wp-file-upload'), "string", "false", __('The default state of audio capture. If it is set to \'true\' then audio will be captured, together with video from the webcam. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_WEBCAMMODE" => array( __('Default Webcam Mode', 'wp-file-upload'), "string", "capture video", __('The default webcam capture mode. It can be \'capture video\', \'take photos\' or \'both\'.', 'wp-file-upload') ),
	"WFU_VIDEOWIDTH" => array( __('Default Video Width', 'wp-file-upload'), "string", "", __('The default preferable video width for webcam capture. It can be any positive integer in pixels.', 'wp-file-upload') ),
	"WFU_VIDEOHEIGHT" => array( __('Default Video Height', 'wp-file-upload'), "string", "", __('The default preferable video height for webcam capture. It can be any positive integer in pixels.', 'wp-file-upload') ),
	"WFU_VIDEOASPECTRATIO" => array( __('Default Video Aspect Ratio', 'wp-file-upload'), "string", "", __('The default preferable video aspect ratio for webcam video capture. It can be any positive value.', 'wp-file-upload') ),
	"WFU_VIDEOFRAMERATE" => array( __('Default Video Frame Rate', 'wp-file-upload'), "string", "", __('The default preferable video frame rate for webcam video capture. It can be any positive value in frames/sec.', 'wp-file-upload') ),
	"WFU_CAMERAFACING" => array( __('Default Camera Facing Mode', 'wp-file-upload'), "string", "any", __('The default preferable camera to be used for video/screenshot capture. It can be \'any\', \'front\' or \'back\'.', 'wp-file-upload') ),
	"WFU_WEBCAMSTARTOFF" => array( __('Default Start Camera Off State', 'wp-file-upload'), "string", "false", __('The default state of setting the camera off when started. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_WEBCAMSWITCH" => array( __('Default Switch Camera Button State', 'wp-file-upload'), "string", "false", __('The default state of the switch camera button. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_MAXRECORDTIME" => array( __('Default Maximum Record Time', 'wp-file-upload'), "string", "10", __('The default maximum video recording time in seconds. The default value is 10 seconds.', 'wp-file-upload') ),
	"WFU_WEBCAMBG" => array( __('Default Webcam Background Color', 'wp-file-upload'), "string", "#000000", __('The default webcam capture box background color. The default is black.', 'wp-file-upload') ),
	"WFU_ASKCONSENT" => array( __('Default Ask Consent State', 'wp-file-upload'), "string", "false", __('The default state of personal data consent request. The default value is false.', 'wp-file-upload') ),
	"WFU_PERSONALDATATYPES" => array( __('Default Personal Data Types', 'wp-file-upload'), "string", "userdata", __('The default personal data types. The default value is \'userdata\'.', 'wp-file-upload') ),
	"WFU_NOTREMEMBERCONSENT" => array( __('Default Do Not Remember Consent Answer State', 'wp-file-upload'), "string", "false", __('The default state about remembering or not user\'s answer on consent question. The default value is true.', 'wp-file-upload') ),
	"WFU_CONSENTREJECTUPLOAD" => array( __('Default Reject Upload on Consent Denial State', 'wp-file-upload'), "string", "false", __('The default state of continuing or rejecting the upload depending on consent answer. The default value is true.', 'wp-file-upload') ),
	"WFU_CONSENTFORMAT" => array( __('Default Consent Format', 'wp-file-upload'), "string", "radio", __('The default format of consent question. The default value is \'checkbox\'.', 'wp-file-upload') ),
	"WFU_CONSENTPRESELECT" => array( __('Default Consent Preselect State', 'wp-file-upload'), "string", "none", __('The default preselect state of consent question when checkbox format is active. The default value is false.', 'wp-file-upload') ),
);
//other plugin values
$GLOBALS["WFU_GLOBALS"] += array(
	"WFU_DEBUG" => array( __('Plugin Debug Mode', 'wp-file-upload'), "string", "OFF", __('If DEBUG mode is activated then advanced hook of plugin\'s function can be performed. This option may make the plugin slower, so use it very carefully. It can be \'OFF\' or \'ON\'.', 'wp-file-upload') ),
	"WFU_RESTRICT_FRONTEND_LOADING" => array( __('Restrict Front-End Loading', 'wp-file-upload'), "string", "false", __('It defines whether the plugin will load on all pages or specific ones. If it is \'false\' then it will load on all pages. To restrict loading only on specific pages set a comma-separated list of page or post IDs.', 'wp-file-upload') ),
	"WFU_UPLOADPROGRESS_MODE" => array( __('Upload Progress Mode', 'wp-file-upload'), "string", "incremental", __('Defines how the upload progress is calculated. It can be \'incremental\' or \'absolute\'. Default value is \'incremental\'.', 'wp-file-upload') ),
	"WFU_EXTERNALTEMPLATES_FOLDER" => array( __('External Templates Folder', 'wp-file-upload'), "string", "/uploads/wfu_templates", __('Defines the external templates folder, relative to /wp-content. If it is empty then no external templates folder will be used to search for templates.', 'wp-file-upload') ),
	"WFU_DOS_ATTACKS_CHECK" => array( __('Check for Denial-Of-Service Attacks', 'wp-file-upload'), "string", "true", __('If it is true then then plugin will check if the number of files uploaded within a specific amount of time exceeds the limit, thus protecting from DOS attacks. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_DOS_ATTACKS_FILE_LIMIT" => array( __('Denial-Of-Service File Limit', 'wp-file-upload'), "integer", 10000, __('Defines the maximum number of files that are allowed to be uploaded within a specific amount of time. It can be any positive integer.', 'wp-file-upload') ),
	"WFU_DOS_ATTACKS_TIME_INTERVAL" => array( __('Denial-Of-Service Time Interval', 'wp-file-upload'), "integer", 3600, __('Defines the time interval for DOS attacks check. The time interval is given in seconds.', 'wp-file-upload') ),
	"WFU_DOS_ATTACKS_ADMIN_EMAIL_FREQUENCY" => array( __('Denial-Of-Service Admin Email Frequency', 'wp-file-upload'), "integer", 3600, __('Defines how frequently an email will be sent to administrator notifying for Denial-Of-Service attacks. The time interval is given in seconds.', 'wp-file-upload') ),
	"WFU_FILESCAN_BUFFERSIZE" => array( __('File Scan Buffer Size', 'wp-file-upload'), "integer", 1048576, __('Defines the buffer size when scanning file contents. A value of -1 denotes that all file contents will be read at once.', 'wp-file-upload') ),
	"WFU_FILESCAN_OVERLAPSIZE" => array( __('File Scan Overlap Size', 'wp-file-upload'), "integer", 20, __('Defines the overlap size when scanning file contents in chunks.', 'wp-file-upload') ),
	"WFU_SANITIZE_FILENAME_MODE" => array( __('Filename Sanitization Mode', 'wp-file-upload'), "string", "strict", __('The sanitization mode for filenames. It can be \'strict\' or \'loose\'.', 'wp-file-upload') ),
	"WFU_SANITIZE_FILENAME_DOTS" => array( __('Sanitize Filename Dots', 'wp-file-upload'), "string", "true", __('Convert dot symbols (.) in filename into dashes, in order to avoid double extensions. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_WILDCARD_ASTERISK_MODE" => array( __('Wildcard Asterisk Mode', 'wp-file-upload'), "string", "strict", __('The mode of wildcard pattern asterisk symbol. If it is strict, then the asterisk will not match dot (.) characters. It can be \'strict\' or \'loose\'.', 'wp-file-upload') ),
	"WFU_CHECKPHPTAGS_FILETYPES" => array( __('PHP Tag Checking File Types', 'wp-file-upload'), "string", "commonimages", __('The file types for which the plugin will check their contents for PHP tags. It can be \'all\', \'commonimages\' or \'none\'.', 'wp-file-upload') ),
	"WFU_MIMETYPE_VAL_EXCEPTIONS" => array( __('MIME Type Validation Exceptions', 'wp-file-upload'), "string", "", __('Exception rules when validating mime type of uploaded files. Check function wfu_validate_mime_type() for details.', 'wp-file-upload') ),
	"WFU_FILESCAN_SECURITY_LEVEL" => array( __('File Scan Security Level', 'wp-file-upload'), "integer", 1, __('Security level for file scanning. A zero (0) level means lowest security. The default is one (1).', 'wp-file-upload') ),
	"WFU_PHP_ARRAY_MAXLEN" => array( __('Max PHP Array Length', 'wp-file-upload'), "string", "10000", __('The maximum allowable number of items of a PHP array.', 'wp-file-upload') ),
	"WFU_ADMINBROWSER_TABLE_MAXROWS" => array( __('Admin Browser Rows Per Page', 'wp-file-upload'), "integer", 25, __('The number of rows per page of the admin browser. A value equal to zero or less denotes no pagination.', 'wp-file-upload') ),
	"WFU_HISTORYLOG_TABLE_MAXROWS" => array( __('History Log Table Rows Per Page', 'wp-file-upload'), "integer", 25, __('The number of rows per page of the History Log table.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_TABLE_MAXROWS" => array( __('Uploaded Files Table Rows Per Page', 'wp-file-upload'), "integer", 25, __('The number of rows per page of the Uploaded Files table.', 'wp-file-upload') ),
	"WFU_ALTERNATIVE_RANDOMIZER" => array( __('Use Alternative Randomizer', 'wp-file-upload'), "string", "false", __('On fast web servers the plugin\'s generator of random strings may not work properly causing various problems. If it is set to true, an alternative randomizer method is employed that works for fast web servers. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FORCE_NOTIFICATIONS" => array( __('Force Email Notifications', 'wp-file-upload'), "string", "false", __('Send email notifications (if they are activated) even if no file has been uploaded. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_UPDATE_MEDIA_ON_DELETE" => array( __('Update Media on Delete', 'wp-file-upload'), "string", "true", __('When an uploaded file is deleted then delete also the corresponding Media Library item if exists. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_DASHBOARD_PROTECTED" => array( __('Dashboard Is Protected', 'wp-file-upload'), "string", "false", __('If /wp-admin folder is password protected then this variable should be set to \'true\' so that internal operations of the plugin can work. The username and password should also be set.', 'wp-file-upload') ),
	"WFU_DASHBOARD_USERNAME" => array( __('Protected Dashboard Username', 'wp-file-upload'), "string", "", __('Username entry for accessing protected /wp-admin folder.', 'wp-file-upload') ),
	"WFU_DASHBOARD_PASSWORD" => array( __('Protected Dashboard Password', 'wp-file-upload'), "string", "", __('Password entry for accessing protected /wp-admin folder.', 'wp-file-upload') ),
	"WFU_EXPORT_DATA_SEPARATOR" => array( __('Export Data Separator', 'wp-file-upload'), "string", ",", __('This is the delimiter of the exported file data columns. It can be any symbol. Default value is comma (,).', 'wp-file-upload') ),
	"WFU_EXPORT_USERDATA_SEPARATOR" => array( __('Export User Data Separator', 'wp-file-upload'), "string", ";", __('This is the delimiter of the exported user data of each file. It can be any symbol. Default value is semicolon (;).', 'wp-file-upload') ),
	"WFU_DISABLE_VERSION_CHECK" => array( __('Disable Version Check', 'wp-file-upload'), "string", "false", __('If it is set to \'true\' then the plugin will not check if there are any new versions available. This is a temporary solution to problems having some users accessing Iptanus Services server causing the plugin to stall. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_RELAX_CURL_VERIFY_HOST" => array( __('Relax cURL Host Verification', 'wp-file-upload'), "string", "false", __('If it is set to \'true\' then CURLOPT_SSL_VERIFYHOST will be disabled when executing a cURL POST request. This is required in some cases so that the plugin can reach https://services2.iptanus.com, because on some servers it fails with a file_get_contents warning. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_USE_ALT_IPTANUS_SERVER" => array( __('Use Alternative Iptanus Server', 'wp-file-upload'), "string", "false", __('If it is set to \'true\' then the alternative Iptanus server will be used. This is a work-around in some cases where the website cannot reach https://services2.iptanus.com. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_ALT_IPTANUS_SERVER" => array( __('Alternative Iptanus Server', 'wp-file-upload'), "string", "https://iptanusservices.appspot.com", __('If it is set then this is the URL of the alternative Iptanus server.', 'wp-file-upload') ),
	"WFU_ALT_VERSION_SERVER" => array( __('Alternative Version Server', 'wp-file-upload'), "string", "https://iptanusservices.appspot.com/g79xo30q8s", __('If the alternative Iptanus server is used and this variable is not empty, then it will be used as the alternative Version Server URL.', 'wp-file-upload') ),
	"WFU_MINIFY_INLINE_CSS" => array( __('Minify Inline CSS Code', 'wp-file-upload'), "string", "true", __('Defines whether the inline CSS code will be minified. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_MINIFY_INLINE_JS" => array( __('Minify Inline JS Code', 'wp-file-upload'), "string", "true", __('Defines whether the inline Javascript code will be minified. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_US_SESSION_LEGACY" => array( __('Session Legacy Option', 'wp-file-upload'), "string", "true", __('Defines whether the old (legacy) operation of reading and storing session data (using session_start in header) will be used. By default it is set to \'true\' to maintain backward compatibility.', 'wp-file-upload') ),
	"WFU_US_COOKIE_LIFE" => array( __('Session Cookie Life', 'wp-file-upload'), "integer", 48, __('Defines the life of session cookie, in hours.', 'wp-file-upload') ),
	"WFU_US_DBOPTION_BASE" => array( __('DB Option User State Base', 'wp-file-upload'), "string", "cookies", __('Defines how DB option defines the unique user state key. It can take the values \'session\' or \'cookies\'.', 'wp-file-upload') ),
	"WFU_US_DBOPTION_CHECK" => array( __('DB Option User State Check Interval', 'wp-file-upload'), "integer", 7200, __('Defines how often (in seconds) the plugin will update user state list, when user state is saved in DB option table.', 'wp-file-upload') ),
	"WFU_US_DBOPTION_LIFE" => array( __('DB Option User State Life', 'wp-file-upload'), "integer", 1800, __('Defines the maximum time of inactivity of a user state, when user state is saved in DB option table.', 'wp-file-upload') ),
	"WFU_US_HANDLER_CHANGED" => array( __('User State Handler Changed', 'wp-file-upload'), "string", "false", __('Defines whether the plugin changed automatically the user state handler during installation.', 'wp-file-upload') ),
	"WFU_US_DBOPTION_USEOLD" => array( __('Use Old DB Option Handler', 'wp-file-upload'), "string", "false", __('Defines whether the old DBOption user state handlers will be used.', 'wp-file-upload') ),
	"WFU_US_DEADLOCK_TIMEOUT" => array( __('Database Deadlock Timeout', 'wp-file-upload'), "integer", 10, __('Defines for how long a deadlocked database transaction will be repeated.', 'wp-file-upload') ),
	"WFU_US_LOG_DBERRORS" => array( __('Log Database Errors', 'wp-file-upload'), "string", "false", __('Defines whether database errors will be logged.', 'wp-file-upload') ),
	"WFU_QUEUE_ACTIVE" => array( __('Enable Queue Functionality', 'wp-file-upload'), "string", "true", __('Defines whether queue operation is active.', 'wp-file-upload') ),
	"WFU_QUEUE_THREAD_TIMEOUT" => array( __('Queue Thread Timeout', 'wp-file-upload'), "integer", 5, __('Defines for how long, in seconds, a queue will wait for a thread to finish before aborting the operation.', 'wp-file-upload') ),
	"WFU_QUEUE_LOOP_DELAY" => array( __('Queue Loop Delay', 'wp-file-upload'), "integer", 100, __('Defines the time, in milliseconds, a wait loop will sleep before continuing.', 'wp-file-upload') ),
	"WFU_UPLOADWASTE_PROCESSAFTER" => array( __('Process Upload Waste Items After', 'wp-file-upload'), "integer", 1, __('Defines the time, in days, after which waste items related to uploads will be processed.', 'wp-file-upload') ),
	"WFU_WASTE_BATCHSIZE" => array( __('Waste Items Batch Size', 'wp-file-upload'), "integer", 500, __('Defines how many waste items will be stored for processing every time.', 'wp-file-upload') ),
	"WFU_PD_VISIBLE_OPLEVELS" => array( __('Personal Data Visible Operation Levels', 'wp-file-upload'), "integer", 3, __('Defines how deep administrators can go into personal data operation details. A value of -1 denotes that there is no limit.', 'wp-file-upload') ),
	"WFU_PD_VISIBLE_PERLEVELS" => array( __('Personal Data Visible Permission Levels', 'wp-file-upload'), "integer", 2, __('Defines how deep administrators can go into personal data permission details. A value of -1 denotes that there is no limit.', 'wp-file-upload') ),
	"WFU_PD_VISIBLE_LOGLEVELS" => array( __('Personal Data Visible Log Action Levels', 'wp-file-upload'), "integer", 2, __('Defines how deep administrators can go into personal data log action details. A value of -1 denotes that there is no limit.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_MENU" => array( __('Uploaded Files Menu State', 'wp-file-upload'), "string", "true", __('Defines whether the Uploaded Files Dashboard menu item will be shown or not. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_DEFACTION" => array( __('Uploaded Files Default Action', 'wp-file-upload'), "string", "adminbrowser", __('Defines the default action that will be executed when a file link is pressed in Uploaded Files page. It can be \'details\', \'adminbrowser\', \'historylog\', \'link\', \'download\' and \'none\'.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_COLUMNS" => array( __('Uploaded Files Columns', 'wp-file-upload'), "string", "#, file, upload_date, user, properties, remarks, actions", __('Defines the visible columns of the Uploaded Files list as well as their order. It is noted that \'File\' column is always visible and it is the second column if \'#\' column is visible, or the first one if \'#\' column is hidden.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_ACTIONS" => array( __('Uploaded Files Actions', 'wp-file-upload'), "string", "details, media, adminbrowser, historylog, link, download, remotelinks", __('Defines the allowable actions and their order for each file in Uploaded Files list. It is noted that the actions shown for each file depend on its properties.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_HIDEINVALID" => array( __('Hide Invalid Uploaded Files', 'wp-file-upload'), "string", "false", __('Defines whether all uploaded file records will be shown in Uploaded File menu or only the valid ones. Invalid are the records who are obsolete or their files do not exist anymore.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_RESET_TIME" => array( __('Uploaded Files Reset Time', 'wp-file-upload'), "integer", 5, __('Defines the interval in seconds before the unread uploaded files can be marked as read. A value of -1 denotes that there is no interval.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_BARMENU" => array( __('Uploaded Files Toolbar Menu State', 'wp-file-upload'), "string", "true", __('Defines whether the Uploaded Files Toolbar (Admin Bar) menu item will be shown or not. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_UPLOADEDFILES_BARAUTOHIDE" => array( __('Uploaded Files Auto-Hide on Toolbar', 'wp-file-upload'), "string", "false", __('Defines whether the Uploaded Files Toolbar (Admin Bar) menu item will be hidden when there are no new uploads. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_SHORTCODECOMPOSER_NOADMIN" => array( __('Show Shortcode Composer to Non-Admins', 'wp-file-upload'), "string", "false", __('Defines whether the shortcode composer will be visible to non-admin users who can edit posts or pages. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FILEOPERATION_IGNOREFTP" => array( __('Ignore FTP Path in File Operations', 'wp-file-upload'), "string", "false", __('Defines whether file functions, such as file_exists(), stat() etc. will be ignored for FTP paths. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FTPFILEEXISTS_DEFVALUE" => array( __('Default Value of File Exists for FTP Paths', 'wp-file-upload'), "string", "true", __('Defines the default value that will be returned when file_exists() function is executed on an FTP path. It can be \'*true\', \'*false\', \'*calc\', \'true\' or \'false\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTP.', 'wp-file-upload') ),
	"WFU_FTPSTAT_DEFVALUE" => array( __('Default Value of Stat for FTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when stat() function is executed on an FTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTP.', 'wp-file-upload') ),
	"WFU_FTPFILESIZE_DEFVALUE" => array( __('Default Value of Filesize for FTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when filesize() function is executed on an FTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTP.', 'wp-file-upload') ),
	"WFU_FTPFOPEN_DEFVALUE" => array( __('Default Value of Fopen for FTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when fopen() function is executed on an FTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTP.', 'wp-file-upload') ),
	"WFU_FTPFILEGETCONTENTS_DEFVALUE" => array( __('Default Value of File Get Contents for FTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when file_get_contents() function is executed on an FTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTP.', 'wp-file-upload') ),
	"WFU_FTPMD5FILE_DEFVALUE" => array( __('Default Value of MD5 File for FTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when md5_file() function is executed on an FTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTP.', 'wp-file-upload') ),
	"WFU_FTPUNLINK_DEFVALUE" => array( __('Default Value of Unlink for FTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when unlink() function is executed on an FTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTP.', 'wp-file-upload') ),
	"WFU_FILEOPERATION_IGNORESFTP" => array( __('Ignore SFTP Path in File Operations', 'wp-file-upload'), "string", "false", __('Defines whether file functions, such as file_exists(), stat() etc. will be ignored for SFTP paths. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_SFTPFILEEXISTS_DEFVALUE" => array( __('Default Value of File Exists for SFTP Paths', 'wp-file-upload'), "string", "true", __('Defines the default value that will be returned when file_exists() function is executed on an SFTP path. It can be \'*true\', \'*false\', \'*calc\', \'true\' or \'false\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNORESFTP.', 'wp-file-upload') ),
	"WFU_SFTPSTAT_DEFVALUE" => array( __('Default Value of Stat for SFTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when stat() function is executed on an SFTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNORESFTP.', 'wp-file-upload') ),
	"WFU_SFTPFILESIZE_DEFVALUE" => array( __('Default Value of Filesize for SFTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when filesize() function is executed on an SFTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNORESFTP.', 'wp-file-upload') ),
	"WFU_SFTPFOPEN_DEFVALUE" => array( __('Default Value of Fopen for SFTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when fopen() function is executed on an SFTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNORESFTP.', 'wp-file-upload') ),
	"WFU_SFTPFILEGETCONTENTS_DEFVALUE" => array( __('Default Value of File Get Contents for SFTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when file_get_contents() function is executed on an SFTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNORESFTP.', 'wp-file-upload') ),
	"WFU_SFTPMD5FILE_DEFVALUE" => array( __('Default Value of MD5 File for SFTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when md5_file() function is executed on an SFTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNORESFTP.', 'wp-file-upload') ),
	"WFU_SFTPUNLINK_DEFVALUE" => array( __('Default Value of Unlink for SFTP Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when unlink() function is executed on an SFTP path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNORESFTP.', 'wp-file-upload') ),
	"WFU_FILEOPERATION_IGNOREFTPS" => array( __('Ignore FTPS Path in File Operations', 'wp-file-upload'), "string", "false", __('Defines whether file functions, such as file_exists(), stat() etc. will be ignored for FTPS paths. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FTPSFILEEXISTS_DEFVALUE" => array( __('Default Value of File Exists for FTPS Paths', 'wp-file-upload'), "string", "true", __('Defines the default value that will be returned when file_exists() function is executed on an FTPS path. It can be \'*true\', \'*false\', \'*calc\', \'true\' or \'false\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTPS.', 'wp-file-upload') ),
	"WFU_FTPSSTAT_DEFVALUE" => array( __('Default Value of Stat for FTPS Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when stat() function is executed on an FTPS path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTPS.', 'wp-file-upload') ),
	"WFU_FTPSFILESIZE_DEFVALUE" => array( __('Default Value of Filesize for FTPS Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when filesize() function is executed on an FTPS path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTPS.', 'wp-file-upload') ),
	"WFU_FTPSFOPEN_DEFVALUE" => array( __('Default Value of Fopen for FTPS Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when fopen() function is executed on an FTPS path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTPS.', 'wp-file-upload') ),
	"WFU_FTPSFILEGETCONTENTS_DEFVALUE" => array( __('Default Value of File Get Contents for FTPS Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when file_get_contents() function is executed on an FTPS path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTPS.', 'wp-file-upload') ),
	"WFU_FTPSMD5FILE_DEFVALUE" => array( __('Default Value of MD5 File for FTPS Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when md5_file() function is executed on an FTPS path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTPS.', 'wp-file-upload') ),
	"WFU_FTPSUNLINK_DEFVALUE" => array( __('Default Value of Unlink for FTPS Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when unlink() function is executed on an FTPS path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREFTPS.', 'wp-file-upload') ),
	"WFU_FTPS_TIMEOUT" => array( __('FTPS Connection Timeout', 'wp-file-upload'), "integer", 90, __('Defines the timeout (in seconds) for an FTPS connection.', 'wp-file-upload') ),
	"WFU_FTPS_USEPASSIVE" => array( __('Use Passive Mode for FTPS', 'wp-file-upload'), "string", "true", __('Defines whether PHP will use passive mode for FTPS operations like file_exists, file_stat, file_size etc. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FTPS_USEPASVADDRESS" => array( __('Force Use Passive Address for FTPS', 'wp-file-upload'), "string", "true", __('Defines whether PHP will use the passive address for FTPS uploads when in passive mode. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FILEOPERATION_IGNOREREMOTE" => array( __('Ignore Remote Path in File Operations', 'wp-file-upload'), "string", "true", __('Defines whether file functions, such as file_exists(), stat() etc. will be ignored for remote (cloud) paths. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_REMOTEFILEEXISTS_DEFVALUE" => array( __('Default Value of File Exists for Remote Paths', 'wp-file-upload'), "string", "true", __('Defines the default value that will be returned when file_exists() function is executed on a remote (cloud) path. It can be \'*true\', \'*false\', \'*calc\', \'true\' or \'false\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREREMOTE.', 'wp-file-upload') ),
	"WFU_REMOTESTAT_DEFVALUE" => array( __('Default Value of Stat for Remote Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when stat() function is executed on a remote (cloud) path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREREMOTE.', 'wp-file-upload') ),
	"WFU_REMOTEFILESIZE_DEFVALUE" => array( __('Default Value of Filesize for Remote Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when filesize() function is executed on a remote (cloud) path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREREMOTE.', 'wp-file-upload') ),
	"WFU_REMOTEFOPEN_DEFVALUE" => array( __('Default Value of Fopen for Remote Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when fopen() function is executed on a remote (cloud) path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREREMOTE.', 'wp-file-upload') ),
	"WFU_REMOTEFILEGETCONTENTS_DEFVALUE" => array( __('Default Value of File Get Contents for Remote Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when file_get_contents() function is executed on a remote path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREREMOTE.', 'wp-file-upload') ),
	"WFU_REMOTEMD5FILE_DEFVALUE" => array( __('Default Value of MD5 File for Remote Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when md5_file() function is executed on a remote (cloud) path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREREMOTE.', 'wp-file-upload') ),
	"WFU_REMOTEUNLINK_DEFVALUE" => array( __('Default Value of Unlink for Remote Paths', 'wp-file-upload'), "string", "empty", __('Defines the default value that will be returned when unlink() function is executed on a remote (cloud) path. It can be \'*empty\', \'*calc\' or \'empty\'. If it starts with asterisk (*) then this variable takes precedence over the more general WFU_FILEOPERATION_IGNOREREMOTE.', 'wp-file-upload') ),
	"WFU_ADMINNOTIFICATIONS_TABLE_MAXROWS" => array( __('Admin Notifications Rows Per Page', 'wp-file-upload'), "integer", 25, __('The number of rows per page of the admin notifications. A value equal to zero or less denotes no pagination.', 'wp-file-upload') ),
	"WFU_NOTIFICATIONS_BARMENU" => array( __('Notifications Toolbar Menu State', 'wp-file-upload'), "string", "true", __('Defines whether the Notifications Toolbar (Admin Bar) menu item will be shown or not. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_NOTIFICATIONS_NR_THRESHOLD" => array( __('Notifications Non-Repeating Threshold', 'wp-file-upload'), "integer", 3600, __('Defines the time in seconds, after which a non-repeating notification can be added again.', 'wp-file-upload') ),
	"WFU_MUIHTMLFONTSIZE" => array( __('Material UI HTML Font Size', 'wp-file-upload'), "string", "adjust", __('Defines the HTML font size, based on which the Material UI components\' rem value is calculated. It can be \'adjust\' (React will try to adjust the HTML font size so that it is always 16px), \'initial\' (React will do no change) or a font size in pixels.', 'wp-file-upload') ),
	"WFU_WEBCAMSWITCHMODE" => array( __('Webcam Switch Camera Mode', 'wp-file-upload'), "string", "side", __('Defines the switch camera mode. It can be \'side\' (switch between front and rear camera) or \'device\' (switch between available video devices).', 'wp-file-upload') ),
	"WFU_MEDIARECORDER_MIMETYPE" => array( __('Webcam MediaRecorder MIME Type', 'wp-file-upload'), "string", "", __('Defines the webcam MediaRecorder MIME Type. If it is empty then it will be auto-selected.', 'wp-file-upload') ),
	"WFU_FILERESERVATION_STATUS" => array( __('File Reservation Status', 'wp-file-upload'), "string", "true", __('Defines whether file reservation is active. It can be \'true\' or \'false\'.', 'wp-file-upload') ),
	"WFU_FILERESERVATION_LIFE" => array( __('File Reservation Life', 'wp-file-upload'), "integer", 172800, __('Defines the life (in seconds) of a file reservation. It can be a positive integer.', 'wp-file-upload') ),
);
//color definitions
$GLOBALS["WFU_GLOBALS"] += array(
	"WFU_TESTMESSAGECOLORS" => array( __('Colors for Message in Test Mode', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The color triplet (text, background and border colors) of message in Test mode of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_DEFAULTMESSAGECOLORS" => array( __('Defaults Message Colors', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The default color triplet (text, background and border colors) of message of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE0" => array( __('State 0 Message Colors', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The color triplet (text, background and border colors) of message of upload state 0 (upload in progress with no messages) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE1" => array( __('State 1 Message Colors', 'wp-file-upload'), "string", "#F88017,#FEF2E7,#633309", __('The color triplet (text, background and border colors) of message of upload state 1 (upload in progress with messages) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE2" => array( __('State 2 Message Colors', 'wp-file-upload'), "string", "#F88017,#FEF2E7,#633309", __('The color triplet (text, background and border colors) of message of upload state 2 (upload in progress with some files not uploaded) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE3" => array( __('State 3 Message Colors', 'wp-file-upload'), "string", "#F88017,#FEF2E7,#633309", __('The color triplet (text, background and border colors) of message of upload state 3 (upload in progress with no files uploaded so far) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE4" => array( __('State 4 Message Colors', 'wp-file-upload'), "string", "#006600,#EEFFEE,#006666", __('The color triplet (text, background and border colors) of message of upload state 4 (all files uploaded) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE5" => array( __('State 5 Message Colors', 'wp-file-upload'), "string", "#F88017,#FEF2E7,#633309", __('The color triplet (text, background and border colors) of message of upload state 5 (all files uploaded with messages) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE6" => array( __('State 6 Message Colors', 'wp-file-upload'), "string", "#F88017,#FEF2E7,#633309", __('The color triplet (text, background and border colors) of message of upload state 6 (some files not uploaded) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE7" => array( __('State 7 Message Colors', 'wp-file-upload'), "string", "#660000,#FFEEEE,#666600", __('The color triplet (text, background and border colors) of message of upload state 7 (no files uploaded) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE8" => array( __('State 8 Message Colors', 'wp-file-upload'), "string", "#660000,#FFEEEE,#666600", __('The color triplet (text, background and border colors) of message of upload state 8 (there are no files to upload) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE9" => array( __('State 9 Message Colors', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The color triplet (text, background and border colors) of message of upload state 9 (test state) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE10" => array( __('State 10 Message Colors', 'wp-file-upload'), "string", "#660000,#FFEEEE,#666600", __('The color triplet (text, background and border colors) of message of upload state 10 (JSON parse error) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE11" => array( __('State 11 Message Colors', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The color triplet (text, background and border colors) of message of upload state 11 (redirecting) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE12" => array( __('State 12 Message Colors', 'wp-file-upload'), "string", "#660000,#FFEEEE,#666600", __('The color triplet (text, background and border colors) of message of upload state 12 (upload failed) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE13" => array( __('State 13 Message Colors', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The color triplet (text, background and border colors) of message of upload state 13 (sending data) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE14" => array( __('State 14 Message Colors', 'wp-file-upload'), "string", "#006600,#EEFFEE,#006666", __('The color triplet (text, background and border colors) of message of upload state 14 (data submit succeeded) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE15" => array( __('State 15 Message Colors', 'wp-file-upload'), "string", "#660000,#FFEEEE,#666600", __('The color triplet (text, background and border colors) of message of upload state 15 (data submit failed) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE16" => array( __('State 16 Message Colors', 'wp-file-upload'), "string", "#666666,#EEEEEE,#333333", __('The color triplet (text, background and border colors) of message of upload state 16 (cancelling upload) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE17" => array( __('State 17 Message Colors', 'wp-file-upload'), "string", "#660000,#FFEEEE,#666600", __('The color triplet (text, background and border colors) of message of upload state 17 (upload cancelled) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE18" => array( __('State 18 Message Colors', 'wp-file-upload'), "string", "#006600,#EEFFEE,#006666", __('The color triplet (text, background and border colors) of message of upload state 18 (upload succeeded) of the uploader shortcode.', 'wp-file-upload') ),
	"WFU_HEADERMESSAGECOLORS_STATE19" => array( __('State 19 Message Colors', 'wp-file-upload'), "string", "#F88017,#FEF2E7,#633309", __('The color triplet (text, background and border colors) of message of upload state 19 (upload completed but no files were saved due to personal data policy) of the uploader shortcode.', 'wp-file-upload') ),
);
//insert saved values to array
$envars = get_option("wfu_environment_variables", array());
foreach ( $GLOBALS["WFU_GLOBALS"] as $ind => $envar ) {
	if ( isset($envars[$ind]) ) {
		if ( $envar[1] == "integer" ) $saved = (int)$envars[$ind];
		else $saved = (string)$envars[$ind];
	}
	else $saved = $envar[2];
	array_splice($GLOBALS["WFU_GLOBALS"][$ind], 3, 0, array( $saved ));
	//add visibility
	$GLOBALS["WFU_GLOBALS"][$ind][5] = true;
}

//hide unwanted environment variables
$GLOBALS["WFU_GLOBALS"]["WFU_RELAX_CURL_VERIFY_HOST"][5] = false;
$GLOBALS["WFU_GLOBALS"]["WFU_USE_ALT_IPTANUS_SERVER"][5] = false;

}

/************** Constant Values ***************/
//other plugin values
DEFINE("WFU_SUCCESSMESSAGECOLOR", "green");
DEFINE("WFU_WIDGET_BASEID", "wordpress_file_upload_widget");
DEFINE("WFU_MAX_TIME_LIMIT", ini_get("max_input_time"));
DEFINE("WFU_RESPONSE_URL", WPFILEUPLOAD_DIR."wfu_response.php");
DEFINE("WFU_SERVICES_SERVER_URL", 'https://services2.iptanus.com');
DEFINE("WFU_VERSION_SERVER_URL", WFU_SERVICES_SERVER_URL.'/wp-admin/admin-ajax.php');
DEFINE("WFU_VERSION_HASH", '9npWpXMhAQ5e6AGJ5zqbaPxLk9ePD3eSu3WKeN9p89E9wmgL2PHtrqXPzBVpStzh');
DEFINE("WFU_DOWNLOADER_URL", WPFILEUPLOAD_DIR."wfu_file_downloader.php");
DEFINE("WFU_IPTANUS_SERVER_UNREACHABLE_ARTICLE", 'https://www.iptanus.com/iptanus-services-server-unreachable-error-wfu-plugin/');
DEFINE("WFU_IPTANUS_HOOKS_AND_SESSION", 'https://www.iptanus.com/wordpress-file-upload-hooks-and-session/');
DEFINE("WFU_WP_GALLERY_SHORTCODE", 'https://codex.wordpress.org/Gallery_Shortcode');
//alternative insecure server
DEFINE("WFU_SERVICES_SERVER_ALT_URL", 'http://services.iptanus.com');
DEFINE("WFU_VERSION_SERVER_ALT_URL", WFU_SERVICES_SERVER_ALT_URL.'/wp-admin/admin-ajax.php');
//materialUI
DEFINE("WFU_MUI_REACTVER", '18.2.0');
DEFINE("WFU_MUI_MUIVER", '5.13.0');
DEFINE("WFU_MUI_BABELVER", '6.26.0');
DEFINE("WFU_PRO_VERSION_URL", 'https://www.iptanus.com/product/wordpress-file-upload-pro/');
//define images
DEFINE("WFU_IMAGE_ADMIN_HELP", WPFILEUPLOAD_DIR.'images/help_16.png');
DEFINE("WFU_IMAGE_ADMIN_RESTOREDEFAULT", WPFILEUPLOAD_DIR.'images/restore_16.png');
DEFINE("WFU_IMAGE_ADMIN_USERDATA_ADD", WPFILEUPLOAD_DIR.'images/add_12.png');
DEFINE("WFU_IMAGE_ADMIN_USERDATA_REMOVE", WPFILEUPLOAD_DIR.'images/remove_12.png');
DEFINE("WFU_IMAGE_ADMIN_USERDATA_UP", WPFILEUPLOAD_DIR.'images/up_12.png');
DEFINE("WFU_IMAGE_ADMIN_USERDATA_DOWN", WPFILEUPLOAD_DIR.'images/down_12.png');
DEFINE("WFU_IMAGE_ADMIN_SUBFOLDER_BROWSE", WPFILEUPLOAD_DIR.'images/tree_16.gif');
DEFINE("WFU_IMAGE_ADMIN_SUBFOLDER_OK", WPFILEUPLOAD_DIR.'images/ok_12.gif');
DEFINE("WFU_IMAGE_ADMIN_SUBFOLDER_CANCEL", WPFILEUPLOAD_DIR.'images/cancel_12.gif');
DEFINE("WFU_IMAGE_ADMIN_SUBFOLDER_LOADING", WPFILEUPLOAD_DIR.'images/refresh_16.gif');
DEFINE("WFU_IMAGE_SIMPLE_PROGBAR", WPFILEUPLOAD_DIR.'images/progbar.gif');
DEFINE("WFU_IMAGE_OVERLAY_EDITOR", WPFILEUPLOAD_DIR.'images/pencil.svg');
DEFINE("WFU_IMAGE_OVERLAY_LOADING", WPFILEUPLOAD_DIR.'images/loading_icon.gif');
DEFINE("WFU_IMAGE_FILE_CANCEL", WPFILEUPLOAD_DIR.'images/cancel_16.png');
DEFINE("WFU_IMAGE_MEDIA_BUTTONS", WPFILEUPLOAD_DIR.'images/open-iconic.svg');
//country values
DEFINE("WFU_COUNTRIES_JSON", '[
	{"code": "AD", "label": "Andorra", "phone": "376"},
	{"code": "AE", "label": "United Arab Emirates", "phone": "971"},
	{"code": "AF", "label": "Afghanistan", "phone": "93"},
	{"code": "AG", "label": "Antigua and Barbuda", "phone": "1-268"},
	{"code": "AI", "label": "Anguilla", "phone": "1-264"},
	{"code": "AL", "label": "Albania", "phone": "355"},
	{"code": "AM", "label": "Armenia", "phone": "374"},
	{"code": "AO", "label": "Angola", "phone": "244"},
	{"code": "AQ", "label": "Antarctica", "phone": "672"},
	{"code": "AR", "label": "Argentina", "phone": "54"},
	{"code": "AS", "label": "American Samoa", "phone": "1-684"},
	{"code": "AT", "label": "Austria", "phone": "43"},
	{"code": "AU", "label": "Australia", "phone": "61"},
	{"code": "AW", "label": "Aruba", "phone": "297"},
	{"code": "AX", "label": "Alland Islands", "phone": "358"},
	{"code": "AZ", "label": "Azerbaijan", "phone": "994"},
	{"code": "BA", "label": "Bosnia and Herzegovina", "phone": "387"},
	{"code": "BB", "label": "Barbados", "phone": "1-246"},
	{"code": "BD", "label": "Bangladesh", "phone": "880"},
	{"code": "BE", "label": "Belgium", "phone": "32"},
	{"code": "BF", "label": "Burkina Faso", "phone": "226"},
	{"code": "BG", "label": "Bulgaria", "phone": "359"},
	{"code": "BH", "label": "Bahrain", "phone": "973"},
	{"code": "BI", "label": "Burundi", "phone": "257"},
	{"code": "BJ", "label": "Benin", "phone": "229"},
	{"code": "BL", "label": "Saint Barthelemy", "phone": "590"},
	{"code": "BM", "label": "Bermuda", "phone": "1-441"},
	{"code": "BN", "label": "Brunei Darussalam", "phone": "673"},
	{"code": "BO", "label": "Bolivia", "phone": "591"},
	{"code": "BR", "label": "Brazil", "phone": "55"},
	{"code": "BS", "label": "Bahamas", "phone": "1-242"},
	{"code": "BT", "label": "Bhutan", "phone": "975"},
	{"code": "BV", "label": "Bouvet Island", "phone": "47"},
	{"code": "BW", "label": "Botswana", "phone": "267"},
	{"code": "BY", "label": "Belarus", "phone": "375"},
	{"code": "BZ", "label": "Belize", "phone": "501"},
	{"code": "CA", "label": "Canada", "phone": "1"},
	{"code": "CC", "label": "Cocos (Keeling) Islands", "phone": "61"},
	{"code": "CD", "label": "Congo,  Democratic Republic of the", "phone": "243"},
	{"code": "CF", "label": "Central African Republic", "phone": "236"},
	{"code": "CG", "label": "Congo,  Republic of the", "phone": "242"},
	{"code": "CH", "label": "Switzerland", "phone": "41"},
	{"code": "CI", "label": "Cote d\'Ivoire", "phone": "225"},
	{"code": "CK", "label": "Cook Islands", "phone": "682"},
	{"code": "CL", "label": "Chile", "phone": "56"},
	{"code": "CM", "label": "Cameroon", "phone": "237"},
	{"code": "CN", "label": "China", "phone": "86"},
	{"code": "CO", "label": "Colombia", "phone": "57"},
	{"code": "CR", "label": "Costa Rica", "phone": "506"},
	{"code": "CU", "label": "Cuba", "phone": "53"},
	{"code": "CV", "label": "Cape Verde", "phone": "238"},
	{"code": "CW", "label": "Curacao", "phone": "599"},
	{"code": "CX", "label": "Christmas Island", "phone": "61"},
	{"code": "CY", "label": "Cyprus", "phone": "357"},
	{"code": "CZ", "label": "Czech Republic", "phone": "420"},
	{"code": "DE", "label": "Germany", "phone": "49"},
	{"code": "DJ", "label": "Djibouti", "phone": "253"},
	{"code": "DK", "label": "Denmark", "phone": "45"},
	{"code": "DM", "label": "Dominica", "phone": "1-767"},
	{"code": "DO", "label": "Dominican Republic", "phone": "1-809"},
	{"code": "DZ", "label": "Algeria", "phone": "213"},
	{"code": "EC", "label": "Ecuador", "phone": "593"},
	{"code": "EE", "label": "Estonia", "phone": "372"},
	{"code": "EG", "label": "Egypt", "phone": "20"},
	{"code": "EH", "label": "Western Sahara", "phone": "212"},
	{"code": "ER", "label": "Eritrea", "phone": "291"},
	{"code": "ES", "label": "Spain", "phone": "34"},
	{"code": "ET", "label": "Ethiopia", "phone": "251"},
	{"code": "FI", "label": "Finland", "phone": "358"},
	{"code": "FJ", "label": "Fiji", "phone": "679"},
	{"code": "FK", "label": "Falkland Islands (Malvinas)", "phone": "500"},
	{"code": "FM", "label": "Micronesia,  Federated States of", "phone": "691"},
	{"code": "FO", "label": "Faroe Islands", "phone": "298"},
	{"code": "FR", "label": "France", "phone": "33"},
	{"code": "GA", "label": "Gabon", "phone": "241"},
	{"code": "GB", "label": "United Kingdom", "phone": "44"},
	{"code": "GD", "label": "Grenada", "phone": "1-473"},
	{"code": "GE", "label": "Georgia", "phone": "995"},
	{"code": "GF", "label": "French Guiana", "phone": "594"},
	{"code": "GG", "label": "Guernsey", "phone": "44"},
	{"code": "GH", "label": "Ghana", "phone": "233"},
	{"code": "GI", "label": "Gibraltar", "phone": "350"},
	{"code": "GL", "label": "Greenland", "phone": "299"},
	{"code": "GM", "label": "Gambia", "phone": "220"},
	{"code": "GN", "label": "Guinea", "phone": "224"},
	{"code": "GP", "label": "Guadeloupe", "phone": "590"},
	{"code": "GQ", "label": "Equatorial Guinea", "phone": "240"},
	{"code": "GR", "label": "Greece", "phone": "30"},
	{"code": "GS", "label": "South Georgia and the South Sandwich Islands", "phone": "500"},
	{"code": "GT", "label": "Guatemala", "phone": "502"},
	{"code": "GU", "label": "Guam", "phone": "1-671"},
	{"code": "GW", "label": "Guinea-Bissau", "phone": "245"},
	{"code": "GY", "label": "Guyana", "phone": "592"},
	{"code": "HK", "label": "Hong Kong", "phone": "852"},
	{"code": "HM", "label": "Heard Island and McDonald Islands", "phone": "672"},
	{"code": "HN", "label": "Honduras", "phone": "504"},
	{"code": "HR", "label": "Croatia", "phone": "385"},
	{"code": "HT", "label": "Haiti", "phone": "509"},
	{"code": "HU", "label": "Hungary", "phone": "36"},
	{"code": "ID", "label": "Indonesia", "phone": "62"},
	{"code": "IE", "label": "Ireland", "phone": "353"},
	{"code": "IL", "label": "Israel", "phone": "972"},
	{"code": "IM", "label": "Isle of Man", "phone": "44"},
	{"code": "IN", "label": "India", "phone": "91"},
	{"code": "IO", "label": "British Indian Ocean Territory", "phone": "246"},
	{"code": "IQ", "label": "Iraq", "phone": "964"},
	{"code": "IR", "label": "Iran,  Islamic Republic of", "phone": "98"},
	{"code": "IS", "label": "Iceland", "phone": "354"},
	{"code": "IT", "label": "Italy", "phone": "39"},
	{"code": "JE", "label": "Jersey", "phone": "44"},
	{"code": "JM", "label": "Jamaica", "phone": "1-876"},
	{"code": "JO", "label": "Jordan", "phone": "962"},
	{"code": "JP", "label": "Japan", "phone": "81"},
	{"code": "KE", "label": "Kenya", "phone": "254"},
	{"code": "KG", "label": "Kyrgyzstan", "phone": "996"},
	{"code": "KH", "label": "Cambodia", "phone": "855"},
	{"code": "KI", "label": "Kiribati", "phone": "686"},
	{"code": "KM", "label": "Comoros", "phone": "269"},
	{"code": "KN", "label": "Saint Kitts and Nevis", "phone": "1-869"},
	{"code": "KP", "label": "Korea,  Democratic People\'s Republic of", "phone": "850"},
	{"code": "KR", "label": "Korea,  Republic of", "phone": "82"},
	{"code": "KW", "label": "Kuwait", "phone": "965"},
	{"code": "KY", "label": "Cayman Islands", "phone": "1-345"},
	{"code": "KZ", "label": "Kazakhstan", "phone": "7"},
	{"code": "LA", "label": "Lao People\'s Democratic Republic", "phone": "856"},
	{"code": "LB", "label": "Lebanon", "phone": "961"},
	{"code": "LC", "label": "Saint Lucia", "phone": "1-758"},
	{"code": "LI", "label": "Liechtenstein", "phone": "423"},
	{"code": "LK", "label": "Sri Lanka", "phone": "94"},
	{"code": "LR", "label": "Liberia", "phone": "231"},
	{"code": "LS", "label": "Lesotho", "phone": "266"},
	{"code": "LT", "label": "Lithuania", "phone": "370"},
	{"code": "LU", "label": "Luxembourg", "phone": "352"},
	{"code": "LV", "label": "Latvia", "phone": "371"},
	{"code": "LY", "label": "Libya", "phone": "218"},
	{"code": "MA", "label": "Morocco", "phone": "212"},
	{"code": "MC", "label": "Monaco", "phone": "377"},
	{"code": "MD", "label": "Moldova,  Republic of", "phone": "373"},
	{"code": "ME", "label": "Montenegro", "phone": "382"},
	{"code": "MF", "label": "Saint Martin (French part)", "phone": "590"},
	{"code": "MG", "label": "Madagascar", "phone": "261"},
	{"code": "MH", "label": "Marshall Islands", "phone": "692"},
	{"code": "MK", "label": "Macedonia,  the Former Yugoslav Republic of", "phone": "389"},
	{"code": "ML", "label": "Mali", "phone": "223"},
	{"code": "MM", "label": "Myanmar", "phone": "95"},
	{"code": "MN", "label": "Mongolia", "phone": "976"},
	{"code": "MO", "label": "Macao", "phone": "853"},
	{"code": "MP", "label": "Northern Mariana Islands", "phone": "1-670"},
	{"code": "MQ", "label": "Martinique", "phone": "596"},
	{"code": "MR", "label": "Mauritania", "phone": "222"},
	{"code": "MS", "label": "Montserrat", "phone": "1-664"},
	{"code": "MT", "label": "Malta", "phone": "356"},
	{"code": "MU", "label": "Mauritius", "phone": "230"},
	{"code": "MV", "label": "Maldives", "phone": "960"},
	{"code": "MW", "label": "Malawi", "phone": "265"},
	{"code": "MX", "label": "Mexico", "phone": "52"},
	{"code": "MY", "label": "Malaysia", "phone": "60"},
	{"code": "MZ", "label": "Mozambique", "phone": "258"},
	{"code": "NA", "label": "Namibia", "phone": "264"},
	{"code": "NC", "label": "New Caledonia", "phone": "687"},
	{"code": "NE", "label": "Niger", "phone": "227"},
	{"code": "NF", "label": "Norfolk Island", "phone": "672"},
	{"code": "NG", "label": "Nigeria", "phone": "234"},
	{"code": "NI", "label": "Nicaragua", "phone": "505"},
	{"code": "NL", "label": "Netherlands", "phone": "31"},
	{"code": "NO", "label": "Norway", "phone": "47"},
	{"code": "NP", "label": "Nepal", "phone": "977"},
	{"code": "NR", "label": "Nauru", "phone": "674"},
	{"code": "NU", "label": "Niue", "phone": "683"},
	{"code": "NZ", "label": "New Zealand", "phone": "64"},
	{"code": "OM", "label": "Oman", "phone": "968"},
	{"code": "PA", "label": "Panama", "phone": "507"},
	{"code": "PE", "label": "Peru", "phone": "51"},
	{"code": "PF", "label": "French Polynesia", "phone": "689"},
	{"code": "PG", "label": "Papua New Guinea", "phone": "675"},
	{"code": "PH", "label": "Philippines", "phone": "63"},
	{"code": "PK", "label": "Pakistan", "phone": "92"},
	{"code": "PL", "label": "Poland", "phone": "48"},
	{"code": "PM", "label": "Saint Pierre and Miquelon", "phone": "508"},
	{"code": "PN", "label": "Pitcairn", "phone": "870"},
	{"code": "PR", "label": "Puerto Rico", "phone": "1"},
	{"code": "PS", "label": "Palestine,  State of", "phone": "970"},
	{"code": "PT", "label": "Portugal", "phone": "351"},
	{"code": "PW", "label": "Palau", "phone": "680"},
	{"code": "PY", "label": "Paraguay", "phone": "595"},
	{"code": "QA", "label": "Qatar", "phone": "974"},
	{"code": "RE", "label": "Reunion", "phone": "262"},
	{"code": "RO", "label": "Romania", "phone": "40"},
	{"code": "RS", "label": "Serbia", "phone": "381"},
	{"code": "RU", "label": "Russian Federation", "phone": "7"},
	{"code": "RW", "label": "Rwanda", "phone": "250"},
	{"code": "SA", "label": "Saudi Arabia", "phone": "966"},
	{"code": "SB", "label": "Solomon Islands", "phone": "677"},
	{"code": "SC", "label": "Seychelles", "phone": "248"},
	{"code": "SD", "label": "Sudan", "phone": "249"},
	{"code": "SE", "label": "Sweden", "phone": "46"},
	{"code": "SG", "label": "Singapore", "phone": "65"},
	{"code": "SH", "label": "Saint Helena", "phone": "290"},
	{"code": "SI", "label": "Slovenia", "phone": "386"},
	{"code": "SJ", "label": "Svalbard and Jan Mayen", "phone": "47"},
	{"code": "SK", "label": "Slovakia", "phone": "421"},
	{"code": "SL", "label": "Sierra Leone", "phone": "232"},
	{"code": "SM", "label": "San Marino", "phone": "378"},
	{"code": "SN", "label": "Senegal", "phone": "221"},
	{"code": "SO", "label": "Somalia", "phone": "252"},
	{"code": "SR", "label": "Suriname", "phone": "597"},
	{"code": "SS", "label": "South Sudan", "phone": "211"},
	{"code": "ST", "label": "Sao Tome and Principe", "phone": "239"},
	{"code": "SV", "label": "El Salvador", "phone": "503"},
	{"code": "SX", "label": "Sint Maarten (Dutch part)", "phone": "1-721"},
	{"code": "SY", "label": "Syrian Arab Republic", "phone": "963"},
	{"code": "SZ", "label": "Swaziland", "phone": "268"},
	{"code": "TC", "label": "Turks and Caicos Islands", "phone": "1-649"},
	{"code": "TD", "label": "Chad", "phone": "235"},
	{"code": "TF", "label": "French Southern Territories", "phone": "262"},
	{"code": "TG", "label": "Togo", "phone": "228"},
	{"code": "TH", "label": "Thailand", "phone": "66"},
	{"code": "TJ", "label": "Tajikistan", "phone": "992"},
	{"code": "TK", "label": "Tokelau", "phone": "690"},
	{"code": "TL", "label": "Timor-Leste", "phone": "670"},
	{"code": "TM", "label": "Turkmenistan", "phone": "993"},
	{"code": "TN", "label": "Tunisia", "phone": "216"},
	{"code": "TO", "label": "Tonga", "phone": "676"},
	{"code": "TR", "label": "Turkey", "phone": "90"},
	{"code": "TT", "label": "Trinidad and Tobago", "phone": "1-868"},
	{"code": "TV", "label": "Tuvalu", "phone": "688"},
	{"code": "TW", "label": "Taiwan", "phone": "886"},
	{"code": "TZ", "label": "United Republic of Tanzania", "phone": "255"},
	{"code": "UA", "label": "Ukraine", "phone": "380"},
	{"code": "UG", "label": "Uganda", "phone": "256"},
	{"code": "US", "label": "United States", "phone": "1"},
	{"code": "UY", "label": "Uruguay", "phone": "598"},
	{"code": "UZ", "label": "Uzbekistan", "phone": "998"},
	{"code": "VA", "label": "Holy See (Vatican City State)", "phone": "379"},
	{"code": "VC", "label": "Saint Vincent and the Grenadines", "phone": "1-784"},
	{"code": "VE", "label": "Venezuela", "phone": "58"},
	{"code": "VG", "label": "British Virgin Islands", "phone": "1-284"},
	{"code": "VI", "label": "US Virgin Islands", "phone": "1-340"},
	{"code": "VN", "label": "Vietnam", "phone": "84"},
	{"code": "VU", "label": "Vanuatu", "phone": "678"},
	{"code": "WF", "label": "Wallis and Futuna", "phone": "681"},
	{"code": "WS", "label": "Samoa", "phone": "685"},
	{"code": "XK", "label": "Kosovo", "phone": "383"},
	{"code": "YE", "label": "Yemen", "phone": "967"},
	{"code": "YT", "label": "Mayotte", "phone": "262"},
	{"code": "ZA", "label": "South Africa", "phone": "27"},
	{"code": "ZM", "label": "Zambia", "phone": "260"},
	{"code": "ZW", "label": "Zimbabwe", "phone": "263"}
]');


/**
 * Front-End Constants Initialization
 *
 * This function initializes all constants that need to be passed to the front-
 * end scripts of the upload form.
 *
 * @since 2.1.2
 */
function wfu_set_javascript_constants() {
	$consts = array(
		"notify_testmode" => WFU_NOTIFY_TESTMODE,
		"nofilemessage" => WFU_ERROR_UPLOAD_NOFILESELECTED,
		"enable_popups" => WFU_ERROR_ENABLE_POPUPS,
		"remoteserver_noresult" => WFU_ERROR_REMOTESERVER_NORESULT,
		"message_header" => wfu_unesc_percent(WFU_ERRORMESSAGE),
		"message_failed" => WFU_ERROR_UPLOAD_FAILED_WHILE,
		"message_cancelled" => WFU_ERROR_UPLOAD_CANCELLED,
		"message_unknown" => WFU_ERROR_UNKNOWN,
		"adminmessage_unknown" => wfu_unesc_percent(WFU_FAILMESSAGE_DETAILS),
		"message_timelimit" => WFU_ERROR_FILE_PHP_TIME,
		"message_admin_timelimit" => sprintf(WFU_ERROR_ADMIN_FILE_PHP_TIME, ini_get("max_input_time")),
		"cancel_upload_prompt" => WFU_CANCEL_UPLOAD_PROMPT,
		"file_cancelled" => WFU_ERROR_FILE_CANCELLED,
		"jsonparse_filemessage" => WFU_ERROR_JSONPARSE_FILEMESSAGE,
		"jsonparse_message" => WFU_ERROR_JSONPARSE_MESSAGE,
		"jsonparse_adminmessage" => WFU_ERROR_JSONPARSE_ADMINMESSAGE,
		"jsonparse_headermessage" => WFU_ERROR_JSONPARSE_HEADERMESSAGE,
		"jsonparse_headeradminmessage" => WFU_ERROR_JSONPARSE_HEADERADMINMESSAGE,
		"same_pluginid" => WFU_ERROR_SAME_PLUGINID,
		"webcam_video_notsupported" => WFU_ERROR_WEBCAM_VIDEO_NOTSUPPORTED,
		"webcam_video_nothingrecorded" => WFU_ERROR_WEBCAM_VIDEO_NOTHINGRECORDED,
		"default_colors" => WFU_VAR("WFU_DEFAULTMESSAGECOLORS"),
		"fail_colors" => WFU_VAR("WFU_FAILMESSAGECOLORS"),
		"max_time_limit" => WFU_MAX_TIME_LIMIT,
		"response_url" => WFU_RESPONSE_URL,
		"ajax_url" => wfu_ajaxurl(),
		"wfu_pageexit_prompt" => WFU_PAGEEXIT_PROMPT,
		"wfu_subdir_typedir" => WFU_SUBDIR_TYPEDIR,
		"wfu_uploadprogress_mode" => WFU_VAR("WFU_UPLOADPROGRESS_MODE"),
		"wfu_consent_notcompleted" => WFU_WARNING_CONSENT_NOTCOMPLETED,
		"wfu_mediarecorder_mimetype" => WFU_VAR("WFU_MEDIARECORDER_MIMETYPE")
	);
	$consts_txt = "";
	foreach ( $consts as $key => $val )
		$consts_txt .= ( $consts_txt == "" ? "" : ";" ).wfu_plugin_encode_string($key).":".wfu_plugin_encode_string($val);

	return $consts_txt;
}