$group=form_textfield(t('File system path'),'file_directory_path',$directory_path,70,255,t('A file system path where the files will be stored. This directory has to exist and be writable by Drupal. If the download method is set to public this directory has to be relative to Drupal installation directory, and be accessible over the web. When download method is set to private this directory should not be accessible over the web. Changing this location after the site has been in use will cause problems so only change this setting on an existing site if you know what you are doing.'));
$group.=form_textfield(t('Temporary directory'),'file_directory_temp',$directory_temp,70,255,t('Location where files can be saved temporarily. This directory should not be accessible from the web.'));
$group.=form_textfield(t('Temporary directory'),'file_directory_temp',$directory_temp,70,255,t('Location where uploaded files will be placed for preview purposes. This directory should be relative to the file system path.'));
$group.=form_radios(t('Download method'),'file_downloads',variable_get('file_downloads',FILE_DOWNLOADS_PUBLIC),array(FILE_DOWNLOADS_PUBLIC=>t('Public - files are available using http directly.'),FILE_DOWNLOADS_PRIVATE=>t('Private - files are be transferred by Drupal.')),t('This setting can be changed at any time, however, all download URLs will change and there may be unexpected problems so it is not recommended.'));
$output.=form_group(t('File system settings'),$group);
$group=form_textfield(t('File system path'),'file_directory_path',$directory_path,70,255,t('A file system path where the files will be stored. This directory has to exist and be writable by Drupal. If the download method is set to public this directory has to be relative to Drupal installation directory, and be accessible over the web. When download method is set to private this directory should not be accessible over the web. Changing this location after the site has been in use will cause problems so only change this setting on an existing site if you know what you are doing.'));
$group.=form_textfield(t('Temporary directory'),'file_directory_temp',$directory_temp,70,255,t('Location where files can be saved temporarily. This directory should not be accessible from the web.'));
$group.=form_textfield(t('Temporary directory'),'file_directory_temp',$directory_temp,70,255,t('Location where uploaded files will be placed for preview purposes. This directory should be relative to the file system path.'));
$group.=form_radios(t('Download method'),'file_downloads',variable_get('file_downloads',FILE_DOWNLOADS_PUBLIC),array(FILE_DOWNLOADS_PUBLIC=>t('Public - files are available using http directly.'),FILE_DOWNLOADS_PRIVATE=>t('Private - files are be transferred by Drupal.')),t('This setting can be changed at any time, however, all download URLs will change and there may be unexpected problems so it is not recommended.'));
$output.=form_group(t('File system settings'),$group);
returnt('File-handling and attaching files to nodes.');
case'admin/upload':
returnt('Users with the <a href="%permissions"><em>upload files</em> permission</a> can upload attachments. You can choose which node types can take attachments on the <a href="%workflow">workflow settings</a> page.',array('%permissions'=>url('admin/user/configure/permission'),'%workflow'=>url('admin/node/configure/defaults')));
case'admin/node/configure/defaults':
returnt('<p>If you want users to be able to attach files to nodes, check the <em>attachments</em> column in the appropriate column.</p>');
$group.=form_textfield(t("Maximum total file size"),"upload_maxsize_total",variable_get("upload_maxsize_total",0),5,5,t("The maximum size of a file a user can upload in megabytes. Enter 0 for unlimited."));
$output=form_group(t('General settings'),$group);
$roles=user_roles(0,'upload files');
foreach($rolesas$rid=>$role){
$group=form_textfield(t("Permitted file extensions"),"upload_extensions_$rid",variable_get("upload_extensions_$rid","jpg jpeg gif png txt html doc xls pdf ppt pps"),60,255,t("Extensions that users in this role can upload. Separate extensions with a space and do not include the leading dot."));
$group.=form_textfield(t("Maximum file size per upload"),"upload_uploadsize_$rid",variable_get("upload_uploadsize_$rid",1),5,5,t("The maximum size of a file a user can upload (in megabytes)."));
$group.=form_textfield(t("Total file size per user"),"upload_usersize_$rid",variable_get("upload_usersize_$rid",10),5,5,t("The maximum size of all files a user can have on the site (in megabytes)."));
$output.=form_group(t("Settings for '%role'",array('%role'=>$role)),$group);