http://www.tinywebgallery.com/en/tfu/web_faq.php#10 $debug_file = dirname(__FILE__) . "/tfu.log"; /** * Extra settings for the registered version */ $titel = 'TWG Flash Uploader'; // This is the title of the flash - can not be set in the freeware version! $remote_label = ''; // 'Remote' This is a optional setting - you can change the display string above the file list if you want to use a different header - can only be changed in the registered version! - if you want to have a & you have to urlencode the string! $preview_label = ''; // 'Preview' This is a optional setting - you can change the display string of the header if you don't use the preview but maybe this function to determine the selection in the remote file list - can only be changed in the registered version! - if you want to have a & you have to urlencode the & ! $upload_finished_js_url = ''; // 'status.???' - You can specify a url that is called by the flash in the js function uploadFinished(param) This makes it possible e.g. to show a kind of result in a iframe below the flash. - only available in the registered version! Check the tfu.htm for examples of the Javascript function. $preview_select_js_url = ''; // 'preview.???' - You can specify a url that is called by the flash in the js function previewSelect(param) This makes it possible e.g. to show a kind of result in a iframe below the flash. this is only executed if show_preview=true - only available in the registered version! Check the tfu.htm for examples of the Javascript function. $delete_js_url = ''; // 'delete.???' - You can specify an url that is called by the flash in the js function deleteFile(param) This makes it possible e.g. to show a kind of result in a iframe below the flash is someone deletes a file. - only available in the registered version! $js_change_folder = ''; // 'change_folder.???' - You can specify an url that is called by the flash in the js function changeFolder(param) This makes it possible e.g. to show a kind of result in a iframe below the flash is someone changes a folder. - only available in the registered version! $js_create_folder = ''; // 'create_folder.???' - You can e.g. specify an url that is called by the flash in the js function createFolder(status,param). status is the status of the folder creation. Possible status values are: exists (folder exists), true (folder created), false (folder not created) - only available in the registered version! $js_rename_folder = ''; // 'ren_folder.???' - You can e.g. specify an url that is called by the flash in the js function renameFolder(status,param). status is the status of the folder rename. Possible status values are: exists (destination folder exists), true (folder renamed), false (folder not renamed) - only available in the registered version! $js_delete_folder = ''; // 'del_folder.???' - You can e.g. specify an url that is called by the flash in the js function deleteFolder(status,param). status is the status of the folder delete. Possible status values are: true (folder deleted), false (folder not deleted) - only available in the registered version! $js_copymove = ''; // 'copymove.???' - You can e.g. specify an url that is called by the flash in the js function copymove(doCopyFolder,type,total,ok,error,exits,param). Check the example in tfu.htm for a description of all parameters - only available in the registered version! $show_full_url_for_selected_file = ''; // 'true' - if you use this parameter the link to the selected file is shown - can be used for direct links - only available in the registered version! $directory_file_limit = '100000'; // you can specify a maximum number of files someone is allowed to have in a folder to limit the upload someone can make! - only available in the registered version! $queue_file_limit = '100000'; // you can specify a maximum number of files someone can upload at once! - only available in the registered version! $queue_file_limit_size = '100000'; // you can specify the limit of the upload queue in MB! - only available in the registered version! $hide_help_button = 'true'; // since TFU 2.5 it is possible to turn off the ? (no extra flash like before is needed anymore!) - it is triggered now by the license file! professional licenses and above and old licenses that contain a TWG_NO_ABOUT in the domain (=license for 20 Euro) enable that this switch is read - possible settings are 'true' and 'false' $enable_file_download = 'button1'; // You can enable the download of files! valid entries 'true', false', 'button', 'button1' - 'button' show the dl button insted the menu button if all other elements of the menu are set to false - 'button1' shows the download button instead of the delete button and the delete function is moved to the menu if enabled! - only available in the registered version! $download_multiple_files_as_zip = 'true'; // You can enable that multiple files are downloadd as one zip. The zip files are created dynamically. Therefore it could take some time until the download starts. $zip_folder = $folder; // This is the folder where the zip file is created temporary. Please make sure that this directory is writeable! $direct_download = ''; // true = 'true' ; false = '' or 'false' - If the downloads are corrupt or fail on https with ie you can enable direct download. Then the flash tries to get the files directly and not over php. The disadvantage is that the url has to be urlencoded and not all filenames are possible then - do only use this if the download does not work with the default setting. zip download does not work with this setting! I recommend to enable normalize for files and directories to have valid filenames. $enable_folder_move = 'true'; // New 2.6 - Show the menu item to move folders - you need a professional license or above to use this $enable_file_copymove = 'true'; // New 2.6 - Show the menu item to move and copy files - you need a professional license or above to use this $preview_textfile_extensions = 'out,log'; // New 2.7 - This are the files that are previewed in the flash as textfiles. Right now I only have 'save' extensions. But you can have any extension here. If you don't use a . this settings are extensions. But you can restrict is to single files as well by using the full name. e.g. foldername.txt. * is supported as wildcard! Only available for registered users. $edit_textfile_extensions = 'txt,css'; // New 2.7 - This are the files that can be edited in the flash. But you can restrict is to single files as well by using the full name. e.g. foldername.txt. * is supported as wildcard! Only available for registered users. $allowed_view_file_extensions = 'all'; // New 2.7.0.6 - You can define the file extensions that are shown on the server view. If you set 'all' all files except the one from $forbidden_view_file_extensions are shown. If you define a list of extensions here only these are shown - Only available for registered users. $forbidden_view_file_extensions = ''; // New 2.7.0.6 - If you have set $allowed_view_file_extensions = 'all' then you can define a list of file extensions that are not shown - Only available for registered users. $description_mode = 'false'; // New 2.7.4.5 - You can enable a description mode where the size and the date is replaced by a description field. The data of this field is sent to the server and stored in a txt file called .txt or sent by e-mail to you. Only available for professional license or above. $description_mode_show_default = 'true'; // New 2.7.4.5 - Shows/hides a 'Enter description' in the description field if you like. The text is stored in the language file if you want to change it. Only available for professional license or above. $description_mode_store = 'email'; // New 2.7.4.5 - ('txt','email') The description is either saved to a textfile called .txt or is added to the notification e-mail. Only available for professional license or above. // New 2.9 $overwrite_files='true'; // New 2.9 - true - Existing files are overwritten; false - existing files are not overwritten. $description_mode_mandatory='false'; // New 2.9 - true - a description has to be provided for each file; false - description is optional. $normalizeSpaces='false'; // new 2.9 - if you enable normalize file names or directory names you can decide here if spaces are replaces with an _ or not. $file_chmod=0; // New 2.9 - by using 0 the default mode of the files is used. Then the creation depend on the umask of the server. If you want the files to have different permissions please use the octal representation e.g. 0777, 0755, 0644 ... $dir_chmod=0; // New 2.9 - by using 0 the default mode of the directory is used. Then the creation depend on the umask of the server. If you want the directory to have different permissions please use the octal representation e.g. 0777, 0755, 0644 ... $enable_dir_create_detection=true; // New 2.9.0.2 - If you cannot create directories you can try to disable the automatic detection which prevents this. If you set this to 'false' the flash tries to create the directory; maybe it works ;). - try to upload files into the directory and create another subdirectory too. If this works you can leave this to false. This setting is currently not mapped in JFU 2.9 - will be added in 2.10! For 2.10 I will add a small ftp layer to create dirs. // new 2.10 $enable_upload_debug = false; // New 2.10 - This enables the debuging ouput at the upload. You should only use this after contacting me! $enable_enhanced_debug = false; // New 2.10 - This shows the request to each debug line. // This settings will be added to JFU backend in 2.11 - you can change this directly here if you need to! $form_fields = ''; // New 2.10 - You can enable TFU to read form fields from the html page and add then to the upload as 'get' parameters. Please read howto 15 how to configure this. Only available for professional license or above. $hide_hidden_files = false; // New 2.10.6 - You can hide hidden files and directories in the remote view. All files and folders starting with a . are hidden if you set this to true. // special extension - a post upload panel - this is only implemented for JFU and not documented yet! $post_upload_panel='false'; /* This is example data for the post upload panel - this is not documented yet! $post_upload_panel.="&post_name=my_name"; $post_upload_panel.="&post_company=my_firma"; $post_upload_panel.="&post_email=my_email"; $post_upload_panel.="&post_address=my_add"; $post_upload_panel.="&post_postcode=my_postcode" ; $post_upload_panel.="&post_city=my_city" ; $post_upload_panel.="&post_country=my_country"; $post_upload_panel.="&post_telephone=my_telephone"; $post_upload_panel.="&post_fax=my_fax"; */ /* new 2.7.8 we include your configuration file! Then updatin is easier because your settings are not overwritten. No my_tfu_config.php is included in the download! */ if (file_exists(dirname(__FILE__) . '/my_' . basename(__FILE__))) { include dirname(__FILE__) . '/my_' . basename(__FILE__); } } else { define('_VALID_TWG', '42'); $install_path = ''; include_once (dirname(__FILE__) . "/" . 'tfu_helper.php'); include (basename(__FILE__)); // needed for the info! printServerInfo(); } ?>