FR.editSettings={};FR.editSettings.formPanel=new FR.components.editForm({title:FR.T("Files")+" "+FR.T("Misc options"),layout:"form",autoScroll:true,items:[{xtype:"fieldset",labelWidth:250,width:600,items:[{xtype:"numberfield",width:60,allowBlank:false,fieldLabel:"Number of old versions to keep for each file",name:"settings[versioning_max]",value:FR.settings.versioning_max,helpText:FR.T("Setting this to 0 disables the versioning system.")+" "+(!FR.system.isFree?FR.T("The recommended value is 10."):"")},{fieldLabel:"Number of days to keep the file activity log entries",name:"settings[file_history_entry_lifetime]",value:FR.settings.file_history_entry_lifetime,xtype:"numberfield",width:60,allowBlank:false,disabled:FR.system.isFree},{xtype:"checkbox",boxLabel:"Disable the file activity logs.",value:1,name:"settings[disable_file_history]",checked:parseInt(FR.settings.disable_file_history),disabled:FR.system.isFree},{xtype:"textfield",width:245,fieldLabel:"Blocked file types",helpText:FR.T("Example list:")+" php,sh,htaccess,ini",name:"settings[upload_blocked_types]",value:FR.settings.upload_blocked_types},{xtype:"combo",fieldLabel:"Enable download accelerator",name:"settings[download_accelerator]",hiddenName:"settings[download_accelerator]",autoCreate:true,mode:"local",editable:false,emptyText:FR.T("Select..."),displayField:"name",valueField:"id",triggerAction:"all",disableKeyFilter:true,value:FR.settings.download_accelerator,store:new Ext.data.SimpleStore({fields:["id","name"],data:[["",FR.T("- None -")],["x_accel",FR.T("NGINX X-Accell")],["xsendfile",FR.T("Apache XSendfile")],["lightspeed",FR.T("LiteSpeed Internal Redirect")]]}),helpText:FR.T("Select the appropriate option for your particular web server.")+"<br>"+FR.T("Note that only the downloading of really large files will benefit from this option.")+"<br>"+FR.T('If in doubt select "- None -".')+"<br>"+FR.T("Make sure to check the integrity of the downloaded files after enabling an accelerator.")},{xtype:"checkbox",fieldLabel:"Automatic share e-mail notifications",helpText:FR.T("Automatically subscribe users so that they receive notifications when files, comments or labels are being added inside folders that have been shared with them.")+"<br>"+FR.T("Users can unsubscribe from any share's notifications, by using the notifications option available for the particular share's contextual menu."),value:1,name:"settings[shares_subscribe_notifications]",checked:parseInt(FR.settings.shares_subscribe_notifications),hidden:FR.system.isFree}]}],tbar:[{text:"Save changes",cls:"fr-btn-primary",ref:"saveBtn",handler:function(){var editForm=this.ownerCt.ownerCt;var opts={url:FR.URLRoot+"/?module=cpanel&section=settings&action=save",maskText:"Saving changes...",params:editForm.form.getFieldValues()};editForm.submitForm(opts)}}]});Ext.getCmp("appTab").add(FR.editSettings.formPanel);Ext.getCmp("appTab").doLayout();