Example #1
0
             eval('$' . $tfu_key_low . '= ($_SESSION[\'TFU\'][\'' . $tfu_key . '\']  == \'true\');');
         }
         if (eval('if (is_string($' . $tfu_key_low . ')) return true; ')) {
             eval('$' . $tfu_key_low . '= $_SESSION[\'TFU\'][\'' . $tfu_key . '\'];');
         }
     }
 }
 // Manually mappings!
 $login = "******";
 // The login flag - has to set by yourself below "true" is logged in, "auth" shows the login form, "reauth" should be set if the authentification has failed. "false" if the flash should be disabled.
 $folder = $_SESSION['TFU']["TFU_FOLDER"];
 // this is the root upload folder.
 $zip_folder = $folder;
 // has to be set again!
 $maxfilesize = $_SESSION['TFU']["MAXFILESIZE"] != "" ? getMaximumUploadSize() > $_SESSION['TFU']["MAXFILESIZE"] ? $_SESSION['TFU']["MAXFILESIZE"] : getMaximumUploadSize() : getMaximumUploadSize();
 $resize_show = $_SESSION['TFU']["RESIZE_SHOW"] == "true" ? is_gd_version_min_20() : "false";
 // Enhanced features - this are only defaults! if TFU detects that this is not possible this functions are disabled!
 $hide_remote_view = $_SESSION['TFU']["HIDE_REMOTE_VIEW"] == "true" ? 'true' : '';
 // some optional things
 $base_dir = $joomla_path;
 // this is the base dir of the other files - tfu_read_Dir, tfu_file and the lang folder. since 2.6 there are no seperate settings for tfu_readDir and tfu_file anymore because it's actually not needed.
 $warning_setting = $_SESSION['TFU']["WARNING_SETTING"];
 // the warning is shown if remote files do already exist - can be set to all,once,none
 $show_size = $_SESSION['TFU']["SHOW_SIZE"] == 'true' ? 'true' : '';
 // the text of the email is stored in the tfu_upload.php if you like to change it :)
 $upload_notification_email = $_SESSION['TFU']["NOT_EMAIL"];
 $upload_notification_email_from = $_SESSION['TFU']["NOT_EMAIL_FROM"];
 $upload_notification_email_subject = $_SESSION['TFU']["NOT_EMAIL_SUBJECT"];
 $upload_notification_email_text = $_SESSION['TFU']["NOT_EMAIL_TEXT"];
 $normalizeSpaces = $_SESSION['TFU']["NORMALIZE_SPACES"];
 $titel = $_SESSION['TFU']["FLASH_TITLE"];
Example #2
0
    session_id($_GET['TFUSESSID']);
}
session_start();
$install_path = "";
// Please read the howto 8 of the TFU FAQ what you have to do with this parameter! You need a / at the end if you set it!
include $install_path . "tfu_helper.php";
/*
    CONFIGURATION
*/
$login = "******";
// The login flag - has to set by yourself below "true" is logged in, "auth" shows the login form, "reauth" should be set if the authentification has failed. "false" if the flash should be disabled.
$folder = "../../../themes";
// this is the root upload folder.
$maxfilesize = getMaximumUploadSize();
// The max files size limit of the server in KB. You can specify your own limit here e.g. 512. This setting is restricted by your server settings! Please read FAQ 4 of the TFU FAQ how to set upload_max_filesize and post_max_size.
$resize_show = is_gd_version_min_20();
// Show the resize box! Valid is "true" and "false" (Strings!) - the function is_gd_version_min_20 checks if the minimum requirements for resizing images are there!
$resize_data = "";
// The data for the resize dropdown
$resize_label = "";
// The labels for the resize dropdown
$resize_default = "0";
// The preselected entry in the dropdown (1st = 0)
$allowed_file_extensions = "zip";
// Allowed file extensions! jpg,jpeg,gif,png are allowed by default. "all" allowes all types - this list is the supported files in the browse dropdown! Please note: The filter of the file chooser dialog is limited - I have found out that if you have more than 30 extensions + $split_extension == FALSE (= no support for splitted files) not all files are listed in the dropdown if "supported files " is used. If $split_extension == 'part' (= support for splitted files) the number is limited to 10. This does not mean that TFU would not process them correctlty! If you specify more TFU automatically uses "All Files" - Then all files are listed and not supported extensions are checked by the flash after pressing "Open"
$forbidden_file_extensions = "jpg,jpeg,gif,png,php,txt,swf";
// Forbidden file extensions! - only usefull if you use "all" and you want to skip some exensions!
// Enhanced features - this are only defaults! if TFU detects that this is not possible this functions are disabled!
$hide_remote_view = "";
// If you want to disable the remote view add "&hide_remote_view=true" as value!
$show_preview = "false";
 $resize_show = is_gd_version_min_20();
 // Show the resize box! Valid is 'true' and 'false' (Strings!) - the function is_gd_version_min_20 checks if the minimum requirements for resizing images are there!
 $resize_data = '100000,1280,1024,800';
 // The data for the resize dropdown
 $resize_label = 'Original,1280,1024,800';
 // The labels for the resize dropdown
 $resize_default = '0';
 // The preselected entry in the dropdown (1st = 0)
 $allowed_file_extensions = 'all';
 // Allowed file extensions! 'all' allowes all types - this list is the supported files in the browse dropdown! If this field is empty then the upload grid is removed and the server only view is enabled. Please note: The filter of the file chooser dialog is limited. Don't use more than ~25 extensions. If you specify more TFU automatically uses 'All Files' - Then all files are listed and not supported extensions are checked by the flash after pressing 'Open'.
 $forbidden_file_extensions = 'php';
 // Forbidden file extensions! - only usefull if you use 'all' and you want to skip some exensions! php e.g. means php* ! then php4 and so on is covered as well!
 // Enhanced features - this are only defaults! if TFU detects that this is not possible this functions are disabled!
 $hide_remote_view = '';
 // If you want to disable the remote view set 'true' as value!
 $show_preview = is_gd_version_min_20();
 // Show the small preview. Valid is 'true' and 'false' (Strings!) - the function is_gd_version_min_20 checks if the minimum requirements for resizing images are there!
 $show_big_preview = 'true';
 // Show the big preview - clicking on the preview image shows a bigger preview
 $show_delete = 'true';
 // Shows the delete button - if download is set to button this moves to the menu!
 $enable_folder_browsing = 'true';
 // Without browsing creation and deletion is disabled by default!
 $enable_folder_creation = 'true';
 // Show the menu item to create folders
 $enable_folder_deletion = 'true';
 // Show the menu item to delete folders - this works recursive!
 $enable_folder_rename = 'true';
 // Show the menu item to rename folders
 $enable_file_rename = 'true';
 // Show the menu item to rename files - default is false because this is a securiy issue - check the point below - should only be activated in very save environments or if you keep the file extension in the registered version.!