Added ability to specify log directory for Gene6FTP

This commit is contained in:
Daniel Grotjan 2012-05-24 12:06:36 -04:00
parent 99e93e99da
commit 131fdca1b0
6 changed files with 35 additions and 5 deletions

View file

@ -1,14 +1,21 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Gene6FTP_Settings.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.Gene6FTP_Settings" %>
<table cellpadding="4" cellspacing="0" width="100%">
<tr>
<td class="SubHead" valign="top">
<td class="SubHead" nowrap="nowrap">
<asp:Label ID="lblInstallFolder" runat="server" meta:resourcekey="lblInstallFolder" Text="Installation Folder:"></asp:Label>
</td>
<td class="Normal" valign="top">
<asp:TextBox ID="txtInstallFolder" runat="server" CssClass="NormalTextBox" Width="300px"></asp:TextBox></td>
</tr>
<tr>
<td class="SubHead" width="200" nowrap>
<td class="SubHead" nowrap="nowrap">
<asp:Label ID="lblLogsFolder" runat="server" meta:resourcekey="lblLogsFolder" Text="Logs Folder:"></asp:Label>
</td>
<td class="Normal" valign="top">
<asp:TextBox ID="txtLogsFolder" runat="server" CssClass="NormalTextBox" Width="300px"></asp:TextBox></td>
</tr>
<tr>
<td class="SubHead" nowrap="nowrap">
<asp:Label ID="lblSite" runat="server" meta:resourcekey="lblSite" Text="FTP Accounts Site:"></asp:Label>
</td>
<td width="100%">

View file

@ -64,14 +64,16 @@ namespace WebsitePanel.Portal.ProviderControls
Utils.SelectListItem(ddlFtpSite, settings["SiteId"]);
txtInstallFolder.Text = settings["InstallFolder"];
chkBuildUncFilesPath.Checked = Utils.ParseBool(settings["BuildUncFilesPath"], false);
txtLogsFolder.Text = settings["LogsFolder"];
chkBuildUncFilesPath.Checked = Utils.ParseBool(settings["BuildUncFilesPath"], false);
}
public void SaveSettings(StringDictionary settings)
{
settings["SiteId"] = ddlFtpSite.SelectedValue;
settings["InstallFolder"] = txtInstallFolder.Text.Trim();
settings["BuildUncFilesPath"] = chkBuildUncFilesPath.Checked.ToString();
settings["LogsFolder"] = txtLogsFolder.Text.Trim();
settings["BuildUncFilesPath"] = chkBuildUncFilesPath.Checked.ToString();
}
}
}

View file

@ -13,6 +13,8 @@ namespace WebsitePanel.Portal.ProviderControls {
public partial class Gene6FTP_Settings {
protected System.Web.UI.WebControls.Label lblInstallFolder;
protected System.Web.UI.WebControls.TextBox txtInstallFolder;
protected System.Web.UI.WebControls.Label lblLogsFolder;
protected System.Web.UI.WebControls.TextBox txtLogsFolder;
protected System.Web.UI.WebControls.Label lblSite;
protected System.Web.UI.WebControls.DropDownList ddlFtpSite;
protected System.Web.UI.WebControls.Label lblBuildUncFilesPath;